yashsingh1/xdaforums huggingface dataset:
[Xposed Framework Modules] Fif_:
Could this module help against the StrandHogg 2 exploit?

My initial reading of the AOSP patches at https://android.googlesource.com/platform/frameworks/base/+/7fc95f204527ee079c5891d56c969668f0b35a0b and https://android.googlesource.com/platform/frameworks/base/+/a952197bd161ac0e03abc6acb5f48e4ec2a56e9d (both links come from https://www.xda-developers.com/strandhogg-2-0-android-vulnerability-explained-developer-mitigation/) seem to indicate that ActivityForceNewTask may help.

Since there is no published code for the exploit, it's hard to tell for sure...
[Xposed Framework Modules] PoochyX:
Hey big bro I have ur module on my havoc 3.6 GSI and i wonder could u give me a example on how to use it so I can see that it's actually functioning and not just sitting on my daily driver, I be on telegram and it opens stuff in its webview if the module was working wouldn't it of opened in the internet browser with telegram having another open window or i have the wrong impression

([emoji3590]09-09-18[emoji3590])
[Xposed Framework Modules] XlAfbk:
This module doesn't replace webviews with activities but only sets a flag on new activities. Example in OP
[Xposed Framework Modules] TheSilent3327:
Thanks alot bro! Great module
[Xposed Framework Modules] kos25k:
does this work on Android Q?
[Xposed Framework Modules] Neejay:
Yep. I'm on R/11 and I miss it dearly. I think it's crap to force everything in one window. There's been plenty of times I want to reference something from the initial page that sent me to a webpage, and can't, because it's in the same window.
[Xposed Framework Modules] kos25k:
Agree.I wonder also if is possible to make it as magisk module,as phone lags with xposed installed..
[Xposed Framework Modules] XlAfbk:
Looking at the Android 11 source code I don't see a reason that my Android 10 version shouldn't work. I don't have a 11 device to test with though.

Did you test my version or only the original one? https://xdaforums.com/t/mod-xposed-activityforcenewtask.2646504/post-80677589
[Xposed Framework Modules] mistermojorizin:
I tried on Android 11 with newest exposed and riru. Seems to work. When an app opens web view, that's the only time it seems to adopt that apps activity. Otherwise, works as expected. Is that expected behavior with the web view?
[Xposed Framework Modules] XlAfbk:
Webviews are not intercepted, thats a completely different mechsnism.
[Xposed Framework Modules] CaptainChrom:
Can this module be modified to inject whatever flag we need? I want to force all apps to use Toast.LENGTH_LONG because 2 seconds are just too short...
[Xposed Framework Modules] _jis_:
Couldn't this app serve as a workaround to solve your problem?

Toast Source - Apps on Google Play

This app can help you find out which program is abusing "toasts" notifications.

play.google.com
[Xposed Framework Modules] polobunny:
I think keeping the blacklist and log as disabled by default would still be a good idea. If it's never needed, swell, if not, at least it's there.
[Xposed Framework Modules] jacknicholson:
To quote the often quoted yet never not quotable Hannibal Smith of the A-Team: "I love it when a plan comes together." (Opened as many things as I could think of, and couldn't find a problem.)
[Xposed Framework Modules] GermainZ:
Alright, I'll keep it. Can't hurt, and since I took the logs out of SharedPreferences the extra check shouldn't cause a noticeable slow down. :P

I'll probably push the update to the Xposed repo today, then (it's still morning ATM.) :highfive:
[Xposed Framework Modules] egingell:
I fully support and/or endorse this. The A-Team is the epitome of 80's corny-action-drama. :D

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
[Xposed Framework Modules] banderos101:
I agree, its always nice in any app to have a certain user level of control.......for me, the more the merrier, you never know what situations it might apply to

edit:

i think Hannibal Smith might agree with me on that, plans and all :)
[Xposed Framework Modules] GermainZ:
Update:

Enjoy! :D
[Xposed Framework Modules] Ja_som:
Thanks for update...

My translation is also updated ;)
[Xposed Framework Modules] AaronCompNetSys:
My switch to last app button in my pie menu finally works properly! No more pounding the back button. Thank you.
[Xposed Framework Modules] PenguinxEnjoi:
Google should add this to stock android tbh
[Xposed Framework Modules] egingell:
It's up to developers to use the API properly.

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
[Xposed Framework Modules] theknut:
[MENTION=4775688]GermainZ[/MENTION] why is there no donate button? Can you please add your paypal donation address?
[Xposed Framework Modules] GermainZ:
Thanks for the offer, but I just do this for fun and would rather have someone who needs the money more than I do have it. :)
[Xposed Framework Modules] theknut:
I know right? I just received a donation and thought I'd give it to a person who helped me a lot :p

Btw I just received a message from eagleeyetom... THANK YOU SO MUCH!!!! for telling eagleeyetom about my new module. I don't have words for this. I don't know if you checked XDA news, androidpolice.com and reddit.com/r/Android recently but it might have occured that you saw something^^ I can't believe this is happening. Thank you so much!

I'm glad I asked you for a donation link before I got the PM. I don't want it to look like I'm paying you.
[Xposed Framework Modules] wolfnumba1:
Issue with Gmail

Hello,

Great app, one issue I'm having is in Gmail when I try to open a document into quickoffice which is set as default it freezes the Quickoffice app and doesn't open. When I try to black list that intent it does not seem to fix either. Please assist.
[Xposed Framework Modules] GermainZ:
No problem mate :highfive:
[Xposed Framework Modules] BrownDog99:
Found bug

When make a selection in the complete action menu, the app freezes then the launcher restarts. I tried disabling every module and I found it was this one. Thanks for your time.. I have a Note 2 running miui v5
[Xposed Framework Modules] GermainZ:
If you disable the module, does this still happen? You can disable it from within the app's settings or from the Xposed Installer (a reboot is required in that case.)

Which complete action menu? Which app? What launcher? How can I reproduce this myself (details, please?)
[Xposed Framework Modules] BrownDog99:
Anytime android asks what app I want to use for a certain procedure. Like, if I use 2 browsers, it will ask which one I want to use. Or if I use 3 app stores, it will ask what app store. Anytime any app selection, the phone basically freezes and the stock launcher resets. Like, you restarted your phone but not.

---------- Post added at 10:23 PM ---------- Previous post was at 10:15 PM ----------

I am wondering if it's a Miui issue. Somebody would have had the same problem by now. You make app selections in that menu constantly. I also tried using just your app and disabling complete action plus because their related to each others actions
[Xposed Framework Modules] GermainZ:
I'm going to need a logcat, please. I have no idea why that could happen.

However, MIUI does so many changes to core elements I doubt I'll be able to do anything.
[Xposed Framework Modules] BrownDog99:
It is a Miui issue, flashed Dn3, all is good, but your app works in miui usin wsm tools, instead of xposed. It is like exposed, but for miui devices. When I flash miui again I will send log report
[Xposed Framework Modules] GermainZ:
Minor update, mostly performance oriented:
[Xposed Framework Modules] AaronCompNetSys:
This module causes the Google now options to not work. You can access settings but none of the sub menus are clickable.

Using your quick disable check box fixes it. Using logging to add to blacklist also fixes.
[Xposed Framework Modules] Ja_som:
[MENTION=4775688]GermainZ[/MENTION]

Slovak translation is updated ;)
[Xposed Framework Modules] Walter.White:
I also have the same exact problem. I did add the activities from OP to black list and it works for now.
[Xposed Framework Modules] xPr0metheus:
Does this module affect ram? Seems that ram usage increased massively since I installed this module

Gesendet von meinem SM-N9005 mit Tapatalk
[Xposed Framework Modules] _jis_:
Could you be more specific, which process need more memory? If you disable this module, memory usage is lower? And how much lower?
[Xposed Framework Modules] xPr0metheus:
Sorry, I don't know what happened, of course I wanted to say "seems" and not "themes" -.-* *facepalmbecauseofmyself*

Anyway, with the module enabled my ram usage goes up to 1,9 GB, without I am usually around 1,2 - 1,4 GB
[Xposed Framework Modules] _jis_:
I get it right, no problem, but it is good practice to read your own text for yourself to be sure that you have write what you want. :)

That is really strange, I haven't such a problem on my SGNII 4.1.2 with this mod nor with other 14 active xposed mods which I use all time. Just now I have 1/2 RAM free from total 1.75GB and this is pretty normal for my phone with 450 apps installed.
[Xposed Framework Modules] RoachForLife:
Hey all. Curious if this would help with when Im using Feedly, and want to read more of the story, it always opens the website inside its own browser, whereas I want it in Chrome. Once it opens, there is a button to open in browser but if this would save that one step, Im in.

Thanks
[Xposed Framework Modules] GermainZ:
The module doesn't affect RAM (noticeably) per se. Everything launching as a new task might. Adding a whitelist (you'll be able to toggle between the whitelist and the blacklist) is something I want to do, and should reduce that if that's indeed the cause.

Nope, won't affect that. Look at the screenshot in the OP, the same might happen with Feedly but you'll still need to open it with a browser yourself.
[Xposed Framework Modules] GermainZ:
Update:

