Giter Site home page Giter Site logo

disableflagsecure's Introduction

LSPosed Framework

Build Crowdin Channel Chat Download Total

Introduction

A Riru / Zygisk module trying to provide an ART hooking framework which delivers consistent APIs with the OG Xposed, leveraging LSPlant hooking framework.

Xposed is a framework for modules that can change the behavior of the system and apps without touching any APKs. That's great because it means that modules can work for different versions and even ROMs without any changes (as long as the original code was not changed too much). It's also easy to undo. As all changes are done in the memory, you just need to deactivate the module and reboot to get your original system back. There are many other advantages, but here is just one more: multiple modules can do changes to the same part of the system or app. With modified APKs, you have to choose one. No way to combine them, unless the author builds multiple APKs with different combinations.

Supported Versions

Android 8.1 ~ 14

Install

  1. Install Magisk v24+
  2. (For Riru flavor) Install Riru v26.1.7+
  3. Download and install LSPosed in Magisk app
  4. Reboot
  5. Open LSPosed manager from notification
  6. Have fun :)

Download

Note: debug builds are only available in Github Actions.

Get Help

Only bug reports from THE LATEST DEBUG BUILD will be accepted.

  • GitHub issues: Issues
  • (For Chinese speakers) 本项目只接受英语标题的issue。如果您不懂英语,请使用翻译工具

For Developers

Developers are welcome to write Xposed modules with hooks based on LSPosed Framework. A module based on LSPosed framework is fully compatible with the original Xposed Framework, and vice versa, a Xposed Framework-based module will work well with LSPosed framework too.

We use our own module repository. We welcome developers to submit modules to our repository, and then modules can be downloaded in LSPosed.

Community Discussion

Notice: These community groups don't accept any bug report, please use Get help to report.

Translation Contributing

You can contribute translation here.

Credits

  • Magisk: makes all these possible
  • Riru: provides a way to inject code into zygote process
  • XposedBridge: the OG Xposed framework APIs
  • Dobby: used for inline hooking
  • LSPlant: the core ART hooking framework
  • EdXposed: fork source
  • SandHook: ART hooking framework for SandHook variant
  • YAHFA: previous ART hooking framework
  • dexmaker and dalvikdx: to dynamically generate YAHFA hooker classes
  • DexBuilder: to dynamically generate YAHFA hooker classes

License

