9
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

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

Last updated at Posted at 2014-10-31

概要

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

やる意味

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

手順

  1. /system領域のremount

$ adb shell
$ su
# mount -o rw,remount /system
  1. 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
  1. 再起動

$ adb shell
$ su
# reboot
  1. 完了

参考にしたサイト

9
10
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?