[TOC]
默认情况,创建带 Google Play Store
的模拟器只能选择Pixel
、Pixel 2
、Nexus 5X
、Nexus
,当选择这些之后接下来就没办法自己设置 RAM
和 ``VM heap` 的大小了。下面介绍如何修改模拟器的RAM大小。
0x01 Create An Emulator
Open
Android Virtual Devicies
, ClickCreate Viretual Device...
-
Select Device:
- Category:
Phone
- Device:
Pixel
orPixel 2
with Play Store - Click Next
- Category:
-
Select s system image
Select your System Image
Click Next
-
Verify Configuration
AVD Name:
Pixel 2 API 28
Show Advanced Settings
- Click Finish
0x02 Modify Emulator Configraton
Emulator path is /home/ttdevs/.android/avd/Pixel_2_API_28.avd
- Open
config.ini
- Change the Config:
- hw.ramSize
- hw.heapSize
0x03 Refresh Emulator
- Open
Android Virtual Device Manager
- Find your emulator, Click:
Action > Down > Wipe Data