Rewrite from KernelSU shell scripts to LSPosed/Xposed module. Hooks Android's hidden Wi-Fi Display framework to enable native Miracast. - FrameworkResourceHook: force config_enableWifiDisplay = true - SystemServerHook: grant WFD permissions, force wifi_display feature - DisplayManagerHook: ensure WifiDisplayAdapter initializes, force FEATURE_STATE_ON - MediaRouterHook: unhide WFD routes in Settings Cast UI - MiracastTileService: Quick Settings tile for scan/connect/disconnect - SettingsActivity: resolution, HDCP, display source, GPU composition - WfdManager: reflection wrapper for hidden DisplayManager WFD APIs
35 lines
762 B
Kotlin
35 lines
762 B
Kotlin
plugins {
|
|
id("com.android.application")
|
|
}
|
|
|
|
android {
|
|
namespace = "com.miracast.enabler"
|
|
compileSdk = 34
|
|
|
|
defaultConfig {
|
|
applicationId = "com.miracast.enabler"
|
|
minSdk = 31
|
|
targetSdk = 34
|
|
versionCode = 200
|
|
versionName = "2.0.0"
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
isMinifyEnabled = false
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_11
|
|
targetCompatibility = JavaVersion.VERSION_11
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
compileOnly("de.robv.android.xposed:api:82")
|
|
implementation("androidx.preference:preference:1.2.1")
|
|
implementation("androidx.appcompat:appcompat:1.6.1")
|
|
implementation("com.google.android.material:material:1.11.0")
|
|
}
|