Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AndroidSystemSEPolicy
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Werner Sembach
AndroidSystemSEPolicy
Commits
67112779
Commit
67112779
authored
9 years ago
by
Makoto Onuki
Committed by
Android (Google) Code Review
9 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Allow "shortcut manager" icons to be returned to apps" into nyc-dev
parents
e6d67390
085c1691
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
app.te
+3
-0
3 additions, 0 deletions
app.te
file.te
+2
-0
2 additions, 0 deletions
file.te
file_contexts
+4
-0
4 additions, 0 deletions
file_contexts
system_server.te
+6
-0
6 additions, 0 deletions
system_server.te
with
15 additions
and
0 deletions
app.te
+
3
−
0
View file @
67112779
...
@@ -104,6 +104,9 @@ allow appdomain wallpaper_file:file { getattr read write };
...
@@ -104,6 +104,9 @@ allow appdomain wallpaper_file:file { getattr read write };
# Read/write cached ringtones (opened by system).
# Read/write cached ringtones (opened by system).
allow appdomain ringtone_file:file { getattr read write };
allow appdomain ringtone_file:file { getattr read write };
# Read ShortcutManager icon files (opened by system).
allow appdomain shortcut_manager_icons:file { getattr read };
# Write to /data/anr/traces.txt.
# Write to /data/anr/traces.txt.
allow appdomain anr_data_file:dir search;
allow appdomain anr_data_file:dir search;
allow appdomain anr_data_file:file { open append };
allow appdomain anr_data_file:file { open append };
...
...
This diff is collapsed.
Click to expand it.
file.te
+
2
−
0
View file @
67112779
...
@@ -168,6 +168,8 @@ type cache_recovery_file, file_type, mlstrustedobject;
...
@@ -168,6 +168,8 @@ type cache_recovery_file, file_type, mlstrustedobject;
type efs_file, file_type;
type efs_file, file_type;
# Type for wallpaper file.
# Type for wallpaper file.
type wallpaper_file, file_type, data_file_type, mlstrustedobject;
type wallpaper_file, file_type, data_file_type, mlstrustedobject;
# Type for shortcut manager icon file.
type shortcut_manager_icons, file_type, data_file_type, mlstrustedobject;
# /mnt/asec
# /mnt/asec
type asec_apk_file, file_type, data_file_type, mlstrustedobject;
type asec_apk_file, file_type, data_file_type, mlstrustedobject;
# Elements of asec files (/mnt/asec) that are world readable
# Elements of asec files (/mnt/asec) that are world readable
...
...
This diff is collapsed.
Click to expand it.
file_contexts
+
4
−
0
View file @
67112779
...
@@ -330,6 +330,10 @@
...
@@ -330,6 +330,10 @@
# Ringtone files
# Ringtone files
/data/system_de/[0-9]+/ringtones(/.*)? u:object_r:ringtone_file:s0
/data/system_de/[0-9]+/ringtones(/.*)? u:object_r:ringtone_file:s0
# ShortcutManager icons, e.g.
# /data/system_ce/0/shortcut_service/bitmaps/com.example.app/1457472879282.png
/data/system_ce/[0-9]+/shortcut_service/bitmaps(/.*)? u:object_r:shortcut_manager_icons:s0
#############################
#############################
# efs files
# efs files
#
#
...
...
This diff is collapsed.
Click to expand it.
system_server.te
+
6
−
0
View file @
67112779
...
@@ -300,6 +300,12 @@ allow system_server system_data_file:file relabelfrom;
...
@@ -300,6 +300,12 @@ allow system_server system_data_file:file relabelfrom;
allow system_server wallpaper_file:file relabelto;
allow system_server wallpaper_file:file relabelto;
allow system_server wallpaper_file:file { rw_file_perms unlink };
allow system_server wallpaper_file:file { rw_file_perms unlink };
# ShortcutManager icons
allow system_server system_data_file:dir relabelfrom;
allow system_server shortcut_manager_icons:dir { create_dir_perms relabelto };
allow system_server shortcut_manager_icons:file create_file_perms;
# Manage ringtones.
# Manage ringtones.
allow system_server ringtone_file:dir { create_dir_perms relabelto };
allow system_server ringtone_file:dir { create_dir_perms relabelto };
allow system_server ringtone_file:file create_file_perms;
allow system_server ringtone_file:file create_file_perms;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment