Deodexing files for s3v3n's ROM v5.0 - G4 General

I deodexed system files for s3v3n's v5.0 ROM - as I know, not all customizations through xPosed are working with odexed, or partialy deodexed ROMs. Hopefully s3v3n won't have objetions. One more thing - there isn't Gravitybox - You have to install it again - I deodexed it after upgrading Gravitybox to newer version.
Instructions:
unzip files to your SD-card
boot to TWRP
go to mount and select to mount system partition
go to advanced/filemanager
delete /system/app, /system/priv-app & system/framework - you have to go to particular folder, then tap&hold select then delete
copy app, priv-app, framework from your sdcard to
/system/
fixing permissions is not necessary
PS: You are doing it on your own risk.
Download here: deodex-s3v3n-v5.0

Can you please deodex 5.1?

working on that, maybe @ evening, I have to deodex several 32bit apps...64bit are done already but because of some 32b there are some conflicts

phsnake said:
I deodexed system files for s3v3n's v5.0 ROM - as I know, not all customizations through xPosed are working with odexed, or partialy deodexed ROMs. Hopefully s3v3n won't have objetions. One more thing - there isn't Gravitybox - You have to install it again - I deodexed it after upgrading Gravitybox to newer version.
Instructions:
unzip files to your SD-card
boot to TWRP
go to mount and select to mount system partition
go to advanced/filemanager
delete /system/app, /system/priv-app & system/framework - you have to go to particular folder, then tap&hold select then delete
copy app, priv-app, framework from your sdcard to
/system/
fixing permissions is not necessary
PS: You are doing it on your own risk.
Download here: deodex-s3v3n-v5.0
Click to expand...
Click to collapse
file that comes in the download folder build.prop, we must also put ??

I hope we will see newer versions of 7 HD rom after the little storm that happened.
Back to topic: which apk is the one for smartnotice widget? I want to mod it to make it semi-transparent

Related

[Q] Trying to modify a system app - what am I missing?

I'm trying to modify Email.apk. I'm currently running stock 3.1 from http://forum.xda-developers.com/showthread.php?t=1154492
Here's what I did:
1. Extracted Email.apk from update zip and dumped using APKTools.
2. Made my modifications - specifically I'm editing a .smali file with my desired changes.
3. Rebuild Email.apk using APKTools.
4. Renamed existing Email.apk and Email.odex for backup.
5. Copy my Email.apk to system\app and set permissions.
6. Reboot into CWM and wipe davlik cache (not sure if this is required).
7. Reboot.
Now the email app no longer exists in list of applications.
What steps am I missing?
If I'm not mistaken You can't edit odexed firmware!
You must first flash a deodexed rom and then change it to your heart's desire.
I guess I'll have to try deodex the rom myself then.
Thanks!
I'm now using Virtuous Picasso which is deodexed and am now able to modify /system/app applications.
However I think the actual problem was I forgot to sign the modified Email.apk. (Also had to sign Exchange.apk also as they need to be signed with the same certificate)
I think as long as the device is rooted you can replace /system/app applications?
See my signature for signing - piece of cake!
If you have a good and clear deodexing tutorial I'd appreciate it

How to make a 4-Way / 5-Way Reboot MOD on Android 5.0 Lollipop? Need Help!

