开发者

Pre installing android application

开发者 https://www.devze.com 2023-03-10 10:25 出处:网络
How to pre-install an Andr开发者_如何学JAVAoid application? Because I have a specific device, and I wanted to make my application pre-installed.I\'m assuming you\'re talking about a rom here.

How to pre-install an Andr开发者_如何学JAVAoid application?

Because I have a specific device, and I wanted to make my application pre-installed.


I'm assuming you're talking about a rom here.

If you want the user to be able to delete the application you should put the .apk file in "/data/app" If you want to have the app behave like a system app (like e-mail or calendar) you can put the .apk in "/system/app"


First we need all the pre-requisites needed.

  1. We need to root our device to have super user capability, In my case I root my nexus one

    • Im not responsible if your device brick so be careful. (http://forum.xda-developers.com/showthread.php?t=611829)
  2. install superuser (http://www.appbrain.com/app/superuser/com.noshufou.android.su)

  3. Install BusyBox (to do shell command "cp") -- available in android market (http://www.appbrain.com/app/busybox/stericson.busybox)

  4. Execute the following commands in the terminal emulator to remount the /system directory as read/write and to install the application into the /system/app directory (http://www.nexusforum.net/nexus-one-application-day/524-nexus-one-app-day-2-8-10-powermanager.html):

    • adb shell
    • su
    • mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
    • cp /sdcard/sample.apk /system/app

Thanks for all those who helped me.

0

精彩评论

暂无评论...
验证码 换一张
取 消