Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

adb install system app

Tags:

android

adb

I am aware that using adb install command installs an app in the /data/app folder. Also I know the in order to install an app as a system app I need to push it directly to the system. Is it possible to use adb install directly to the /system/priv-app/ on rooted phones?

like image 897
JY2k Avatar asked Apr 20 '17 17:04

JY2k


People also ask

How to install apps on Android devices using adb?

If your device is not shown under the List of devices, check the device drivers on your PC and come back. Now type the following command to install the app from your PC:adb install <app name.apk>Install APK via ADB Commands on Android Devices Where apk name is the exact name of the app you’re installing.

What does the-R mean in ADB install-R?

// -r means force install. Above adb install apk file command will install the apk file into /data/local/tmp/ directory. 1.2 Use adb install command. Startup android emulator.

Where can I download the ADB server?

The server runs as a background process on your development machine. adb is included in the Android SDK Platform-Tools package. You can download this package with the SDK Manager, which installs it at android_sdk /platform-tools/. Or if you want the standalone Android SDK Platform-Tools package, you can download it here .

What is the use of ADB command?

The adb command facilitates a variety of device actions, such as installing and debugging apps, and it provides access to a Unix shell that you can use to run a variety of commands on a device. It is a client-server program that includes three components: A client, which sends commands.


1 Answers

if I got your question, this should do the work:

adb root
adb remount
adb push apk-filename-here /system/app/
adb shell chmod 644 /system/app/apk-filename-here
adb reboot

See this or this link for more info.

like image 89
The Good Giant Avatar answered Dec 25 '22 05:12

The Good Giant