Skip to content
Snippets Groups Projects
Commit cba41e5a authored by Alex Klyubin's avatar Alex Klyubin
Browse files

Enable ADB shell access to ro.serialno

6e4508e6 inadvertently removed access
to ro.serialno and ro.boot.serialno from ADB shell. This is needed for
CTS. This commit thus reinstates the access.

Test: adb shell getprop ro.serialno
Bug: 33700679
Change-Id: I62de44b1631c03fcd64ceabaf33bbaeb869c2851
parent 0555222d
No related branches found
No related tags found
No related merge requests found
...@@ -383,6 +383,7 @@ neverallow { ...@@ -383,6 +383,7 @@ neverallow {
-init -init
-mediadrmserver -mediadrmserver
-recovery -recovery
-shell
-system_server -system_server
} serialno_prop:file r_file_perms; } serialno_prop:file r_file_perms;
......
...@@ -72,6 +72,9 @@ userdebug_or_eng(` ...@@ -72,6 +72,9 @@ userdebug_or_eng(`
set_prop(shell, persist_debug_prop) set_prop(shell, persist_debug_prop)
') ')
# Read device's serial number from system properties
get_prop(shell, serialno_prop)
# allow shell access to services # allow shell access to services
allow shell servicemanager:service_manager list; allow shell servicemanager:service_manager list;
# don't allow shell to access GateKeeper service # don't allow shell to access GateKeeper service
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment