Questions regarding latest 6.0.1 ROMs - Xperia Z2 Q&A, Help & Troubleshooting

I didn't want to hijack/spam any of the established threads, but I'm hoping some of the people working with roms will be kind enough to respond to me here.
On clean MM installed rom, you'll find the following folders :
- /system/odex.app
- /system/odex.priv-app
- /system/odex.framework
They all contain .odex files for respective folders, and when compared to the ones included in each app's folder, they are the exact same, what are these folders for ?
There are also files named odex.app.sqsh (priv-app and framework too), so are all these files ok to delete ?
One more thing, if you go into /data/app you'll find all your apps odexed there, why ? is this some kind of forced action by MM ? can these files be safely deleted ?
I'm asking these question because I'm getting random reboots on my ROM, and the Z2_fixbootloop zip posted in other threads doesn't work for me (I'm on a 6502 model, so my sim is not detected if I flash this file), I'm going to restore all the files I've removed to debloat the rom and see if the random reboots disappear, and then continue from there, but meanwhile any help from those who know is much appreciated.
Edit 01 : after a bit of googling, I extracted the sqsh files and they contains the exact same odex files from the odex.**** folders or the ones included with the apps themselves, so we have 3 copies of odex files in the rom ????

Related

[Q] Help about the LIB files and framework.jar

Hello everyone
I am facing a serious problem, if fixed, then it will be a big acomblishment
I am trying to make RTL patches (for arabic,hebrew) on odexed ROMs. The problem is I couldn't apply the patch ( which is made for deodex only) to these ROMs but just in one case: Deodex the whole ROM using kitchen then applying the patch then reodex the whole ROM using a tool by TearsDontFalls. That way it worked.( mentioning that the patch got files of the /lib folder and these files are: libandroid_runtime.so,libwebcore.so, and new generated files lib__bcore,libicuuc-arabic.so
but the Problem that if I want to deodex just a specific file (in my case framework.jar) and reodex again using the guide from this link , The patch works fine in the apps, but some apps are not working. The browser open then after 2 seconds force close, and the Samsung keyboard doesn't appear, but instead a graphical image that can be pressed, then the keys apear and just writes it!!!!!!
In my opinion, the problem is related to these Lib files which seems share a work with the framework file (.odex or .jar)
If anyone solved this for me, then you will made my day and be my hero
note: I am using i9000 with cutom ROM GamerzRom v11 jw5, I did everything correctly and tried it many many times!!
thanks alot.

[Q][test] change your rom without flashing anything [DUALBOOT ONLY]

Hi,
when i download some roms, release after release, i saw that, sometimes, only some files are changed.
if i make a little zip with only the differencies comparing two zip, and if i change updater-script
(deleting "delete system" process , deleting flashing kernel lines, generaly, at end of script and managing other things)
can someone confirm that if my updater-script never delete /system/ , i have no risk to "kill" my device ?
i have an idea about the reply but its good to have a thread about this question, no ?
i have test this following when i run a 2nd rom with dorimanx kernel.
- I search about differencies on two spirit releases rom. (using 7zip , good interface to compare and you have the total size of each folder in zip)
- On a structured folder, i keep only the new files from new release.
(apk, binary,priv-app,framework..., comparing them using size files essentialy because using the date as comparison filter never help in this way)
- i run my 2nd rom
1 - Remember us, with dorimanx kernel, when we are dualbooting roms, no matter the position rom you are run at a moment (1rst or 2nd), you will be able to see /system/ and /data/ partitions from the other rom which generaly sleep
2 - On PC, i generaly use WINSCP soft to acces easily on all structured folders of my device. (just let you know)
So,
- i launch WINSCP on PC, then i can log-in as root on my device, 2nd rom runing.
- in the interface gui of WINSCP, on left side, i see my extracted differencies structured with all files and in right side, i can see all folders from my device.
- with the interface gui from WINSCP, i can copy all that i need in /system_pri_rom/ and /data_pri_rom/ , which are the auto-mounted partitons from 1rst rom
- if DEV have moving some apks from /system/app/ to /system/priv-app/ , i move the files too. If DEV have delete some files, i delete too.
- when i reboot my 1rst rom, it booted without any trouble.
result :
the +
i dont flash anything
i dont change kernel
the -
looking for differencies between 2 zip take time
the +/-
i dont format/delete entire system and maybe with time, this can be corrupted.
If someone can help me this way by making a little script which can make the differencies with an output zip , it will be much appreciated
thanks.

What Is The Right Way To Include APK's In Android 5 (CM12) Rom ?

Hi @ all,
a short info what i was doing on cm11:
to include apps to my flashable zip i included my wanted apk's to /system/app and the depending libs of the apk's to /system/lib. This was working a long time perfect.
With CM12 there was not enough space in system partition so it is not longer possible.
To solve this in created an independend zip to flash which puts my wanted apk's to /data/app. Caused by the new structure in /data/app there is a subfolder for each app /data/app/appfolder/app.apk. For the needed libs on each appfolder there are subfolders /data/app/appfolder/lib/arm which contains the needed libs.
The Interesting part: some apps wont install on initial boot.
Another try was to create the structure /data/app/appfolder/app.apk without the subfolders for libs and the libs itselve then all apps will install but some crashes caused by the missing libs.
Has anybody knowhow to get it working correctly ?
PS: By try and error i noticed if apps are installed from playstore and later is updated by a new release the old one is not removed from /data/app. In older versions of android it was removed. Is this a normal behaviour now in android 5 ?
Thx

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

How to deodex Xperia Z2 6.0.1 firmware?

Can anyone tell me how to deodex Xperia Z2 6.0.1 firmware step by step? Thanks in advance....
+1
I am also looking for the same. On MM rom, Sony is using symlinks to link odex files.
A step by step guide would be highly appreciated.
Thank you
I'm not gonna go into deep details, but this should help.
- flash MM rom for your device, make sure it is ROOTED as you'll need to use an explorer with root access,it's better if you do this on a clean install, but this is just me
- boot your device and go through the setup process
- once done, install a browser with root access, I recommend MiXplorer, root explorer
- browse into /system folder
- check your /app, /framework, /priv-app, they should have odex files inside them (this was the case for me)
- copy these folders, plus build.prop file into sd card or the phone memory
- connect phone to pc and copy files over
- look up and download SVADeodexerForArtx(32 or 64 based on your system), you also need to have java installed on your machine.
- extract the SVADeodexerForArtxxx to your c: drive, and create a folder named /system insides, and post the files from your phone inside that
- your final folder will look something like this : c:/SVADeodexerForArtxxx/system/ (app, framework,priv-app) and build.prop file
- remember to move the Semcxxx app folder from /framework into /app folder or it won't be deodexed
- run SVADeodexerForArtxxx and point it to your /system folder, it will show you your android version, tick the checkbox for app, framework, priv-app, hit the start button
- it'll run and once done the log file will open and tell you how many were deodexed.
- the deodexed folders will be in the base folder, make sure to return the Semcxxx folder from the /apps to /framework
- create a flashable zip and flash these folders back on your rom
now your rom is deodexed
install Rom eXistenZ MM, rom is rooted and deodex
lokitooxd said:
install Rom eXistenZ MM, rom is rooted and deodex
Click to expand...
Click to collapse
The intention of this post was to learn how to do it. I know there is existenz and ultraslim deodexed roms. Thanks anyway.
@ticktock666
Thanks for the steps.
These steps looks to be from older version. Anybody with 6.0 Sony MM steps?
@ticktock666
There are certain other folders such as odex.app, odex.framework, odex.priv-app...what about these? These folders also contains similar odex files for app, framework and pri-app...
AlanDS said:
These steps looks to be from older version. Anybody with 6.0 Sony MM steps?
Click to expand...
Click to collapse
I deodexed my MM rom about a week ago, so I'm saying this from experience : it is up-to-date.
vikrant7027 said:
@ticktock666
There are certain other folders such as odex.app, odex.framework, odex.priv-app...what about these? These folders also contains similar odex files for app, framework and pri-app...
Click to expand...
Click to collapse
I'm not sure, but here's some of the stuff I noticed during the deodex process :
- I used to get the files using adb pull command directly to pc after a fresh rom install (remember to install a pre-rooted rom), but I did not get any odex files with the apps this way, so deodexing didn't work.
- after pulling the files from the device using a root explorer, each app had the odex files with them inside the correct folders.
- about odex.xxx folders and odex.xxx.sqsh files : they contain an exact duplicate of the odex files, no idea why (you can extract the sqsh files, they're basically special compressed odex file container sort of thing), which means the rom contains 3 versions of the same odex file, makes no sense.....
after deodexing and flashing the deodexed rom/files, I deleted odex.xxx folders and odex.xxx.sqsh files, and my rom works fine, fully rooted and with xposed. My current issue is that now if I browse into /data/app on the root of the drive I'll find an odexed version of every app I have installed, be it a user app or system app, and it's driving me crazy.
ticktock666 said:
I deodexed my MM rom about a week ago, so I'm saying this from experience : it is up-to-date.
I'm not sure, but here's some of the stuff I noticed during the deodex process :
- I used to get the files using adb pull command directly to pc after a fresh rom install (remember to install a pre-rooted rom), but I did not get any odex files with the apps this way, so deodexing didn't work.
- after pulling the files from the device using a root explorer, each app had the odex files with them inside the correct folders.
- about odex.xxx folders and odex.xxx.sqsh files : they contain an exact duplicate of the odex files, no idea why (you can extract the sqsh files, they're basically special compressed odex file container sort of thing), which means the rom contains 3 versions of the same odex file, makes no sense.....
after deodexing and flashing the deodexed rom/files, I deleted odex.xxx folders and odex.xxx.sqsh files, and my rom works fine, fully rooted and with xposed. My current issue is that now if I browse into /data/app on the root of the drive I'll find an odexed version of every app I have installed, be it a user app or system app, and it's driving me crazy.
Click to expand...
Click to collapse
Can u make a deodex rom for Xperia z2 mm rom d6502 indian version and post it on gdrive?? thanku in advance..? @ticktock666
Silverstarjigar said:
Can u make a deodex rom for Xperia z2 mm rom d6502 indian version and post it on gdrive?? thanku in advance..? @ticktock666
Click to expand...
Click to collapse
sorry buddy, but although just the deodexed files from my rom should work perfectly (it's only the apks, no other settings from the rom are included), it is near impossible for me to upload anywhere due to slow & unstable connection and power situation, since none of the hosting services support upload resume on their apps/sites.
ticktock666 said:
sorry buddy, but although just the deodexed files from my rom should work perfectly (it's only the apks, no other settings from the rom are included), it is near impossible for me to upload anywhere due to slow & unstable connection and power situation, since none of the hosting services support upload resume on their apps/sites.
Click to expand...
Click to collapse
Okk.. I will give it a try then!
Is there any script or something that we can flash through recovery ?
do you mean a script to deodex the rom on the phone ? if so then the answer is no
You can try this
ticktock666 said:
I'm not gonna go into deep details, but this should help.
- flash MM rom for your device, make sure it is ROOTED as you'll need to use an explorer with root access,it's better if you do this on a clean install, but this is just me
- boot your device and go through the setup process
- once done, install a browser with root access, I recommend MiXplorer, root explorer
- browse into /system folder
- check your /app, /framework, /priv-app, they should have odex files inside them (this was the case for me)
- copy these folders, plus build.prop file into sd card or the phone memory
- connect phone to pc and copy files over
- look up and download SVADeodexerForArtx(32 or 64 based on your system), you also need to have java installed on your machine.
- extract the SVADeodexerForArtxxx to your c: drive, and create a folder named /system insides, and post the files from your phone inside that
- your final folder will look something like this : c:/SVADeodexerForArtxxx/system/ (app, framework,priv-app) and build.prop file
- remember to move the Semcxxx app folder from /framework into /app folder or it won't be deodexed
- run SVADeodexerForArtxxx and point it to your /system folder, it will show you your android version, tick the checkbox for app, framework, priv-app, hit the start button
- it'll run and once done the log file will open and tell you how many were deodexed.
- the deodexed folders will be in the base folder, make sure to return the Semcxxx folder from the /apps to /framework
- create a flashable zip and flash these folders back on your rom
now your rom is deodexed
Click to expand...
Click to collapse
But with file odex.app.sqsh format...are that no need to extract
Sent from my D6503 using XDA-Developers mobile app
A1nur said:
But with file odex.app.sqsh format...are that no need to extract
Sent from my D6503 using XDA-Developers mobile app
Click to expand...
Click to collapse
sorry for the late reply, haven't been checking much recently.
now about those sqsh files, I've tried extracting them, and they seem to contains a 2nd copy of the odex files, not sure how they work, but after deodexing my rom I simply deleted them, and everything worked normally.
ticktock666 said:
sorry for the late reply, haven't been checking much recently.
now about those sqsh files, I've tried extracting them, and they seem to contains a 2nd copy of the odex files, not sure how they work, but after deodexing my rom I simply deleted them, and everything worked normally.
Click to expand...
Click to collapse
In new build fw 291 i try deodex that rom sir, n i do not extract sqsh.file...all normally work but if i delete boot.art n boot.oat it butlop....
How to i delete that sir
A1nur said:
In new build fw 291 i try deodex that rom sir, n i do not extract sqsh.file...all normally work but if i delete boot.art n boot.oat it butlop....
How to i delete that sir
Click to expand...
Click to collapse
I don't have the latest rom yet (not released for 6502), but when you go into your /system/app folder using a root explorer, do you see "arm" folder inside any of the installed apps ? maybe they changed something in 291, and now they only use sqsh files, also what does the log from the app says when you deodex the rom says ? it should say something like "300 apps deodexed, 10 apps already deodexed" or something like that.
ticktock666 said:
I don't have the latest rom yet (not released for 6502), but when you go into your /system/app folder using a root explorer, do you see "arm" folder inside any of the installed apps ? maybe they changed something in 291, and now they only use sqsh files, also what does the log from the app says when you deodex the rom says ? it should say something like "300 apps deodexed, 10 apps already deodexed" or something like that.
Click to expand...
Click to collapse
Thanks sir for your answered...
Sent from my Sony Xperia Z2 using XDA Labs
Hi!
Thanks, for good instructions!
It is also working for Xperia Z3 Compact on MM .291. I failed in the past, cause of forgetting 'semcxxx' in framework.
Greetz, brockn

Categories

Resources