mirror of
https://github.com/Evolution-X-Devices/device_google_wahoo
synced 2026-01-27 17:09:46 +00:00
Bug: 62837579 Test: place test files in /persist/elabel, check that they are copied to /data/misc/elabel on boot Change-Id: Id29e7c7c01ed54bf4d2f488cfa6dba51046bc5bf Merged-In: Id29e7c7c01ed54bf4d2f488cfa6dba51046bc5bf
11 lines
300 B
Bash
11 lines
300 B
Bash
#! /system/bin/sh
|
|
|
|
if [ -d /persist/elabel ]; then
|
|
if [ ! -f /data/misc/elabel/elabels_copied ]; then
|
|
cp /persist/elabel/* /data/misc/elabel/
|
|
echo 1 > /data/misc/elabel/elabels_copied
|
|
chown system.system /data/misc/elabel/*
|
|
chmod 400 /data/misc/elabel/*
|
|
fi
|
|
fi
|