Skip to main content

Posts

Showing posts with the label command prompt

Useful ADB commands for Android developers

Useful  ADB commands for every android developer  :) 1. Clear the user data for your app using package name      adb shell pm clear <package> 2. Take screen shot :-     adb shell screencap /pathTofile/scr.png 3. Record the screen display    adb shell screenrecord /pathTofile/recordFilenName.mp4 4. WiFi On/off     Turn on the wifi:-      adb shell svc wifi enable    Turn off the wifi:-      adb shell svc wifi disable 5. Generate boot completed broadcast to test application behavior after reboot      adb shell am broadcast -a android.intent.action.BOOT_COMPLETED -c             android.intent.category.HOME -n my.app.name/myapp.BootListener 6. I nstall/ Re-install application      adb install path/app.apk     adb install -r path/app.apk     adb uninstall path/app.a...