jueves, 13 de octubre de 2016

Best practices with Firefox, Palemoon, and other FF flavours

This is a just a compilation of tricks or knowledge that i consider important for a daily user of a web browser

Menu Bar, old school looking and plenty of options.

I suppose that FF copied this shitty idea from IE or Chrome, at least in FF you can get rid of this.
Displaying the menu bar, not only you will have quick access to many useful functions but also you will show that you are a poweruser ;)

Execute the 32bits version(Portable FF)
Portable version includes the option of using the 64 or 32bits version.
By default you will execute FF with FirefoxPortable.exe and it will use the 64bits version for your 64bit OS, but sometimes we can be interested in executing the 32 bits because it can be compatible with some plugins, java, etc.

Go directly to the folder with the executable


Note that using previous executable addons, and configuration is stored in different folders than the default ones and  used by FirefoxPortable.exe

Access to technical information


to identify your FF version and 32/64bits, check "User Agent " and notice that:
Win64; x64 =64bits
WOW64=32bits (WoW64=Windows 32-bit on Windows 64-bit) is a subsystem of the Windows operating system capable of running 32-bit applications.

Moving Configuration to another browser
Portable Palemoon stores addons/extension and configuration in the folder "/User"
Just copying it to a newer version o to a browser in other device and you will have the same ;)

Some Interesting files:
prefs.js  . Same or similar data than available from about:config

Installing extension theoretically not compatible

Main concepts:

  • It is risky, and it will work only when browser is compatible in the practise but the developer was too much restrictive.
  • Each FF web browser as a unique identifier such as:
    • Firefox {ec8030f7-c20a-464f-9b0e-13a3a9e97384}
    • Palemoon {8de7fcbb-c55c-4fbe-bfc5-fc555c87dbc4}
    • Sea Monkey{92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a}

contains extension identification and compatibility checks

contains technical configuration which can be common for all browser and version or can be  customized per each different web browser or version

Download the not compatible extension
it will save a  .xpi file (it is just a renamed zip file)
rename the .xpi to .zip (7zip can extract directly from xpi)
Extract to content to a folder

Edit install.rdf 
to include a different version
modify min or max version


to add Palemoon


Edit chrome.manifest

  • Removing application part will apply to any
    • .ie. application={ec8030f7-c20a-464f-9b0e-13a3a9e97384} 

  • adding a new line with missing identifier (i.e Palemoon)
  • Modify appversion to apply to out browser
    • appversion>=12

miércoles, 13 de abril de 2016

Firefox - hacking tool (updated)

First of all I am not talking about "hacking" servers, access to weak systems or anything similar, neither discuss about the meanings cracking/hacking.

nice and different firefox logo

Now Firefox has huge potential as tool for the web(using the available Addons), there aren't competitors in this area and the other participants in the internet browsing war: IE, Opera, Chrome or Safari aren't alternatives.

The next list has some very interesting tools which add useful features to improve the web use (for me)

Enter in advanced configuration mode:

Force install of not compatible addons:
new boolean

Execution of multiple Firefox portable at sametime
copy \Other\Source\FirefoxPortable.ini
to root
add AllowMultipleInstances=true

Firefox power user tools/addon

Web developer (too many useful features)
DOM Inspector

View Source Chart
JSView  (see sourcecode from external files .ie included .js)
SQLite Manager (open firefox and songbird/Nightingale databases)

Aardvark (few features for developers but easy and useful to clean webpages before print)
Hacktheweb (improved version of aadvark addon)
Print Edit (remove, select and add break pages before to print)
Mozilla Archive format (save 1 or multiple pages in 1 file, MHT or MAFF format)

//Improve interface
ChromaTabs plus
Showcase (mini image with the tabs)
Table2Clipboard (copy table elements)
ColorfulTabs 29.9 
TabGroups Manager revived. (create a parent tab to classify tabs under it)
Form saver
Autofill Forms

Configuration stored in about:config(tabrenamizer.jsonprefs)

Copy/paste to a texte editor
Convert to human readable with Plugin:
(or JSMin, JSFormat)
Modify content
Convert back to a minimalistic text with Plugin:JSMin,JSMin
Copy/paste text in about:config
restart firefox

//Config/Hack Firefox
keyconfig (20080929)
Show the key shortcuts assigned in Firefox, you can search for duplicated (blue background) or change the keys for each addon or function.
[after install access from Tools or Ctrl-Caps-F12]
more info:

