0
0
Fork 0
mirror of https://github.com/YTVanced/VancedManager synced 2024-11-27 05:23:00 +00:00
This commit is contained in:
ostajic 2020-08-31 20:13:02 +02:00
parent 20c0eec5de
commit b2049bb4aa

View file

@ -343,36 +343,22 @@ class RootSplitInstallerService: Service() {
private fun getPackageDir(): String?
{
val execRes = Shell.su("dumpsys package com.google.android.youtube | grep codePath").exec()
if(execRes.isSuccess)
{
val result = execRes.out
for (line in result)
{
if(line.contains("data/app")) return "${line.substringAfter("=")}/base.apk"
}
}
return null
/*
return try {
val p = getPkgInfo(yPkg)
p?.applicationInfo?.sourceDir
} catch (e: Exception) {
val execRes = Shell.su("dumpsys package com.google.android.youtube | grep codePath").exec()
val execRes = Shell.su("dumpsys package com.google.android.youtube | grep codePath").exec()
if(execRes.isSuccess)
{
val result = execRes.out
for (line in result)
{
if(line.contains("data/app")) return line.substringAfter("=")
if(line.contains("data/app")) "${line.substringAfter("=")}/base.apk"
}
}
null
}
*/
}
}