Packaging Xposed into a custom ROM? - Xposed General

Is this possible? Can i add Xposed framework into stock marshmallow source and build it? I know it is possible to incorporate apps into the source via packages/apps, but i assume Xposed is an entirely different animal. I am somewhat new to Android development, i did search for this question beforehand but was unable to find an answer or a thread pertaining to it.

Related

Don't use xposed with lollipop

Hi
As written in title don't use Xposed with lollipop
This is not important but recommended by me
1.I highly, highly recommends you to not use Xposed framework for Lollipop for now, as it overrides our own ART runtime files.
2.Wait for @rovo89 to come up with a better solution, or ROM developers/builders integrate Xposed support for their ROM themselves.
3.I think @rovo89 will update the Xposed Installer later to support ROMs prebuilt with Xposed in-mind.
4.And if you're using a closed-source ROM such as Touchwiz, I'll stay as far as I can with Xposed,as the ART runtime files are closed-source there.
Read this carefully only for lollipop roms!
sameer23 said:
Hi
As written in title don't use Xposed with lollipop
This is not important but recommended by me
1.I highly, highly recommends you to not use Xposed framework for Lollipop for now, as it overrides our own ART runtime files.
2.Wait for @rovo89 to come up with a better solution, or ROM developers/builders integrate Xposed support for their ROM themselves.
3.I think @rovo89 will update the Xposed Installer later to support ROMs prebuilt with Xposed in-mind.
4.And if you're using a closed-source ROM such as Touchwiz, I'll stay as far as I can with Xposed,as the ART runtime files are closed-source there.
Read this carefully only for lollipop roms!
Click to expand...
Click to collapse
Wut? :/
I installed the beta of xposed for Lp, and not all of modules already supported but I highly recommend on xposed.. Check in thread for it.. If your rom is supported, if yes, go and enjoy..
This is must be a joke.. It has to override ART files with xposed implemented codes to work. There's no other way.
sameer23 said:
Hi
As written in title don't use Xposed with lollipop
This is not important but recommended by me
1.I highly, highly recommends you to not use Xposed framework for Lollipop for now, as it overrides our own ART runtime files.
2.Wait for @rovo89 to come up with a better solution, or ROM developers/builders integrate Xposed support for their ROM themselves.
3.I think @rovo89 will update the Xposed Installer later to support ROMs prebuilt with Xposed in-mind.
4.And if you're using a closed-source ROM such as Touchwiz, I'll stay as far as I can with Xposed,as the ART runtime files are closed-source there.
Read this carefully only for lollipop roms!
Click to expand...
Click to collapse
1) Using with Dalvik is not so different, only behavior of Dalvik is changed without change the files.
2) Flash a zip or integrate the same files into a ROM is exactly the same thing.
3) What? This already works, if a developers integrate Xposed in his rom, the users can install only the Installer later.
4) We hope that Samsung didn't change those files.
sameer23 said:
Hi
As written in title don't use Xposed with lollipop
This is not important but recommended by me
1.I highly, highly recommends you to not use Xposed framework for Lollipop for now, as it overrides our own ART runtime files.
2.Wait for @rovo89 to come up with a better solution, or ROM developers/builders integrate Xposed support for their ROM themselves.
3.I think @rovo89 will update the Xposed Installer later to support ROMs prebuilt with Xposed in-mind.
4.And if you're using a closed-source ROM such as Touchwiz, I'll stay as far as I can with Xposed,as the ART runtime files are closed-source there.
Read this carefully only for lollipop roms!
Click to expand...
Click to collapse
1 to 4... Really? For whom did you intend this post? If someone doesn't know the trivia or hadn't read the OP/FAQ and still installed apk he/she/it knows nothing of -> it's their own fault. They bootlooped their samsung device even after Rovo written the red warning? They deserved it.
Everyone! I highly recommend that you don't listen to him (or me, since i too am biased) and think for yourself. If you know how to post logs and have at least basic understanding of android/java - or, at least, understand that any modification made in root may destroy your device/personal data/ whatever (Well, it's an exaggeration, but it's better to be prepared. ) - then help Rovo debug xposed for your device. If you do not - then pls, stop using xposed and posting here.
We waited for it very long time and now you said "sorry, implementation is not good"? Do not use it or create better implementation. When rovo89 had decided for that implementation, he had reasons for it (he wrote them somewhere)

