システムアプリケーション(com.android.mms)を削除しました。システムアプリの.APKをインストールするための適切な方法は何ですか?
システムアプリケーション(com.android.mms)を削除しました。システムアプリの.APKをインストールするための適切な方法は何ですか?
I removed a system app (com.android.mms) and I have the .apk needed to restore it, however it won't install through the standard channels (running the .apk gives me "application not installed"). What's the proper way to install a system app's .apk?
998876666544332 99887766544333
99887766544331 >。詳細は、<コード> 9988766544333 に関する情報を見つけることができます。 http:// android-DLS。 com / wiki / index.php?title = adb 。
99887766544334
に書き込むには、読み書きを再マウントする必要があります。
<コード> adb shell su mount -o rw,remount /system
または、ホストのADBからそれを完全に行う:
<コード> adb6
.apk
:
<コード> adb push my-app.apk /sdcard/ adb shell su cd /sdcard mv my-app.apk /system/app # or when using Android 4.3 or higher mv my-app.apk /system/priv-app
後にフラグがまだ設定されていない場合は、権限を変更します。すべてのシステムアプリは権限<コード> rw-r--r-- を持つ必要があります。 998877665443310
でADB経由で変更することもできます。 はかなり古いですが、これは
998877666543311
を配置したら、デバイスを再起動する必要があります。たとえば、 9988776655433312
。
You will need to push the .apk to the phone to the System partition to the folder /system/app
or /system/priv-app
when using Android 4.3 using adb
. You can find more info about adb
here: http://android-dls.com/wiki/index.php?title=ADB.
In order to write to /system
you likely have to remount it read-write:
adb shell su mount -o rw,remount /system
Or, do it entirely from the host's ADB:
adb root adb remount
Now you can place the .apk
:
adb push my-app.apk /sdcard/ adb shell su cd /sdcard mv my-app.apk /system/app # or when using Android 4.3 or higher mv my-app.apk /system/priv-app
Afterwards if the flags are not already set change the permissions. All System-Apps need to have the permissions rw-r--r--
. You can also change them via ADB with the command chmod 644 /path_to/your_file
. Though it's quite old, this may help
After you have placed the .apk
you need to reboot your device. For example with adb reboot
.
Carl Parker Android Authority :
(元の投稿が下がった場合はここで再現されています)
デバイスにインストールされているアプリのための
- あなたがあなたのデバイスにアプリをインストールしたと仮定して、アプリにアクセスしてください Google Play Storeのリンクと「id =」の後に単語を注意してください。 残りを無視してください。
- USBを介してデバイスをコンピュータに接続する ケーブル。
- コンピュータのコマンドプロンプトを開き、次のように入力します。 コマンド:
<コード> adb13
- コマンドを入力します。
adb14
( "appfilename"はGoogle PlayのアプリのIDです。 お店;最後にアスタリスクを含めるようにしてください。このコマンド アプリの完全なAPKファイル名を表示します。- 次のコマンドを入力します。
<コード> /system/priv-app5
<事前> <コード> adb16
- デバイスが再起動するようになりました。あなたのアプリはシステムとして保存されました アプリ。
APKがPCのハードドライブ上にあるアプリの場合
- コンピュータのコマンドプロンプトを開き、APKのどこに移動します。 ファイルがあります。
- デバイスでUSBデバッグを有効にして接続します USBケーブルを介してコンピュータへのデバイス。
- 次のコマンドを入力します。
あなたの携帯電話は自動的に再起動します。あなたのアプリはシステムアプリとして保存されます。
Carl Parker writes about it on Android Authority:
(partly reproduced here in case the original post goes down)
For Apps Installed on the Device
- Assuming you have installed the app on your device, go to the appxe2x80x99s Google Play Store link and take note of the words after xe2x80x9c?id=xe2x80x9d and ignore the rest.
- Connect your device to the computer via USB cable.
- Open the command prompt on your computer and type the following commands:
adb remount adb shell su cd /data/app/
- Type the command
ls appfilename*
(where xe2x80x9cappfilenamexe2x80x9d is the appxe2x80x99s ID on Google Play Store; make sure you include the asterisk at the end). This command will display the appxe2x80x99s complete APK filename.- Enter the following command:
mv apk_full_filename_here /system/app/apk_full_filename_here exit exit adb reboot
- The device will now reboot. Your app is now saved as a system app.
For Apps Whose APKs Are on the PC Hard Drive
- Open a command prompt on your computer and navigate to where the APK file is located.
- Enable USB debugging on your device and connect your device to the computer via USB cable.
- Enter the following commands:
adb remount adb push apk-filename-here /system/app/ adb shell chmod 644 /system/app/apk-filename-here adb reboot
Your phone will automatically reboot. Your app will now be saved as a system app.
ADBで遊ぶときには、それらのパッケージファイル名を介してアプリをインストールすることに注意してください(つまり、コマンドプロンプトで、ADB Install MyFile.apk)
しかし、あなたが彼らのパッケージ名を経由して、それらをアンインストールします(&GT; adbのアンインストールがcom.this.that.otherthing)
前任者をアンインストールするまでパッケージをインストールすることはできません。
.apkファイルがあるディレクトリに移動できるようにするだけで、myfile.apkを入力するディレクトリにアクセスできるようにします。
note that when playing with adb you will install apps via their package file name (meaning, at the command prompt you will type >adb install myFile.apk)
but you will uninstall them via their package name (>adb uninstall com.this.that.otherthing)
You won't be able to install a package until you've uninstalled its predecessor.
It'll help to add adb to your PATH so that you can just go to the directory where the .apk file is and type adb install myFile.apk.
Android SDKがインストールされている(または少なくともADBと呼ばれるツール)をインストールする必要があります。 さらに、デバイスで「非市場インストール」を許可する必要があります。
これを行うと、コンソールのファイルを含むフォルダに変更します。 次に電話を(USB経由で)接続して<コード> /system/priv-app7
を実行します。You need to have the Android SDK installed (or at least a tool that's called adb). Further you need to allow "Non Market installs" on your device.
After this is done you change to the folder that contains the file with a console. Then connect your phone (via USB) and run adb install appname.apk
© 2022 cndgn.com All Rights Reserved. Q&Aハウス 全著作権所有