Search This Blog

Wednesday 29 January 2014

Super User Android : How to do changes in system app in rooted device

If you rooted your device than you have complete control on how it looks and works. You can modify setting look and feel, you can remove setting option completely. In rooted device you got access to system app which control whole android device.

This concept run around that every application (i.e Settings, Contact etc) has one apk installed in one specific directory called /system/app. What we need to do just grab the source code for which we want to modify and create your own apk and finally replace it with existing system apk. After rebooting device your new changes will reflect on android device.

Lets do it in steps. I did it for Setting.apk. I grab the source code of Setting application from Git Hub directory. and i did some change and then replace it.

Step 1) Grab source code of application in which you want to change. Make changes and prepare one APK.

Step 2)  Now we need to install APK into system directory
  • Connect device with ADB command and push apk to  SD card
            $ adb push  /Setting.apk  /sdcard/  
  • Enter into shell
            $ adb shell
  • Now switch to super user
             $ su
  • Grab write permission to push apk
             $ mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
  • push your apk to root
             $ cat /sdcard/Setting.apk > /system/app/Setting.apk
  • Remount /system partition back to READ-ONLY and reboot device
             $ mount -o remount,ro -t yaffs2 /dev/block/mtdblock3 /system
             $ exit

Done !! you had changes in to android o.s configuration. Leave your comments


No comments:

Post a Comment

Feedback always help in improvement. If you have any query suggestion feel free to comment and Keep visiting my blog to encourage me to blogging

Android News and source code