SpellCheck 0.3
check the entire web page,
[after install, open from:"Edit, Spell check"]

//Browser tools
Quick Locale Switcher(ver 1.7.8)
User Agent Switcher (to identify FF as other ver/browser
 (XML including browser ids to import in addon)

Firefox throttle (up/down bandwidth)
Extended status bar (Page/kb/speed/load time) v1.5.8
Firebug 1.7.3 (Net tab.  powerful stats /kb/speed/load time per object)
Httpfox 0.8.14 (similar to Firebug/developer tools but network monitor is centralized and keep monitoring when a _blank page is open)
Proxy Selector 1.31  (select different proxy configurations)

Foxyproxy (proxy with multiple functions, configuration file is compatible with Chrome addon)
Sunrise XP (convert to plucker format)

Firebug (Net function)

//Semantic Web
Operator(check web for microformats, RDFa and eRDF and permits interact)
Tails export (show microformats and offer export to standard file formats)

Firefox 12

Fastest Search v2.23 (support regexpr and many options)
Stylish 1.3.2
jSON handle 02.2.1

Compatible with the old Firefox  v3.6.28
Specific addons versions for FF3.6:

  configuration stored in about:config(extensions.clrtabs.dpref)
   configuration stored in about:config(tabrenamizer.jsonprefs)

Firebug 1.7.3 
Firefinder for Firebug 1.1(works with firebug 1.7.3)
TableTools2 1.17View Source Chart 3.05
WebDeveloper 1.2.2
Xpather 1.4.5
DOM Inspector 2.0.14
JSView 2.0.5
SQLite Manager 0.6.8

Remove It Permanently
   configuration stored in \FirefoxPortable\Data\profile\rip_store\config.xml
Hacktheweb 1.3.20 (improved aadvark addon)
Aardvark 3.0
Print Edit 9.0

Palemoon v.26
Light fork of a previous Firefox version (previous to FF v29 and its Australis user interface)

Important info
Palemoon from v25 has not anymore the same GUID than FF

Specific palemoon addons

lunes, 7 de marzo de 2016

BlackBerry - patching android APK - GMS(Google Maps Services)

Why to do this:
Some apps are using Google Play/Maps services and they requires them to run.
However BB10, not only doesn't include these services  but also cannot be installed from Blackberry World.

Example of successfully  patch apps because its Google maps services (gms) requirements:

-Wikiloc (though this apps uses OpenStreetMaps offlines maps, it requires the gms) 
Transport apps:
  -City mapper
  -Moovit (it work very good without gms services, but few functions requires them)

Definitions and synonyms:
GMS, Google maps services
PS, Play services
GS, Google services
android.vending=Google Play (shop)
apk, file with a full 

In the  Crackberry forums there is plenty of posts and information about the process.

Following instruction are just a simple quick reference.

Installing on Blackberry 
1)  Google maps services (by Cobalt)
Download Cobalt's files (lookup crackberry, or any web searcher)
Copy to BB10, the  apk containing gms, such as com.google.android.gms-8.4.xx-cobalt-buildx.apk
Execute apk file from any file explorer (com.google.android.gms-8.4.xx-cobalt-buildx.apk)

2)(Optional) Blackberry Google ID
Most third party apps don't require of this service, but if your want to use apps from Google you need it.
Besides its main function, which is identifying you BB device with your Google account, it also gives you 2 additional options. From Android settings you have the complete configuration for the Android Runtime.

3)(Optional) Mobile Network/Google Settings
It gives you the function to disable mobile data for Android apps.
Besides previous main function, it also gives you the access to the Android Settings  and from there you have the complete configuration for the Android Runtime.

Patching from PC Desktop
Download and install "Play_services_PS_Patcher-1.4", (it requires JAVA)
Execute, browse, load apk file,
Click on "Analyse APK file" (with default options), Click on "Continue"

Screenshots of patched and working apps

Download fixed/patched apps:

Wikiloc 2.7.8 apk fixed for BB10

(requires GMS service running in the BB10)

By default you cannot the see the maps because default maps are online Google, but an offline map is hundred times in the mountain better for mountain than one requiring a 3G connection.
So from the main menu "Offline maps", download any map (thanks to openstreetmaps community)

