[MOD][odex/deodex] Superusermod [.253 fw] - Xperia Z5 Android Development

I actually patched services.jar for 253 fw a while ago but I thought I should share it because I don't see any patched services.jar for this firmware.
Root needed, busybox needed.
Take nandroid backup and replace original services.jar with this one. Don't forget to rename it (remove "253") and set correct permissions (0644).
Works on odex and deodex roms.
Thanks to @DavidMKD and @dnnz

and what about .305 fw?

langeveld024 said:
I actually patched services.jar for 253 fw a while ago but I thought I should share it because I don't see any patched services.jar for this firmware.
Root needed, busybox needed.
Take nandroid backup and replace original services.jar with this one. Don't forget to rename it (remove "253") and set correct permissions (0644).
Works on odex and deodex roms.
Thanks to @DavidMKD and @dnnz
Click to expand...
Click to collapse
Thanks bro for this mods.

Hamidreza2010 said:
and what about .305 fw?
Click to expand...
Click to collapse
if u want i can patch for .305 too.
are u on odexed rom? just give me the files.
u can pull them by doing this:
Code:
adb pull /system/framework/arm64/boot.oat
adb pull /system/framework/oat/arm64/services.odex
adb pull /system/framework/services.jar

langeveld024 said:
if u want i can patch for .305 too.
are u on odexed rom? just give me the files.
u can pull them by doing this:
Code:
adb pull /system/framework/arm64/boot.oat
adb pull /system/framework/oat/arm64/services.odex
adb pull /system/framework/services.jar
Click to expand...
Click to collapse
Yes i want
im on deodex rom

Hamidreza2010 said:
Yes i want
im on deodex rom
Click to expand...
Click to collapse
But I can't patch it if I don't have the files, so u have to give them to me.
On the other hand, u can try the one in OP first, just make nandroid backup and if u get bootloop u can restore backup.
It may just work fine on 305 fw since the changes are minor.
Let me know if it works.
Sent from my E6653 using XDA-Developers mobile app

langeveld024 said:
But I can't patch it if I don't have the files, so u have to give them to me.
On the other hand, u can try the one in OP first, just make nandroid backup and if u get bootloop u can restore backup.
It may just work fine on 305 fw since the changes are minor.
Let me know if it works.
Sent from my E6653 using XDA-Developers mobile app
Click to expand...
Click to collapse
sorry bro for delayed
Im busy with personal life.
here your are:
http://d-h.st/iHP2
its for .305 fw

i need your help i need to fix s7 service.jar can possible you can help me same file i need for patch odex rom boot.oat services.odex and services.jar

cydiamind said:
i need your help i need to fix s7 service.jar can possible you can help me same file i need for patch odex rom boot.oat services.odex and services.jar
Click to expand...
Click to collapse
Check out the people I mentioned in OP , there u will find helpful guide.
If it doesn't work, check in S7 forum, maybe things are different for Sammy phones

Related

Need help deodexing my custom ROM

