Support buggy systems
This commit is contained in:
@@ -15,8 +15,8 @@ object AppProcess {
|
|||||||
val genericLdConfigFilePath: String get() {
|
val genericLdConfigFilePath: String get() {
|
||||||
"/system/etc/ld.config.$currentInstructionSet.txt".let { if (File(it).isFile) return it }
|
"/system/etc/ld.config.$currentInstructionSet.txt".let { if (File(it).isFile) return it }
|
||||||
if (Build.VERSION.SDK_INT >= 30) "/linkerconfig/ld.config.txt".let {
|
if (Build.VERSION.SDK_INT >= 30) "/linkerconfig/ld.config.txt".let {
|
||||||
check(File(it).isFile) { "failed to find generated linker configuration from \"$it\"" }
|
if (File(it).isFile) return it
|
||||||
return it
|
Logger.me.w("Failed to find generated linker configuration from \"$it\"")
|
||||||
}
|
}
|
||||||
if (isVndkLite) {
|
if (isVndkLite) {
|
||||||
"/system/etc/ld.config.vndk_lite.txt".let { if (File(it).isFile) return it }
|
"/system/etc/ld.config.vndk_lite.txt".let { if (File(it).isFile) return it }
|
||||||
|
|||||||
Reference in New Issue
Block a user