Change name of private variable in chConV to make it more consistent and obvious of what we're feeding this function with. This can help in avoiding confusion.

This commit is contained in:
Kyelbek 2021-01-08 22:39:19 +01:00
parent 04fc790e36
commit 641dc789f9
1 changed files with 2 additions and 2 deletions

View File

@ -524,8 +524,8 @@ object PackageHelper {
}
//set chcon to apk_data_file
private fun chConV(path: String, context: Context): Boolean {
val response = Shell.su("chcon u:object_r:apk_data_file:s0 $path").exec()
private fun chConV(apkFPath: String, context: Context): Boolean {
val response = Shell.su("chcon u:object_r:apk_data_file:s0 $apkFPath").exec()
//val response = Shell.su("chcon -R u:object_r:system_file:s0 $path").exec()
return if (response.isSuccess) {
true