Hi Xda-people,
After succes building a rom for the vodafone 845 I now want to deodex the rom. I have already tried the THEME-PRO v2.9 (no error on deodexing) after flashing only getting a bootloop. I olso tried another deodexing kitchen but that got stuck on bleutooth.odex and another couple apk's and odex files.
Could someone please help me out here?
Thanx in advance
So its a stock android rom ? Try the deodex script link in my signature.
Also for bluetooth u need to add javax.obex.jar to ur classpath.
Daneshm90 said:
So its a stock android rom ? Try the deodex script link in my signature.
Also for bluetooth u need to add javax.obex.jar to ur classpath.
Click to expand...
Click to collapse
i have tried your script and got stuck on a couple of apk's + odex files that could'nt be deodexed.. could you also explain what you mean with add javax-obex.jar to ur classpath? I'm complete new to the rombuild scene..
it's based on a stock rom, i have added some features and delete some standaard apps..
freddyemmer said:
i have tried your script and got stuck on a couple of apk's + odex files that could'nt be deodexed.. could you also explain what you mean with add javax-obex.jar to ur classpath? I'm complete new to the rombuild scene..
it's based on a stock rom, i have added some features and delete some standaard apps..
Click to expand...
Click to collapse
Ok once its done deodexing, u'll have a couple of apks left that couldn't be deodexed. If its bluetooth.apk, select option 2 (custom classpath) and type javax.obex.jar
Most of the time the error u get when deodexing should tell u wht apk it needs in its classpath.
But when i use your script i don't see the errors because it's continue's to the next apk.. or framework. this rom also has 2 framework apks does that matter?
freddyemmer said:
But when i use your script i don't see the errors because it's continue's to the next apk.. or framework. this rom also has 2 framework apks does that matter?
Click to expand...
Click to collapse
Can u upload the rom, ill deodex n upload it back. ill let u know what i did.
http://www.mediafire.com/?d754c9ljn48c368
that's my rom.. Thanx in advance...
Ok cool so got the whole rom deodexed.
For bluetooth u needed javax.obex.jar and for the rest u needed com.google.android.gtalkservice.jar in ur classpath.
Uploading shortly...
Here u go
Link
For bluetooth u needed javax.obex.jar and for the rest u needed com.google.android.gtalkservice.jar in ur classpath
Click to expand...
Click to collapse
so if i got it right you choose option 2 and typte
javax.obex.jar:com.google.android.gtalkservice.jar
freddyemmer said:
so if i got it right you choose option 2 and typte
javax.obex.jar:com.google.android.gtalkservice.jar
Click to expand...
Click to collapse
Yup. I did em individually but doesn't matter that way should work as well.
Daneshm90 said:
Yup. I did em individually but doesn't matter that way should work as well.
Click to expand...
Click to collapse
help again adding the new apk and framework files i get a fc on com.android.phone.. please help..
freddyemmer said:
help again adding the new apk and framework files i get a fc on com.android.phone.. please help..
Click to expand...
Click to collapse
Are u wiping and flashing ?
Daneshm90 said:
Are u wiping and flashing ?
Click to expand...
Click to collapse
i replaced all the apps and framework in my working folder zipped and signed did a full wipe and flashed it.. then setup came up and saying fc on phone
freddyemmer said:
i replaced all the apps and framework in my working folder zipped and signed did a full wipe and flashed it.. then setup came up and saying fc on phone
Click to expand...
Click to collapse
Hmmm. Can u check ur log to see why it force-closes ? also does it let u continue or are u stuck at setup ? i want to know if other apps fc.
it won't allow me to finish the setup.. maybe stupid question but how do i get the log?
freddyemmer said:
it won't allow me to finish the setup.. maybe stupid question but how do i get the log?
Click to expand...
Click to collapse
Type "adb logcat" in command prompt.
Oke tried it but logcat is disabled on my rom.. I used the commands in recovery
echo 1 > /sys/kernel/logger/log_main/enable // ** '1' is enable log_main,
echo 2 >/sys/kernel/logger/log_main/priority // ** '2' is the log level, you can get the level number from the android source code.
but that apparently has no effect for the rom.. I think something went wrong while deodexing.. any tips how to enable the logcat?
tried deodexing it again with the 2 yar files.. it's not only phone that fc also setup fc.. trying to find out how to add catlog to my rom so i can check it..

[Q] about mod port Ink effect on GT-I9070

Please help me, is this mod just work in deodexed rom? can i install this in odexed rom? thanks
panjisetyadepitra said:
Please help me, is this mod just work in deodexed rom? can i install this in odexed rom? thanks
Click to expand...
Click to collapse
You need root, and custom recovery. Simple make a backup in recovery - try mod. If it is working then good, if not then restore backup. You will find out yourself in less than 20 minutes, and you will wait here who know how long. I did not try it, but I think you need to be deodexed, or at least to remove odex files that are used for mod (not sure if it is framework file or systemui, you can check in zip). But I suggest you first method that I told you.
Sent from my GT-I9070 using Tapatalk 2
shut_down said:
You need root, and custom recovery. Simple make a backup in recovery - try mod. If it is working then good, if not then restore backup. You will find out yourself in less than 20 minutes, and you will wait here who know how long. I did not try it, but I think you need to be deodexed, or at least to remove odex files that are used for mod (not sure if it is framework file or systemui, you can check in zip). But I suggest you first method that I told you.
Sent from my GT-I9070 using Tapatalk 2
Click to expand...
Click to collapse
The files are framework-res.apk,android.policy.jar,SecSettings.apk, framework.jar ,framework2.jar(if I remember correctly).
ionescugeo9942 said:
The files are framework-res.apk,android.policy.jar,SecSettings.apk, framework.jar ,framework2.jar(if I remember correctly).
Click to expand...
Click to collapse
Then he better Deodex.

