Can Xposed framework intercept all intetnt from/to an application? - Xposed General

Hi Everybody,
I want to write an intent sniffer application that can intercept intents (Implicit and Explicit Intents ) and analysis it's data
Now i want to ask can Xposed framework intercept intents from or to an application? and also i want to know can i read the data that is transferred through intents with Xposed framework?
Thanks

Hello
Like little snitch for mac ?
Regards

karmoussa said:
Hello
Like little snitch for mac ?
Regards
Click to expand...
Click to collapse
Sure. hook sendBroadcast(INTENT).

pyler said:
Sure. hook sendBroadcast(INTENT).
Click to expand...
Click to collapse
This is for broadcast intent! i want to hook explicit intent too! is it possible?

then get first param of sendBroadcast and then.
Intent i = (Intent) param.args[0];
String specificAction = i.getAction();
if ("bla bla".equals(specificAction)) {
your code...
}

msalehi1991 said:
Hi Everybody,
I want to write an intent sniffer application that can intercept intents (Implicit and Explicit Intents ) and analysis it's data
Now i want to ask can Xposed framework intercept intents from or to an application? and also i want to know can i read the data that is transferred through intents with Xposed framework?
Thanks
Click to expand...
Click to collapse
did you ever manage to make this app? have been looking for something like this, the closest i have come to is autoshare

1.5 years later..
Any update?
I am interested, too

Me too!

you may have a look to this module - Intent interceptor by the author of Sorcery Icon pack
https://github.com/sorcererXW/IntentInterceptor

Related

[Q] soft reboot activity/intent for tasker

Hi,
I love the idea of soft-rebooting my device.
I'd like to be able to schedule a soft-reboot using tasker and the xposed framework installer,
is there a known intent or activity that can issue a soft-reboot command present in the xposed installer?
thanks :laugh:
shmizan said:
Hi,
I love the idea of soft-rebooting my device.
I'd like to be able to schedule a soft-reboot using tasker and the xposed framework installer,
is there a known intent or activity that can issue a soft-reboot command present in the xposed installer?
thanks :laugh:
Click to expand...
Click to collapse
IMO you shouldn't resort to an internal mechanism of an app (XposedInstaller or other) to do the soft reboot, but rather something like either a self-contained Tasker action (which I know nothing about) or an app explicitly prepared to be invoked through intents to achieve things like that. AFAIR the internal methods used by XposedInstaller aren't exposed outside the app, i..e the intent you're looking for doesn't exist.
At best you can check how it does it (these 2 setprop shell commands, running as root) and see how you can configure Tasker to execute them on a shell.
Hey, thanks a lot for your informative post!
searched through the internet for a soft-reboot app or script I could run, found nothing.
what you posted works perfectly, thanks again!

[Q] Sending information from hooks TO the settings screen?

I've read a couple of threads on the "context" that my module runs in, but I'm not clear on how I send data from my module (running in the hooked application context) back to my settings screen (running in the Xposed context?)
XSharedPreferences is obviously read only, so that doesn't work. I'm guessing I need to write to a file and parse it back from settings, but I'm hoping someone can set me in the right direction. Is there a module that already does this so I can look at the source? Or can someone give me a high level of the file permissions/location/settings to use so that it's readable/writable from both contexts?
Thanks!
Ryan
I'd say your best option is to register a broadcast receiver in your app, and send a broadcast from the hooked app (you just need a Context to do that.
If you can't get one from the app, you could use AndroidAppHelper.currentApplication()).
GermainZ said:
I'd say your best option is to register a broadcast receiver in your app, and send a broadcast from the hooked app (you just need a Context to do that.
If you can't get one from the app, you could use AndroidAppHelper.currentApplication()).
Click to expand...
Click to collapse
Thank you! I got it. I guess that was obvious, but it seemed like there might be a "tighter" way to do the cross-process communication using Xposed as a bridge.
Thanks for all of your help in this forum,
Ryan

How to look at application stack trace to create an xposed mod?

Hi,
I want to write an xposed mod for e.g. Facebook. I want to know what all api's are being called so that I can hook into those APIs. In case I want to add my signature whenever I post something on facebook. I want to know what API is called when I click on Post Status. Is there any way to record stack trace of app inside or outside(adb or something) android device.
I tried logcat, but that is not of help, it is showing only those messages which are logged. I want to see the stacktrace if u can help me with that.
Thanks in advance.
compilerNayan said:
Hi,
I want to write an xposed mod for e.g. Facebook. I want to know what all api's are being called so that I can hook into those APIs. In case I want to add my signature whenever I post something on facebook. I want to know what API is called when I click on Post Status. Is there any way to record stack trace of app inside or outside(adb or something) android device.
I tried logcat, but that is not of help, it is showing only those messages which are logged. I want to see the stacktrace if u can help me with that.
Thanks in advance.
Click to expand...
Click to collapse
Android Device Monitor might be of help to you. It can be found under tools of the Android SDK.
The best practice is to decompile APK and do some reverse engineering.
There are even tools that can generate java sources from smali for better readability.
E.g., take a look at Virtuous Ten Studio. It's a tool that makes reverse engineering process a lot more easier.

[Q]How to resolved hidden class ItemInfo in xposed module development, thanks!

[Q]How to resolved hidden class ItemInfo in xposed module development, thanks!
I want to develop an xposed module to hide some shortcut in the launcher workspace,
but i can't resolve the hidden class ItemInfo, because i need remove specific item from ArrayList<ItemInfo>,
how to deal with it, thanks!
You can cast it to ArrayList<?>
C3C076 said:
You can cast it to ArrayList<?>
Click to expand...
Click to collapse
sure, i think i can, but how to change the single items in the ArrayList?
because i need to iterate every element in ArrayList to check if someone need to be blocked,
but the element is ItemInfo class type, so....
is there any solution to resolve it, thanks!
is there anybody has good experience on it, thanks!
If you can't use ItemInfo directly at design time simply use xposed functions on its instances to check for property values and call its methods.
E.g. you can iterate through array list and cast items to Object. Then use xposed functions on those objects like getIntField/getFloatField/... to get property or callMethod to call function.
C3C076 said:
If you can't use ItemInfo directly at design time simply use xposed functions on its instances to check for property values and call its methods.
E.g. you can iterate through array list and cast items to Object. Then use xposed functions on those objects like getIntField/getFloatField/... to get property or callMethod to call function.
Click to expand...
Click to collapse
thanks, C3C076, it's good idea, i will try

[Q] Is Java native function unhookable?

I have used NDK development techs to create a simple Android App that connects remote server using socket.
The JNI method name is "public native static void doConnect(String ip,int port,String imei);"
While my attempt to hook it results in "java.lang.NoSuchMethodError"
Is Xposed not able to hook JNI functions?
PS: If there is a function hooked, how can I get the parameters it received?
XDAchushu10 said:
I have used NDK development techs to create a simple Android App that connects remote server using socket.
The JNI method name is "public native static void doConnect(String ip,int port,String imei);"
While my attempt to hook it results in "java.lang.NoSuchMethodError"
Is Xposed not able to hook JNI functions?
PS: If there is a function hooked, how can I get the parameters it received?
Click to expand...
Click to collapse
I've read this post: http://forum.xda-developers.com/xposed/creating-nfc-module-nosuchmethoderror-t2811440
The problem is that I didn't list the paramters in "findAndHookMethod".
And that's it! It's been solved.

Categories

Resources