selinux: Use a more reliable sentinel to flag /data labelling
/data/anr isn't present on all devices, /data/system is Change-Id: Ifba71d073dc7b577911386cff316e8a19662cd0d
This commit is contained in:
parent
d2d1a7ffb1
commit
b52874de53
@ -12,7 +12,7 @@ LABELDATA=0
|
||||
LABELSYS=0
|
||||
|
||||
# Test /data
|
||||
ls -Zd /data/anr | grep -q unlabeled
|
||||
ls -Zd /data/system | grep -q unlabeled
|
||||
if [ $? -eq 0 ]; then
|
||||
$L "userdata is unlabeled, fixing..."
|
||||
LABELDATA=1
|
||||
|
Loading…
Reference in New Issue
Block a user