Deodexing 5.1.1

Could someone explain me how to properly deodex Stock Sony Lollipop 5.1.1? I have tried the same method used on 5.0.2 but framework folder is giving me bootloops.
Yes same poblem here
How we can deodex 5.1.1 on xperia z ?
@IaguCool @serajr
Don't know why you're having such a problem, I've already deodexed 5.1.1 for Z to port some apps to my Z1. Didn't have any problems.
IaguCool said:
Don't know why you're having such a problem, I've already deodexed 5.1.1 for Z to port some apps to my Z1. Didn't have any problems.
Click to expand...
Click to collapse
With which tool?
Did you flash on your phone?
because get bootloop
Hamidreza2010 said:
With which tool?
Did you flash on your phone?
because get bootloop
Click to expand...
Click to collapse
I have a Z1, how could I flash it?
IaguCool said:
I have a Z1, how could I flash it?
Click to expand...
Click to collapse
Ok then didnt test it ( you cant )
I could deodex 5.1.1 from xperia z but when flashed on phone , get bootloop
Hamidreza2010 said:
Ok then didnt test it ( you cant )
I could deodex 5.1.1 from xperia z but when flashed on phone , get bootloop
Click to expand...
Click to collapse
Would definitely help if I had a Z.
IaguCool said:
Would definitely help if I had a Z.
Click to expand...
Click to collapse
Oh yes thanks :highfive:
@IaguCool
Can you confirm this please?
> Unpack odex.app.sqsh and odex.priv-app.sqsh
> Replace .odex files in folders (app and priv-app)
> Leave framework folder as is.
> Start deodexing and flash to phone
Did you use a batch deodexer? Which version of oat2dex did you used?
xkeita said:
@IaguCool
Can you confirm this please?
> Unpack odex.app.sqsh and odex.priv-app.sqsh
> Replace .odex files in folders (app and priv-app)
> Leave framework folder as is.
> Start deodexing and flash to phone
Did you use a batch deodexer? Which version of oat2dex did you used?
Click to expand...
Click to collapse
Deodex framework also, use JoelDroid:
http://forum.xda-developers.com/and.../script-app-joeldroid-lollipop-batch-t2980857
But replace its "tools/oat2dex.jar" with this oat2dex.jar:
https://github.com/testwhat/SmaliEx/blob/master/smaliex-bin/oat2dex.jar
This will prevent the mistakes in services.jar and framework.jar.
Also you should decompile services.jar and replace the compareSignature function just in case. ("Super user mod")
IaguCool said:
Deodex framework also, use JoelDroid:
http://forum.xda-developers.com/and.../script-app-joeldroid-lollipop-batch-t2980857
But replace its "tools/oat2dex.jar" with this oat2dex.jar:
https://github.com/testwhat/SmaliEx/blob/master/smaliex-bin/oat2dex.jar
This will prevent the mistakes in services.jar and framework.jar.
Also you should decompile services.jar and replace the compareSignature function just in case. ("Super user mod")
Click to expand...
Click to collapse
Dear you mean:
I download oat2dex.jar from this link:
https://github.com/testwhat/SmaliEx/blob/master/smaliex-bin/oat2dex.jar
and replace here ( tools/oat2dex.jar ) with joeldroid-lollipop-batch
then try to deodex 5.1.1 and finally when finished , make superuser mod .yes?
is it any thing more?
thanks
Hamidreza2010 said:
Dear you mean:
I download oat2dex.jar from this link:
https://github.com/testwhat/SmaliEx/blob/master/smaliex-bin/oat2dex.jar
and replace here ( tools/oat2dex.jar ) with joeldroid-lollipop-batch
then try to deodex 5.1.1 and finally when finished , make superuser mod .yes?
is it any thing more?
thanks
Click to expand...
Click to collapse
I think it should work, can't be 100% sure though.
IaguCool said:
I think it should work, can't be 100% sure though.
Click to expand...
Click to collapse
already i could deodex successfully and without any error with SVA Lollipop Deodexer For Art 3.5 but get bootloop.
now try with your way
thanks
Hamidreza2010 said:
already i could deodex successfully and without any error with SVA Lollipop Deodexer For Art 3.5 but get bootloop.
now try with your way
thanks
Click to expand...
Click to collapse
Their oat2dex might be outdated, and that causes deodexing mistakes in services.jar and framework.jar. Try my method.
IaguCool said:
Deodex framework
Click to expand...
Click to collapse
Where should I get the odex files for framework? I can't seem to find them in any sqsh file, only the ones present in framework/art folder
IaguCool said:
Their oat2dex might be outdated, and that causes deodexing mistakes in services.jar and framework.jar. Try my method.
Click to expand...
Click to collapse
OOHHH
I tried but get bootloop again
I download oat2dex from your link and move to \Lollipop Batch Deodexer 2.5\tools and replace here and start to deodex 5.1.1 from z.as already deodex without any problem but when flashed,get bootloop
Hamidreza2010 said:
OOHHH
I tried but get bootloop again
I download oat2dex from your link and move to \Lollipop Batch Deodexer 2.5\tools and replace here and start to deodex 5.1.1 from z.as already deodex without any problem but when flashed,get bootloop
Click to expand...
Click to collapse
Yup, that's what happening, if you only replace files from app and priv-app you won't get any bootloop (maybe a phone fc when answring a call), but go with framework folder and it'll go bootloop all the way around
Mail me a Xperia Z device and I might be able to help XD
Anyways, I'm using Z1 with 5.1.1 fully deodexed and highly customized by me (modified many system apps). Works damn perfect...
IaguCool said:
Mail me a Xperia Z device and I might be able to help XD
Anyways, I'm using Z1 with 5.1.1 fully deodexed and highly customized by me (modified many system apps). Works damn perfect...
Click to expand...
Click to collapse
Xperia Z and Z1 filesystem structure should be the same...

