Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Signing my android application as system app

In my company, we would want total control for battery consumption in the field, using only 2g and gps could drain the battery awfully fast. What we decided is that we need to have root access to the mobile phone, So that when phone is idle, we would turn off those needless battery consumption. And also we would not allow users to uninstall it and clear data to it.

My Question is :

  1. Where do I get these signature key?
  2. Is it going to like a root access If ever I successfully managed to sign it?
  3. What is the difference between Root vs Signed with key?
like image 647
david Avatar asked Jun 02 '16 08:06

david


People also ask

What is application signing in Android?

Application signing allows developers to identify the author of the application and to update their application without creating complicated interfaces and permissions. Every application that is run on the Android platform must be signed by the developer.

What does the Android system app do?

System UI is an Android application that enables display customization independent of third-party apps. In even simpler terms, everything you see on Android that is not an app is System UI.


1 Answers

Well below is your answer,

  1. You can find platform keys from HERE. The command to sign apk (for linux) is:

    java -jar signapk.jar -w platform.x509.pem platform.pk8 APPLICATION.apk APPLICATION_sign.apk

    onward Android 10 lib64 library path need to provided which can be found at android/out/host/linux-x86 after generating a successful build, one can copy folder or simply provide its path to generate sign APK

    java -Djava.library.path="<path to lib64>" -jar signapk.jar -w platform.x509.pem platform.pk8

  2. If you sign your apk with platform keys you won't required root access you can simply install it from "adb install" command, and yes in someway it is like root 'cos it can access all internal api but keep in mind if your app is system signed then you can't write external storage.

  3. First of all don't combine both root is user where system app is application type which distinguish from normal application below link might clear your confusion regarding it.

    what-is-the-difference-between-android-user-app-with-root-access-and-a-system-ap

like image 69
Apar Amin Avatar answered Oct 19 '22 06:10

Apar Amin