sábado, 12 de septiembre de 2015

Android: ROMs - Root - Utilities


ROMs
Samsung ROM naming convention

B5330XXAL4 :
B5330(=model)XX(=Region)A(=Year)L(=Month)4(=Revision)
XA Austria, France, Germany, Italy, Netherlands, Switzerland, United Kingdom
XW France, Germany, Italy, Netherlands, Portugal, Spain, Turkey, United Kingdom
XX Austria, Belgium, France, Germany, Hungary, Italy, Spain, United Kingdom

ALI4=Android 4.0.4 ICS (2012/9)
BMC2 =Android 4.1.2 JellyBean (2013/3)
BMD2= Android 4.1.2 JellyBean (2013/4)


YEAR CODES
K 2011
L 2012
M 2013
...

MONTH CODES
A January
C March
E May
G July
I September
K November
L December

REVISION CODES
1 = 1
2 = 2
A = 10
B = 11
C = 12


Root your device


Requirements:
Settings, Developer options
ON
USB debugging(Checked)


App to verify:
root verifier (install from F-droid)

Check XDA developers for information and procedure
http://www.xda-developers.com/root/

Suggested Utilities:

Superuser
F-droid 0.76
OI Explorer 2.03   (Free File explorer, not root)
Ghost commander 1.52.2   (Free Advanced File explorer, apps,...)
All-In-One Toolbox 1.5  (processes, cleaner, app2sd, filemanager)
BusyBox Pro v19
APK extractor (free  - extract apps to apk)

Root verifier (free)(com.abcdjdj.rootverifier)
Root checker (burrows.apps.rootchecker)(with ads, required google services,  good info about system)
Super user (com.noshufou.android.su)
Disk Usage (com.google.android.diskusage)(free)

(Useful but not free as free beer or freedom)
System Tuner Pro  2.1.2 (tasks, root uninstall system apps, terminal, startups,)
Android tuner 0.12.9 (root, uninstall user apps, many tools, root explorer, terminal, firewall,startups,..)
Root Software

ROM Manager 5.5 (free includes ads)
 install ClockworkMod
 ROM download, backup, restore, fix permissions...

lunes, 7 de septiembre de 2015

Blackberry OS 10.x - System + Android runtime


Blackberry OS 10 in Classic device
HW Model: Classic - SQC100-1 (Q20)
HW: MSM8960 v3.2.1.1 N rev.11

Original soft release v.10.3.1.1779
   Soft release updated to  v.10.3.3.2137
                                         v.10.3.2.2474
                                         v.10.3.2.2836 

Original OS10 ver.  v.10.3.1.2576

Updated OS10 ver.  v.10.3.3.3216
                                 v.10.3.2.2639
                                 v.10.3.2.2876 
                          

3.5" 720x720 - 290.6 ppi
CPU: Qualcomm dual-core Snapdragon S4 MSM8960- 1.5 GHz Krait + Adreno 225 (GPU) (32bits core)
(Snapdragon S4/Krait is a ARMv7-A compatible CPU architecture,  armhf=ARMv7 )
RAM: 2GB of LPDDR2 SDRAM -16GB of built-in storage
MicroUSB - HDMI output (Slimport)
Nano-SIM
microSD up to 32GB

Battery 2515mAh 9,56Wh (SMD connector)

Android runtime. ver: 4.3



Unsupported APIs from JellyBean
https://developer.blackberry.com/android/apisupport/unsupportedapi_jellybean.html


Blackberry folders/paths

**Internal mem:**
/mnt/sdcard/ (Android runtime)
/sdcard (alias to /mnt/sdcard/)
/misc/android/
/accounts/1000/shared/misc/android (BB filesystem):

**Android folder  in internal mem**
/mnt/sdcard/Android  (Android runtime)
/misc/android/android (alias to /mnt/sdcard/misc/android/android)
/accounts/1000/shared/misc/android (BB filesystem):

**external/SD card memory:**
/mnt/sdcard/external_sd/  (Android runtime)
/accounts/1000/removable/sdcard/ (BB filesystem):
 Specific examples of folders:

