Dear @rovo89,
What if add version name and code in log file when modules are loading?
Loading Xposed v54 (for Zygote)...
Running ROM 'KOT49H release-keys' with fingerprint 'htc/htc_europe/m7cdug:4.4.2/KOT49H/342802.6:user/release-keys'
Loading modules from /data/app/kz.virtex.htc.tweaker-1.apk
Loading class kz.virtex.htc.tweaker.XMain
Name: 8.5.13, Code: 256
Loading modules from /data/app/com.sensetoolbox.six-1.apk
Loading class com.sensetoolbox.six.mods.XMain
Name: 1.0.7, Code: 15
Very useful when receiving logs from users and during development when module crashes system.
A good idea, but the problem is that the package manager service isn't running at that time. So this information would have to be parsed out of the AndroidManifest.xml manually. There is a PackageParser class, but it's quite complex. It could be considered, but it would have to be carefully tested to avoid unwanted side-effects. Keep in mind that this code runs before Android begins to start, and from past experiences I know that some classes on some ROMs should better not be used that early. Not sure if this would also be the case for PackageParser or its dependencies.
Could it not be stored by the Xposed Installer? Basically, instead of saving the module's name on each line in modules.list (IIRC), it'd put the name, version name and code separated by e.g. commas.
That would be an option. Not 100% reliable, but unless something goes really wrong (e.g. someone replaces the APK directly), it should be fine.
This topic and your suggestion goes a bit into the direction of a suggestion @M66B made - storing the start class name in the manifest instead of assets/xposed_init.
This doesn't really solve the problem but I think I'll share
For one if my mods I provided a report error button
The button creates a log by getting the Xposed Log and appending version
Number etc and saving to SD card
So users can easily get logs AND I can easily sove problems
Hi,
I have an apk which is heavily obfuscated using Dexguard and the class and method names are in the following format -
o.ᵋ
o.ᵎ
o.ᵔ
o.ᵗ
o.ᵢ
I tried hooking these classes/method names using xposed framework, but the framework throws an error - 'cannot find the method/class name' . How do i go analyzing such apk using xposed framework?
Please help!
Hi, XDA community. I'm currently doing a project where the raspberry pi3 sends the data to firebase and retrieve the data from mobile phones. According to network source, there isn't any fixable solution yet. I've find the file of install is to python2.7 and my compiler is python3.5 . I've also tried to install firebase_admin but all installation file can be find in python2.7 not python3.5 . So, when I import the firebase library it appears no module name 'firebase' was found. try to change the permission and move the file and it's not allow to do so. Is there any workaround to fix this issue? Thanks in advanced.
Hello!
I'm currently playing around with Java and Xposed development and I have created a simple Android app that creates a .txt file in a folder.
What I would like to do is create a Xposed module that can automatically detect when I create said .txt file, I have 2 ideas on how I could achieve that but I'm not sure what might be the best:
Idea #1:
Create some sort of background service that will always be runnning and check if there are any or new files in said folder or maybe use the FileObserver method.
Idea #2:
Hook into the app and run a function inside my Xposed module that checks with regular interval if there are any files in the folder.
I have never really done any Java or Xposed development before so all this is quite new, but I would love to know what would be the best aproach or if anyone has some better suggestions!
Thank you all!
I don't see a xposed requirement here. File change observation is easily done by automation apps like Tasker(event->file->file modified), doesn't need xposed for it. Xposed framework better used for modifications to system or apps.
As per second requirement of performing user actions on a app, you can use Xposed edge(xposed plugin) inject gestures / AutoInput(tasker plugin)
Hi, since XSharedPreferences is no longer a viable way to share data between XPosed module and another application, how would one accomplish such task? I need to have several string/int values saved in a configuration file that my XPosed module must read in its handleLoadPackage() method. RemotePreferences package is also not working above Android 11 as far as I know. How can it be done?
Use XSharedPreferences via edxposed / lsposed. It works. For any other API/xposed there is MultiprocessPreferences. I've wrote a wrapper to use both simultaniously