From 645a109bfd0fbe90cee110324c024190e5b13151 Mon Sep 17 00:00:00 2001 From: SzuWei Lin Date: Tue, 19 Sep 2017 12:11:14 +0800 Subject: [PATCH] Fix walleye to boot with GSI Walleye requres /sys/class/uio/uio1/device/rtel/rtel in userdebug build, and GSI will change the device to userdebug. So, we need to switch rtel with the build type in boot time, even the device is in user build. Bug: 65229896 Test: Boot (aosp_)walleye-(user|userdebug) with/without GSI to home screen Change-Id: I8fa74c02a0a48feeef87d8e9caa702e4a44aedf7 --- init-common.rc | 3 +++ init.logging.userdebug.rc | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/init-common.rc b/init-common.rc index 2b5db77..ca1f526 100644 --- a/init-common.rc +++ b/init-common.rc @@ -39,3 +39,6 @@ on init && property:ro.boot.revision=MP0 # PVT on init && property:ro.boot.revision=MP1 setprop ro.boot.hardware.revision 1.0 + +on boot && property:ro.build.type=userdebug + write /sys/class/uio/uio1/device/rtel/rtel 1 diff --git a/init.logging.userdebug.rc b/init.logging.userdebug.rc index 3d8e5eb..7cc6645 100644 --- a/init.logging.userdebug.rc +++ b/init.logging.userdebug.rc @@ -1,6 +1,3 @@ -on boot - write /sys/class/uio/uio1/device/rtel/rtel 1 - on post-fs-data # SM DUMP logging collection mkdir /data/vendor/modem_dump 0777 system system