/mnt/sdcard/external_sd/camera (Y:\camera)
/misc/android/    (used by Adobe PDF)
/misc\android\com.fsck.k9 (k9 settings)
\misc\android\MapsWithMe\150805 (MapsWithMe maps)

* All Android apps, even those ported to BB10 save files to this path


Configuring a BB from the very beginning
(avoiding any cloud service)

0- (just if you are cleaning an used phone)

settings;security and privacy, security wipe
1-

Autoconfiguration for provider
Configure wifi, Bluetooth device name

Step create a Blackberry account for Blackberry world  
    Install ContactsIm Ex
      Play cloud (native file manager)
      BG-SSH


Install Google services (optional)




viernes, 19 de junio de 2015

IR Remote - Configure any TV Handler

IR receiver Pinouts
IR diode/receviver - VS1838B (1838 requires a resistance between Vcc and Signal)
1 -Left - Signal/Out
2 -Middle - GND

3 - Right  - VCC+(3V)




Xinda board with a 1838B (top view) (this board includes a resistance and a led)
1-Left – GND-
2-Middle – VCC+ (3V)
3- Right – Signal/Out

VS1838B
38 kHz carrier frequency
Most IR remote controls use the 38 kHz carrier frequency.


Name of basic keys
KEY_PLAY
KEY_STOP
KEY_PAUSE
KEY_ENTER
KEY_LEFT
KEY_RIGHT
KEY_UP
KEY_DOWN
KEY_MENU
KEY_EXIT
KEY_FORWARD
KEY_REWIND
KEY_SUBTITLE
KEY_MUTE
KEY_FASTFORWARD

List more names of KEYS with:
irrecord --list-namespace | grep KEY


From SSH


(if lirc is executing, stop it with
 sudo /etc/init.d/lirc stop)

irrecord -d /dev/lirc0 /home/pi/mi_mando_tv.conf

irrecord -f -d /dev/lirc0 /home/pi/my_nevir_tv.conf
(-f for raw mode; it was required for my tv handler. it writes more hex codes for each key) 
(irrecord will ask to press many buttons, have patience because it is a quite boring process, after it it will ask for KEY names, enter a previous keyname, press enter, press key in IR handler.)

cp my_nevir_tv.conf lircd.conf


From RaspBMC/Openelect GUI(GUI Graphical User Interface)

 If using RaspBMC, from Menu enter in "Raspbmc Settings", "IR Remote"
Then, verify following options.
"Enable GPIO TSOP IR Receiver" must be enabled
"GPIO TSOPremote profile"=Custom
and it will detect a new lircd.conf file and will ask for reboot. Select "Yes"


From RaspBMC/Openelect GUI(GUI Graphical User Interface)

 If using RaspBMC, from Menu enter in "Raspbmc Settings", "IR Remote"

From OSMC(GUI Graphical User Interface)

By default, it is enabled
Verify from:
"Pi Config"; "Hardware support";
Enable LIRC GPIO support=yes
gpio_in_pin=18

From  "Remotes", "Browse" and load a config file



Files
My example file, generated with several TV handlers in raw mode(-f)
lircd_nevir.conf
lircd_ansonic.conf





jueves, 29 de enero de 2015

GEL Scripting -



 GEL (Generic Execution Language) is a scripting language over XML, and based on the Apache Jakarta and Jelly libraries


This script code can be executed from Process actions (Custom Script) or from the command line (though few people use from CLI).

Basis:





Notes for SQL:

Be careful with SQL symbols < > inside GEL code, because cos they will be interpreted by gel interpreter,
replace by BETWEEN

<![CDATA[  my_SQL_queries ]]>




Differences between GEL for Clarity and Command-line:
in Clarity:


in CLI:
    "Total: " ${myrow[0]} 



Beginning of GEL script

log - ${texto_esf_est} ${texto_fechafin} ---

Definition of  libraries:
This is the most common lines for libraries definition

            xmlns:core="jelly:core"
            xmlns:gel="jelly:com.niku.union.gel.GELTagLibrary"
            xmlns:pbk="jelly:com.niku.pbk.gel.GELTagLibrary"
            xmlns:sql="jelly:sql" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">



