LoginSignup
0
3

More than 5 years have passed since last update.

Androidエミュレータにアプリをプリインストールする

Posted at

目的

エミュレータの /system/priv-app/ 内にアプリをインストールする.
プリインストールアプリの開発の足しにする.

環境

Windows10 64bit
Android エミュレータ Android7.0

方法

コマンドプロンプトからEmulatorを -writable-system で起動する.
emulator -writable-system -netdelay none -netspeed full -avd Nexus5
* emulatorはAndroid-SDKフォルダ内のemulatorフォルダ内にある.

ADBをroot権限で実行する.
adb root

/systemディレクトリを書き込み可能でマウントする.
adb remount

/system/priv-appディレクトリ内にapkを配置する.
adb push application.apk /system/priv-app

エミュレータを再起動する.
adb reboot

0
3
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
0
3