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:
parent
c34045e1c8
commit
7187215610
3 changed files with 27 additions and 1 deletions
22
extensions/spoof-wifi/build.gradle.kts
Normal file
22
extensions/spoof-wifi/build.gradle.kts
Normal 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)
|
||||
}
|
||||
4
extensions/spoof-wifi/src/main/AndroidManifest.xml
Normal file
4
extensions/spoof-wifi/src/main/AndroidManifest.xml
Normal 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>
|
||||
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue