How to convert a module code into usable code for Roms? - Xposed General

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

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.)

Differences between CM 12.1 and SlimLP

Are there any major differences between these two firmwares respecitvely are there any specific strengths or weaknesses?
oliman99 said:
Are there any major differences between these two firmwares respecitvely are there any specific strengths or weaknesses?
Click to expand...
Click to collapse
I think it is personal preference tbh, however I prefer SlimLP since I have messed around with custom ROMs for a while and currently run SlimLP on my phone as well. Also I like the customization that comes with SlimLP more than the plainness of ordinary CM.
The SlimLP rom developers don't recommend using xposed due to some ART optimizations. If anyone really wants xposed someone did suggest trying wanams modified xposed version.
rjmxtech said:
I think it is personal preference tbh, however I prefer SlimLP since I have messed around with custom ROMs for a while and currently run SlimLP on my phone as well. Also I like the customization that comes with SlimLP more than the plainness of ordinary CM.
Click to expand...
Click to collapse
I have been considering switching from cm 12.1 to slim lp on my fire. When you say additional customization what does that elude to? Theming and visual, or performance customization?
blueberry.sky said:
The SlimLP rom developers don't recommend using xposed due to some ART optimizations. If anyone really wants xposed someone did suggest trying wanams modified xposed version.
Click to expand...
Click to collapse
I've got xposed on the cm 12.1 rom. Haven't tried yet on SlimLP though.
If you do try it on SlimLP go for wanams xposed. And of course let us know if it you get any problems.
blueberry.sky said:
If you do try it on SlimLP go for wanams xposed. And of course let us know if it you get any problems.
Click to expand...
Click to collapse
I successfully flashed v2.1 of SlimLP, and then I tried v75 and v78 of wanams xposed (preceded with the mandatory installation apk). Both versions led to bootloop; I was able to remove the bootloop by using the uninstallation apk.
Since I want/needed xprivacy I switched to CM12.1 but gapps has stopped working. When there's a new version of SlimLP I might try again.
EDIT: I fixed the gapps in CM12.1 (12/04 built) by (1) doing a factory reset and (2) uninstalling the Playpermissionfix module in xposed. In retrospect I probably could skip (1) and do (2) only. Play store is still slightly wonky but it mostly works, and youtube definitely works 100%.
Damn, it's really a pain that SlimLP doesn't support xposed. I want xprivacy as well.
I just had to uninstall SlimLP and go to CM12.1 because of no support for Xposed from the developers. It's upsetting that with their (or ezio's) modifications that they should want to control something so big rather than let us decide for ourselves.
Because any reasoning such as "it's too big of a security risk" is absolutely ridiculous as it's our choice rather to expose ourselves and at the same time, most people installing modules and Xposed Framework at this point should know what we are installing to by now.
misticalx said:
I just had to uninstall SlimLP and go to CM12.1 because of no support for Xposed from the developers. It's upsetting that with their (or ezio's) modifications that they should want to control something so big rather than let us decide for ourselves.
Because any reasoning such as "it's too big of a security risk" is absolutely ridiculous as it's our choice rather to expose ourselves and at the same time, most people installing modules and Xposed Framework at this point should know what we are installing to by now.
Click to expand...
Click to collapse
The decision to decide for yourself is always in your hands. It is their rom to develop it how they want. If you do not like it, don't use it (as you have indiciated), but don't throw blame on a dev for not including support for something.

Packaging Xposed into a custom ROM?

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.

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