rootdir: record last build fingerprint
We can't copy /default.prop so just write the value of $(ro.build.fingerprint) to /data/misc/recovery/ro.build.fingerprint and rotate it after reboot instead. Bug: 62793047 Test: manual - reboot phone and check /data/misc/recovery Change-Id: I130a4b7a01d9e1bfe9baecde2781626eb72e768b
This commit is contained in:
parent
b7a8764a12
commit
b9b76de6ff
1 changed files with 6 additions and 6 deletions
|
@ -380,12 +380,12 @@ on post-fs-data
|
|||
# create basic filesystem structure
|
||||
mkdir /data/misc 01771 system misc
|
||||
mkdir /data/misc/recovery 0770 system log
|
||||
copy /data/misc/recovery/default.prop /data/misc/recovery/default.prop.1
|
||||
chmod 0440 /data/misc/recovery/default.prop.1
|
||||
chown system log /data/misc/recovery/default.prop.1
|
||||
copy /default.prop /data/misc/recovery/default.prop
|
||||
chmod 0440 /data/misc/recovery/default.prop
|
||||
chown system log /data/misc/recovery/default.prop
|
||||
copy /data/misc/recovery/ro.build.fingerprint /data/misc/recovery/ro.build.fingerprint.1
|
||||
chmod 0440 /data/misc/recovery/ro.build.fingerprint.1
|
||||
chown system log /data/misc/recovery/ro.build.fingerprint.1
|
||||
write /data/misc/recovery/ro.build.fingerprint ${ro.build.fingerprint}
|
||||
chmod 0440 /data/misc/recovery/ro.build.fingerprint
|
||||
chown system log /data/misc/recovery/ro.build.fingerprint
|
||||
mkdir /data/misc/recovery/proc 0770 system log
|
||||
copy /data/misc/recovery/proc/version /data/misc/recovery/proc/version.1
|
||||
chmod 0440 /data/misc/recovery/proc/version.1
|
||||
|
|
Loading…
Reference in a new issue