The whitelist is a good choice if you don't mind spending some time configuring it. Other than that, all activities will now be logged (even if they're blacklisted/not whitelisted.) It didn't make sense to make a decision on what to log depending on a changeable setting. If need be, I'll improve the log viewer a bit to e.g. highlight blacklisted/whitelisted items, depending on which is currently chosen.
[Xposed Framework Modules] natezire71:
Anyone know what to add to the blacklist to fix the weirdness when uninstalling an app? Give it a try. A new activity is created for the uninstall screen.
[Xposed Framework Modules] Ja_som:
Here is my setting...
[Xposed Framework Modules] jacknicholson:
I definitely think the whitelist is the way to go for a lot of people. No surprises and it really doesn't take much time to set up (pretty much go about your business and whenever you get annoyed by something, think, 'Thank god there's ActivityForceNewTask!' and spend 3 seconds whitelisting it).

(Speaking of the A-team, ActivityForceNewTask kind of sounds like an awesome 80s show in its own right.)
[Xposed Framework Modules] polobunny:
Haha it does sound like it, glad I'm not the only one that thought that. :p
[Xposed Framework Modules] egingell:
Sounds like something you name a recreation center's employees.

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
[Xposed Framework Modules] Thomas_BA:
Well by accident I found a bug or a incompatibility with the configuration of Google Now. When the module is activated with the standard configuration I can't open the sub configurations in the Google Now configuration window. I attache an image so you see what Configuration I am talking about.

Disabling the module, all sub configurations are accessible.

Enviado desde mi XT1058 mediante Tapatalk
[Xposed Framework Modules] GermainZ:
That's known and in the OP. Use the blacklist to blacklist the activity, or even better: use the whitelist and only whitelist what you need.
[Xposed Framework Modules] Kocane:
Nice module. I was thinking.. How about a way to do the opposite? Like, if I have an app I DONT want to show up, then a way to force it not show up in recent tasks..
[Xposed Framework Modules] GermainZ:
That's not the opposite, that's different. See the OP again for what this module does.

It should be as easy as changing the flag, but I don't think it fits in this module so it's not going to happen. I might send a pull request to add it to App Settings if I find the time and interest, though.
[Xposed Framework Modules] vyp54:
EDIT:

I've found a bug! On Samsung Galaxy S3 4.3 Touchwiz ROMs you cannot access or modify any settings in Settings -> My device -> Call.

After disabling or removal of the module everything reverted back to normal.
[Xposed Framework Modules] polobunny:
There's a blacklist, use it. It's wonderful.
[Xposed Framework Modules] GermainZ:
The blacklist and whitelist are provided for exactly this reason. Read the OP, please. :)

Even better, the whitelist. It takes longer to set up, sure, but at least you'll know nothing unexpected will happen.
[Xposed Framework Modules] MetinKale38:
Downloading..., your great man, I never thought about the reasons but It was just annoying, and you fixed it :)

Tapatalked...
[Xposed Framework Modules] vyp54:
I thought it works well with all the system apps, my bad. Since I don't have any clue what process operates in call settings it's hard to blacklist it. If anyone knows do share.

But it's no big deal anyway, the module works as it should. Nice job!
[Xposed Framework Modules] GermainZ:
The log is provided for that purpose. Turn it on, open what you want to open, then check the log and tap the item you want to blacklist/whitelist.
[Xposed Framework Modules] c19932:
Thanks for this. Very useful.
[Xposed Framework Modules] defim:
[MENTION=4775688]GermainZ[/MENTION]

Can you please hide the "list type: null" message, if logging is disabled?
[Xposed Framework Modules] GermainZ:
Oops, I missed that, never intended to keep it at all. Thanks. :)

Update:
[Xposed Framework Modules] defim:
I searched a while to get the app causing it, i thought one of my own app wrote it :D Thanks!
[Xposed Framework Modules] gabripranzo:
Hi all, I have troubles opening Gmail attachments, so I think I should add Gmail to the blacklist. How can I do it? I don't find any way to select it from an app list.

Thanks for your help.

Sent from Galaxy Note 8.0 GT–N5100
[Xposed Framework Modules] egingell:
I have no problem with Gmail attachments.

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
[Xposed Framework Modules] gabripranzo:
I can't open pdf files. Tried both with Galaxy Note 2 and Galaxy Note 8.0.

Everything works when I disable the module.

Sent from Galaxy Note 8.0 GT–N5100
[Xposed Framework Modules] Ja_som:
If you use QuickOffice add this to blacklist