Hi!
I need help for a Reboot MOD for the Samsung S5 G900F with the new Android 5.0 Lollipop Firmware (BNL9).
I have allready make this MODs for other Devices and Android Versions (4.1.2 / 4.2.2 / 4.4.2) and all works, but nothing is working in the G900F with Lollipop.
So i try this Guides:
http://forum.xda-developers.com/showthread.php?t=1573032
and
http://forum.xda-developers.com/galaxy-note-3/development/dev-tw-lollipop-torch-5way-reboot-t2997748
My Posts: http://forum.xda-developers.com/gal...tw-lollipop-torch-5way-reboot-t2997748/page22 and the follow parts...
But nothing is working.... if i replace the android.policy.jar it is nothing change in the System. With a ZIP over Custom Recovery with wipe cache but also nothing is changed. I can delete the android.polica.jar and nothing change in system
If i check on Reboot Menu "Reboot" it comes the normal Screen with "Yes" or "No" but not the Reboot MOD.
Here are my files (Stock and modded) Download
The files deodexed with this Tool http://forum.xda-developers.com/and.../script-app-joeldroid-lollipop-batch-t2980857 (Only android.policy.jar is deodexed)
have u tried xposed?
it has option to enable 4-ways like soft reboot,reboot recovery etc.
check it out
First i do not like Xposed because i want to make it my self and second... Xposed is not working on Android 5.0 Lollipop at the Moment.
So i need to make it in the Code Section without Xposed.
make your own mod then
You can't use deodexed framework on Odexed system/
Simply pushing deodexed file and removing correcsponding .odex is true only in case of apk NOT jar
So if you want to use it on Odexed version you have to reodexed that modified jar and have to replace both files. Again I don't know on your device S5 any reOdexing script working or not. If you want to test your jar is properly modified or not then jst test on any DeOdexed ROM.
Okay thank you @dr.ketan for this explanation.
But i have look in the Original Files and i see that the android.policy.jar donĀ“t have a *.odex File.
My misstake that i wrote that i delete the *.odex file. I have test and do so much :silly: sorry.
So it is then the same Issue? Because the only changes i make are in the android.policy.jar
Yeah lollipop doesn't have Android. Policy. Odex but it's hidden and that's why it doesn't make any difference when you replacing deodexed Android.policy jar
Because hidden odex part is still there and which is responsible for normal view of reboot menu.
If you have did same with any other jar which have odex part and you have removed odex and pushed deodexed file, likely system wouldn't have booted.
Sent from my SM-N910G using xda premium
Ok thanks again.
Now i must deodex all files in the folder app, framework and priv-app then it must work?
Lollipop is a great Version but very difficult to mod and many too learn new.
there are several mods already
http://forum.xda-developers.com/galaxy-s5/development/mod-translatable-4-reboot-outsource-t2835432
http://forum.xda-developers.com/galaxy-note-3/development/dev-tw-lollipop-torch-5way-reboot-t2997748
deleted
Darkman said:
Hi!
I need help for a Reboot MOD for the Samsung S5 G900F with the new Android 5.0 Lollipop Firmware (BNL9).
I have allready make this MODs for other Devices and Android Versions (4.1.2 / 4.2.2 / 4.4.2) and all works, but nothing is working in the G900F with Lollipop.
So i try this Guides:
http://forum.xda-developers.com/showthread.php?t=1573032
and
http://forum.xda-developers.com/galaxy-note-3/development/dev-tw-lollipop-torch-5way-reboot-t2997748
My Posts: http://forum.xda-developers.com/gal...tw-lollipop-torch-5way-reboot-t2997748/page22 and the follow parts...
But nothing is working.... if i replace the android.policy.jar it is nothing change in the System. With a ZIP over Custom Recovery with wipe cache but also nothing is changed. I can delete the android.polica.jar and nothing change in system
If i check on Reboot Menu "Reboot" it comes the normal Screen with "Yes" or "No" but not the Reboot MOD.
Here are my files (Stock and modded) Download
The files deodexed with this Tool http://forum.xda-developers.com/and.../script-app-joeldroid-lollipop-batch-t2980857 (Only android.policy.jar is deodexed)
Click to expand...
Click to collapse
hi buddy, I have the same problem, can you help and share with me the solution?
https://forum.xda-developers.com/attachment.php?attachmentid=4307358&stc=1&d=1508394148

Odex>Deodex>Permissions

I'm with the latest Lollipop rom for the n910F. I thought in deodexing all my system apps and framework so I pulled out through adb my system/app, system/priv-app and system/framework. Deodex every file and then in TWRP (twrp file manager) delete the original (odex) app, priv-app and framework folders and replace those folders with the deodexed ones previously copied to my sdcard. After that fix permissions and detete cache and dalvik and reboot.
Everything work fine, the rom boots normally and all works but now although I had fix permission in TWRP my app, priv-app, and framework folders and all files inside have rwx-rwx-rwx permissions.
Is there any problem to have permissions like that?
How can I fix these folders/files permissions?
Thanks
Answering myself have all the possible permissions on is not a problem (maybe a security one...) at least the rom run without problems. But using Total Commander I've corrected all the permissions.

How to Deodex Lollipop 5.1.1 (10.7.A.0.222)

