learn-android

Created: 2014-05-19 18:14
Updated: 2014-05-22 21:24

README.md

learn-android

Testing: Emulators vs. Real Devices

Emulators vs. Real Devices for Mobile Application Testing - The Answer Might Surprise You http://h30499.www3.hp.com/t5/The-Future-of-Testing-Blog/Emulators-vs-Real-Devices-for-Mobile-Application-Testing-The/ba-p/5506993#.U3o2PfldXuM

Mobile testing - emulators or real devices http://www.cognifide.com/blogs/mobile/mobile-testing-emulators-or-real-devices/

ADB command:

  • adb reboot - restart the device

Android Linux command:

  • df: list the sizes of the folders
shell@android:/ # df
df
Filesystem             Size   Used   Free   Blksize
/dev                   384M    84K   384M   4096
/mnt/asec              384M     0K   384M   4096
/mnt/obb               384M     0K   384M   4096
/system                  1G     1G   177M   4096
/cache                 688M    11M   677M   4096
/efs                    19M     4M    15M   4096
/data                    4G   239M     4G   4096
/storage/sdcard0         4G   239M     4G   4096
  • grep: grep entries of the output
shell@android:/ # ls | grep sys
ls | grep sys
sys
system
  • cat
    • cat filename: display the content of the file to console
shell@android:/data/local/tmp # echo "123" > test.txt
echo "123" > test.txt
shell@android:/data/local/tmp # cat test.txt
cat test.txt
123
shell@android:/data/local/tmp # dumpsys activity|grep Focus
dumpsys activity|grep Focus
  mFocusedActivity: ActivityRecord{41ea6428 com.android.settings/.Settings}
  • ls
    • ls -lR: list recursively with details
shell@android:/data/misc/wifi # ls -lR
ls -lR
.:
-rw-rw---- system   wifi           21 2014-05-22 20:08 entropy.bin
-rw------- system   system         58 2014-05-16 21:17 ipconfig.txt
-rw-rw---- system   wifi          307 2014-05-15 21:02 p2p_supplicant.conf
drwxrwx--- wifi     wifi              2014-05-22 20:08 sockets
-rw------- system   system         42 2014-05-15 21:01 softap.conf
-rw-rw---- system   wifi          515 2014-05-22 17:22 wpa_supplicant.conf
./sockets:
srwxrwx--- wifi     wifi              2014-05-22 20:08 p2p0
srw-rw---- system   wifi              2014-05-22 20:08 wpa_ctrl_321-1
srw-rw---- system   wifi              2014-05-22 20:08 wpa_ctrl_321-2
srw-rw---- system   wifi              2014-05-22 20:08 wpa_ctrl_321-4
srw-rw---- system   wifi              2014-05-22 20:08 wpa_ctrl_321-5

Misc

  • #: rooted, $: un-rooted
Cookies help us deliver our services. By using our services, you agree to our use of cookies Learn more