Skip to content

Commit

Permalink
Merge pull request phhusson#15 from ponces/fix-vndklite-libs
Browse files Browse the repository at this point in the history
fix(UpdaterActivity): replace outdated with existing libs to identify vndklite variant
  • Loading branch information
phhusson authored Oct 11, 2023
2 parents 6aede7a + efadd81 commit 0e02091
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/src/main/java/me/phh/treble/app/UpdaterActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,10 @@ class UpdaterActivity : PreferenceActivity() {
private fun getVariant() : String {
var flavor = SystemProperties.get("ro.build.flavor").replace(Regex("-user(debug)?"), "")
val secure = File("/system/phh/secure")
val vndklite = File("/system_ext/apex/com.android.vndk.v27/etc/vndkcore.libraries.27.txt")
var vndklite = File("/system_ext/apex/com.android.vndk.v29/lib64/[email protected]")
if (flavor.contains("_a64_")) {
vndklite = File("/system_ext/apex/com.android.vndk.v29/lib/libstdc++.so")
}
if (secure.exists()) {
flavor += "-secure"
} else if (vndklite.exists()) {
Expand Down

0 comments on commit 0e02091

Please sign in to comment.