赞
踩
你只活一次 要悦己
service test_chmod /vendor/bin/test_chmod.sh
user root
disabled
oneshot
on property:sys.test_chmod=true
start test_chmod
#!/system/bin/sh
chmod -R 0777 /storage/emulated/0/Android/data/com.***.***/
# add chmod config
PRODUCT_COPY_FILES += device/sprd/***/test/test_chmod.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/test_chmod.rc
PRODUCT_COPY_FILES += device/sprd/***/test/test_chmod.sh:$(TARGET_COPY_OUT_VENDOR)/bin/test_chmod.sh
# add chmod config
/vendor/bin/test_chmod.sh u:object_r:test_exec:s0
# audioserver - audio services daemon
type test, domain;
tyep test_exec, exec_type, file_type, vendor_file_type;
init_daemon_domain(test)
allow init test:process sigkill;
allow init test:process { getpgid sigkill signal setpgid };
SystemProperties.set("sys.test_chmod","true");
//执行权限顺序,根据实际情况添加延迟
//SystemClock.sleep(2000);
赞
踩
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。