miércoles, 28 de enero de 2015

beOS - una opción a la sombra

Articulo publicado en Guía de ocio en Asturias nº29 (2ª quincena Abril 2004)

A veces haciendo limpieza en un disco duro uno se encuentra cosas, que dependiendo de la cantidad de años pasados pueden ser más o menos interesantes :)
beos














Licencia CC.



lunes, 12 de enero de 2015

My best opensource IT resources

Free and Opensource resources (updated on 2023)

 

Useful "open" resources that i use frequently  when I am creating creative commons or opensource content/products


Icons/cliparts

https://icons8.com

Useful for small icons (i.e for a smartwatch), not opensource but free just adding a reference link.

"Established open-source projects could receive the icons for free. For you, we'll open-source the needed resources."
 

 https://www.iconfinder.com/icons

 Sizes and formats: PNG, SVG, ICO, ICNS. Every icon includes info about its license

 

 PICOL icons (SVG or in a font type)
PICOL, PIctorial COmmunication Language

http://openiconlibrary.sourceforge.net/
https://openclipart.org
Each artist at Openclipart releases all rights to the images they share (Creative Commons Zero 1.0 Public Domain License)

http://p.yusukekamiyamane.com/
map icons
http://mapicons.nicolasmollet.com/
www.flaticon.com  (All or many with Creative Commons license)

Photos and icon/vectors...

http://www.freepik.com  (Mix of Commercial and and license info linked to author page)

Typographic Fonts

An interesting article:  free-fonts-free-is-not-always-free

Free as Freedom
 SIL Open Font License (OFL) is a free, libre and open source license specifically designed for fonts and related software based on our experience in font design and linguistic software engineering.

http://openfontlibrary.org/en/catalogue?view=sentence

Following free fonts include IPA Phonetic symbols:

CharisSIL-5.000.zip
Download "DoulosSIL-5.000.zip"

Notes about free fonts and compatibility with non free fonts:
Liberation Sans  - Arial

Liberation Serif  - Times New Roman
Liberation Mono  - Courier New

Free as free beer
http://www.1001fonts.com/free-fonts-for-commercial-use.html



Howto use new fonts in Windows without administrative rights.
i.e
D:\Ejecutables\LibreOfficeportable\Data\fonts

http://www.pendriveapps.com/search/Boot+It

Media


Wikimedia Commons
https://commons.wikimedia.org  (a huge database of  freely usable media files)

Software

http://portableapps.com/
http://sourceforge.net/
F-Droid (Android)
https://f-droid.org/repository/browse/




martes, 16 de diciembre de 2014

Android free of Google/samsung limitations (I)

People trusted in Google because they were afraid of  Microsoft and Apple behavior.


Having Linux inside of the Android base seemed to be a good point in order to feel free and  many IT professionals, gurus and some even free software fighters were in the first line of the Android army.