Hey guys! Since deodexing older Z series phones with this latest update has been a pain in the *** for deodexing here's a detailed guide on how to get a correctly deodexed system folder and avoid bootloops...
First part: Getting files from the phone.
To get the files from our phone first we'll have to install ADB Drivers, you can find them here on xda or go google it. Once you have adb drivers installed go to the folder where you installed them. Press Shift while right clicking on the folder and select Open command promp.
Here are the commands to get the folders with apk, note that you'll find them in your C:\ folder.
- To get app folder:
Code:
adb pull /system/app /app/
- To get framework folder:
Code:
adb pull /system/framework /framework/
- To get priv-app folder:
Code:
adb pull /system/priv-app /priv-app/
You will get apk's only on app and priv-app folders, the only folder with odex files (arm folder) will be framework.
------------------------------------------------------------------------------------------------------------
Now let's go for sqsh files to get odex files for app and priv-app folders.
- To get odex.app.sqsh:
Code:
adb pull /system/odex.app.sqsh
- To get odex.app.sqsh:
Code:
adb pull /system/odex.priv-app.sqsh
You'll find these files inside the same folder where adb.exe is
Second part: Unpacking .SQSH files
To resume a little, you may refer to IaguCool's guide
Once you have downloaded SquashFS Tool, move both .sqsh files to the folder.
When you have opened the command promp use these codes to extract files...
> To get odex files for app folder (After extracting rename the squash-root folder to app):
Code:
unsquashfs -no-xattrs odex.app.sqsh
> To get odex files for priv-app folder (After extracting rename the squash-root folder to priv-app):
Code:
unsquashfs -no-xattrs odex.priv-app.sqsh
Third part: Merging files
Create a folder named system and move app, framework and priv-app folders from C:\ to the new folder.
After that grab the folders you extracted with SquashFS Tool and merge them with app and priv-app folder.
After doing this move SemcGenericUxpRes folder to priv-app folder
Fourth part: Deodexing
Download JoelDroid's Lollipop Batch Deodexer and replace the file named oat2dex.jar found on /tool folder with this one: Latest oat2dex
Then open the program and select the /system/ you've created to start the process.
Once it has finished, grab SemcGenericUxpRes folder and move it back to /framework
Now you can either replace folders manually on your phone using TWRP by moving the deodexed system folder to your phone and mounting System partition, erasing app, framework and priv-app folder and then pasting the ones from the deodexed folder. OR make a flasheable zip.
How to manually move folders to /system partition
> Boot to recovery (TWRP MANDATORY)
> Mount system partition
> Go to file manager and go to: /system/ partition
> Manually delete app, framework and priv-app folder (you must first open the folder, then open the menu and delete)
> Then go to where you put the deodexed folders, open app folder, open menu, choose copy and paste on /system/ folder, same process for priv-app and framework.
> Once you're done go to Wipe option, choose advanced wipe and wipe Dalvik-cache and cache.
> Boot and you're good to go! No need to fix permissions
In both cases, after you have either flashed or replaced the folders, go to Wipe option > Advanced Wipe and clean Dalvik-cache and cache to avoid problems.
Does it have issue with OpenGL and Play Store?
Sent from my D6503 using Tapatalk
RyTekk said:
Does it have issue with OpenGL and Play Store?
Sent from my D6503 using Tapatalk
Click to expand...
Click to collapse
No, that's why you need to download latest oat2dex version See deodexing part
Why not just copy App, priv-app and framework folder from system and deodex them?
Black_Eyes said:
Why not just copy App, priv-app and framework folder from system and deodex them?
Click to expand...
Click to collapse
Cause you get bootloop if you just replace odex files present in app and priv-app (Especially after replacing the deodexed framework folder in system).
If you extract via adb you'll get app and priv-app folders clean, without odex files. That way you can make a cleaner deodex since you don't replace .odex files, just merge both folders in one, app with .apks and app with .odex
I wish it was as easy as in 5.0.2 but no, on 5.1.1 is way more complicated to have a properly deodexed system.
BTW i've tried by deodexing manually by copying folder and then boot into recovery delete app, priv-app and framework folder via TWRP file manager and then flashed the deodexed zip and it worked
C:\adb>adb pull /system/odex.app.sqsh
remote object '/system/odex.app.sqsh' does not exist
C:\adb>adb pull /system/odex.priv-app.sqsh
remote object '/system/odex.priv-app.sqsh' does not exist
help
Everything was fine except google play services, it crashes every time i want add account
Perfect work @xkeita ,
I saw you asking so many guys about deodexing .222 firmware these days and finally you managed!
Great work, great tutorial. I will try asap.
could you provide the zip? or the zip from this thread http://forum.xda-developers.com/sprint-galaxy-s5/general/how-to-deodex-lollipop-rom-t3065596 can be used?
zyclops1 said:
C:\adb>adb pull /system/odex.app.sqsh
remote object '/system/odex.app.sqsh' does not exist
C:\adb>adb pull /system/odex.priv-app.sqsh
remote object '/system/odex.priv-app.sqsh' does not exist
help
Click to expand...
Click to collapse
same problem..
edi194 said:
Everything was fine except google play services, it crashes every time i want add account
Click to expand...
Click to collapse
Same here bro
I thought I had accidently deleted some necessary google services files while removing bloatwares so I tried flashing latest Gapps for 5.1.1 over stock sony FW but no effect. Can't figure out why
I'm having Xperia ZR (5.1.1 Stock)
zyclops1 said:
C:\adb>adb pull /system/odex.app.sqsh
remote object '/system/odex.app.sqsh' does not exist
C:\adb>adb pull /system/odex.priv-app.sqsh
remote object '/system/odex.priv-app.sqsh' does not exist
help
Click to expand...
Click to collapse
gundam_warlock said:
could you provide the zip? or the zip from this thread http://forum.xda-developers.com/sprint-galaxy-s5/general/how-to-deodex-lollipop-rom-t3065596 can be used?
same problem..
Click to expand...
Click to collapse
If you have an Xperia Z1 it might differ from this a little bit, I think those don't have odex.xx.sqsh on their filesystem, check if you have odex files in app and priv-app.
Phones that I know that so far work with this sqsh filesystem are Xperia Z, ZL, ZR, Xperia Tablet Z
edi194 said:
Everything was fine except google play services, it crashes every time i want add account
Click to expand...
Click to collapse
sshivampp said:
Same here bro
I thought I had accidently deleted some necessary google services files while removing bloatwares so I tried flashing latest Gapps for 5.1.1 over stock sony FW but no effect. Can't figure out why
I'm having Xperia ZR (5.1.1 Stock)
Click to expand...
Click to collapse
Did you clear dalvik-cache and cache? If it still gives you googleplayservices fc, manually download the GooglePlayServices from APKMirror and install as normal app
xkeita said:
If you have an Xperia Z1 it might differ from this a little bit, I think those don't have odex.xx.sqsh on their filesystem, check if you have odex files in app and priv-app.
Phones that I know that so far work with this sqsh filesystem are Xperia Z, ZL, ZR, Xperia Tablet Z
Click to expand...
Click to collapse
I tried to deodex directly without pull sqsh, everything except nfcnci failed, when i tried to copy to system and reboot, nfc is fc. When check nfcnci folder only apk and lib folder exsist, but nothing exsist inside lib folder.
Where do i wrong?
xkeita said:
Did you clear dalvik-cache and cache? If it still gives you googleplayservices fc, manually download the GooglePlayServices from APKMirror and install as normal app
Click to expand...
Click to collapse
Dalvik-cache & Cache ! I tried wiping the whole data, it didn't work.
App install window goes on forever and app not installing.
Got it working by installing latest play services before deodexing. (as the updated play services app in the data partition runs, no matter if system is having broken play services package)
Fixed it for now but still wondering what causes the issue
sshivampp said:
Fixed it for now but still wondering what causes the issue
Click to expand...
Click to collapse
same issue here , how can i fix this?
@xkeita Bro if not ask for much could create a video tutorial ? ?????
Hamidreza2010 said:
same issue here , how can i fix this?
Click to expand...
Click to collapse
what I did is flashed the ftf (to go back to stock)
installed latest play services via play store
then followed the deodexing guide
Note: after deodexing, do not wipe data or uninstall updated play services otherwise error will occur again
works fine thank you
ZR 5.1.1
After download the rom by XperiaFirm I must continue this step?
Second part: Unpacking .SQSH files
To resume a little, you may refer to IaguCool's guide
Once you have downloaded SquashFS Tool, move both .sqsh files to the folder.
When you have opened the command promp use these codes to extract files...
> To get odex files for app folder (After extracting rename the squash-root folder to app):
Code:
unsquashfs -no-xattrs odex.app.sqsh
> To get odex files for priv-app folder (After extracting rename the squash-root folder to priv-app):
Code:
unsquashfs -no-xattrs odex.priv-app.sqsh
Third part: Merging files
Create a folder named system and move app, framework and priv-app folders from C:\ to the new folder.
After that grab the folders you extracted with SquashFS Tool and merge them with app and priv-app folder.
After doing this move SemcGenericUxpRes folder to priv-app folder
Fourth part: Deodexing
Download JoelDroid's Lollipop Batch Deodexer and replace the file named oat2dex.jar found on /tool folder with this one: Latest oat2dex
Then open the program and select the /system/ you've created to start the process.
Once it has finished, grab SemcGenericUxpRes folder and move it back to /framework

need help for creating updater-script to install apps in system

i need some help setting up permissions in updater-script. actually i want to install Gboard and PlayGames in Lineage OS 16's System/app or system/priv-app folder. i can do it manually by copying files and set-up permissions and it works but i want to make a recovery flashable zip for installation i tried ZipMe.apk APP and then edit updater-script and add permissions but nothing works.
is there any flashble zip template for LineageOS PIE to install apps in system then please reply
If you just want to install those 2 apps, looks for the Gapps package that contains both, then follow this guide (https://github.com/opengapps/opengapps/wiki/Advanced-Features-and-Options) to install just that 2 apps you want.

Categories

Resources