From ae5da56035366f3c90247222c4f5005ea1c0dab4 Mon Sep 17 00:00:00 2001 From: Alexander Koskovich Date: Wed, 13 Apr 2022 08:07:11 -0700 Subject: [PATCH] dre: Copy PFM licenses to persist * This is read by the feature enabler client. OOS already does this but we want to make sure we're doing this for users upgrading from Lineage 18.1. Change-Id: I1d112d9cea6f3d0e87cdf12898587c7bacf8de9c --- init/init.oplus.rc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/init/init.oplus.rc b/init/init.oplus.rc index 81e6ff6..a4f72ce 100644 --- a/init/init.oplus.rc +++ b/init/init.oplus.rc @@ -20,6 +20,12 @@ on property:ro.boot.prjname=* # Display setprop ro.separate.soft ${ro.boot.prjname} +on property:sys.boot_completed=1 + # Display + copy /vendor/etc/Oppo_QC_LTM_Commercial_SM8250_2020_01_15.pfm /mnt/vendor/persist/data/pfm/licenses/1000-1000-no-exp-1186717196.pfm + chmod 0600 /mnt/vendor/persist/data/pfm/licenses/1000-1000-no-exp-1186717196.pfm + chown system system /mnt/vendor/persist/data/pfm/licenses/1000-1000-no-exp-1186717196.pfm + on property:sys.usb.config=adb && property:sys.usb.configfs=1 write /config/usb_gadget/g1/idVendor 0x22D9 write /config/usb_gadget/g1/idProduct 0x2769