Skip to content

Commit

Permalink
Merge pull request #12 from 1q23lyc45/dev
Browse files Browse the repository at this point in the history
Update AGP and some kernel patches
  • Loading branch information
1q23lyc45 authored Dec 19, 2024
2 parents 98ea500 + 1e161bd commit 9caed0e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ gradlePlugin {

dependencies {
implementation(embeddedKotlin("gradle-plugin"))
implementation("com.android.tools.build:gradle:8.3.0")
implementation("com.android.tools.build:gradle:8.3.1")
implementation("androidx.navigation:navigation-safe-args-gradle-plugin:2.7.7")
implementation("org.lsposed.lsparanoid:gradle-plugin:0.5.2")
implementation("org.eclipse.jgit:org.eclipse.jgit:6.7.0.202309050840-r")
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/main/java/Setup.kt
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ fun Project.setupStub() {
val apk = layout.buildDirectory.file("intermediates/processed_res/" +
"release/processReleaseResources/out/resources-release.ap_").get().asFile
val optRes = layout.buildDirectory.file("intermediates/optimized_processed_res/" +
"release/processReleaseResources/resources-release-optimize.ap_").get().asFile
"release/optimizeReleaseResources/resources-release-optimize.ap_").get().asFile
afterEvaluate {
tasks.named("optimizeReleaseResources") {
doLast { apk.copyTo(optRes, true) }
Expand Down
12 changes: 12 additions & 0 deletions scripts/boot_patch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,11 @@ done

if [ -f kernel ]; then
PATCHEDKERNEL=false
# patch vivo do_mount_check by wuxianlin
# /system -> /syswxl
# python3 -c "print(hex(int.from_bytes(b'/system', 'big')^int('bdbcbbbab9b8b7', 16)))"
./magiskboot hexpatch kernel 0092CFC2C9CDDDDA00 0092CFC2C9CEC0DB00 && PATCHEDKERNEL=true

# Remove Samsung RKP
./magiskboot hexpatch kernel \
49010054011440B93FA00F71E9000054010840B93FA00F7189000054001840B91FA00F7188010054 \
Expand All @@ -224,6 +229,13 @@ if [ -f kernel ]; then
# After: [mov w2, #-32768]
./magiskboot hexpatch kernel 821B8012 E2FF8F12 && PATCHEDKERNEL=true

# Disable Samsung PROCA
# proca_config -> proca_magisk
./magiskboot hexpatch kernel \
70726F63615F636F6E66696700 \
70726F63615F6D616769736B00 \
&& PATCHEDKERNEL=true

# Force kernel to load rootfs for legacy SAR devices
# skip_initramfs -> want_initramfs
$LEGACYSAR && ./magiskboot hexpatch kernel \
Expand Down

0 comments on commit 9caed0e

Please sign in to comment.