B2G icon indicating copy to clipboard operation
B2G copied to clipboard

Create packaged emulator compatible with mach.

Open brendandahl opened this issue 5 years ago • 4 comments

Creates/copies all the necessary files and folders need for a packaged emulator to work with mach's un-packaging script and emulator starting script.

brendandahl avatar May 21 '20 21:05 brendandahl

Can be run with with something like ANDROID_AVD_HOME=/home/bdahl/.mozbuild/android-device/avd /home/bdahl/.mozbuild/android-sdk-linux/emulator/emulator -avd test-1 -gpu on -verbose -show-kernel -ranchu -writable-system -selinux permissive -feature GrallocSync,LogcatPipe,GLAsyncSwap,GLESDynamicVersion,GLDMA,EncryptUserData,IntelPerformanceMonitoringUnit,Wifi,HostComposition,DynamicPartition -memory 3072 -cores 4

brendandahl avatar May 21 '20 21:05 brendandahl

BTW this is working fine with my TaskCluster builds.

gabrielesvelto avatar Jun 02 '20 13:06 gabrielesvelto

@seinlin can we get this merged in? Alternatively, if you don't want us to change package-emulator.sh, I could create a new shell script just for creating mach compatible packages e.g. package-emulator-for-gecko.sh or something.

brendandahl avatar Jul 17 '20 21:07 brendandahl

BTW I've got a slightly tweaked version that uses zstd for compression: https://github.com/gabrielesvelto/B2G/blob/kaios-emulator-x86_64/scripts/package-emulator.sh

gabrielesvelto avatar Jul 17 '20 22:07 gabrielesvelto