SUPERUSER MOD [ Patched SERVICES.JAR ] for Z5 E6683 DSDS Nougat 32.2.A.0.376 Firmware

Here is the long anticipated SUPERUSER MOD [ Patched SERVICES.JAR ] for Z5 E6683 DSDS Nougat 32.2.A.0.376 Firmware
Downloads :
Superuser MOD [Patched services.jar] for Z5 Series .376 Nougat Firmware : HERE
Instructions:
- Just Copy and replace the JAR File using Root Explorer with the STOCK one inside /system/framework/ folder.
- Set permission to 644
- Restart and enjoy ..
Please HIT Thanks if this post helped you in any way.
reserved
reserved for second post
I think we can use it for E6633 too,that's right?what about odex roms?
I see a jar file. Can it be flashed from recover too?
s.hossein said:
I think we can use it for E6633 too,that's right?what about odex roms?
Click to expand...
Click to collapse
You should be able to use it for E6603
keep a back up and then try
bishshoy said:
I see a jar file. Can it be flashed from recover too?
Click to expand...
Click to collapse
That JAR file is the patched services.jar
Which is called the SUPERUSER MOD . you need to have root access to your SYSTEM and then use some file explorer to copy the JAR from and replace the stock one inside /system/framework/ folder .
then restart. You will be able to mod system APK from now on...
Sorry for the misleading instruction on the OP
delete, wrong thread
@chinmoy32 I installed this on my E6633 and it's working fine. I would like to know though how do you patch these? Is there any tool you would recommend?
@chinmoy32 its not working on 378 FW...
Im using yur camera mod buh fc when switch from manual to auto...
Dna10 said:
@chinmoy32 I installed this on my E6633 and it's working fine. I would like to know though how do you patch these? Is there any tool you would recommend?
Click to expand...
Click to collapse
whalesplaho said:
@chinmoy32 its not working on 378 FW...
Im using yur camera mod buh fc when switch from manual to auto...
Click to expand...
Click to collapse
make manually :
https://forum.xda-developers.com/cr...guide-disable-signature-verification-t3549952
Hamidreza2010 said:
make manually :
https://forum.xda-developers.com/cr...guide-disable-signature-verification-t3549952
Click to expand...
Click to collapse
I did dah buh seems 378 fw update has mew security or something... I dnt know why it's not working cos did same on 376 fw n works fine.
I got it working atlasts...... Thanks!
whalesplaho said:
I got it working atlasts...... Thanks!
Click to expand...
Click to collapse
how dear ?
what you did ?
Hey guys i made superusermod for .378 and test on my device and work without problem
i think , you use it too.
Download
thanks to @venkat kamesh for his awesome guide
Hamidreza2010 said:
how dear ?
what you did ?
Click to expand...
Click to collapse
Seems it was superuser not in permissive mode brov..... Just use tha guide provided and make sure root access is allowed and permissive is active.
But im using @serajr method n it works... It is posted in his callrecording thread. Except camera unlocked dat fc on front camera.
whalesplaho said:
@chinmoy32 its not working on 378 FW...
Im using yur camera mod buh fc when switch from manual to auto...
Click to expand...
Click to collapse
Dude , I checked on 378 and found no problems at all.
chinmoy32 said:
Dude , I checked on 378 and found no problems at all.
Click to expand...
Click to collapse
buddy i wont mind if yhu help.... i modded packagemanagerservice.smali & replace tha stock one..... font selector dat needs superuser working fine!
whalesplaho said:
@chinmoy32 its not working on 378 FW...
Im using yur camera mod buh fc when switch from manual to auto...
Click to expand...
Click to collapse
Dude , dont be so sure that my MOD is not working.
first completely flash the FTF , then the patched stock kernel then SU, then flash the deodexed patch I made. then replace the camera APK.
If you still have probs then I am sorry for you coz so many others are using the MOD with out any problem whatsoever.
chinmoy32 said:
Dude , dont be so sure that my MOD is not working.
first completely flash the FTF , then the patched stock kernel then SU, then flash the deodexed patch I made. then replace the camera APK.
If you still have probs then I am sorry for you coz so many others are using the MOD with out any problem whatsoever.
Click to expand...
Click to collapse
Thanks buddy...... I have solved my prob!
Appreciate....

