Skip to content
Snippets Groups Projects
Commit af99ed85 authored by Nick Kralevich's avatar Nick Kralevich
Browse files

uncrypt: allow /data/local/tmp on userdebug/eng

Per https://android-review.googlesource.com/82814 , uncrypt
needs to be able to read shell_data_files on userdebug / eng
builds. Allow it.

Bug: 13083922
Change-Id: I72299673bb5e36be79413227105b5cad006d504f
parent 96eeb1ec
No related branches found
No related tags found
No related merge requests found
...@@ -10,6 +10,11 @@ allow uncrypt self:capability dac_override; ...@@ -10,6 +10,11 @@ allow uncrypt self:capability dac_override;
# Read OTA zip file from /data/data/com.google.android.gsf/app_download # Read OTA zip file from /data/data/com.google.android.gsf/app_download
r_dir_file(uncrypt, app_data_file) r_dir_file(uncrypt, app_data_file)
userdebug_or_eng(`
# For debugging, allow /data/local/tmp access
r_dir_file(uncrypt, shell_data_file)
')
# Create tmp file /cache/recovery/command.tmp # Create tmp file /cache/recovery/command.tmp
# Read /cache/recovery/command # Read /cache/recovery/command
# Rename /cache/recovery/command.tmp to /cache/recovery/command # Rename /cache/recovery/command.tmp to /cache/recovery/command
......
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