Skip to content

Commit 089a8e7

Browse files
committed
Revert "Add UID check to ScreenCaptureHookerhook for S~T"
This reverts commit 079c882.
1 parent 079c882 commit 089a8e7

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

app/src/main/java/io/github/lsposed/disableflagsecure/DisableFlagSecure.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -378,14 +378,6 @@ private static class ScreenCaptureHooker implements Hooker {
378378

379379
@BeforeInvocation
380380
public static void before(@NonNull BeforeHookCallback callback) {
381-
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.UPSIDE_DOWN_CAKE) {
382-
var uid = android.os.Process.myUid();
383-
// cannot bypass hasCaptureBlackoutContentPermission() in SurfaceFlinger.cpp
384-
// skipping this hook for S~T before implement native hook
385-
if (uid != 1000 && uid != 1003) {
386-
return;
387-
}
388-
}
389381
var captureArgs = callback.getArgs()[0];
390382
try {
391383
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.BAKLAVA &&

0 commit comments

Comments
 (0)