fix(Spoof Wi-Fi connection): Failed previously

Close https://github.com/anddea/revanced-patches/issues/1374

Signed-off-by: Aaron Veil <70171475+anddea@users.noreply.github.com>
This commit is contained in:
Aaron Veil 2026-02-14 11:06:36 +03:00
parent c34045e1c8
commit 7187215610
3 changed files with 27 additions and 1 deletions

View file

@ -0,0 +1,22 @@
extension {
name = "extensions/all/connectivity/wifi/spoof/spoof-wifi.mpe"
}
android {
namespace = "app.revanced.extension"
compileSdk = 34
defaultConfig {
minSdk = 21
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
}
dependencies {
compileOnly(libs.annotation)
coreLibraryDesugaring(libs.desugar.jdk.libs)
}

View file

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
</manifest>

View file

@ -16,7 +16,7 @@ val spoofWifiPatch = bytecodePatch(
description = "Spoofs an existing Wi-Fi connection.",
use = false,
) {
extendWith("extensions/spoof-wifi.mpe")
extendWith("extensions/all/connectivity/wifi/spoof/spoof-wifi.mpe")
dependsOn(
transformInstructionsPatch(