0
0
Fork 0
mirror of https://github.com/YTVanced/VancedManager synced 2024-11-23 19:55:11 +00:00

chcon without -R

This commit is contained in:
ostajic 2020-08-25 05:05:17 +02:00
parent 42b3354d43
commit c44690e530

View file

@ -267,7 +267,7 @@ class RootSplitInstallerService: Service() {
//set chcon to apk_data_file //set chcon to apk_data_file
private fun chConV(path: String): Boolean { private fun chConV(path: String): Boolean {
val response = Shell.su("chcon -R u:object_r:apk_data_file:s0 $path").exec() val response = Shell.su("chcon u:object_r:apk_data_file:s0 $path").exec()
//val response = Shell.su("chcon -R u:object_r:system_file:s0 $path").exec() //val response = Shell.su("chcon -R u:object_r:system_file:s0 $path").exec()
return if(response.isSuccess) { return if(response.isSuccess) {
true true