LSPosed is licensed under the GNU General Public License v3 (GPL-3) (http://www.gnu.org/copyleft/gpl.html).

disableflagsecure's People

Contributors

5ec1cff avatar dependabot[bot] avatar ex3124 avatar howard20181 avatar sevtinge avatar tehcneko avatar yujincheng08 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

disableflagsecure's Issues

Crash when loading module

Device is a OnePlus CPH2451 running Android 13

----part 1 start----
[ 2023-12-06T11:09:36.189     1000:  3193:  3193 I/LSPosed-Bridge  ] Loading legacy module io.github.lsposed.disableflagsecure from /data/app/~~np-RhLVwfUpIcXjJgiX9YQ==/io.github.lsposed.disableflagsecure-m7Cn2mAAWhTmf4d9jPoTvw==/base.apk
[ 2023-12-06T11:09:36.192     1000:  3193:  3193 I/LSPosed-Bridge  ]   Loading class io.github.lsposed.disableflagsecure.DisableFlagSecure
[ 2023-12-06T11:09:36.892     1000:  3193:  3193 E/LSPosed-Bridge  ] DoXjnuiTAVJ.T.Tbz.Iuyo.XposedHelpers$ClassNotFoundError: java.lang.ClassNotFoundException: com.android.server.wm.WindowManagerServiceImpl
	at DoXjnuiTAVJ.T.Tbz.Iuyo.XposedHelpers.findClass(Unknown Source:12)
	at io.github.lsposed.disableflagsecure.DisableFlagSecure.handleLoadPackage(Unknown Source:291)
	at DoXjnuiTAVJ.T.Tbz.Iuyo.IXposedHookLoadPackage$Wrapper.handleLoadPackage(Unknown Source:2)
	at DoXjnuiTAVJ.T.Tbz.Iuyo.callbacks.XC_LoadPackage.call(Unknown Source:6)
	at DoXjnuiTAVJ.T.Tbz.Iuyo.callbacks.XCallback.callAll(Unknown Source:26)
	at H0.a(Unknown Source:30)
	at java.lang.reflect.Method.invoke(Native Method)
	at J.callback(Unknown Source:123)
	at LSPHooker_.startBootstrapServices(Unknown Source:11)
	at [com.android.server.SystemServer.run(SystemServer.java:1011)](http://com.android.server.systemserver.run(systemserver.java:1011)/)
	at [com.android.server.SystemServer.main(SystemServer.java:669)](http://com.android.server.systemserver.main(systemserver.java:669)/)
	at java.lang.reflect.Method.invoke(Native Method)
	at [com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:584)](http://com.android.internal.os.runtimeinit$methodandargscaller.run(runtimeinit.java:584)/)
	at [com.android.internal.os.ZygoteInit.main(ZygoteInit.java:991)](http://com.android.internal.os.zygoteinit.main(zygoteinit.java:991)/)
Caused by: java.lang.ClassNotFoundException: com.android.server.wm.WindowManagerServiceImpl
	at java.lang.Class.classForName(Native Method)
	at [java.lang.Class.forName(Class.java:536)](http://java.lang.class.forname(class.java:536)/)
	at q.a(Unknown Source:16)
	at DoXjnuiTAVJ.T.Tbz.Iuyo.XposedHelpers.findClass(Unknown Source:4)
	... 13 more
Caused by: java.lang.ClassNotFoundException: com.android.server.wm.WindowManagerServiceImpl
	... 17 more
[ 2023-12-06T11:11:58.909    10412: 23370: 23370 I/LSPosed-Bridge  ] Loading legacy module io.github.lsposed.disableflagsecure from /data/app/~~np-RhLVwfUpIcXjJgiX9YQ==/io.github.lsposed.disableflagsecure-m7Cn2mAAWhTmf4d9jPoTvw==/base.apk
[ 2023-12-06T11:11:58.910    10412: 23370: 23370 I/LSPosed-Bridge  ]   Loading class io.github.lsposed.disableflagsecure.DisableFlagSecure

Not working on Android 11.1.2.2

So I have Magisk with LSPosed installed. I have the LSPosed module enabled and download this disableflagsecure and than in LSPosed I enabled it than selected BitWarden and Microsoft Swiftkey but it is not working when I try to take a screenshot of Bitwarden it reports it is blocked.

Am I configuring something wrong?

LSPosed DisableFlagSecure > System framework checked ; Bitwarden checked ; Microsoft Swift Key checked

Test result negative

LSPosed version

1.9.2 (7024)

Android version

13

Custom OS version

N/A

Version requirement

  • I am using latest debug CI version

Logs

Test result screenshot is coming blank i.e., completely black
Screenshot_20240527-135835

Framework JAR

N/A

When attempting to screen record some video streaming apps (e.g., Bongo, Hoichoi), the phone crashes and reboots.

LSPosed version

https://github.com/LSPosed/LSPosed/releases/tag/v1.9.2

Android version

13

Custom OS version

stock (Realme 8 5G) RMX3241

Version requirement

  • I am using latest debug CI version

Behavior

When I first enter a streaming app and take a screenshot of a movie, then take a screenshot of another movie in the same app, the second screenshot ends up being the same as the first one.

The second major issue is that sometimes I can screen record certain movies, but other times, when I try to screen record a different movie, my phone automatically reboots.

Logs

Uploading LSPosed_2024-06-15T02_40_52.807329.zip…

Framework, Services, and Screenshot App

Screenshot_2024-06-15-02-31-59-39_b783bf344239542886fee7b48fa4b892

Feature request

It would be a good idea to add a feature in Snapchat application that if you take a screenshot no notification would go to the other partner whose chat has been taken screenshot.

Android U 上依然不可用 / Still not available on Android U

设备/Device:Xiaomi 14 Pro Ti
系统版本/System Ver.:HyperOS 1.0.14.0
安卓版本/Android Ver.:14/U
问题描述/Desc.:激活模块后,在不允许截图的界面截图,依旧提示「该页面不允许屏幕截图」/ After activating the module, when taking a screenshot of an interface that does not allow screenshots, the prompt "Screenshots are not allowed on this page" is still displayed.

愿意随时配合测试。I am willing to cooperate with the test at any time.

Not working with Oxygen OS (Color OS)

LSPosed version

1.9.2 (7058)

Android version

Android 14

Custom OS version

Oxygen OS 14.0.0.610 (EX01)

Version requirement

  • I am using latest debug CI version

Logs

Dear LSPosed Module Developer,

I hope this message finds you well. I am reaching out to report a bug I’ve encountered with the “Disable Flag Secure” module on Oxygen OS 14.0.0.610 (EX01) and later versions. It appears that the module is not functioning as intended on these versions of Oxygen OS.

Upon activating the recommended flags for the system and screenshot, there seems to be no effect. Additionally, attempting to activate the application for which I wish to take a screenshot results in the application not working thereafter.

I would like to kindly request that you investigate this issue. In previous versions of both the module and Oxygen OS, the functionality was seamless and greatly appreciated.

Thank you for your time and effort in creating and maintaining this module. Your work significantly enhances user experience, and I look forward to a resolution that will allow continued use of your valuable tool.

Warm regards

Framework JAR

...

Not working

I've enabled the module on LSPosed but I still get a black screen when taking screenshots in Prime Video and Netflix.
There are no errors in the logs

Quick Question

I realize that this mod can't do anything about apps that are blocking the screenshot functionality at a "DRM" level, like Netflix. Basically, leaving them blacked out.

But does it still work on apps that don't block screenshots at the DRM level? If so, can you let me know a few examples of these apps? The reason I ask is that I want to show off this app on my 700,000-subscriber YouTube channel, HowToMen, but I'm not sure which apps it properly works for just yet. Could you help me out?

Also, does this app work with LSPatch?

Thanks for all the help, I really do appreciate it!

DFS: Incorrect module usage, remove this app from scope.

LSPosed version

LSPatch 0.6

Android version

14

Custom OS version

N/A

Version requirement

  • I am using latest debug CI version

Logs

N/A.
Module is embedded into target application using LSPatch+Shizuku and causes this error with 3.1.0. Using 3.0.0 this error does not show, but it also does not successfully disable secure flags. Upon first launch using 3.0.0 the target application loads a video immediately and caused it to display "Could not load video." a few times before going to a black screen. Relaunching the application allows it to function like normal but flags are still disabled.

Framework JAR

N/A

Cannot take screenshot on the yellow/blue screen in app

LSPosed version

1.9.2(7042)

Android version

Android 14

Custom OS version

Oxygen OS stock

Version requirement

  • I am using latest debug CI version

Logs

Can't take a screenshot due to a PP restrictions.

Sorry don't know how to get the log.
I'm running oneplus 11, android 14.
Have selects only recommended apps.

System framework,
App services,
Screenshot,
System UI.

On version 3.2.2

Framework JAR

Can't upload as files are too big 40mb.

无法在「哔哩哔哩漫画」特典内截图

LSPosed version

1.9.2(7058)

Android version

Android 14

Custom OS version

Nameless (LineageOS based) / ColorOS

Version requirement

  • I am using latest debug CI version

Logs

LSPosed_2024-03-13T15_44_07.658486.zip
log.txt
lsposed 内详细日志无记录,使用 adb logcat 抓取的 log.txt,日志为使用 Nameless 系统抓取
ColorOS 在截图时会提示「由于应用限制,该界面无法截屏」

Framework JAR

Nameless
framework.zip
ColorOS
framework.zip
Screenshot.zip

Works abnormally on flyme10

English(Google Translate)
In flyme10, com.flyme.systemuiex is used to take screenshots, and the code for detecting window status is also included.
Search the keyword containsSecureLayers in com.flyme.systemuiex to find the code shown in the picture, delete the selected part in the picture, and then cooperate with the module to take a normal screenshot
so use
XposedHelpers.findAndHookMethod("android.view.SurfaceControl$ScreenshotHardwareBuffer", lpparam.classLoader, "containsSecureLayers", XC_MethodReplacement.returnConstant(false));
And add com.flyme.systemuiex to the scope to take a normal screenshot

中文
在flyme10中,使用了com.flyme.systemuiex来进行截图,检测窗口状态的代码也在其中.
在com.flyme.systemuiex中搜索关键字containsSecureLayers即可找到如图所示的代码,将图中选中的部分删掉,再配合模块就能正常截图了
所以使用
XposedHelpers.findAndHookMethod("android.view.SurfaceControl$ScreenshotHardwareBuffer", lpparam.classLoader, "containsSecureLayers", XC_MethodReplacement.returnConstant(false));
并在作用域中加上com.flyme.systemuiex即可正常截图

S30731-00005207_bin mt plus

No audio while screen recording

Hi,
after installing your module i was able to record screen from Google chrome incognition tab but ultimately it got recorded without audio. any clue?

哔哩哔哩漫画特典截图问题(非漫画正文)

LSPosed version

1.9.2(7058)

Android version

Android 14

Custom OS version

ColorOS 14

Version requirement

  • I am using latest debug CI version

Logs

Release 和 Action 里得都尝试过了
尝试截图时,lsposed中 未生成新日志
LSPosed_2024-03-13T23_26_23.267247.zip
logcat
log.txt

无法截图位置:哔哩哔哩漫画-(底栏)我的-(中间)我的已购-(顶部)我的特典,点进任意特典然后点击查看,此时无法截图,切后台为黑屏

Framework JAR

services.zip
其他文件在上一个 issue 发过了

app exit immediately

LSPosed version

1.9.2

Android version

13

Custom OS version

13

Version requirement

  • I am using latest debug CI version

Logs

2 apps crash: schwab and hsbc
after exit of the app, the toast syas: "DFS: incorrect module usage, remove this app from scope."

Framework JAR

...

Doesn't work...

Doesn't work on OP 9 Pro LE2123, Android 12 in Netflix app...
I have Magisk 26.1 installed with Zygisk - LsPosed 1.8.6

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.