Sent from my tablet. Odoslané z môjho tabletu.
[Xposed Framework Modules] Ja_som:
[MENTION=4775688]GermainZ[/MENTION] it will be great, if we can have import/export filters option...

Thank you

Sent from my tablet. Odoslané z môjho tabletu.
[Xposed Framework Modules] gabripranzo:
Thanks. I use Ezpdf and Adobe Acrobat

Sent from Galaxy Note 8.0 GT–N5100
[Xposed Framework Modules] Ja_som:
it will be something similar... Open module, clear log, open gmail, try to open pdf, go to module and tap on item in log...

Sent from my tablet. Odoslané z môjho tabletu.
[Xposed Framework Modules] gabripranzo:
Ok, I did it but it didn't work. I had to add another process which isn't related to the pdf apps (I suppose it has something to do with the way Gmail handles attachments): android/com.android.internal.app.ResolverActivity

Anyone knows what it is?

Sent from Galaxy Note 8.0 GT–N5100
[Xposed Framework Modules] egingell:
I could be mistaken, but I think that's what stores data to be shared between an app's activities.

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
[Xposed Framework Modules] GermainZ:
When I have the time. :)

That's the popup that asks you what app you want to choose when multiple apps can handle the action you're doing.

You probably want to add whatever appears in the log right after that to your blacklist (or use the whitelist.)
[Xposed Framework Modules] egingell:
Oh, that's what that is... lol That makes sense.

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
[Xposed Framework Modules] theknut:
You can copy it from my repro if you like. It's done here:

https://github.com/theknut/XposedGE...eknut/xposedgelsettings/Preferences.java#L199

You obviously need permission

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

It took me some time to figure out that I had to set permissions after importing the settings. I just thought I'd share it with you because it worked at the first glance but if you'd import your settings from a fresh install it wouldn't work because the file would be created with false permissions while it was okay when only overwriting an existing file.

Cheers ;)
[Xposed Framework Modules] gabripranzo:
Ok, but is it correct that I have also to add it to the blacklist? This is the only way to make Gmail pdf attachments open. I haven't tried yet with different attachments.

Sent from Galaxy Note 8.0 GT–N5100
[Xposed Framework Modules] GermainZ:
I don't know. It won't hurt to add it, but as usual, I'd advise everyone to use the whitelist. :D
[Xposed Framework Modules] pemell:
Note to myself: Read the thread before posting!
[Xposed Framework Modules] Pkt_Lnt:
Did you read the 15 or so relevant messages above about this, try the suggestions?
[Xposed Framework Modules] pemell:
Eeeeh. Didn't you get the note to myself? :)
[Xposed Framework Modules] ykumar00:
I too cannot open Gmail pdf attachments, I tried disabling the module, and it worked. I want to add it to the blacklist,but nothing is showing up in the log? The log is always empty. Please help.
[Xposed Framework Modules] GermainZ:
Is logging enabled?
[Xposed Framework Modules] ykumar00:
It is.

---------- Post added at 12:43 PM ---------- Previous post was at 12:43 PM ----------

Edit: reinstalling and enabling logging fixed it. It's weird. Thanks!
[Xposed Framework Modules] saphirrot:
this is simple, but so useful ! awesome idea
[Xposed Framework Modules] osm0sis:
[MENTION=4775688]GermainZ[/MENTION] Any way to blacklist the SuperSU/Superuser PIN/Grant dialog by default? Whenever an app makes a su call with ActivityForceNewTask enabled it doesn't wait for the response anymore and states it failed to get su privs until you grant, close the app and reopen.
[Xposed Framework Modules] LegendM:
Oh my god,finally YESSS

Great job developer
[Xposed Framework Modules] jacknicholson:
Unless I've misread, can't you just do this in the SuperSU (and I presume Superuser) settings?
[Xposed Framework Modules] osm0sis:
No, it's an ActivityForceNewTask issue. It doesn't wait for the response on the pop-up dialog with AFNT enabled, but does without because the original task is waiting for the input. So for root to work correctly, AFNT should have Superuser/SuperSU su requests blacklisted by default. Hopefully that made more sense this time. :) :good:
[Xposed Framework Modules] GermainZ:
You're saying "by default" so you already know it's possible for users to add it to the blacklist. Personally, I'd rather not add anything by default because users would then expect all problematic activities to be added to the blacklist.

If you can provide the activity name, though, I can add it to the OP. :)

And of course… I advise you to use the whitelist. A bit more work, but less headache in the long run.
[Xposed Framework Modules] osm0sis:
Fair enough. This does break the intended root app behavior for all devices, but I guess a note about it in the OP will do. :)

