Get the App
SLTechnology News&Howtos  ›  Development  › 

What are the application skills of Android simulator

Shulou Source: shulou.com Published: 2022-06-02 16:02:23 10月04日 Update

What are the application skills of Android simulator? I believe many inexperienced people don't know what to do about it. Therefore, this paper summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.

If we want to change the Android operating system accordingly, we need to do relevant operations through the application of the simulator. Here, we will first introduce the application skills of Android simulator, so that we can have a preliminary understanding of this simulator.

1. Install and uninstall the APK package on the Android simulator

Adb install [- l] [- r]

< file>

-push this package

File to the device and install it

('- l' means forward-lock the app) ('- r' means

Reinstall the app, keeping its data)

Adb uninstall [- k]

< package>

-remove this

App package from the device

('- K' means keep the data and cache directories)

Installation:

Adb install filename.apk D:\ android-sdk\ tools > adb install filename.apk * daemon not running. Starting it now * * daemon started successfully * 347 KB/s (111196 bytes in 0.312s) pkg: / data/local/tmp/filename.apk Success

Uninstall:

Adb uninstall filename.apk

Or

Adb shell rm data/app/filename.apk

two。 Using sd card on the Android simulator

Generate a sdcard image file:

Mksdcard: create a blank FAT32 image to be

Used with the Android emulator

Usage: mksdcard [- l label]

< size>

< file>

If

< size>

Is a simple integer

It specifies a size in bytes

If

< size>

Is an integer followed by'K'

It specifies a size in KiB

If

< size>

Is an integer followed by'M'

It specifies a size in MiB

D:\ android-sdk\ tools > mksdcard.exe-l

Sdcard 2048M sdcard.img

Launch the simulator: emulator-sdcard sdcard image file

For example: emulator-sdcard sdcard.img

Put resources into sdcard: adb push source-file / sdcard

For example:

D:\ android-sdk\ tools > adb push NOTICE.txt / sdcard 1088 KB/s (156733 bytes in 0.140s)

Use the command adb shell to view the sdcard directory:

D:\ android-sdk\ tools > adb shell # ls sdcard NOTICE.txt after reading the above, have you mastered the application skills of Android simulator? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

Tags: Simulators applications application skills techniques content files methods more mirrors problems helpless for this operating system reasons commands this skills directories articles systems Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux MariaDB Shulou Information Redmi OPPO Reno