1

Is it possible to install an application in the system/app directory on a un-rooted device? Right now I can do it on a rooted device, so I was wondering what I have to do to if the device is not rooted. It's a custom rom, so I can get a hold of the certificates that signed the rom.

Currently if I try on a un-rooted device, I get the permission denied (read_only file system). If anybody has an idea of how I can do this please help me. The reason why I need this done is so I can do app updates on the system applications that will be shipped with the rom and they wont be on the app store.

0

Root is only required if you are installing a system app within the confines of the Android OS.

If you can flash your own rom, you can bypass any restrictions that the OS has, because you are able to do anything you want with a custom bootloader before the OS has a chance to load and restrict things.

If you are creating a custom rom (off-topic for this site), you can edit the rom on a desktop and flash it to the phone.

You could simply flash a file using a custom recovery (such as TWRP or ClockWorkMod).

If you are on a stock phone with a locked bootloader, you could always root your phone temporarily, remount system as read-write, add the application, then remove root.

As far as updates go, as long as the application in the system directory is signed by your key, you should be able to update it (root not required). You'll need a way to get updates out, though. You could post in the Google Play Store, use a 3rd party store (such as Amazon App Store or F-Droid), or have the user download the app and side-load it. If you also wrote the app in question, you could probably program a way to self-update as well (also off-topic for this site).

3
  • As an add on to this answer - you don't need root to update a system app, assuming you have the same certificates on the update. If you don't, you could probably use an OTA update in zip format to update it too – sloosecannon Aug 20 '14 at 20:03
  • @sloosecannon True, OTA updates can 'update' apps, but that is because they are really overwriting them -- normally, system apps are updated differently from user apps. An OTA is basically installing a new ROM (whether full or partial). – Stephen Schrauger Aug 20 '14 at 20:09
  • Well yeah. Either of those options should work. I can't imagine a production scenario where you'll regularly be updating apps with a different signature so the standard system app update method should work... – sloosecannon Aug 20 '14 at 20:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.