Android How can an application work as a system application?

What is required to run the application as a system application? What do I need to request from the device vendor? Does the process PowerManager if the device is connected, and the application must call the method on PowerManager or other system management classes that affect the device?

I can call to set the brightness, but not perform operations such as putting the device into sleep mode, etc.

+1
source share
3 answers

You must sign your application with a system key, see this topic How to compile an Android application with system rights

+3
source

System permissions, such as access to PowerManager, require that the application be signed with the platform key, in addition to providing android.permission.POWERMANAGER or a similar permission in the manifest.

As for signing with the platform key, we can do this by building all the firmware with the application turned on.

+1
source
 java -jar signapk.jar platform.x509.pem platform.pk8 bin/TestApp-unsigned.apk bin/TestApp.apk 
0
source

Source: https://habr.com/ru/post/886205/


All Articles