Set current date as activation date after device being provisioned

allow setting it when the device is unlocked.

Bug: 286767821
Test: set the date of first usage successfully
Change-Id: I2c4d21662e88a9d8d2b857547d12825575a81331
Signed-off-by: Jack Wu <wjack@google.com>
This commit is contained in:
Jack Wu 2023-06-15 16:34:24 +08:00
parent 88a5bd2684
commit 3e3eecbbec

View file

@ -863,7 +863,7 @@ on property:sys.boot_completed=1
# Enable SICD # Enable SICD
write /sys/devices/system/cpu/cpupm/cpupm/sicd 1 write /sys/devices/system/cpu/cpupm/cpupm/sicd 1
on property:sys.boot_completed=1 && property:persist.sys.device_provisioned=1 && property:ro.boot.flash.locked=1 on property:sys.boot_completed=1 && property:persist.sys.device_provisioned=1
write /sys/class/power_supply/battery/first_usage_date 0 write /sys/class/power_supply/battery/first_usage_date 0
# IMS WiFi Calling # IMS WiFi Calling