2

How would you programmatically get the application to install itself in /system/app so that it is treated as a System application and not a user app?

Karthik Balakrishnan
  • 4,353
  • 6
  • 37
  • 69

1 Answers1

2

I don't believe it's possible to programmatically install your app in /system/app folder. You can however, ask for root permissions and execute any commands requiring root privileges using this guide:

http://muzikant-android.blogspot.in/2011/02/how-to-get-root-access-and-execute.html

Anup Cowkur
  • 20,443
  • 6
  • 51
  • 84
  • I would like to use `INJECT_EVENTS` for which I require the app to be a system app. Is it possible to inject events with only root access but this permission being revoked? I guess not. So, isn't there a possibility to execute commands on the terminal via my app to get it to convert my app into a system app? – Karthik Balakrishnan Jun 28 '13 at 06:04
  • you're right. I haven't tried it before but here are some resources that might help you: - http://stackoverflow.com/questions/5383401/android-inject-events-permission - http://androidforums.com/droid-all-things-root/64603-installing-apk-system-app-directory.html - http://stackoverflow.com/questions/3598662/how-to-compile-android-application-with-system-permissions – Anup Cowkur Jun 28 '13 at 06:15