From 9e9f05e5ebf72a60930a53e5cf45f575534fc29d Mon Sep 17 00:00:00 2001 From: Stephen Smalley Date: Wed, 15 Jan 2014 13:19:31 -0500 Subject: [PATCH] restorecon /data/misc/media. Otherwise it will be mislabeled on upgrades with existing userdata. Change-Id: Ibde88d5d692ead45b480bb34cfe0831baeffbf94 Signed-off-by: Stephen Smalley --- rootdir/init.rc | 1 + 1 file changed, 1 insertion(+) diff --git a/rootdir/init.rc b/rootdir/init.rc index 95ca6afae..a66a2e452 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -222,6 +222,7 @@ on post-fs-data chmod 0660 /data/misc/wifi/wpa_supplicant.conf mkdir /data/local 0751 root root mkdir /data/misc/media 0700 media media + restorecon_recursive /data/misc/media # Set security context of any pre-existing /data/misc/adb/adb_keys file. restorecon /data/misc/adb