Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make my application system

Tags:

java

android

I need create my app as system, because i need get permission android.permission.WRITE_SECURE_SETTINGS. After install to virtual device (Eclipse) my app appears in '/data/app'. I try manually move him to '/system/app', set rights 644, but when i launch my app - toast 'App isn't installed'. After reboot (close virtual device and restart) my app disappeared from '/system/app'.

Add: - 1. Why android can not see my application in '/system/app'? - 2. Why after restart virtual device my app disappeared from '/system/app'?

What the best way make my app system on Eclipse Emulator and real devices?

like image 598
Tapa Save Avatar asked Jan 10 '13 11:01

Tapa Save


People also ask

How is an application made?

After defining every point and getting a high-resolution version of every single screen, developers start with the coding process. Developing an app is a stage that consists of several large parts: Back-end/Server side. This is primarily about databases and other server-side elements like storage solutions.


2 Answers

The apps installed on your Android devices can be broadly categorized as system apps or user apps, based on their installation location. The user apps are just all your normal app installations through the Google Play Store, Amazon Appstore or sideloading. These go into the /data partition of your Android phone, which is the part of the internal memory made available for user data and apps.

System apps are basically the apps that come pre-installed with your ROM. In a standard Android user environment, the user doesn’t have write access to the /system partition and thus, installing or uninstalling system apps directly isn’t possible. The process isn’t as hard as it may sound. However, there is a catch.

In order to install an app as a system app on your Android device, your device must either be rooted, or have a custom recovery installed (or both). Usually pretty much everyone who has a custom recovery installed uses a rooted ROM, so we’ll just be using the method for rooted phones. Go to below tutorial.it might help you.

Make Your app System App

like image 64
Nirav Tukadiya Avatar answered Oct 05 '22 17:10

Nirav Tukadiya


You cannot make your app by default as the system app. There are some other ways though through which you could make other normal apps as system apps on rooted phones.

You can install an APK to /system/app with following steps.

  1. Push APK to SD card.

    $ adb push SecureSetting.apk /sdcard/

  2. Enter the console and get the shell

    $ adb shell

  3. Switch to superuser. If your device is not rooted, get it rooted first. (If you don't know how to do that, just Google.)

    $ su

  4. Remount the system partition with WRITE permission.

    $ mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system

  5. Cat your APK from /sdcard/ to /system/ , some guys get a fail with cp command due to cp is not supported. So use cat instead.

    $ cat /sdcard/SecureSetting.apk > /system/app/SecureSetting.apk

  6. Remout /system partition back to READ-ONLY, and exit

    $ mount -o remount,ro -t yaffs2 /dev/block/mtdblock3 /system
    $ exit

Then reboot your device, the APK should have been installed on /system/app. As stated here.

like image 26
Antrromet Avatar answered Oct 05 '22 19:10

Antrromet