From 59304c995ad45bca65aadab1addbca622f1cfaa5 Mon Sep 17 00:00:00 2001 From: Jack Wu Date: Sat, 15 Apr 2023 15:29:04 +0800 Subject: [PATCH] Set current date as activation date after device being provisioned This is only applied when the device is locked. Bug: 275441997 Test: set the date of first usage successfully Change-Id: I1037d673422cd198007bb13f8311b993fd5132db Signed-off-by: Jack Wu --- conf/init.zuma.rc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/conf/init.zuma.rc b/conf/init.zuma.rc index c42498ca..c97d2505 100644 --- a/conf/init.zuma.rc +++ b/conf/init.zuma.rc @@ -823,6 +823,9 @@ on property:sys.boot_completed=1 # Disable GPU firmware logging write /sys/devices/platform/1f000000.mali/firmware_config/Log\ verbosity/cur 0 +on property:sys.boot_completed=1 && property:persist.sys.device_provisioned=1 && property:ro.boot.flash.locked=1 + write /sys/class/power_supply/battery/first_usage_date 0 + # IMS WiFi Calling service charonservice /system/vendor/bin/charon class main