[Android] Android Simulator temp file related issues

Source: Internet
Author: User

Today production environment has a machine's hard disk full, troubleshooting found that my module in the/tmp/android-username directory left a bunch of shapes such as "emulator-1tph5l" files, occupy a lot of space.

This module restarts several Android simulators repeatedly, creating a temporary file each time it is started, which looks like a copy of the system.img, and then the emulator stops and the temp file is not deleted.

Search the Web. You can change the temp directory of the emulator by setting the environment variable "android_tmp", which does not solve this problem completely.

Later discovered the reason, in the Stop simulator for me to directly use "kill-9" killed the simulator, was afraid that the ADB did not respond, and did not find side effects to do so. After changing to "adb-s emulator_name EMU Kill" command, it is found that temporary files can be deleted normally.

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.