[MOD][32.4.A.0.160 & 32.4.A.1.54]Ambient Display Z5 7.1.1 MOD

Recommended / Requirements
Bootloader Unlocked
TWRP Installed
Patched Kernel
Deodexed stock ROM with Patch (See the forum thread)
https://forum.xda-developers.com/xperia-z5/general/deodex-patch-32-4-0-160-t3630992
It's not for Stock ROM.
Hello brothers...!
After updating to 7.1.1, many of you must be missing XZ MOD, one of the great feature was AMBIENT DISPLAY
Find it here.....!
Flash Zip in TWRP
Enjoy....
Works only on Deodexed ROM with SuperUser MOD.
Disclaimer :
Mod is working on my phone. Flash it at your own risk. Be polite in feedback, the only condition for my reply. Hit thanks if worked for you.
Download Link for 32.4.A.0.160
Download Link for 32.4.A.1.54
Now u gave me a reason to unlock my device thanks for the hard work
Edit 2: working like a charm.. Thanks
andro2master said:
Recommended / Requirements
Bootloader Unlocked
TWRP Installed
Deodexed stock ROM with Patch (See the forum thread)
Super User MOD (Patched Service.jar)
Hello brothers...!
After updating to 7.1.1, many of you must be missing XZ MOD, one of the great feature was AMBIENT DISPLAY
Find it here.....!
Flash Zip in TWRP
Enjoy....
Please some one test it without Deodexed ROM and SuperUser MOD.
Disclaimer :
Mod is working on my phone. Flash it at your own risk. Be polite in feedback is the only condition for my reply.
Download Link
Click to expand...
Click to collapse
Thank you so much, I was waiting for this!
So what did ambient display do XD
For some reason i can remember it
SAMURAI6969 said:
So what did ambient display do XD
For some reason i can remember it
Click to expand...
Click to collapse
It just turn on dim display when notification arrives.
Its useful because you don't have to wake up the device with power key to see arrived notifications. It saves the efforts of unlocking the device every time to see notifications.
andro2master said:
It just turn on dim display when notification arrives.
Its useful because you don't have to wake up the device with power key to see arrived notifications. It saves the efforts of unlocking the device every time to see notifications.
Click to expand...
Click to collapse
Ahaaa gonna try it then
@andro2master
It cause SOFTBRICK on stock rom.
Who want to try?
Backup framework-res.apk to sdcard.
Try mod, if softbrick your device open TWRP.
Copy your backup file and paste /system/framework folder and overwrite.
Then long press file give chmod 755 permission.
sceryavuz said:
@andro2master
It cause SOFTBRICK on stock rom.
Who want to try?
Backup framework-res.apk to sdcard.
Try if softbrick your device.
Copy your backup file and paste /system/framework folder and overwrite.
Then long press file give chmod 755 permission.
Click to expand...
Click to collapse
Thanks for testing @sceryavuz
Edited the first Post. :good:
andro2master said:
Recommended / Requirements
Bootloader Unlocked
TWRP Installed
Patched Kernel
Deodexed stock ROM with Patch (See the forum thread)
Super User MOD (Patched Service.jar)
It's not for Stock ROM.
Hello brothers...!
After updating to 7.1.1, many of you must be missing XZ MOD, one of the great feature was AMBIENT DISPLAY
Find it here.....!
Flash Zip in TWRP
Enjoy....
Works only on Deodexed ROM with SuperUser MOD.
Disclaimer :
Mod is working on my phone. Flash it at your own risk. Be polite in feedback, the only condition for my reply. Hit thanks if worked for you.
Download Link
Click to expand...
Click to collapse
Thiago mod works on Z5 Compact?
Thanks
sceryavuz said:
@andro2master
It cause SOFTBRICK on stock rom.
Who want to try?
Backup framework-res.apk to sdcard.
Try mod, if softbrick your device open TWRP.
Copy your backup file and paste /system/framework folder and overwrite.
Then long press file give chmod 755 permission.
Click to expand...
Click to collapse
I'm using it with stock rom, no problems.
crisout said:
I'm using it with stock rom, no problems.
Click to expand...
Click to collapse
How? No mods right(odexed without superusermod)? When I flashed phone did not boot. RED LIGHT means softbrick.
sceryavuz said:
How? No mods right(odexed without superusermod)? When I flashed phone did not boot. RED LIGHT means softbrick.
Click to expand...
Click to collapse
I flashed this mod and works fine:
https://forum.xda-developers.com/xperia-z5/development/z5-super-user-mod-t3633693
crisout said:
I flashed this mod and works fine:
https://forum.xda-developers.com/xperia-z5/development/z5-super-user-mod-t3633693
Click to expand...
Click to collapse
So you are not on stock! This is a modified services.jar file, it gives superusermod privileges.
Stock means nothing modded.
@andro2master he says superusermod is enough to get this work, deodexed not required. Thanks for your work. I will flash superusermod and give a try :fingers-crossed:
Edit: Tried, it works with just superusermod
Is this compatible with 32.4.A.0.160 with twrp and SuperSu?
Pavl79 said:
Is this compatible with 32.4.A.0.160 with twrp and SuperSu?
Click to expand...
Click to collapse
Flash superusermod first then this mod.
https://forum.xda-developers.com/xperia-z5/development/z5-super-user-mod-t3633693
Okay. Thanks!
Stock is stock, even if u install all fancy mods and deodex the hell out of it.
The only non-stock ROMs are custom ROMs (aosp, lineage, carbon etc).
So right now OP is telling people they need custom ROM instead of stock or modded stock ROMs.
Maybe u should change that, just my 2 cents..
Keep it up.
langeveld024 said:
Stock is stock, even if u install all fancy mods and deodex the hell out of it.
The only non-stock ROMs are custom ROMs (aosp, lineage, carbon etc).
So right now OP is telling people they need custom ROM instead of stock or modded stock ROMs.
Maybe u should change that, just my 2 cents..
Keep it up.
Click to expand...
Click to collapse
You are so damn right :good:
langeveld024 said:
Stock is stock, even if u install all fancy mods and deodex the hell out of it.
The only non-stock ROMs are custom ROMs (aosp, lineage, carbon etc).
So right now OP is telling people they need custom ROM instead of stock or modded stock ROMs.
Maybe u should change that, just my 2 cents..
Keep it up.
Click to expand...
Click to collapse
Advanced users knows the difference between stock and custom roms. Here Stock refers to not modified by deodexing or patching service.jar. Hope will take it in right sense..
shehabskull said:
Now u gave me a reason to unlock my device thanks for the hard work
Edit : I pull out my words as it is not working on stock rom
Click to expand...
Click to collapse
You can use it on stock rooted rom with patched service.jar i.e. Super User mod. Give a try its working for others.

Categories

Resources