xposed module to block activity? - Xposed General

I'd like to block the pop-up that tells me "mobile data is turned off." It doesn't show as a notification or a toast, so neither "Notifyclean" module, or "EnhancedToast" module will work cause they don't detect it.
When it pops up the current activity is:
com.android.phone
com.android.phone.WarningAlertActivity
Could someone create a module for me to block this or direct me on how to do this?
Also, if someone would just create an "Activity Blocker" module, that would block certain activities when they try to become current activities, that would be helpful to many people I would bet.
Thanks for considering to help!

Related

How to get package, which calls X function?

Hello,
I wrote module XInternalSD. Here is java source: http://pastebin.com/VJ8CT5UR. But many people have asked for feature to change path to internal SD per app. I agree with them but I simply have no idea how to do it. I was thinking about small check > check which app calls getExternalStorageDirectory() and if this app is in whitelist, function will be hooked. But I am not sure if this is possible and/or the best way how to do it.
Have you any ideas how this can be done?
Try AndroidAppHelper.currentPackageName().

[Q] Sharing data between Xposed module and activity

Hi,
I have an Xposed module that listens for certain events and then notify the main application/Activity that contains this module about the events. I tried to put the events into a static buffer class that's accessible from both the module and Activity. But the buffer is always empty. Right now, I have to use Broadcast to achieve the notification. Is it impossible to share data between the module and Activity via static in-memory objects? Thank you!
AFAIK, you can't do it like that when xposed module runs in a different process than your app.
Xposed module hooking on one package and your app package are isolated processes that cannot share memory.
One way is to use broadcast, as you mentioned.
Another way is to create a service within your app and use ServiceConnection to bind to it and execute actions on it
Example of such service: https://github.com/GravityBox/Gravi...o/kitkat/gravitybox/KeyguardImageService.java
Example how that service is called from system context (different process): https://github.com/GravityBox/Gravi...m/ceco/kitkat/gravitybox/ModDisplay.java#L521

[Q] Instrumentation detected, disabling framework

Hi,
I'm trying to run Monkey along with Emma to measure code coverage of the test cases. Emma is a tool which instrument applications in order to compute coverage criteria. In addition, I developed an Xposed module to record path information in log file. However, when I run the instrumented app using Monkey, I get the following message in the log file:
Instrumentation detected, disabling framework for "name of the app".
Is there any way to resolve this issue? Is this something general that I'm missing? That Xposed does not work on instrumented apps?
I appreciate your helps
Regards,
Reyhan

[Q] Tasker event trigger on SHARING?

Hello everyone,
I want an event to trigger such that whenever a text is shared from any app (context) by using the SHARE button , say Chrome browser or Opera mobile, a sound should PLAY (task). how do I achieve the event trigger?
Many thanks for helping.
The plugin AutoInput has a "UI Action" Event trigger, that you can configure to detect anything that is clicked on in the AI, then in the linked task you can check its "name" or "id" in the variable %aitext or %aiid,
However, to prevent the Event from triggering anytime you press anything all day long, you should add an "App" context to the Profile to constrain it to a list of particular apps (even if its 10 different ones etc) since you'll also need to figure out in those apps if the Share button(s) have a common/same name or ID, or if in the Task you're going to need to look for one of several values in those variables mentioned above.
Ratchet_Guy said:
The plugin AutoInput has a "UI Action" Event trigger, that you can configure to detect anything that is clicked on in the AI, then in the linked task you can check its "name" or "id" in the variable %aitext or %aiid,
However, to prevent the Event from triggering anytime you press anything all day long, you should add an "App" context to the Profile to constrain it to a list of particular apps (even if its 10 different ones etc) since you'll also need to figure out in those apps if the Share button(s) have a common/same name or ID, or if in the Task you're going to need to look for one of several values in those variables mentioned above.
Click to expand...
Click to collapse
Thank you for the reply.
I actuallly succeded doing the thing with Autoshare. [https://play.google.com/store/apps/details?id=com.joaomgcd.autoshare&hl=en]
1. Taker> Event> Plugin> Autoshare> Command=android.intent.action.SEND (rest all parameters default)
2. Taker> Task> Alert> Beep.
So, whenever I share any data, I automatically hear a beep!
Many thanks!

List of Domains to block for adds and OTA

Just wondering if any one has already made a list? I have a BIND DNS server running at home and was hoping to add it to a blackhole.
It's hard to make a list because it's hard to keep up. They change a lot and there are tons of them. My advice: Download NetGuard from the play store. Buying the options to view the logs and to filter are well worth it. With those two purchases, you can choose to block IP strings or single IPs the apps try to connect to. Freebies include: Lockdown the wireless connection so NO app can connect regardless of it's set rules. A lock will appear next to every app installed on your device. Click each one to allow or block internet access when lockdown is active, and make sure to check the WiFi symbol to the right to make sure the corresponding color is correct. You can also choose to start or stop logging on a per app basis, you can delete the list of IPs the app has tried to connect to Doing so refreshes the list from scratch. So if you blocked a string of IPs, tapping the trash can would reset not just that string, but the entire list. You can enable IP resolving which determines the hostname/web address of the attempted connection. It will automatically block those names/domains/connections in the host names list. Host files need to be manually updated. I try to click it once a week or so.
It's a very in-depth app with a lot of information and options, and the ones I list above, are some of the best it offers. Another good one is NoRoot Data Firewall, less advanced, not nearly as many options. You have to resolve IPs yourself to manually block hostnames. Last but not least, NoRoot Firewall is very simple to use.

Categories

Resources