Fix binary patch (#2096)
This commit is contained in:
parent
ce02b75a4c
commit
205138f638
|
|
@ -1,9 +1,7 @@
|
|||
project(dex2oat)
|
||||
cmake_minimum_required(VERSION 3.4.1)
|
||||
|
||||
add_library(dex2oat SHARED dex2oat.c)
|
||||
|
||||
target_link_options(dex2oat PRIVATE "-fPIE")
|
||||
add_executable(dex2oat dex2oat.c)
|
||||
|
||||
target_link_libraries(dex2oat log)
|
||||
|
||||
|
|
|
|||
|
|
@ -144,7 +144,7 @@ fun afterEval() = android.applicationVariants.forEach { variant ->
|
|||
"assemble$variantCapped",
|
||||
":app:package$buildTypeCapped",
|
||||
":daemon:package$buildTypeCapped",
|
||||
":dex2oat:strip${buildTypeCapped}DebugSymbols"
|
||||
":dex2oat:merge${buildTypeCapped}NativeLibs"
|
||||
)
|
||||
into(magiskDir)
|
||||
from("${rootProject.projectDir}/README.md")
|
||||
|
|
@ -204,9 +204,8 @@ fun afterEval() = android.applicationVariants.forEach { variant ->
|
|||
}
|
||||
}
|
||||
into("bin") {
|
||||
from("${project(":dex2oat").buildDir}/intermediates/stripped_native_libs/$buildTypeLowered/out/lib") {
|
||||
include("**/libdex2oat.so")
|
||||
rename { n -> n.replace("libdex2oat.so", "dex2oat") }
|
||||
from("${project(":dex2oat").buildDir}/intermediates/cmake/$buildTypeLowered/obj") {
|
||||
include("**/dex2oat")
|
||||
}
|
||||
}
|
||||
val dexOutPath = if (buildTypeLowered == "release")
|
||||
|
|
|
|||
|
|
@ -176,7 +176,7 @@ if [ "$API" -ge 29 ]; then
|
|||
while [ -d "/dev/$DEV_PATH" ]; do
|
||||
DEV_PATH=$(tr -dc 'a-f0-9' < /dev/urandom | head -c 16)
|
||||
done
|
||||
sed -i "s/placeholder_\/dev\/................/placeholder_\/dev\/$DEV_PATH/" "$MODPATH/libdaemon.so"
|
||||
sed -i "s/placeholder_\/dev\/................/placeholder_\/dev\/$DEV_PATH/g" "$MODPATH/daemon.apk"
|
||||
sed -i "s/placeholder_\/dev\/................/placeholder_\/dev\/$DEV_PATH/" "$MODPATH/bin/dex2oat32"
|
||||
sed -i "s/placeholder_\/dev\/................/placeholder_\/dev\/$DEV_PATH/" "$MODPATH/bin/dex2oat64"
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in New Issue