Skip to content

Commit

Permalink
fix native lib extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
lhns committed Aug 2, 2021
1 parent b1abbb8 commit 65ee752
Show file tree
Hide file tree
Showing 16 changed files with 13 additions and 4 deletions.
6 changes: 6 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ android {
buildFeatures {
viewBinding true
}

packagingOptions {
jniLibs {
useLegacyPackaging true
}
}
}

dependencies {
Expand Down
11 changes: 7 additions & 4 deletions app/src/main/java/de/lolhens/resticui/restic/Restic.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,13 @@ import java.util.concurrent.CompletableFuture
class Restic(
private val storage: ResticStorage
) {
private val proot = storage.lib().resolve("proot")
private val restic = storage.lib().resolve("restic")
private val loader = storage.lib().resolve("loader")
private val loader32 = storage.lib().resolve("loader32")
private fun executable(name: String) =
storage.lib().resolve("libdata_$name.so")

private val proot = executable("proot")
private val restic = executable("restic")
private val loader = executable("loader")
private val loader32 = executable("loader32")

private fun binds(hostsFile: File): List<Pair<String, String>> = listOf(
Pair("/system", "/system"),
Expand Down
Binary file removed app/src/main/resources/lib/arm64-v8a/loader
Binary file not shown.
Binary file removed app/src/main/resources/lib/arm64-v8a/loader32
Binary file not shown.
Binary file removed app/src/main/resources/lib/arm64-v8a/proot
Binary file not shown.
Binary file removed app/src/main/resources/lib/arm64-v8a/restic
Binary file not shown.
Binary file removed app/src/main/resources/lib/armeabi-v71/loader
Binary file not shown.
Binary file removed app/src/main/resources/lib/armeabi-v71/proot
Binary file not shown.
Binary file removed app/src/main/resources/lib/armeabi-v71/restic
Binary file not shown.
Binary file removed app/src/main/resources/lib/x86/loader
Binary file not shown.
Binary file removed app/src/main/resources/lib/x86/proot
Binary file not shown.
Binary file removed app/src/main/resources/lib/x86/restic
Binary file not shown.
Binary file removed app/src/main/resources/lib/x86_64/loader
Binary file not shown.
Binary file removed app/src/main/resources/lib/x86_64/loader32
Binary file not shown.
Binary file removed app/src/main/resources/lib/x86_64/proot
Binary file not shown.
Binary file removed app/src/main/resources/lib/x86_64/restic
Binary file not shown.

0 comments on commit 65ee752

Please sign in to comment.