Does this require root access?
Yes, because it replaces a file in /system/bin. Once the framework is installed, it should work without root access.
For which devices/ROMs does it work?
I develop the
Xposed framework based on the AOSP sources. I'm personally using CM10.1 on an I9100 (Samsung Galaxy S2, bought in Germany). Basically, it should work on any phone which with a ROM based on
Android 4.0 or later and an
ARM processor (this is the processor architecture, most smart phones and tablets have one). Exceptions might be ROMs which are different from the original Android code in some very internal, central code parts (which don't need to be touched for most theming and enhancement modifications). Examples are Miui-based ROMs (see known incompatibilities below). But this is related to the ROM, not the phone itself.
The
modules target higher-level code, so they are more likely to be incompatible with your ROM. Basically, the question is whether the methods and resources which the module modifies are similar on your ROM and on the developer's ROM. Let's say a module needs to modify the result of a certain method call. For this, it needs to specify the exact name and parameters that identify that method. If the in your ROM, an additional parameter has been added, the module can't find the method anymore and won't work. If the method can still be found, it will probably work (unless the rest of the app/ROM has changed too much).
There is not definite answer whether it will work. Just try it (of course, making a nandroid backup before is never a bad idea). If it doesn't work, just disable the module. You might want to inform the module developer (not me!) about this fact and provide details (e.g. a logcat and/or the content of /data/xposed/debug.log).
What about Gingerbread? Or any other Android version before 4.0.3?
I haven't looked into it. The concept in general should work there as well, but it will probably need many adoptions which I don't have time for. Therefore, I will decline requests for downports.
Are there known incompatibilities?
Yes, Xposed conflicts with
Miui-based ROMs. This is because both modify the same parts of the ROM. This currently leads to boot loops, so don't install it. In the future, the installation of Xposed on those ROMs might be prevented automatically or Xposed could deactivate its feature to replace resources (which would prevent some modules from working). Some posts about this are starting
here.
Apart from that, obviously it won't work if the conditions mention above aren't met, e.g. if your phone isn't rooted, is running on a pre-ICS ROM or has an x86 processor.
How can I install it?
See the first post. The framework installation needs to be done only once (and on updates), then it can be used for any modules.
Isn't this insecure?
In a way, yes. With great power comes great risk. On the other hand, other ways of modifying your phone are also open to malicious coding. For more details see
this post.
Why do I have to enable a module after installing it? Couldn't you skip this additional step?
This is for security reasons (see the question above). By making you confirm that you want to use a module, apps cannot contain hidden Xposed modules. The same could be done with an additional permission, but I'm not sure if everyone would recognize that and it is harder to implement. As a bonus, this toggle allows you to temporarily disable a modification or to ship an app that contains an optional Xposed module.
How do I develop my own modification using the Xposed framework?
First make sure that Xposed is working fine for you. Then read this extensive
tutorial.
Can I include Xposed in my ROM?
First of all: One reason why I developed Xposed was to avoid the need to flash anything just for a few small changes. So Xposed is designed to work on top of ROMs, not as a part of them.
That said, I don't forbid you to include it. Here are the conditions:
- I won't support you in the process of including it. You'll have to figure out the best way to do it yourself. The easiest way (which will also cause the least problems) is probably to simply put the installer and the modules into /system/app, then your users just need to click the "install/update" button, activate the modules they want and reboot.
There might be ways to really pre-install Xposed so that it's working out of the box, but I don't recommend that. You have to be very careful about file permissions, so there is a good chance it won't work. Again, absolutely no support for this.
- I won't support your users with problems which might have been caused by using the included version instead of installing it normally.
- When your users report problems which are probably not related to including Xposed in the ROM, please try to give them some support yourself. If you can't find a solution, send them to the correct help thread. For example, this thread is only for the framework. Not for any modules, not even my own.
- I expect you to include the latest versions, which are usually the ones working best. I won't support older versions.
- Your users must be able to update to the latest version, preferably without installing a new version of your ROM. Again, I won't support older versions.
- From the previous point, it follows that you need to include the original APKs, otherwise updating is not possible due to a certificate mismatch. This also avoids confusion, like users wanting support for any modifications you might have made.
- You probably want to include some modules. There are many modules that are not written by myself. Therefore, you need to get permission from the module authors as well. For modules written by myself, the same conditions which you are just reading apply.
- Please give proper credit (which includes a link to this thread for the framework). Don't sell it as your own work.
You might have the impression now that I'm not a big fan of including Xposed in a ROM. This impression is correct. It's not too hard to install Xposed and any attempts to pre-install Xposed will just cause additonal support requests.
Why don't you just recommend Xposed in your ROM thread, along with the place where they can download it (this thread) and some instructions how to get the most out of it for your ROM? Give your users some choice!