However applications for Android are not Linux compatible apps but a Java flavor apps, thus existing free apps for Linux, Maemo,... will not be easily ported to Android.
Furthermore accessing to the Linux layer and its services requires to root the device thus root your device should be a "todo" but it is not always easy and with no risks :(

Even very recognized organizations such as FSFE suggests to root Android
http://fsfe.org/campaigns/android/android.en.html


It is a pity that other operating system were not promoted, or devices using them bought enough by the community.

An example of these better OS are:
  • Maemo, Meego,Mer  real linux environments and able to run linux compatible code
  • WebOS(from Palm) OS based in linux and apps based on HTML5/Web application

Now, the alternatives to Android/iOS/Windows comes from:
  • Jolla and its SailfishOS,  a phone created by some of the Nokia people, compatible with Linux code and QT SDK. Also able to execute Android apps
  • Firefox OS.
  • Blackberry  and BB10 OS based QNX (linux flavour), also including physical keyboard support. Apps based in C++/QT, HTML5,...and also able to execute Android apps via the included "Android runtime"

After this overview of current mobile phone scene, see below how to fight against the many lacks of Android:

If you are going to buy an Android phone
Buy a device from the following list of phones with a procedure to root
http://www.xda-developers.com/root/

Avoid using Google Play and use F-Droid repository as much as possible
  Settings, Security, (Device Administration), Unknown sources (check)
F-droid  It can be done even with a device not associated to a google account
  https://f-droid.org/   and install apk from the Interner browser.


Reset your device
  If you feel that you don't have the control of your device, maybe you installed many apps from google play with 'abusive licenses' and too many rights
  Settings, Backup and reset, (Personal data), Factory data reset
  
Configure your Android for standalone use (avoid google cloud,etc)

   There are 3rd party software better than that included in Android
      DejaOffice
      Offline GPS/Maps(OSMAnd, Navit, Sygic, Tomtom..)
      K9 Mail 

https://fsfe.org/activities/nocloud/nocloud.en.html

Check and Disable things from Google Settings 
Open "Google Setting" app and check all sections.
from Security, disable "Verify apps" (optional)
from Location, disable "Access location"

   
Disable Location services
 in Settings, Location Services,
   Disable/Uncheck "Location and Google search"  
   There are 3rd party software for GPS and maps such as sygic
   Furthermore you can still using google maps entering your position manually
   and even you can disable it, and enable it only when you need it.

Checks running services/processes
Control what is happening ak paranoiac mode

 from Settings, Application manager, Running, "Show cached processes"
    Google play services(launched by apps)
       Google Analytics services
    Email
    Factory mode (required)
    Google+
    Exchange services (required by SMS)

 from Settings, Application manager, Running, "Show services in use"

Stop apps/processes
Once you know what apps are being executed
from Settings, Application manager, All,

select app and Click "Force Stop"
after a stop several times we can realize if they are important or not, so they can be disabled forever 

Disable built-in apps or remove if you are root
(Google, Phone  brand, communications provider)

from Settings, Application manager, All

-ChatON (Samsung)
-Game Hub (Samsung)
-Gmail (optional)
-Google .... Sync
-Google partner Set up

-Google Play Music and Books
-Google Search
-Google+
-Picasa Uploader
-Samsung Account
-Samsung AppsUNA2
-Samsung Backup Provider

-Samsung ......Sync
-Samsung Cloud data relay
-Samsung Push services
-Samsung Browser
-Software update (if you are not expecting a new update)
-Talk


i.e of Comunication provider apps
My web (com.vodafone.android....)

http://forum.xda-developers.com/showthread.php?t=2242278


Autostarts and permissions

To find problematic apps

execute free app "Autostarts", and check sections:

 "During Startup", "After Startup", " Wi-Fi state changed", "Power connected", "Connectivity changed",..
(to  disable them, root is required)

 execute free app "OS Monitor" to display Android/linux processes, TCP/IP open connections,...

 execute free app "OS Monitor"

To fix/correct problematic apps

on Android. From: AppsOp  (if it is hidden there is an app in f-droid archive to open the menu)
on BB10+Cobalt's play services: From "Blackberry Google ID", "App Permissions"


Check if it has sense that the app has the following rights and last time the app used it ( to detect abuse)

    Read your contacts, Read clipboard, Location, Run at startup....
    Post notification

Remove rights:


Fix/Remove autostarts: Autorun manager (com.gmail.heagoo.autorun.pro)



martes, 4 de noviembre de 2014

Deploying OS on Rasperry - partitions, filesystems,...


From my point of view, the default raspberry OS images or the installation script, lacks of some useful features, such as:

  • Deployment from an image
    • A bigger fat partition (useful for data exchange; it able to insert this SD in a Windows computer and copy files there)
    • Additional partition for  data  (having system and data separated, it is possible to have smaller backups containing only system partition)
  • Deployment from a installation script
    • OSMC (installation script, creates a
    •      a 1st partition of 242MB FAT32-LBA
    •      a 2nd partition using the rest of the SD.


So, we can improve the default deployment with the following solutions:
  1. Deploy the standard image on a bigger SD card (default)
  2. Deploy the standard image on a bigger SD card and resize partitions (gparted)
  3. Manual method 1
  4. Manual method 2
    1. Deploy standard image on a bigger SD card
    2. Resize ext partition (decrease from begining) in order to free space after the fat32 partition
    3. Copy or pack (tar) files from fat32 partition
    4. Delete fat partition
    5. Create a new fat32 (lba) partition with desired size
    6. Paste, untar files on fat32 partition

Some examples of a "better" partition

XBMC

SD 8GB
fat32 1GB(boot+media)
ext4 7GB(system+media)

SD 16GB 
fat32 8GB(boot+media)
ext4 8GB(system+media)

Raspbian

SD 16GB 
fat32 1GB(boot+media)
ext4 7GB(system)
ext4  8GB(data)


Partition backups on images

Backups to image can be done at partition level, using dd command or graphical tool (i.e Disks in Ubuntu)
To restore an image containing a partition, you have to create a partition on destination disk.
If you are using "Disks" and image size and destination partition have not the same size, it will alert you but don't worry it works.



Checking content of images

sudo fdisk /media/midisco/raspberry_cosas/OpenELEC-RPi.arm-4.0.5.img


Resizing OS from an image


Gparted

In theory with gparted it is possible to resize fat and ext partitions but it

sometimes can have problems resizing a  fat32 filesystem, it means that partition have desired size but filesystem and available space still having the original size.
-usually works fine with ext2, ext3 partitions


Manual method for fat32 partition

dd partition1(fat32) on a disk

Copy or pack (tar) files from fat32 partition
Delete partition
Create a new fat32 (lba) partition with desired size
Paste, untar files 

Accessing from Windows to Linux Filesystem

Use a file explorer, i.e Linux reader from diskinternals


jueves, 28 de agosto de 2014

Raspberry Pi - Pimame/Piplay

Piplay 8.0.5beta (note for user with a compact keyboard;less than 102 keys, by default some keys required to play don't work)

Commands/files
Sudo raspi-config (overclocking)
press 'LeftCtrl+Q': quit to terminal   

Map Keys:
/home/pi/pimame/pimame-menu/controller.yaml

Default pasword: pi / raspberry


Menu
    PSX-Usb Joystick1 - OK
    PSX-Usb Joystick2 - OK

Emulation
Neogeo (Final Burn Alpha )
    PSX Joystick
         Plug in port2 psx2usb adapter
         Select: insert coin
         Analog mode: to be able to use Up and down keys
   Audio: OK
   Games:
         Armoredwar         
         Mpang (Mighty Pang)
         Dino (Cadillac dinosaurs)
         Winjammer CD  (failing)
 
Final Burn Alpha (Arcade Cabinet and Neogeo emulator)
PSX Joystick (same than neogeo)
Games:
     Metalslug2
     Magical crystals

SNES
PSX Joystick
         Plug in port2 psx2usb adapter
Games:
     All - OK

Neogeo pocket
  PSX Joystick
  Games
     Metal slug 2

Scummvm
   Games cannot be in zip files
   Unzip to folders
   Manually Add game, from roms folder
  Audio: OK
   Games:
      Loom
  
MasterSystem
  Joystick ¿failing left and right arrows??


ZxSpectrum
Games cannot be in zip files
Unzip to folder




c64
Games cannot be in zip files
Unzip to folder




Turbografx 16

   Failing, nothing is displayed in screen

pcsx-reARMed (PSX)
   Menu is not properly displayed
   Bios missing warning
.iso, .img, .bin/.cue or .mdf/.mds
.ecm file. These will not work in this emuator, but can be 'un-ECMed' by using the utility software unecm

GBA
   Bios missing warning (Gba_bios)

NES
   Failing

Mapping keyboard:
pygame module to work with the keyboard
KeyASCII ASCII      Common Name
K_BACKSPACE   \b      backspace
K_TAB         \t      tab
K_CLEAR               clear
K_RETURN      \r      return
K_PAUSE               pause
K_ESCAPE      ^[      escape
K_SPACE               space
K_RSHIFT              right shift
K_LSHIFT              left shift
K_RCTRL               right ctrl
K_LCTRL               left ctrl
K_RALT                right alt
K_LALT                left alt
K_RMETA               right meta
K_LMETA               left meta
K_LSUPER              left windows key
K_RSUPER              right windows key