Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create System Application

What I should to do to create a system app (to obtain rights to use android:sharedUserId="android.uid.system"in manifest file without receiving an error from package manager about certification problem?

I use rooted phone with stock firmware.

like image 916
Michał Rowicki Avatar asked Jun 20 '13 19:06

Michał Rowicki


People also ask

How do you turn an Android app into a system app?

First create a folder for your app ( Let say MyTestApp) inside packages/apps/ of your android AOSP downloaded source code. Then create a Android.mk file inside the folder(MyTestApp). Step 2 open Android.mk file and add folowing code Snippet and save this mk file. PRODUCT_PACKAGES tag at the bottom MyTestApp.

What is a system app?

System apps are preinstalled apps such as Clock and Calculator for Android, or FaceTime and iTunes Store for iOS. Many of these apps can't be uninstalled, but you can allow or block access to them.


2 Answers

Ok, I think that I find sollution from great xda developers: http://forum.xda-developers.com/showthread.php?t=1776095 here is full description how to obtain access to apps signed by platform keys. Do you apply with this approach?
PS it is interesting that users from stack instead of investigating hard problem immediately say that you can not solve it, then reduce novice user's reputation...

like image 108
Michał Rowicki Avatar answered Oct 08 '22 18:10

Michał Rowicki


What I should to do to create a system app

There are two types of system apps:

  • Apps installed on the system partition, which can be accomplished by users with root privileges

  • Apps signed by the same signing key that signed the firmware

to obtain rights to use android:sharedUserId="android.uid.system"

That definitely would require your app to be signed by the same signing key that signed the firmware. That's true for any android:sharedUserId.

But some guys edit stock apps, prepare zip file which user can update system apps by recovery.

You are welcome to provide any evidence that what they do somehow involves android:sharedUserId="android.uid.system".

like image 44
CommonsWare Avatar answered Oct 08 '22 18:10

CommonsWare