Android emulator
Access logs :
adb logcat -b radio -v time | egrep "(NITZ|CTZ)"
adb shell dumpsysRotate android emulator :
Press CTRL + F11 ou F12
Android backup agent test :
adb shell bmgr enable true
adb shell bmgr backup PACKAGE_NAME
adb shell bmgr run
adb uninstall PACKAGE_NAMEAccess SQL Lite data:
find data -name "*.db" -print
sqlite3 data/data/com.google.android.providers.contacts/databases/contacts.db
sqlite> .tables
sqlite> .schema people
sqlite> .header on
sqlite> .mode column
sqlite> select * from phones;
Icons size:
• 36x36 for low-density
• 48x48 for medium-density
• 72x72 for high-density
• 96x96 for extra high-density
• 144x144 for extra extra high-density
Following the 3:4:6:8:12 scaling ratio
Handling APKs
Get information from an apk file :
aapt dump badging FILE.apk
Check apk signing
jarsigner -verify -certs -verbose target/FILE.apk
Use Android with maven
Download project:
https://github.com/mosabua/maven-android-sdk-deployer
Then launch:
mvn install -P 4.4
To load the librairies on a project, use:
<dependency>
<groupId>android</groupId>
<artifactId>android</artifactId>
<version>4.4_r1</version>
<scope>provided</scope>
</dependency>Add a library to the local repository
mvn install:install-file -Dfile=libGoogleAnalytics.jar -DgroupId=com.google.android.apps.analytics -DartifactId=libGoogleAnalytics -Dversion=1.4.2 -Dpackaging=jar -DgeneratePom=true
Transparent colors
By default:
<color name="black">#000000</color>
With opacity codes to add transparency:
<color name="black">#99000000</color>
The list of opacity codes is:
• 100% — FF
• 95% — F2
• 90% — E6
• 85% — D9
• 80% — CC
• 75% — BF
• 70% — B3
• 65% — A6
• 60% — 99
• 55% — 8C
• 50% — 80
• 45% — 73
• 40% — 66
• 35% — 59
• 30% — 4D
• 25% — 40
• 20% — 33
• 15% — 26
• 10% — 1A
• 5% — 0D
• 0% — 00