Skip to content
Snippets Groups Projects
Commit 84c2923a authored by Alex Klyubin's avatar Alex Klyubin Committed by Gerrit Code Review
Browse files

Merge "Enable ADB shell access to ro.serialno"

parents c9d46d4f cba41e5a
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