mirror of
https://github.com/LSPosed/DisableFlagSecure.git
synced 2025-05-05 02:09:43 +08:00
Compatible with flyme10 (#14)
* Compatible with flyme10 English android.view.SurfaceControl$ScreenshotHardwareBuffer is in the framework (bootclass), so the scope needs to include com.flyme.systemuiex 中文 android.view.SurfaceControl$ScreenshotHardwareBuffer 在framework中(也就是bootclass), 所以作用域需要包含com.flyme.systemuiex * Update DisableFlagSecure.java
This commit is contained in:
parent
0504f174b5
commit
5b16ace48f
@ -78,6 +78,12 @@ public class DisableFlagSecure implements IXposedHookLoadPackage {
|
|||||||
} catch (Throwable t) {
|
} catch (Throwable t) {
|
||||||
XposedBridge.log(t);
|
XposedBridge.log(t);
|
||||||
}
|
}
|
||||||
|
} else if (loadPackageParam.packageName.equals("com.flyme.systemuiex")) {
|
||||||
|
try {
|
||||||
|
XposedHelpers.findAndHookMethod("android.view.SurfaceControl$ScreenshotHardwareBuffer", loadPackageParam.classLoader, "containsSecureLayers", XC_MethodReplacement.returnConstant(false));
|
||||||
|
}catch (Throwable t) {
|
||||||
|
XposedBridge.log(t);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3,5 +3,6 @@
|
|||||||
<string name="xposed_description">Disable FLAG_SECURE on all windows, enabling screenshots in apps that normally wouldn\'t allow it.</string>
|
<string name="xposed_description">Disable FLAG_SECURE on all windows, enabling screenshots in apps that normally wouldn\'t allow it.</string>
|
||||||
<string-array name="scope">
|
<string-array name="scope">
|
||||||
<item>android</item>
|
<item>android</item>
|
||||||
|
<item>com.flyme.systemuiex</item>
|
||||||
</string-array>
|
</string-array>
|
||||||
</resources>
|
</resources>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user