From 4e8b1725faa59763a74722e79962ef724ca3d0ff Mon Sep 17 00:00:00 2001 From: Kyle Lin Date: Tue, 26 Apr 2022 15:47:53 +0800 Subject: [PATCH 1/2] device.mk: preopt SystemUI Bug: 230438662 Test: build, boot and check the size, format Change-Id: Ic9bfba1488b6fd18c97a59580cbcf63cebc36cae --- device.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/device.mk b/device.mk index 8a92cfa2..0e440c7d 100644 --- a/device.mk +++ b/device.mk @@ -1109,6 +1109,10 @@ PRODUCT_PACKAGES_DEBUG += BatteryStatsViewer # It must be split into the FCM of each partition. DEVICE_PRODUCT_COMPATIBILITY_MATRIX_FILE := device/google/gs201/device_framework_matrix_product.xml +# Preopt SystemUI +PRODUCT_DEXPREOPT_SPEED_APPS += \ + SystemUIGoogle + # Keymint configuration PRODUCT_COPY_FILES += \ frameworks/native/data/etc/android.software.device_id_attestation.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.device_id_attestation.xml \ From b5d322b061c2b8d19ddfe187a28235fbab40da9e Mon Sep 17 00:00:00 2001 From: "Chris.CC Lee" Date: Wed, 4 May 2022 19:57:44 +0800 Subject: [PATCH 2/2] Add NEARBY_WIFI_DEVICES for Restore We used ACCESS_FINE_LOCATION to start a WiFi P2P connection. From Android T, the required permission is changed to NEARBY_WIFI_DERVICES instead. Bug: 219855567 Test: Manual tested on Oriole. Used a local built Restore APK which declares the use of the permission. Push that APK to the test Oriole and validate the permission is granted by default. Change-Id: I5d23f973e4ca40a5364f7523e4adb79f2a0b119a --- default-permissions.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/default-permissions.xml b/default-permissions.xml index 8a67c9bc..a47d385e 100644 --- a/default-permissions.xml +++ b/default-permissions.xml @@ -77,7 +77,9 @@ + +