How to debug the Android system app online

Source: Internet
Author: User

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

 

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.