Fix bootchart on android12
Access denial of Apexd would cause runtime abort and the bootchart is not working on Android 12: ... F nativeloader: Error finding namespace of apex: no namespace called com_android_art F zygote64: runtime.cc:669] Runtime aborting... F zygote64: runtime.cc:669] Dumping all threads without mutator lock held F zygote64: runtime.cc:669] All threads: F zygote64: runtime.cc:669] DALVIK THREADS (1): F zygote64: runtime.cc:669] "main" prio=10 tid=1 Runnable (still starting up) F zygote64: runtime.cc:669] | group="" sCount=0 ucsCount=0 flags=0 obj=0x0 self=0xb4000072de0f4010 ... Bug: 205880718 Test: bootchart test. Signed-off-by: Ji Luo <ji.luo@nxp.com> Change-Id: Ia7d166605cd0b58849cb44d9a16dc3c73e1d4353
This commit is contained in:
parent
f7d7c22115
commit
d338d0ef55
2 changed files with 2 additions and 0 deletions
|
@ -86,6 +86,7 @@ allow apexd apex_mnt_dir:file { create_file_perms relabelfrom mounton };
|
|||
allow apexd apex_info_file:file relabelto;
|
||||
# apexd needs to update /apex/apex-info-list.xml after non-staged APEX update.
|
||||
allow apexd apex_info_file:file rw_file_perms;
|
||||
allow apexd apex_info_file:file mounton;
|
||||
|
||||
# allow apexd to unlink apex files in /data/apex/active
|
||||
# note that apexd won't be able to unlink files in /data/app-staging/session_XXXX,
|
||||
|
|
|
@ -78,6 +78,7 @@ allow apexd apex_mnt_dir:file { create_file_perms relabelfrom mounton };
|
|||
allow apexd apex_info_file:file relabelto;
|
||||
# apexd needs to update /apex/apex-info-list.xml after non-staged APEX update.
|
||||
allow apexd apex_info_file:file rw_file_perms;
|
||||
allow apexd apex_info_file:file mounton;
|
||||
|
||||
# allow apexd to unlink apex files in /data/apex/active
|
||||
# note that apexd won't be able to unlink files in /data/app-staging/session_XXXX,
|
||||
|
|
Loading…
Reference in a new issue