Uninstalling Google Services from Blackberry

There are some reason to uninstall these services temporary or definitively, but as it is logic, those patched apps which really require Google services will not work any more ;)

Method1: From Blackberry Google ID, Android Settings, Applications, Google Play services, Uninstall

miércoles, 28 de octubre de 2015

Phone data migration(export/import)

-Contacts from Android to BB10
-Notes from Noteeverything to DejaOffice.

Import contacts from Android

Notes for Kies:
-export to csv (only phone contacts):
field contents between quotation marks, and columns delimited by comma
Too many fields(all) are exported in a fixed order, and the first line the field name in your language
groups in 1st field an delimited by double semicolon
i.e "Group1;;Group2;;Group3"

-export to vcf(only phone contacts). 1 per file (will loss groups and extended information)
content of all vcf file can be joined in a vcf file using the msdos copy command

(only phone contacts). There is no reason to extract google account contacts as they are  in the cloud and there are other methods to do it.

BB Contacts Imp/Exp: requires a first line with headers, and it will map to BB contacts
BB Contacts Imp/Exp

-export to csv: field contents between quotation marks, and columns delimited by comma.
Number and position of fields is variable.

To know field names, you can create a dummy contact with enough information and export it to csv

Fields in the header of a csv file  exported by BB Imp/Exp:


Mapping CSV from Android with "Contacts Imp/Exp" headers from csv file.
Use a good spreadsheet software like Gnumeric or Libreoffice (avoid excel  because it cannot export properly)

Verification after export:
Check that long numbers i.e 420721958625 are not shorten to a form like xxxE+11 (another reason to avoid the use of Ms Excel)
Check numbers that phones beginning with a 0 have it
Check numbers with a country prefix +xx

Steps to convert:

From Kies csv file, remove as many columns as possible, generally normal users don't use more than 10 fields.
Groups: If you have contacts classified by groups, you can associate "Group" column from Android contacts to "OrganizationAffiliation/OrganizationAffiliationName" column in BB
If contacts are associated to multiple groups it, and you want to keep it, it would require more complex steps, before mapping if decide to kept only a group per contact and remove additional.

sábado, 3 de octubre de 2015

Best Software for Blackberry 10 (native and Android)

Natives or based in Android runtime.

