merged
authorOleksandr Gavenko <gavenkoa@gmail.com>
Tue, 10 Jun 2014 00:44:47 +0300
changeset 1584 9056efd0d2f9
parent 1583 46a6bc1e9f2a (diff)
parent 1581 84a5029867c2 (current diff)
child 1585 f83729389db9
child 1588 68bf5ec32341
merged
--- a/android.rst	Wed Jun 04 01:49:15 2014 +0300
+++ b/android.rst	Tue Jun 10 00:44:47 2014 +0300
@@ -51,4 +51,54 @@
   http://teamw.in/project/twrp2
     Custom recovery built.
 
+ADB tips.
+=========
 
+List available devices::
+
+  $ adb devices
+
+Install application from ``.apk`` file::
+
+  $ adb install -r /path/to/application.apk
+
+List installed package names::
+
+  $ adb shell 'pm list packages -f'
+
+Uninstall application by it name::
+
+  $ adb uninstall PACKAGE_NAME
+
+List currently run activities::
+
+  $ adb shell 'dumpsys activity'
+
+Find activities from package::
+
+  $ adb shell 'pm list packages -f'
+  $ adb pull APK_FROM_LIST
+  $ aapt dump badging APK_FILE
+
+Start an activity::
+
+  $ adb shell am start PACKAGE_NAME/ACTIVITY_IN_PACKAGE
+  $ adb shell am start PACKAGE_NAME/FULLY_QUALIFIED_ACTIVITY
+
+Take a screenshort::
+
+  $ adb shell screencap -p | perl -pe 's/\x0D\x0A/\x0A/g' > screen.png
+
+Power button::
+
+  $ adb shell input keyevent 26
+
+Unlock screen::
+
+  $ adb shell input keyevent 82
+
+Show system log::
+
+  $ adb logcat
+  $ adb logcat "*:W"
+
--- a/oracle.rst	Wed Jun 04 01:49:15 2014 +0300
+++ b/oracle.rst	Tue Jun 10 00:44:47 2014 +0300
@@ -153,4 +153,7 @@
 
   show errors;
 
+Dump how exactly field stored::
 
+  select dump(date '2009-08-07') from dual;
+