Downgrade experiences

First of all, many thanks @rovo89 and the others for your impressive work!
Just wanted to share my experiences regarding my attempt to downgrade the framework version.
You might ask "why would you want to do this?" Well, on a Huawei Ascend G700 (rooted, CWM, stock ROM) the framework stopped to install properly without disabling the ressources API (starting v2.6.x, reported elsewhere many times, probably due to incompatibilities with Huawei's own theming engine?).
But disabling the ressources API in return makes exactly the most interesting modules for this device useless (there aren't any "true" custom ROMs due the missing kernel sources).
To make this short: v2.5.1 does its job still pretty well (at least for those "interesting" modules) but I've had a hard time to downgrade.
First I misunderstood the concept of the installer (that the current version is already included) and then I couldn't find any hints into the right direction (repository with previous installer versions).
So it might be a good idea to add a pointer to the FAQ (or general installation notes?) with a link to the Xposed Installer repository.
No, Im not going to ask if there will be compatible versions for the Ascend G700 in the future - but I'll definitely be interested into suggestions how to solve the problem (e.g. get the Huawei theming engine out of the way etc.)

Problems turning on phone after flashing xposed framework.

Hello.
My phone is a SM-G903F with an android version of 6.0.1 and with an architecture of armeabi-v7a.
After flashing the xposed-v76-sdk23-arm.zip into my phone using TWRP (I also tried newer versions of the xposed framework) I end up getting a blue light and the samsung logo breathing constantly in a loop.
I can flash the xposed unistaller zip using the TWRP in the recovery mode and the phone works okay. But I would like to be able to install the xposed framework and make it work.
Can anyone help me or suggest anything I can do?
Thank you very much for your time,
Enrique
Try latest v86. It should works....
Samsung devices running TouchWiz have a tendency to bootloop when installing Rovo89's version of Xposed because it is developed for AOSP/Google Edition ROM's and their respective version of ART, whereas Samsung has made several changes in 5.0/5.1 that put it's functionality and code structure somewhere between 5.0/5.1 & 6.0, Vanilla Xposed v86 will likely not solve this issue, instead try flashing arter97's Xposed v79 (or v85 if you prefer, however I have not tested that version) of Xposed for Deodexed TouchWiz ROMs running on 5.0/5.1 (API21/22). If you are running 6.0 (API23) I am fairly certain you are out of luck as I don't believe a version of Xposed for TouchWiz 6.0 exists yet.
tiaxdaun said:
Samsung devices running TouchWiz have a tendency to bootloop when installing Rovo89's version of Xposed because it is developed for AOSP/Google Edition ROM's and their respective version of ART, whereas Samsung has made several changes in 5.0/5.1 that put it's functionality and code structure somewhere between 5.0/5.1 & 6.0, Vanilla Xposed v86 will likely not solve this issue, instead try flashing arter97's Xposed v79 (or v85 if you prefer, however I have not tested that version) of Xposed for Deodexed TouchWiz ROMs running on 5.0/5.1 (API21/22). If you are running 6.0 (API23) I am fairly certain you are out of luck as I don't believe a version of Xposed for TouchWiz 6.0 exists yet.
Click to expand...
Click to collapse
Hello.
I'm going to try these solutions and I will inform here on any feedback. Thank you very much!
Enrique
Just to expand on this
Arter xPosed for 5.0.x
Wanam xPosed for 5.1 and (yes) 6.0'x so you want a deodexed ROM and wanam's build of xPosed
Nergal di Cuthah said:
Just to expand on this
Arter xPosed for 5.0.x
Wanam xPosed for 5.1 and (yes) 6.0'x so you want a deodexed ROM and wanam's build of xPosed
Click to expand...
Click to collapse
I apologize but I didn't understand your answer. I have 6.0, so I must use 'wanam's build of xPosed' but what is a 'deodexed ROM' ?
Thank you and sorry but I'm new here.
Enrique
Go to your device's board and search deodex (odex is a android function that creates executables out of app files)
Read this
http://www.addictivetips.com/mobile/what-is-odex-and-deodex-in-android-complete-guide/
It's not so important to understand the hows of it, you just need to find a ROM (there are many) that is deodexed. There are likely even a few completely stock touchwiz which have been deodexed. You should go to the XDA board for your device and should be able to find a working ROM
When a ROM is Odexed it means that a system application's cache files will be compressed in a separate odex file, so /system/priv-app/Email/Email.apk would also be accompanied by Email.odex in the same folder. The advantage of this was back when the Dalvik interpreter was used, it would speed up boot times. Deodexed on the other hand is the opposite, it stored the cache files inside an application's APK file, so Email cache would be in Email.apk/cache/com/google/android/Email.dex. Again back when the Dalvik interpreter was used this would slow down boot times significantly. However I believe that since ART became the new runtime the only time boot is slowed down is the very first one after a ROM is installed (albeit by about 15 minutes). If you aren't familiar with modifying ROMs (assuming you want to keep TouchWiz) I would recommend finding a Stock TouchWiz ROM that comes Deodexed, and pre-rooted with SuperSU already installed, make sure you backed up your data (either through google or manually) and install the Deodexed TouchWiz ROM, wait a while, as I said first boot with Deodexed ROMs are about 15 minutes slower than normal, and restore your data. After that you should be good to install Xposed for TouchWiz (beit Wanam or Arter97's is dependent on your OS version and what recovery you're using.) ?
just a question i got the same problem but i flashed my s6 with TYRANNUS ROM v28.1 and keep getting a bootloop when i try to flash xposed-v86-sdk23-arm64
Recovery is twrp-3.0.2-1-zeroflte
I did all the same like in the tutorial shown
and i dont know why can someone help me ? just want that xposed framework works and im stucking since hours of trying :/
As I mentioned before if you are running TouchWiz 5.0/5.1 you will have to use Arter97's Xposed for TouchWiz v79, API 21 if 5.0, API 22 if 5.1, Wanam Xposed for TouchWiz v79, API 23 if 6.0. ROM has to be Deodexed either way, use FlashFire version 0.24+ if flashing Arter97's Xposed, use TWRP 2.8.4.0+ if Wanam Xposed. Do keep in mind Rovo89's Xposed will not work with TouchWiz on 5.0+, you will have to use one of the above two alternatives.
tiaxdaun said:
... I would recommend finding a Stock TouchWiz ROM that comes Deodexed, and pre-rooted with SuperSU already installed ...
Click to expand...
Click to collapse
Would you have any suggestions on where I can find ROMs like that? Is there a main thread or a portal somewhere that lists all the popular ones?
And I have another side question if you don't mind me asking: The device I'm playing around with is a Canadian Galaxy S4 [SGH-I337M], does that mean the ROM I use needs to be compatible with that model specifically? Or are ROMs inconsiderate of the exact model and would work on all Galaxy S4's?
(There's also the different processor issue that depends on the S4's model; Snapdragon 600 vs. Exynos 5 Octa).
Thanks for the descriptive difference between the odexed and deodexed btw, yours is the best I've read so far
RaniKheir said:
Canadian Galaxy S4 [SGH-I337M],
Click to expand...
Click to collapse
Start here
http://forum.xda-developers.com/galaxy-s4-att
Nergal di Cuthah said:
Start here
http://forum.xda-developers.com/galaxy-s4-att
Click to expand...
Click to collapse
Hmmm, seemed a bit off at first since I see the American AT&T everywhere, but then I noticed the thread [SGH-I337M] CF-Auto-Root there and realized the I337 and I337M models are put together.
So I see ROMs under all of the following:
AT&T SAMSUNG GALAXY S 4 ANDROID DEVELOPMENT
AT&T SAMSUNG GALAXY S 4 ORIGINAL ANDROID DEVELOPMENT
SAMSUNG GALAXY S 4 UNIFIED DEVELOPMENT
Does that mean there's no main thread which keeps track of all the popular ROMs?
Also, since you linked me to that portal, does that also mean (for my second question) that the ROMs need to be designed for a specific model? It's not generic that any S4 can use any ROM designed for S4?
Thanks!
RaniKheir said:
Hmmm, seemed a bit off at first since I see the American AT&T everywhere, but then I noticed the thread [SGH-I337M] CF-Auto-Root there and realized the I337 and I337M models are put together.
So I see ROMs under all of the following:
AT&T SAMSUNG GALAXY S 4 ANDROID DEVELOPMENT
AT&T SAMSUNG GALAXY S 4 ORIGINAL ANDROID DEVELOPMENT
SAMSUNG GALAXY S 4 UNIFIED DEVELOPMENT
Does that mean there's no main thread which keeps track of all the popular ROMs?
Also, since you linked me to that portal, does that also mean (for my second question) that the ROMs need to be designed for a specific model? It's not generic that any S4 can use any ROM designed for S4?
Thanks!
Click to expand...
Click to collapse
Correct, as far as I remember the s4 was carrier dependent. My s4 for vzw was cdma only so only vzw roms/mods would have worked. Your device is GSM and Canadian GSM followed the AT&T device build (as far as I could tell). What I did was (on the XDA website) type I337 into device search and only that device shows. The name of that top board was AT&T, Canadian, Rogers thus it confirmed for me this was your phone. There is usually in one of those boards a curated index. There are dozens of ROMs, you just need to read, nobody here (worth a salt) will be able to just give you "the best" answer. You need to read, and understand what you are doing. If you do anything wrong, especially with Samsung touchwiz devices, you will void your warranty (samsungs have a hardware fuse that burns out if you Root or modify incorrectly) and could even hardbrick your phone. But if you just use search while in the forum I pointed to you should easily find what you need. (Hint, type xPosed into the searchbox on the website I should limit the search to your device's forum if you are already on the page I posted)
---------- Post added at 12:16 AM ---------- Previous post was at 12:10 AM ----------
Arrrgggg I promised myself not to spoon feed you but
http://forum.xda-developers.com/xposed/b-how-to-install-xposed-att-samsung-t3162866/post61985162
---------- Post added at 12:19 AM ---------- Previous post was at 12:16 AM ----------
And here's an index http://forum.xda-developers.com/showthread.php?t=2616221&highlight=xposed
Please though learn from this then you too can help others
---------- Post added at 12:24 AM ---------- Previous post was at 12:19 AM ----------
And I understand it's not appealing to read 450+pages on threads but just skim through threads, 99 percent of problems you'll encounter will have been previously reported and likely solved. I lurked on XDA for at least a year before I spoke and read (at least topic titles of) every topic for both the devices I've had and read/subscribed to topics for every xPosed module I use.
Ok done preaching....sorry
Nergal di Cuthah said:
Correct, as far as I remember the s4 was carrier dependent. My s4 for vzw was cdma only so only vzw roms/mods would have worked. Your device is GSM and Canadian GSM followed the AT&T device build (as far as I could tell). What I did was (on the XDA website) type I337 into device search and only that device shows. The name of that top board was AT&T, Canadian, Rogers thus it confirmed for me this was your phone. There is usually in one of those boards a curated index. There are dozens of ROMs, you just need to read, nobody here (worth a salt) will be able to just give you "the best" answer. You need to read, and understand what you are doing. If you do anything wrong, especially with Samsung touchwiz devices, you will void your warranty (samsungs have a hardware fuse that burns out if you Root or modify incorrectly) and could even hardbrick your phone. But if you just use search while in the forum I pointed to you should easily find what you need. (Hint, type xPosed into the searchbox on the website I should limit the search to your device's forum if you are already on the page I posted)
Click to expand...
Click to collapse
I'm not looking for the "best" answer, most likely there isn't one "best" ROM anyway I was just wondering if there's a portal somewhere for all the popular ones where I can browse through them, maybe with a description for each with links to the original posts.
Reading and understanding is what I've been doing, to some extent at least, if someone wants to dig into the details it could take months of testing and source code reading to understand everything that's going on under the hood
Thanks for the warnings and hints
---------- Post added at 12:42 AM ---------- Previous post was at 12:36 AM ----------
Nergal di Cuthah said:
http://forum.xda-developers.com/xposed/b-how-to-install-xposed-att-samsung-t3162866/post61985162
And here's an index http://forum.xda-developers.com/showthread.php?t=2616221&highlight=xposed
Click to expand...
Click to collapse
I've seen both of those, they're both for AT&T [I337], which have a locked bootloader. Mine is an I337M, which has an unlocked bootloader, so the steps probably differ a little
But thanks for the links! All appreciated
RaniKheir said:
Would you have any suggestions on where I can find ROMs like that? Is there a main thread or a portal somewhere that lists all the popular ones?
And I have another side question if you don't mind me asking: The device I'm playing around with is a Canadian Galaxy S4 [SGH-I337M], does that mean the ROM I use needs to be compatible with that model specifically? Or are ROMs inconsiderate of the exact model and would work on all Galaxy S4's?
(There's also the different processor issue that depends on the S4's model; Snapdragon 600 vs. Exynos 5 Octa).
Thanks for the descriptive difference between the odexed and deodexed btw, yours is the best I've read so far
Click to expand...
Click to collapse
I do indeed have a recommendation, assuming you want stock TouchWiz (newer versions are growing more like Google edition) I have the SGH-I337 and am running Albe95 ROM (the port of S6's stock 5.1 firmware), now I have a unique copy of the NB1 bootloader but for that reason this OS should also work for you, it comes with all S6 features (theme engine included, but don't change your model number from SM-G920A or you wont be able to connect), can be installed from flash fire, is Deodexed, comes pre rooted with SuperSU installed, is fully compatible with the API21 version of Arter97's Xposed, and wont delete any user data during the pre-install wipe. As a bonus its also compatible with most AOSP tweaks and root modules including Android-Nify (so you can use some Nougat features before its released, though we obviously already have multiwindow and single row quick toggles, but still ).
BTW I do believe its for both SGH-I337 and SGH-I337M, or at the very least there is a port for it, however I do believe it works on both (again, it is Stock TouchWiz so locked or unlocked bootloader doesn't matter and it expects Flash Fire rather than a custom recovery either way as well ;P).
tiaxdaun said:
I do indeed have a recommendation, assuming you want stock TouchWiz (newer versions are growing more like Google edition) I have the SGH-I337 and am running Albe95 ROM (the port of S6's stock 5.1 firmware), now I have a unique copy of the NB1 bootloader but for that reason this OS should also work for you, it comes with all S6 features (theme engine included, but don't change your model number from SM-G920A or you wont be able to connect), can be installed from flash fire, is Deodexed, comes pre rooted with SuperSU installed, is fully compatible with the API21 version of Arter97's Xposed, and wont delete any user data during the pre-install wipe. As a bonus its also compatible with most AOSP tweaks and root modules including Android-Nify (so you can use some Nougat features before its released, though we obviously already have multiwindow and single row quick toggles, but still ).
BTW I do believe its for both SGH-I337 and SGH-I337M, or at the very least there is a port for it, however I do believe it works on both (again, it is Stock TouchWiz so locked or unlocked bootloader doesn't matter and it expects Flash Fire rather than a custom recovery either way as well ;P).
Click to expand...
Click to collapse
Albe95 sounds really good! Will give it a try, thanks
I have never used or read much on Flash Fire, so that will probably be another whole day of experimenting and hoping my device doesn't brick lol. Will make a nandroid backup and give it a shot, thanks again!

How to convert a module code into usable code for Roms?

Hi
I hope it's ok to ask this question since almost all xposed modules are open sourced and free, not paid. I am not talking here about the paid ones or donate versions.
There are few very good guides available to make xposed modules if someone has some moderate coding skills but not for the reverse.
Since there is no xposed available for Nougat even though the dev is doing his best, I want to port some features directly injected into the source code.
I want to know if it's a possibility to do that or are these modifications can only be done at run time with a modified framework like xposed?
Of course it'll all happen if the dev of that xposed module allows that, but I want to know the possibility of it.
Is there such guide available or any suggestions?
Searching didn't provide any results as they are all abt making them, not reverting them into such code that can be used in a rom.
One example of such modules is "disabling headset loud volume notification".
Sent from my "1+2" powered by Official RR 7.x.x
Compiled by myself

Official Xposed Framework for Android Nougat is Here – Download your Favorite Modul

As the Android ecosystem has matured over the years, fewer and fewer users find reasons why they should root their device. There’s a growing trend of users choosing to stay on the stock firmware, either because they find the experience satisfactory or don’t want to play a cat-and-mouse game with Google’s SafetyNet API. But if you asked a user back in early 2016 why they rooted their phones, perhaps the number one reason that was given was so they could install the Xposed Framework. It’s been over a year since Android 7.0 Nougat was first released, but the long wait is finally over: official Xposed Framework for Android Nougat is finally available.
Why install the Xposed Framework?
Want to get custom ROM features without flashing a custom ROM? The mother of all Xposed Modules for tweaking your ROM, known as GravityBox, has you covered. Want to customize display settings on a per-app basis? Try App Settings. How about customizing certain applications like Hangouts? Or modifying Instagram so you can download whatever posts you like?
posed gives developers the ability to modify pretty much whatever they want—mostly aimed at individual applications but even system-wide features can be modified. The examples we listed is just the tip of the iceberg. The number of additional features you can add or apps you can modify is incredible—just search through the official Xposed Module repository to see for yourself. Keep in mind that some modules might need to be updated for this new release and for Nougat support, so be sure to check before installing them on your Nougat ROM!
How do Xposed Modules work?
The gist of it is that the Xposed Framework allows modules to “hook” into the Java methods of any application—be it user-installed or a system application. Xposed lets modules execute their own methods before, during, or in place of the original methods of the target application.
For instance, imagine a method used in the Gmail application that posts notifications for new emails. By default, the method creates a new notification with buttons to archive/delete or reply to the email. A Xposed Module could be made to hook into this method and add a new button such as “mark as read.” (Yes, there’s already a Module for just that.)
The above is an over-simplification of the end result of what the Xposed Framework allows its modules to do. The Framework itself is incredibly complex and making it work nearly universally on rooted devices—without needing a custom ROM—is why Xposed for Android Nougat has taken so long to complete. *install at your own risk, I'm not responsible for anything you do to your device.
Source link:
XDA
https://www.xda-developers.com/official-xposed-framework-android-nougat/
https://forum.xda-developers.com/showthread.php?t=3034811
Xposed
http://repo.xposed.info/
Installation:
Download the xposed zip file and flash it in recovery (framework files)
Now install the xposed apk
Reboot mobile
*dont open the app before installing the zip
Download link:
xposed-v88.2-sdk24-arm64.zip (7.0)
http://dl-xda.xposed.info/framework/sdk24/arm64/
xposed-v88.2-sdk25-arm64.zip (7.1)
http://dl-xda.xposed.info/framework/sdk25/arm64/
Xposed 3.1.4.apk
https://forum.xda-developers.com/attachment.php?attachmentid=4319220&d=1509453299
Download any module of your choice
http://repo.xposed.info/module-overview
What's the point of this thread? Is it just to get a few likes? Xposed is well known and people should refer to the original Xposed thread.
Besides your instructions are wrong.. and please be careful of which framework you use.. on stock it is sdk24 on other customers roms it depends on the Android version.
spunxhoe said:
What's the point of this thread? Is it just to get a few likes? Xposed is well known and people should refer to the original Xposed thread.
Besides your instructions are wrong.. and please be careful of which framework you use.. on stock it is sdk24 on other customers roms it depends on the Android version.
Click to expand...
Click to collapse
I use what I want, you don't want to take care about me and this thread., head to the source link to read the full thread that's all.

Categories

Resources