Sushil
Sushil

Reputation: 8488

Not able to push an apk to system/app on rooted Nexus 10 tablet

I need to push an apk to system/app (I need my apk to work as system app). I am using nexus 10 tablet (4.4.2 - Kitkat). I have rooted the tablet.

When I try to push the apk using adb, it show "failed to copy - Read only file system"

I also tried to remount the /system with read write permission, still I am getting same error.

After remounting, I changed the permission of system and app folder to "777". Still I get the same error.

Can someone tell me how can I make it to work.

Upvotes: 0

Views: 923

Answers (1)

Robert
Robert

Reputation: 1266

  1. adb shell
  2. mount -o rw,remount /system
  3. go to /system/app and remove your_app.apk if available
  4. exit from shell
  5. adb pull /data/system/packages.xml – this will download file to current directory on your PC
  6. adb pull /data/system/packages.list
  7. remove tag with attribute name= your_app_package (and all its content) from packages.xml and entry in packages.list
  8. upload files using adb push command
  9. clear dalvik cache using adb shell rm /data/dalvik-cache/*
  10. remove your_app_package from a data folder using adb shell rm -r /data/data/your_app_package
  11. reboot phone using adb reboot after restart you will be able to install new app

Some of this point can be omitted - please try

Hope will help

Upvotes: 1

Related Questions