omni: switch emulator to pixel_2_xl
Change-Id: Ife658a7d2e67ecf39c1f2f06262f4639fd582a3c
diff --git a/utils/emulator/overlay/frameworks/base/core/res/res/values/config.xml b/utils/emulator/overlay/frameworks/base/core/res/res/values/config.xml
index 7be2e5f..d62442c 100644
--- a/utils/emulator/overlay/frameworks/base/core/res/res/values/config.xml
+++ b/utils/emulator/overlay/frameworks/base/core/res/res/values/config.xml
@@ -28,4 +28,5 @@
with active proximity sensor event listener -->
<bool name="config_proxiSensorWakupCheck">true</bool>
<bool name="config_showNavigationBar">true</bool>
+ <bool name="config_haveHigherAspectRatioScreen">true</bool>
</resources>
diff --git a/utils/emulator/skins/pixel_2_xl/hardware.ini b/utils/emulator/skins/pixel_2_xl/hardware.ini
new file mode 100644
index 0000000..4b7959e
--- /dev/null
+++ b/utils/emulator/skins/pixel_2_xl/hardware.ini
@@ -0,0 +1,44 @@
+hw.cpu.arch = x86
+hw.cpu.model = qemu32
+hw.cpu.ncore = 2
+hw.ramSize = 1536
+hw.screen = multi-touch
+hw.mainKeys = false
+hw.trackBall = false
+hw.keyboard = true
+hw.keyboard.lid = false
+hw.keyboard.charmap = qwerty2
+hw.dPad = false
+hw.rotaryInput = false
+hw.gsmModem = true
+hw.gps = true
+hw.battery = true
+hw.accelerometer = true
+hw.gyroscope = true
+hw.audioInput = true
+hw.audioOutput = true
+hw.sdCard = false
+hw.lcd.width = 1440
+hw.lcd.height = 2880
+hw.lcd.depth = 16
+hw.lcd.density = 560
+hw.lcd.backlight = true
+hw.gpu.enabled = true
+hw.gpu.mode = host
+hw.gpu.blacklisted = no
+hw.initialOrientation = Portrait
+hw.camera.back = virtualscene
+hw.camera.front = emulated
+vm.heapSize = 384
+hw.sensors.light = true
+hw.sensors.pressure = true
+hw.sensors.humidity = true
+hw.sensors.proximity = true
+hw.sensors.magnetic_field = true
+hw.sensors.magnetic_field_uncalibrated = true
+hw.sensors.gyroscope_uncalibrated = true
+hw.sensors.orientation = true
+hw.sensors.temperature = true
+hw.useext4 = true
+hw.arc = false
+hw.arc.autologin = false
diff --git a/utils/emulator/skins/pixel_2_xl/land_back.webp b/utils/emulator/skins/pixel_2_xl/land_back.webp
new file mode 100644
index 0000000..45de491
--- /dev/null
+++ b/utils/emulator/skins/pixel_2_xl/land_back.webp
Binary files differ
diff --git a/utils/emulator/skins/pixel_2_xl/land_fore.webp b/utils/emulator/skins/pixel_2_xl/land_fore.webp
new file mode 100644
index 0000000..7ee7fe9
--- /dev/null
+++ b/utils/emulator/skins/pixel_2_xl/land_fore.webp
Binary files differ
diff --git a/utils/emulator/skins/pixel_2_xl/land_shadow.webp b/utils/emulator/skins/pixel_2_xl/land_shadow.webp
new file mode 100644
index 0000000..0db57b3
--- /dev/null
+++ b/utils/emulator/skins/pixel_2_xl/land_shadow.webp
Binary files differ
diff --git a/utils/emulator/skins/pixel_2_xl/layout b/utils/emulator/skins/pixel_2_xl/layout
new file mode 100644
index 0000000..abd5cd8
--- /dev/null
+++ b/utils/emulator/skins/pixel_2_xl/layout
@@ -0,0 +1,59 @@
+parts {
+ device {
+ display {
+ width 1440
+ height 2880
+ x 0
+ y 0
+ }
+ }
+ portrait {
+ background {
+ image port_back.webp
+ }
+ onion {
+ image port_fore.webp
+ }
+ }
+ landscape {
+ background {
+ image land_back.webp
+ }
+ onion {
+ image land_fore.webp
+ }
+ }
+}
+layouts {
+ portrait {
+ width 1858
+ height 3456
+ event EV_SW:0:1
+ part1 {
+ name portrait
+ x 0
+ y 0
+ }
+ part2 {
+ name device
+ x 201
+ y 245
+ }
+ }
+ landscape {
+ width 3477
+ height 1754
+ event EV_SW:0:0
+ part1 {
+ name landscape
+ x 0
+ y 0
+ }
+ part2 {
+ name device
+ x 305
+ y 108
+ rotation 3
+ }
+ }
+}
diff --git a/utils/emulator/skins/pixel_2_xl/port_back.webp b/utils/emulator/skins/pixel_2_xl/port_back.webp
new file mode 100644
index 0000000..914325d
--- /dev/null
+++ b/utils/emulator/skins/pixel_2_xl/port_back.webp
Binary files differ
diff --git a/utils/emulator/skins/pixel_2_xl/port_fore.webp b/utils/emulator/skins/pixel_2_xl/port_fore.webp
new file mode 100644
index 0000000..bdc562f
--- /dev/null
+++ b/utils/emulator/skins/pixel_2_xl/port_fore.webp
Binary files differ
diff --git a/utils/emulator/skins/pixel_2_xl/port_shadow.webp b/utils/emulator/skins/pixel_2_xl/port_shadow.webp
new file mode 100644
index 0000000..0009913
--- /dev/null
+++ b/utils/emulator/skins/pixel_2_xl/port_shadow.webp
Binary files differ
diff --git a/utils/emulator/start_emulator_image.sh b/utils/emulator/start_emulator_image.sh
index 96e1c48..916a6ae 100755
--- a/utils/emulator/start_emulator_image.sh
+++ b/utils/emulator/start_emulator_image.sh
@@ -3,4 +3,4 @@
export ANDROID_BUILD_TOP=`pwd`
export ANDROID_PRODUCT_OUT=`pwd`
-/home/maxl/Android/Sdk/emulator/emulator -verbose -skindir $ANDROID_BUILD_TOP/skins/ -skin pixel_xl -gpu host -writable-system -qemu -cpu qemu64
+/home/maxl/Android/Sdk/emulator/emulator -verbose -skindir $ANDROID_BUILD_TOP/skins/ -skin pixel_2_xl -gpu host -writable-system -qemu -cpu qemu64