Best of native apps/ports:
  Dejaoffice 2.4.5 (ported)
  GhostCommander 1.51
  No Tag Player (folder mp3 player)
  Flashlight Pro
  ContactsIm Ex
  Maxidict (native dictionary, free version only search in a startdict at time)
     (SD in /accounts/1000/removable/sdcard/documents/MaxiDict or any custom folder
  K9 5 (ported)
  Navfree /Navmii (maps based in OSM free maps) (ported)
  Q Browser (based in the BB browser and therefore a webkit flavour)
  LuckyPatcher 5.4.3(ported)

  Google services (patched by Cobalt)

Best (apk) from Android:
   F-Droid 0.96.1
   APK Permission Remover 1.3.3 (heagoo.apkpermremover)
   Palemoon 25.8
   Advanced Task killer 2.0.3 (rechild)
   Note everything
   Apk extractor
   MiniLyrics 1.0.18(from apk)
   KeepassDroid 2.0.3
   Applications info 1.5 (from F-droid)

Applications info (from F-droid)
   Wikiloc 2.7.1 (patched - requires Google Maps services)
   City Mapper (patched - requires Google Maps services)
   Triposo (download region info from wikitravel  to read offline, maps doesn't work)
  Genius Maps
    (Format map .cpf, .ie.  spain_nt_2016q1_cell.cpf)
  Mireo Dont Panic
(Format map .cpf, .ie.  spain_ta_201503_cell.cpf)

Configuring BB10/Software:
Import contacts from .vcf or .csv file using "ContactsIm Ex"
    (clean android contacts with Kies)

Import DejaOffice db  (from android)
   send or copy backup file from Android /clusb
   to device/misc/android/clusb/
   rename or delete companionlink.db (Dejaoffice must be closed)
   rename backup file (companionlink2015-xx-xx).db to companionlink.db

Note everything
  How to install "Note everything" keeping folders/categories (!)
     copy folder /noteeverything/backup from Android to device/misc/android/noteeverything
      install "Note everything" apk, app will detect previous backup in the folder and will ask for a restore

(!)     (Note: addon pro 2.5.1 doesn't work with Blackberry so backup functions cannot be used and expert to textnotes and import losses folder/categories)

    If notes are not classified, following method is OK
       in android "Export textnotes to SD"
      copy folder /noteeverything/text from Android to  device/misc/android/noteeverything
      Import, Mass import from SD-card, choose previous folder

Install Drivers on PC

Connect to PC     
    Access to SD     (to install mass storage drivers)
    Install Drivers    (to install drivers, Link and Blend) go to Computer, cdrom unit (folder .\Drivers)
Backup of BB configuration with Blackberry Link

Issues with:
   Wikiloc (as it need google play services, Accept to download them but it fails)
   Goldendict  pro  (as it need google play services, there is a 10 seconds lag) 

   Sygic 14.3.4 (maps 2014.0x)
    by default resources (storage/sdcard0/Sygic)
   From Android, zip the folder "/storage/sdcard0/Sygic"
   Unzip to: /mnt/sdcard/Sygic


   Here save maps to PC
    on Android, rename folder that is removing dot symbol from beggining of filename in order to do visible the hidden folder
   From PC copy the folder
   on Android, rename previous folder adding the  dot symbol at beggining of filename

sábado, 12 de septiembre de 2015

Android: ROMs - Root - Utilities

Samsung ROM naming convention

B5330XXAL4 :
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)

K 2011
L 2012
M 2013

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

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

Root your device

Settings, Developer options
USB debugging(Checked)

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

Check XDA developers for information and procedure

Suggested Utilities:

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.
   Soft release updated to v.
                                     to v. 

Original OS10 ver.  v.

Updated OS10 ver.  v.
                             to v. 

3.5" 720x720 - 290.6 ppi
CPU: dual-core Snapdragon S4 MSM8960- 1.5 GHz Krait + Adreno 225 GPU
RAM: 2GB of LPDDR2 SDRAM -16GB of built-in storage
MicroUSB - HDMI output (Slimport)
microSD up to 32GB

Android runtime. ver: 4.3

Unsupported APIs from JellyBean

Blackberry folders/paths

Internal memory:
/sdcard (alias to /mnt/sdcard/)
/misc/android/  (alias to /mnt/sdcard/misc/android/)  *

SD card memory:

 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)

Autoconfiguration for provider
Configure wifi, Bluetooth device name

Step create a Blackberry account for Blackberry world  
    Install ContactsIm Ex
    Install Whatsapp

Glossary/PC software
Blackberry Link:
Sync multimedia and move files, documents, backup
Restore factory configuration

Blackberry Blend:
Manage and interact with your BlackBerry device from a computer via usb or wifi

Utility software for PC (Win, Mac, Linux) Firmware, Backup (generate a .bbb file compatible with Link) ,...

Snap (.bar)
Free Google Play client, requires sideload.

DDPB (PC, Req. Win, .NET, Java )
App for sideload





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

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

Name of basic keys

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

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

My example file, generated with several TV handlers in raw mode(-f)

domingo, 26 de abril de 2015

Android apps Analysis

Internet browsers:

Browser - Version - App file size - RAM used*
-Atlas - 1.30 MB - 40 MB
Desktop/Mobile mode, no autostarts, content filter, works with m.youtube. Has an "Exit" button
-CMbrowser 5.1.80 - 4.29 MB -50MB
It requires few rights and has few autostarts. Works with m.youtube. Also has a "Quit" button
-Firefox 34.0.1 - 41.33MB -88MB
Opensource and powerful but too heavy, moreover it autostart after too many events. it has not an "Exit" button. Available at F-droid
-Lightning - 4.30MB -36MB
Opensource and very light, it requires standard rights. works with m.youtube. Available at F-droid (acr.browser.lightning)
-Opera v14.0.1 (last browser with an Opera engine)
-Opera Mini 8.0.1807 - 5.57MB -26MB
It requires few rights and has few autostarts, moreover it is removed from memory when it is not used.

-UC browser 10.4.1 - 37.83MB
Trustfulness behaviour, it has an "Exit" option but it doesn't work as expected, and it keeps process on memory and even  open TCP/IP connections, why? where?  I consider too dangerous a software with this kind of behaviours.

Internet browsers Notes:
-* Approximated Memory used when  loading m.wikipedia.org
-Firefox for Android/Fennec (APKs)