Note that the signature must be consistent. Otherwise, installation and debugging cannot be performed. Here we use the default signature of the SDK (that is, the automatically generated package of eclipse). Click
Run the button to generate the APK file)
Assume that our project name is helloworld and the package name is com. sample. Hello.
1. First, install/bin/helloworld.apk in the project as the system app (Version: 1.0)
ADB push helloworld.apk/system/APP/helloworld.apk
Sometimes you need to execute the following command first:
ADB rootadb remount
2. Then, modifyCodeClick debug in Eclipse IDE to perform debugging. (The new version is 1.1. It does not matter if the version is not added,
Here, the version number is changed to distinguish)
The tracing process is different from that of the common append. At this time, helloworld.apk will be run as a system app.
3. If you run the following command to uninstall:
ADB uninstall com. sample. Hello
Or use the system settingsProgramManagement or third-party tools to uninstall,
In the preceding method, only version 1.1 is uninstalled. the target machine also has Version 1.0.
4. To download version 1.0, run the following command:
ADB shellrm/System/APP/helloworld.apk
To clear data, run the following command:
ADB uninstall com. sample. Hello