What activity names do you need, the root app ones?
[Xposed Framework Modules] GermainZ:
No, you just need to add the SuperSU dialog activity to the blacklist. Enable logging and check for its name.
[Xposed Framework Modules] GermainZ:
A small update:

I'm now hooking ActivityRecord's constructor instead of Activity.startActivity(Intent intent, Bundle bundle) - that's basically it.
[Xposed Framework Modules] osm0sis:
Looking like eu.chainfire.supersu/.NativeAccessReceiver for the PIN Code dialog, and eu.chainfire.supersu/.PromptActivity for the initial Grant/Deny dialog.

No idea about Superuser; I've never used it, so hopefully someone who does can supply those activity names. Thanks! :)
[Xposed Framework Modules] osm0sis:
Still not working with those added.. No idea why. :confused:
[Xposed Framework Modules] osm0sis:
[MENTION=4775688]GermainZ[/MENTION] Figured it out. It needed the full activity name, not the short form, and I didn't have them all.

There are actually 3:

eu.chainfire.supersu/eu.chainfire.supersu.PINActivity

eu.chainfire.supersu/eu.chainfire.supersu.PromptActivity

eu.chainfire.supersu/eu.chainfire.supersu.AppDetailActivity

First 2 for the PIN dialog and time frame list, 3rd for the initial Grant/Deny dialog. :good:
[Xposed Framework Modules] BlackDino:
This is amazing, thank you so much for this!
[Xposed Framework Modules] tbudke:
How do I go about whitelisting my roms custom features menu?
[Xposed Framework Modules] GermainZ:
The same way you'd go about whitelisting any other activity. Enable logging, open the activity, check your log and tap the item you want to whitelist.
[Xposed Framework Modules] NexusFanBoy:
[MENTION=4775688]GermainZ[/MENTION] after latest Google+ update, your module will cause sharing picture issue. I'm sure cause I tried fast disabling it and not any problem. Hope in early update. Cheers

Inviato dal mio Nexus 5

---------- Post added at 03:32 AM ---------- Previous post was at 03:15 AM ----------

Try to share from gphotos a pics and then add other pics to post...select pics but nothing shows in post; try to write post from g+ and tap pics...nothing;

Inviato dal mio Nexus 5
[Xposed Framework Modules] Pkt_Lnt:
Use the logging, blacklist, or whitelist filter settings to fix it, that is why they are there. There are examples in the first post.
[Xposed Framework Modules] NexusFanBoy:
Sorry I did not read that... My bad! Anyway bug found...cheers :D

Inviato dal mio Nexus 5
[Xposed Framework Modules] Pkt_Lnt:
It's not a bug, it's a feature. ;)
[Xposed Framework Modules] NexusFanBoy:
G+ adding photo issue solved...cheers!

Inviato dal mio Nexus 5
[Xposed Framework Modules] defim:
[MENTION=4775688]GermainZ[/MENTION]: Another minor thing: The app shows in the recent list after it did his work, see attached screenshot. Maybe this in the Manifest helps (i've not read you source, if available)

android:theme="@android:style/Theme.NoDisplay"
android:excludeFromRecents="true" >

Additionally to http://xdaforums.com/showpost.php?p=51120209&postcount=122 i can't even open SuperSU. It closed aften the pin dialog
[Xposed Framework Modules] GermainZ:
I probably need to use Intent.addFlags(int flags) instead of Intent.setFlags(int flags) although that means I have to check some extra things (e.g. flags conflicting with Intent.FLAG_ACTIVITY_NEW_TASK.) I'll have a look at it later.

The source is available and linked in the OP.

Probably something missing from the blacklist. As usual, I recommend using the whitelist.
[Xposed Framework Modules] defim:
Oh sorry, this is the wrong thread! It's related to CrappsLinks

Would be great if this could be detected whithout changing a w/b-list, i think SuperSU is on many devices installed.
[Xposed Framework Modules] egingell:
I also have a problem with SuperSU and the PIN. In that SuperSU won't open with the PIN enabled. The funny thing is that if I just enable either filter without adding components, SuperSU opens correctly.

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
[Xposed Framework Modules] Kocane:
When I open an app in recents and press back it goes back to the recents list as if it was an app, where before it'd just go back to, for example, the main homescreen. Where I need to do? Sorry if this has been brought up before...
[Xposed Framework Modules] egingell:
I'm getting a null pointy on line 44 of XposedMod.java.

https://www.dropbox.com/s/2gv0yxmj1c62aur/activity.log

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
[Xposed Framework Modules] GermainZ:
Use the whitelist so that only what you need is modified. :)

Where does this happen? I'd like to reproduce it so I can test another method of getting contexts.