9
Help us understand the problem. What are the problem?

More than 5 years have passed since last update.

posted at

updated at

[要root化] androidでシステムアプリとしてinstallする方法

概要

androidのsystem/priv-appにアプリをインストールする方法。

やる意味

user appでは呼ぶことの出来ないAPIを呼ぶことが出来る。

手順

  1. /system領域のremount
    
    $ adb shell
    $ su
    # mount -o rw,remount /system
    
  2. apkの配置
    
    $ adb push YourApp.apk /sdcard/
    $ adb shell
    $ su
    # mkdir /system/priv-app/YourApp
    # cp /sdcard/YourApp.apk /system/priv-app/YourApp
    # chmod 644 /system/priv-app/YourApp/YourApp.apk
    
  3. 再起動
    
    $ adb shell
    $ su
    # reboot
    
  4. 完了

参考にしたサイト

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
9
Help us understand the problem. What are the problem?