Wednesday, 3 December 2014

How to move user apps to system partition

The installed apps in your phone is categorize as system app and user app. The user apps are normal apps which user install through google play store. System apps are apps which comes pre-installed in the system partition when you buy the new phone.
for example : gmail app

Today I'm gonna tell you how to move user apps to system partition.

Requirements :
1. Rooted android phone.
2. ADB shell.

Prerequisites  :
1. Open you terminal ctrl+alt+t and check adb devices. It should be connected.
How to connect :
1. In Windows : Install drivers of your phone.
2. In linux : make 51-android.rules file and add vendor ID of you phone there.
for complete instructions go here .


ADB METHOD


case 1 : Moving user app to system app.


step 1 : Open adb shell in terminal.
               adb shell
step 2 : Get superuser permission.
               su
step 3 : Change directory to /data/app.
               cd /data/app
step 4 : Remount system partition of your device, with read write permission.
               mount -o remount,rw /system
step 5 : Copy the .apk from data to system directory.
               cp app_name.apk /system/app
step 6 : Remove the .apk from /data/app directory.
               rm app_name.apk
step 7 : Now change .apk permission to 644.
               chmod 644 /system/app/app_name.apk
step 8 : exit --> adb reboot.
               exit
               adb reboot.


and, you are done !!


case 2 : When .apk is in your computer.


step 1 : Change directory to top of your .apk
               cd folder_name
step 2 : Push .apk to sdcard
               adb push app_name.apk /sdcard/
step 3 : Open adb shell
               adb shell
step 4 : Remount system partition of your device, with read write permission.
               mount -o remount,rw /system
step 5 : Copy the .apk from data to system directory.
               cp /sdcard/app_name.apk  /system/app
step 6 : Now change .apk permission to 644.
               chmod 644 /system/app/app_name.apk
step 9 : exit --> adb reboot.
               exit
               adb reboot.
  
and you are done !!