mirror of
https://github.com/reactivecircus/android-emulator-runner.git
synced 2026-09-04 19:29:31 +00:00
Allow increasing main storage size (sdcard is separate storage) (#219)
* Allow increasing disk size - Issue #184 * Fix checkDiskSize validator * Fix lint errors * Size modifier without a number is unacceptable "G" is not the same as "1G" * Implement checkDiskSize validator tests
This commit is contained in:
committed by
GitHub
parent
62d97062b0
commit
4e0dd2c343
@@ -14,6 +14,7 @@ export async function launchEmulator(
|
||||
cores: string,
|
||||
ramSize: string,
|
||||
sdcardPathOrSize: string,
|
||||
diskSize: string,
|
||||
avdName: string,
|
||||
forceAvdCreation: boolean,
|
||||
emulatorOptions: string,
|
||||
@@ -45,6 +46,10 @@ export async function launchEmulator(
|
||||
await exec.exec(`sh -c \\"printf 'hw.keyboard=yes\n' >> ${process.env.ANDROID_AVD_HOME}/"${avdName}".avd"/config.ini`);
|
||||
}
|
||||
|
||||
if (diskSize) {
|
||||
await exec.exec(`sh -c \\"printf 'disk.dataPartition.size=${diskSize}\n' >> ${process.env.ANDROID_AVD_HOME}/"${avdName}".avd"/config.ini`);
|
||||
}
|
||||
|
||||
//turn off hardware acceleration on Linux
|
||||
if (process.platform === 'linux' && disableLinuxHardwareAcceleration) {
|
||||
console.log('Disabling Linux hardware acceleration.');
|
||||
|
||||
Reference in New Issue
Block a user