mirror of
https://github.com/YTVanced/VancedManager
synced 2024-11-23 11:45:11 +00:00
cleanup
This commit is contained in:
parent
20c0eec5de
commit
b2049bb4aa
1 changed files with 2 additions and 16 deletions
|
@ -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
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue