How to Start and Stop android service from adb shell

If you have followed our another article “Understanding Android Services with Example” you might be allready able to write a code to create android service and get it compiled. Once you install this service on to your android device using “adb install” command, you will need to start this service to execute the functionality written … Read more

Mounting android system partition as read/write or read-only

Android’s system partition is by default mounted as read only, but if you are looking to modify some system files or applications, then if you try as is, you will not be able to do so due to restricted user permissions, hence first thing we need to do is mount the system partition as read/write … Read more

How to Acquire and Release a wakelock forcefully from Android shell

Sometime when you are developing some code where you need to acquire a wakelock or when you are debugging some bug where you need to identify whether wakelock is the problem, you can choose to acquire or release the wakelock forcefully so your debugging on an issue becomes easier. Note: Following steps needs a root … Read more

Fetch all Device information from Android for debugging

This post details, how you can use some of our scripts to download all the information of android device. This will help you to debug and fix issues in Android platform. Note: These scripts are mostly used during development of Android devices. Hence its expected to have device with root enabled, but this also works … Read more

How to identify Activity name and start the activity of installed app

This posts lets you identify name of the activity from the installed application and then use the package name and activity name to start the applications Activity. List all the installed applications using $ adb shell pm list packages -f From this above command, you will get the path and apk name of application you … Read more

How to change default display timeout settings using adb command

Connect your Android device over adb to get adb shell and check the default screen timeout value already set, $ adb shell settings get system screen_off_timeout 30000 As you can see above for our android device the default screen timeout was set to 30 sec i.e. 30 * 1000 ms, now we can change this … Read more