[Q] Implement XPOSED into Rom - Android Q&A, Help & Troubleshooting

Hi,
Has anyone managed to implement XPOSED framework into a ROM including the library?

The steps I've done so far.
1. Include Xposed Installer as a 'preinstall app in custom ROM
Add to /system/app or /system/preinstall(but also need to add service preinstall to init.rc in boot.img if the device don't already have a script like that).
2. Replace /system/bin/app_process with the one in the Xposed Installer.apk file and change the user right correctly on the file to what it was.
3. Xposed gets installed to /data/data/*de*xposed*/ and you need to either replace that whole folder or add XposedBrige.jar from Xposed Installer.apk to /data/data/*de*xposed*/bin
Unfortunately all the files need certain permisions and ownerships like user/group u8_a57 like that and in Linux you can't give ownership rights like that to a file.
Then you need to create a boot script in your ROM to chown u8_a57:u8_a57 / data/data/*de*xposed*/bin/XposedBridge.jar or for all the other files.
Unfortunately when you open Xposed Installer app it still show the XposedBridge.jar file is not active, the app_process file shows active.
This is where I get stuck and noone seems to be able to help.
The creator of Xposed framework also can't be contacted on XDA forum.
Maybe someone will read this and be able to help further.

Related

[Q] Adding more languages to MOTO E and How to edit the boot.img ?

So I bought this little phone and I was baffled that there are so few language options to select.
The phone is for my father (the english evades him) therefore I need my mother language on it.
Phone Version XT1021
OS:
Android 4.4.2 Blur_Version.20.11.14.condor_retaildsds.retaildsdsall.en.03 Updated to 4.4.4, rebuilt in a deodexed ZIP file, and a system.img file
Ho needs it, I can upload it, I have either the update.zip or system/boot img files.
What I tried:
I tried to recompile the framework-res, system and other 15~20 apps, on some it worked on some it did not.
I am using the Nexus 5 translations files
On those that worked I managed to activate them by using a morelocale app from market and the translations work just fine.
On systemUI.apk I am getting force close
On framework-res.apk the phone freezes.
How I decompile/recompile and test the apps.
1) Decompile the app
2) Add the new values
4) Recompile
5) Copy the new app created app and the original one in a folder.
6) Open both apps
7) Drag and drop the resources.asrc file in the original apk and when you are asked how would you like to compress the file, I select STORE (I use winrar)
So if anyone managed to edit the framework app, systemUI and he is kind to share how he did it without getting any bootloops and force close, I would be very appreciative.
Now, regarding the boot.img
I tried to unpack it, using the classic method, it unpacks ok, the problem is on repacking,
Is there a special tool to do it or what ?
Why do i need
I need the adb.secure to be 0, and also the security off, so I can be able to use ADB REMOUNT and monitor adb logcat since the device starts. and also to be able to push apps to system using adb.
So, ho has the information and he is kind to share ?
here is the proper way to decompile and recompile the apk in a proper way
1. Make sure you have the latest version of the apktool
2. install the framework (try using 4.4.2 framework if 4.4.4 one gives error)
3. Decompile make changes
4. Choose option compile system app in apktools
5. now when it asks to delete all the things you have modified then delete the res and resources.arsc file and if you have made any smali changes delete the classes.dex too
6. go back to script and press enter
7. now open both MODIFIED APK and UNMODIFIED APK and then DRAG AND DROP androidmanifest.xml and meta inf from UNMODIFIED TO MODIFIED APK
8. push it and set rw-r-r permission
and if you are getting the error unable to remount then install adb insecure app by chainfire
thats it
happy modding
any help comment below by quoting or mentioning my name(i get notification so that i can give quick responce )
Prashanth Meesara: said:
here is the proper way to decompile and recompile the apk in a proper way
1. Make sure you have the latest version of the apktool
2. install the framework (try using 4.4.2 framework if 4.4.4 one gives error)
3. Decompile make changes
4. Choose option compile system app in apktools
5. now when it asks to delete all the things you have modified then delete the res and resources.arsc file and if you have made any smali changes delete the classes.dex too
6. go back to script and press enter
7. now open both MODIFIED APK and UNMODIFIED APK and then DRAG AND DROP androidmanifest.xml and meta inf from UNMODIFIED TO MODIFIED APK
8. push it and set rw-r-r permission
and if you are getting the error unable to remount then install adb insecure app by chainfire
thats it
happy modding
any help comment below by quoting or mentioning my name(i get notification so that i can give quick responce )
Click to expand...
Click to collapse
I will try like this, thx for the input.
globula_neagra said:
I will try like this, thx for the input.
Click to expand...
Click to collapse
Anytime bro . if you get any errors I will help you on Teamviewer
Sent from my Moto E using XDA Free mobile app
I managed to add the language using your method, only with one mention, I think on framework you have to select STORE when you add the file to the archive.

