Xposed - Legacy thread. Don't panic, Xposed is still here.

Status
Not open for further replies.
Search This thread

ryebread761

Senior Member
Aug 12, 2013
75
106
You placed the hooks only for the system resources, is that what you intended? I think only the system itself uses these resources. If you want to hook them for the whole system, use XResources.setSystemWideReplacements() etc. in initZygote().

However, you can't apply styles from your package. R.style.Toast is just an integer constant. The value means nothing (or something completely different) in the context where the code is executed. You can't replace styles either, but you could simply use toast.setTypeface() in your code.

Thanks for the help.

Not sure if you'd know why the drawables aren't appearing correctly though?

IMG_20131129_233225.jpg


Any help would be appreciated, font is still not being called correctly but I really just care about the background. All resources are ripped straight from CM 10.2 so I don't really understand why they don't work just fine.
 
D

Deleted member 2943498

Guest
hello! after installation xprivace and open it, i get the message "xprivacy is not enabled in the xposed installer" but xprivacy is enabled. i found an older post with this problem but no solution.

my nexus 4 have stock rom 4.4 is rooted with superSU and TWRP recovery. xposed installer version is 2.3.1, xprivacy version is 1.10.31. can someone help me and if yes what more infos you need? thanks!
Read the op.
Hint: 2.3.1 is not the right version for kitkat
 

davidwyl

Senior Member
Dec 19, 2009
206
35
It doesn't choose. Whichever one loads last overrides the previous; however, if an option is not enabled, it gets ignored... or so I believe. There's also no harm in enabling the same option in both.

SGS2 - JB 4.1.2 GB27
SGS4 - JB 4.2.2 MF9

does it has any rules which one load last?
install/enable last will get loaded last??
 

EzZn0

Senior Member
Sep 21, 2010
65
5
I am having some serious issues with bootloops, this if my 5th on 3 days and I suspect that it might have to do something with xposed. The only problem I have is when I get one I have to format /data and I believe its where xposed is keeping its logs? I am now using ADB on a windows machine and I have not yet formatted /data. How do I pull the logs with ADB? I have tried "adb logcat.txt /C:\ but that doesn't work.. Maybe I have usb debugging deactivated... I can't see the logs if I try adb -s Xposed aswell.
 
Last edited:

rovo89

Senior Recognized Developer
Jan 4, 2012
2,585
81,434
I can install Carbon ROM or AOKP and test if you want, but last time I tried with all my apps the SysteUI startup delay still happened even without Xposed but was way shorter (a few seconds), cause of that I moved to AOSP+ till now, but that didn't get updated so I switched to SlimBean now till we get android 4.4, then I'll go back to pure AOSP/AOSP+ (if it gets updated), cause of your framework I could give up "AOSP custom roms" like AOKP and Carbon for roms as close to pure AOSP as possible. Anyway tell me if you want me to test AOKP or Carbon, but it will take me a whole night to restore all my apps with titanium after I flash?

I don't want to steal your time and it's not urgent. If you have the time though, I would appreciate if you could compare the boot times between Xposed 2.3.1, 2.4 and without Xposed.

Someone I know currently has a Galaxy S4 complete stock with 4.3. He has knox on his phone.

Let's say I root his phone with the method that does not trip the knox counter (rooted with knox 0x0). If I install the Xposed framework and the modules, will it trip the knox counter?
I don't know how Knox is implemented and what it looks for, so I can't give an answer to that, sorry.

It doesn't choose. Whichever one loads last overrides the previous; however, if an option is not enabled, it gets ignored... or so I believe. There's also no harm in enabling the same option in both.
Well, kind of, but I really wouldn't recommend enabled the same option in both modules. As you said, both modules will be executed. They might achieve this feature in different ways or they might hook the same method. In the latter case, the modules are called one after another in a rather random order. Sometimes this will work just fine, but if for example both try to remove a view, the second one won't find it anymore and might not handle this very well.

This is why developers of tweak collections should give you the possibility to disable the tweaks individually and don't even attempt to do anything if you disabled it. It's all up to the modules' good behavior, Xposed couldn't handle this even if it wanted to. And relying on a certain order is not good behavior.

@rovo89, I am not sure is this error is Materdualfix's or Xposed's. Please check.


Code:
-----------------
30 Nov 2013 05:39:15 UTC
Loading Xposed v41 (for Zygote)...
Loading modules from /data/app/com.dr8.sbicons.sgs-1.apk
  Loading class com.dr8.sbicons.sgs.mod.StatusBarMods
Loading modules from /data/app/com.oasisfeng.greenify-2.apk
  Loading class com.oasisfeng.greenify.pro.FrameworkPatch
Loading modules from /data/app/ma.wanam.youtubeadaway-2.apk
  Loading class ma.wanam.youtubeadaway.module.Xposed
Loading modules from /data/app/tungstwenty.xposed.masterkeydualfix-1.apk
  Loading class tungstwenty.xposed.masterkeydualfix.XposedMod
java.lang.IllegalStateException: Cannot broadcast before boot completed
at com.android.server.am.ActivityManagerService.verifyBroadcastLocked(ActivityManagerService.java:13982)
at com.android.server.am.ActivityManagerService.broadcastIntent(ActivityManagerService.java:14000)
at de.robv.android.xposed.XposedBridge.invokeOriginalMethodNative(Native Method)
at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:547)
at com.android.server.am.ActivityManagerService.broadcastIntent(Native Method)
at com.oasisfeng.greenify.pro.i.a(SourceFile:33)
at com.oasisfeng.greenify.pro.a.r.a(SourceFile:58)
at com.oasisfeng.b.a.afterHookedMethod(SourceFile:27)
at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:561)
at com.android.server.am.ActivityManagerService.startProcessLocked(Native Method)
at com.android.server.am.BroadcastQueue.processNextBroadcast(BroadcastQueue.java:777)
at com.android.server.am.BroadcastQueue$1.handleMessage(BroadcastQueue.java:129)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at com.android.server.am.ActivityManagerService$AThread.run(ActivityManagerService.java:1557)
-----------------[/HIDE]


Have a look at the trace, it clearly happens in a module hooked by Greenify. That should be the first contact.

Not sure if you'd know why the drawables aren't appearing correctly though?
No idea. Maybe check if there are other drawables or layouts needed for this, especially for the shadows?

I am having some serious issues with bootloops, this if my 5th on 3 days and I suspect that it might have to do something with xposed. The only problem I have is when I get one I have to format /data and I believe its where xposed is keeping its logs? I am now using ADB on a windows machine and I have not yet formatted /data. How do I pull the logs with ADB? I have tried "adb logcat.txt /C:\ but that doesn't work.. Maybe I have usb debugging deactivated... I can't see the logs if I try adb -s Xposed aswell.

try "adb logcat -d > logcat.txt" while you are in the boot loop.
 

rovo89

Senior Recognized Developer
Jan 4, 2012
2,585
81,434
Xposed 2.4 final

This is Xposed version 2.4. The main new features and fixes in this version are:
  • Support for Android 4.4 (KitKat) in Dalvik mode (ART is not supported, see below)
  • Significant performance improvements of the framework
  • Viewer for the debug.log in the installer
  • Check in the installer whether Xposed is actually active and working

First of all, I would like to thank the 45 people who donated to get me a Nexus 5, from a little "thanks" to huge amounts of money. I was really impressed and hope you like this update.

In detail:
Xposed should now fully support KitKat. As mentioned, that wouldn't have been possible at this time without your support.
Modules should continue to work if they don't rely on AOSP internals that have changed in KitKat. One example: It seems that the battery icon is no longer an (animated) image, but a Java implementation. Obviously, any modules that try to replace the battery image will no longer work. The Xposed framework can't do anything here, the module needs to be rewritten. Therefore, if some of your modules don't work, please get in contact with the module author first. You will probably see an error in the new debug.log viewer in this case.
Xposed isn't compatible with ART, I can't say yet whether it will be in the future (will require a major rewrite if possible at all). As you would get into a bootloop if you try to combine Xposed+ART, Xposed automatically resets the choice to "Dalvik". If you want to test ART, you must uninstall the framework.

The performance improvements apply to the very core of Xposed, the method hooks, in all Android versions. In a test app developed by @exidler, the overhead per call used to be ~71 μs (= 0.071 ms) per call to a hooked method (with one empty callback handler) on my Galaxy S2. Now it's ~13 μs (= 0.013 ms). That's a relative improvement of factor ~5.5x. Thanks to @exidler for the research and several suggestions! I have sent a pre-beta to @kamso, who had reported lags with older versions. Now everything works fine for him. Anyway, I wouldn't say that Xposed had bad performance before. Keep in mind that we are talking about significantly less than a millisecond here.

The debug.log viewer should give a quick impression whether Xposed and modules could be loaded fine. It also includes options to save the log to SD card (so it's easier to transfer it to a PC etc.) and send it via mail.

The Xposed Installer now checks whether the latest version of the framework is active. If not (e.g. because it's not installed yet, you forgot to reboot or something in Xposed doesn't work), you will see a warning in the welcome screen and at the top of the module list.

Finally, there were some other minor improvements and fixes and new/updated translations.


Developers:
As a reminder, please keep the debug.log clean. It's only helpful if it's not as spammed as logcat. You should only use XposedBridge.log() for error messages and other unexpected situations. If everything runs fine, it shouldn't write anything to the log. If you really need to keep some logging in published builds, please use either logcat or make it an opt-in options (i.e. disabled by default and the user enables it if he runs into problems).

Apart from that, there was a little API change: https://github.com/rovo89/XposedBridge/commit/3c18f6f6bd4e0ec57898b3b3a79b5584d0396054
I assume that very few modules use the "extra" field to transfer information between beforeHookedMethod() and afterHookedMethod(). If you do, simply replace it by getExtra().

Layout inflation hooks now also work if the layout has been included in other layouts. That's actually a pretty tricky use-case for the "extra" parameter mentioned about (and other tricky technologies).

If for some reason you need to determine the active XposedBridge version in your module, you can use XposedBridge.XPOSED_BRIDGE_VERSION.

findMethodBestMatch() now also looks for protected and package-private methods in superclasses. That's mainly useful if you use the callMethod() or callStaticMethod() helper.

There is a new findFirstFieldByExactType() helper, which might be useful if you target an app protected with Proguard and know that there is just one field with that specific type. Don't use it because of laziness.
 

fajarep

Senior Member
Jan 16, 2010
457
462
Jakarta
i just want a quick question...
is possible to make:

resparam.res.setReplacement("com.package", "drawable", "pngs", xxxxx);

where xxxxx point to an image in external sd card?

thanks
 

CoolApps

Senior Member
May 12, 2011
3,386
611
@rovo89 Thanks for this awesome update. :D
Will it be still safe to update the framework to 2.4 even on Android 4.3?

Sent from my Nexus 4 using Tapatalk
 

rovo89

Senior Recognized Developer
Jan 4, 2012
2,585
81,434
i just want a quick question...
is possible to make:

resparam.res.setReplacement("com.package", "drawable", "pngs", xxxxx);

where xxxxx point to an image in external sd card?

thanks

Not exactly with that syntax, you need to implement a DrawableLoader:
https://github.com/rovo89/XposedBridge/wiki/Replacing-resources

Will it be still safe to update the framework to 2.4 even on Android 4.3?

Yes, Xposed is still compatible down to Android 4.0.3.
 

ICuaI

Senior Member
Apr 27, 2013
428
136
After updating to 2.4 my phone didn't boot anymore. Had to restore a backup.
I'm on modded stock 4.1.2

via Razr I & Tapatalk 4
 

lukair1983

Senior Member
Jan 14, 2012
220
38
Hey guys. Need a little help here with knoledge.

Is any of you aware of any way to make the volume rocker to control ONLY media volume at all times? I never change ringer or notification volumes, only media volume, and I hate that I need to (first) change the ringer volume if I accidently lower it, and (second) I have to play music first to start controling the media volume with a rocker.

Any solution for that? To be perfectly clear, I'm not looking for any widget, or app that will help me set those volumes. I'm interested only in this in connection with volume rocker.

It goes without a saying, that I still want a full control of other volumes (notification, ringer), but not with a rocker, only with a system app (settings), or external app.
 

rovo89

Senior Recognized Developer
Jan 4, 2012
2,585
81,434
Hey guys. Need a little help here with knoledge.

Is any of you aware of any way to make the volume rocker to control ONLY media volume at all times? I never change ringer or notification volumes, only media volume, and I hate that I need to (first) change the ringer volume if I accidently lower it, and (second) I have to play music first to start controling the media volume with a rocker.

Any solution for that? To be perfectly clear, I'm not looking for any widget, or app that will help me set those volumes. I'm interested only in this in connection with volume rocker.

It goes without a saying, that I still want a full control of other volumes (notification, ringer), but not with a rocker, only with a system app (settings), or external app.

As mentioned in big letters in the first post, module requests go to this thread please: http://xdaforums.com/showthread.php?t=2327541
 
  • Like
Reactions: somberi
Hey guys. Need a little help here with knoledge.

Is any of you aware of any way to make the volume rocker to control ONLY media volume at all times? I never change ringer or notification volumes, only media volume, and I hate that I need to (first) change the ringer volume if I accidently lower it, and (second) I have to play music first to start controling the media volume with a rocker.

Any solution for that? To be perfectly clear, I'm not looking for any widget, or app that will help me set those volumes. I'm interested only in this in connection with volume rocker.

It goes without a saying, that I still want a full control of other volumes (notification, ringer), but not with a rocker, only with a system app (settings), or external app.

That should be something you can configure in the sound settings of the ROM itself without the need for anything else.
 
Status
Not open for further replies.

Top Liked Posts

  • There are no posts matching your filters.
  • 638
    Xposed 2.4 beta1/beta2

    This is Xposed version 2.4 beta1. The main new features and fixes in this version are:
    • Support for Android 4.4 (KitKat)
    • Significant performance improvements of the framework
    • Viewer for the debug.log in the installer
    • Check in the installer whether Xposed is actually active and working

    First of all, I would like to thank the 45 people who donated to get me a Nexus 5, from a little "thanks" to huge amounts of money. I was really impressed and hope you like this update.

    In detail:
    Xposed should now fully support KitKat. As mentioned, that wouldn't have been possible at this time without your support.
    Modules should continue to work if they don't rely on AOSP internals that have changed in KitKat. One example: It seems that the battery icon is no longer an (animated) image, but a Java implementation. Obviously, any modules that try to replace the battery image will no longer work. The Xposed framework can't do anything here, the module needs to be rewritten. Therefore, if some of your modules don't work, please get in contact with the module author first. You will probably see an error in the new debug.log viewer in this case.
    Xposed isn't compatible with ART, I can't say yet whether it will be in the future (will require a major rewrite if possible at all). As you would get into a bootloop if you try to combine Xposed+ART, Xposed automatically resets the choice to "Dalvik". If you want to test ART, you must uninstall the framework.

    The performance improvements apply to the very core of Xposed, the method hooks, in all Android versions. In a test app developed by @exidler, the overhead per call used to be ~71 μs (= 0.071 ms) per call to a hooked method (with one empty callback handler) on my Galaxy S2. Now it's ~13 μs (= 0.013 ms). That's a relative improvement of factor ~5.5x. Thanks to @exidler for the research and several suggestions! I have sent a pre-beta to @kamso, who had reported lags with older versions. Now everything works fine for him. Anyway, I wouldn't say that Xposed had bad performance before. Keep in mind that we are talking about significantly less than a millisecond here.

    The debug.log viewer should give a quick impression whether Xposed and modules could be loaded fine. It also includes options to save the log to SD card (so it's easier to transfer it to a PC etc.) and send it via mail.

    The Xposed Installer now checks whether the latest version of the framework is active. If not (e.g. because it's not installed yet, you forgot to reboot or something in Xposed doesn't work), you will see a warning in the welcome screen and at the top of the module list.

    Finally, there were some other minor improvements and fixes and new/updated translations.


    Developers:
    As a reminder, please keep the debug.log clean. It's only helpful if it's not as spammed as logcat. You should only use XposedBridge.log() for error messages and other unexpected situations. If everything runs fine, it shouldn't write anything to the log. If you really need to keep some logging in published builds, please use either logcat or make it an opt-in options (i.e. disabled by default and the user enables it if he runs into problems).

    Apart from that, there was a little API change: https://github.com/rovo89/XposedBridge/commit/3c18f6f6bd4e0ec57898b3b3a79b5584d0396054
    I assume that very few modules use the "extra" field to transfer information between beforeHookedMethod() and afterHookedMethod(). If you do, simply replace it by getExtra().

    Layout inflation hooks now also work if the layout has been included in other layouts. That's actually a pretty tricky use-case for the "extra" parameter mentioned about (and other tricky technologies).

    If for some reason you need to determine the active XposedBridge version in your module, you can use XposedBridge.XPOSED_BRIDGE_VERSION.

    findMethodBestMatch() now also looks for protected and package-private methods in superclasses. That's mainly useful if you use the callMethod() or callStaticMethod() helper.

    UPDATE: (beta2)
    The new beta should fix the "read-only filesystem" errors. If you used to experience them, please try this version. Otherwise, there is no need (and no advantage) to update.

    UPDATE:
    The final version is out, please use it instead (see first post / in-app installer).
    479
    The ART of patience

    Regarding ART possibly becoming the default runtime engine: I think that's good news because it means that we will get a stable version of ART then. I'm reluctant to work further on ART support at the moment for mainly three reasons:

    1. Time. I used to spend every evening and every weekend for Xposed, either to give support here (often answering the same questions again and again), writing code or researching about bugs or new ideas. As you may have noticed, there are now days or even weeks where I don't even log on to XDA, and I'm actually glad about this.

    2. Experimental software is bound to contain bugs, even severe ones. There is a reason why Google didn't make this choice available for the typical user (and keep in mind, we are not typical users). I neither want people to blame Xposed if their phone starts acting up nor do I want to hunt bugs which are caused by a runtime engine that is explicitely labelled as not finished yet.

    3. As long as ART is experimental, it's much easier to make big changes to the code. Once a final version is out and used by the masses, quality engineers we be much more careful not to break things. That means that Xposed for ART on 4.5 (or whatever it will be called) might need to be completely different than for ART on 4.4. More variants means more time for maintenance. And I don't feel like pushing something out now just to drop support again in a later version. There is not enough benefit of using ART at the moment to justify that.

    You know, I had already worked on ART support and spent several dozens of hours reading the code, looking for ways to hijack it, implementing my ideas, doing trial and error and starting again from the beginning. I finally had my Nexus 5 boot with Xposed in early December and quickly tested the App Settings module. I'm happy about that, but I also know that this was just a very experimental version, less ready than ART itself. It is totally hacked together and only tested with the stock ROM. ART is quite complex and has several different modes. It's not worth giving the current development to someone else before I have tested these things on my phone, where I can debug much better than instructing someone else to do it. It also requires rewriting app_process to be a light executable again, which loads either the Dalvik or ART Xposed library, depending on your settings. That would require changes in the installer as well, etc. etc.

    So you see, there is still lots of work to do. At the moment, I'm not actively working on it, but trying to get some other things fixed (e.g. LG ROMs) or improved (installation via recovery, better installation feedback in case root access failed, static Busybox package). And as I said, I do have other things in my life as well. It's not about money, that's what I have my full-time job for. I work on Xposed for fun (and maybe a bit for the reputation ;)), so the best way to ensure that I keep on working on it is not taking away the fun part of it. Don't pressure me like it was my duty to implement something ASAP (!!!), be patient even if it takes a bit longer until I answer and join the volunteers who help answering basic questions here so I don't have to. Thanks!
    317
    General information on Xposed has been moved to this thread: http://xdaforums.com/xposed/xposed-installer-versions-changelog-t2714053
    The FAQ has been moved to this thread: http://xdaforums.com/xposed/-t2735540
    Questions, suggestions, bug reports and so on can be posted in the Xposed General forum (for the installer/framework/development only) and in the Xposed Framework modules forum (for anything module-related).
    222
    Xposed Framework Installer (Flashable Zip)

    Announcement: Xposed Framework v2.5+ comes with an option to flash its own install zip via recovery, making my package obsolete. I'll leave them up for posterity; could be useful should the need arise for downgrading on some devices. Cheers all! 10000 downloads is pretty cool. :)

    Xposed Framework v2.2+ has fixed JB4.3 installation and v2.4+ has added support for KK4.4, but for those that still want it, or cannot install via the APK due to /system write protection like HTC's S-ON, here is an updated zip frontend method for installing the framework; now for Xposed Framework v2.4.1.

    You MUST have the Xposed Installer APK installed FIRST. The zip will detect if you do not and stop.

    Flash this in recovery and my frontend script (the update-binary) will detect the correct architecture and SDK version to use the appropriate Xposed app_process and busybox builds (x86, armv5, v6 and v7 & sdk 15 and 16+ supported), and should detect the uid of the Xposed Installer APK on-the-fly and set up the required files with it.

    It leaves a log behind in /data/local/tmp/xposed-log.txt either way with more details about how it went. :cool:

    It also unpacks Xposed-Disabler-Recovery.zip to /sdcard/ (or /sdcard/0/ if it exists) to be as close to the APK install method as possible. For those wanting another method to reactivate after a ROM update or toggle Xposed disabled/enabled, @amishxda has also created a cool "Xposed toggler" zip here.

    Note: Xposed Framework files and the install.sh used are the work of @rovo89 and @Tungstwenty; I have only created a recovery flashable zip to function as an alternative frontend for the framework installation process. I take no credit for their fantastic work.


    P.S. If you found this handy then please check out my Odds and Ends thread for more flashable goodness. :D

    5351 downloads of v2.1.4 when removed. 1049 downloads of v2.2 when removed.
    193
    Xposed 2.5 final

    This is Xposed version 2.5 (final). The main new features and fixes in this version are:
    • Rewritten framework installation/uninstallation
      • Uses interactive su (via libsuperuser) to provide improved compatibility with different Superuser apps
      • Better feedback when root access fails (doesn't freeze the app anymore)
      • Offers installation via custom recovery (CWM/TWRP), either flashing the file automatically or manually
    • Safemode to disable Xposed with hardware keys to get out of (most) bootloops
    • Compatibility with Sony/LG ROMs (4.3 and 4.4), Meizu ROMs (4.4)
    • Debug setting to disable resource hooking as a temporary workaround for incompatibilities with some theming engines (not all modules can be used in this mode)
    There are also other improvements and fixes, especially many translations updates.
    In case you get a message "Segmentation fault" during installation, you can now download an additional app which provides statically compiled versions of BusyBox (a lot bigger, but should work with every ROM). It's not needed otherwise.

    Quick explanation of the safemode: It was developed by @Tungstwenty and makes it possible to disable Xposed by repeatedly pressing one of the hardware buttons during early startup. The phone will vibrate twice when the first key press has been detected. Then you have five seconds to press the same button four more times. Each key press will be confirmed with a short vibration; the final one with a long vibration. It creates /data/data/de.robv.android.xposed.installer/conf/disabled, which prevents most of Xposed's actions (e.g. no hooks are made and no modules are loaded). There's no 100% guarantee that this will get you out of a bootloop, but in most cases it should.

    As always, you can download it via the in-app updater or from http://dl.xposed.info/latest.apk.