In the work, often encountered the need to modify the APK package in the resource files, to verify the different configuration of the program running conditions.
The process is as follows:
1. First connect the phone, enter the command line, enter:adb root, so that the ADB gain root privileges.
2. Input:adb shell, enter Android shell
3. Enter:Mount-oremount/system, mount the system path as readable executable, or the Read-only permission issue will be reported behind.
4. Input:chmod 777 system/, modify the system and subdirectories to read and write execute permissions.
5. Input:The path of the ADB push local path +apk file (/system/app)
6. Enter the/system/app path, using:pm Install APK package name , installed APK package.
Complete.
P.S. Android can use the root Explorer, Apkeditor and other files to browse the application to view the transfer of the completed files (the advantage is that you can open the APK package to view the contents), it is recommended to use root Explorer,root after the path permissions can be modified, Installs the APK package directly, the function is more complete.
Modify APK package and push to install under System/app path