Change the system APK to the android Simulator

Source: Internet
Author: User

Modified an Android app, such as launcher. then, a launcher.apk is compiled separately. How can I put this apk in the simulator to view the effect without building the entire image? The methods found on the Internet are directly adb install. However, after I try it, the system will prompt that the apk already exists and cannot be put in. Is my method wrong or is it simply not available on the Internet? Ask colleagues to know that they are doing this:

Start the simulator first:

 

> Emulator-avd myavd

 

Then remount:

 

>Adb remount
Remount succeeded

 

Enter adb shell:

 

>Adb shell
#Rm/system/app/Launcher.apk
Rm/system/app/Launcher.apk


Press Ctrl + c to exit shell
#^ C

 

Import New apk:

>Adb push C:/Launcher.apk/system/app

 

Restart the simulator or do not restart the simulator. Turn off the original AP and you will be able to see the modified effect.

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.