[Dev's] Potential Sony Exploit using Sony's app

I was playing around with my Z2 I have flashed Lollipop using Flashtool (All Official).
I found two interesting apk's that can be installed over the existing ones as an update (Which have a permission to write to system files I guess).
I tried to decompile them but no luck. What I had in my plan is to inject some code in the apk that will let it give permission to other application that we specify in the Manifest.xml (It is a long shot)
I will attach the apk's
/system/app/PremiumSmsUpdate
/system/priv-app/UpdateCenter
Both can be installed over and over with no failed installation.
Can anyone tell me if it is possible to inject one of the two apks with something to root?
Thanks
Safar
Just a simple yes or no from a developer would do it
No because SELinux will pick it up and kill it

Disable Xposed to fix bootloop / stuck boot?

Hey,
The old Xposed used to create an Xposed.Disabled.zip that we could flash to disable Xposed but I can't find an easy way to fix a bootlooping / stuck boot without refreshing the ROM...
I tried entering some terminal commands from a different thread but none worked.
Any advice?
Use my disabler!
http://forum.xda-developers.com/xposed/xposed-framework-disabler-incase-t3100669
in recovery go to file manager,then go to data/data/de.robv.android.xposed.installer/conf/ ,and remove the modules.list file.it works for me
delete /system/framework/XposedBridge.jar
I had to delete all of the files that were replaced in /system/lib, /system/bin, delete the xposed files in /system/framework and rename the originals to their originals (by either removing '.orig' or '_original'). All done in TWRP file manager.
Basically, in any of those directories delete files that have the originals (as hinted either by the name or file extension, of course delete the file with part of it saying '.noorig') and rename the originals so that they look like the ones that xposed added. Also delete any other files that don't mention original but strongly hint by their name that they're part of xposed (this excludes anything in /data).
I had to follow a guide in order to find these files, but that guide didn't mention some extra files that are left by xposed, presumably because the thread is a little old.
Xposed installer is occupying more than 500 mb after installation (almost fills the full phone storage)
So i have to remove app data every time and had to enable modules again....
Does anyone facing same problem?
Model - lenovo s820
Os - kitkat 4.4.2
Sorry to ask question here but i have no idea on where to ask the question

Viper working on rooted LP

This took me some hours this evening and a lot of trial and error but I was able to get it working. Note: if you are novice at playing with system files, don't bother to try this. It's not for the faint at heart. I can't provide support. You will also need Script Manger so you can fix permissions after placing the files. You must manually do all of this since we can't flash the zips! Make sure to Freeze the Sound Alive apk with TB also so there are no other music effects apps. Here's what I had to do:
1. Follow the instructions at this post first, extracting and placing files. Just don't reboot yet (thanks @TiTiB): http://forum.xda-developers.com/showpost.php?p=62365948&postcount=37
2. Download the two files mentioned here in this thread. You only need the audio policy script from the Lolliviper zip file to place in the system folder. Place the others from the ViPER4Android-supolicy.zip where needed: http://forum.xda-developers.com/galaxy-tab-s/general/how-to-installing-viper4android-v4a-t3136025
3. Take the latest Viper apk and place it in the system/priv-app folder.
4. Remember, make sure set all the needed permissions as you go along for ALL files above or none of this will work!
5. Reboot.
6. Open the Viper app, select the driver you want. Reboot.
7. If using Poweramp, you may or may not see the MusicFX control button whether you have it selected in advanced settings or not. I did not see it but it made no difference. Open the Viper app, turn on the settings and start playing music. Voila, it works! Works on my speaker too. Apparently permissive kernel isn't essential to make this work and that is the beauty of all this., because you can not use SElinux mode app on this kernel as some of you may know.
Have fun and good luck, at least you might be able to do this in much shorter time than I did.
One other thing I have found. You must set the scripts in system/su.d to run on boot with script manager so Viper will run after each reboot.
You can also get it to work by the following.
Install xposed
Install Wanam exposed module
In Wanam, under Security hacks
Disable Knox notification (I manually remove Knox)
Disable SEAndroid (changes to passive)
Install Viper4Android and update the driver
bishop0114 said:
You can also get it to work by the following.
Install xposed
Install Wanam exposed module
In Wanam, under Security hacks
Disable Knox notification (I manually remove Knox)
Disable SEAndroid (changes to passive)
Install Viper4Android and update the driver
Click to expand...
Click to collapse
I could not get Xposed installed after rooting, tried the latest apk, etc. I read on that thread Xposed has issues with stock LP Samsung ROMs so I just forgot about it. I could have tried placing the files in the flashable zip manually but it didn't seem worth the risk. I'm glad you got it going because that way sounds faster.

Xposed Framework is Installed but not activated (please help)

Hi,
So I am running android 6 so I had to manualy flash xposed framework. When i got done i opend xposed installer and then it told me xposed has been installed but not activated. So i did some research and i found people saying go to data/data/de.robv.android.xposed.installer/conf
And then there is a file called disabled.
But i didn't find a file called disabled the folder was empty. I would love some help. Thanks alot

Categories

Resources