Flashing ZIP Folder Containing APK's via TWRP Recovery - Android Q&A, Help & Troubleshooting

Hi
I've started around three other threads here on XDA but I never seem*to get anyone answering my questions for something that should be so simple.
Anyway I've been trying to flash a ZIP folder containing third party APK files via TWRP to go alongside my fresh install of Lineage OS. All of the user apps install perfectly fine to the '/data/app' directory, however, system apps that are installing to the '/system/app' directory are only getting half installed. Basically when I boot into the ROM I can see all of the system apps in the app launcher, and even navigating through the phone with a root explorer I can see that I can see the correctly copied folder and file from inside the ZIP folder. For example the Google Snapseed app is stored as the following:-
/system/app/com.niksoftware.snapseed
>niksoftware.snapseed.apk
What's weird is that if I open the apk file and install it with the Package Installer*successfully*installs it but with a '1' suffixed to the end and two folders and a re-named apk file
/data/app/com.niksoftware.snapseed-1
> lib
> oat
> base.apk
For a little test I moved the 'niksoftware.snapseed-1' folder from '/data/app' to '/system/app', deleted the original 'niksoftware.snapseed'*folder and rebooted my phone. As expected the app continued to work perfectly fine with no force crashes.
If you're wondering why I'm installing the apps under a system app, it's because the user(s) I'll be passing the phone onto will be non-technical Android users. When the user needs to do a factory reset, the apps I pre-installed will survive if they're installed as system apps compared user apps that will get wiped.
There is literally nothing on any forums anywhere explaining how to flash system apps via recovery taking the more recent Android the OS' that have been released in the last few years. Could someone please help me out here?
Many thanks
Will

willowen100 said:
Hi
...
Will
Click to expand...
Click to collapse
Personally I never tried to install third party apps like that , but it could be interesting to test this out .
But I think you've made a mistake while trying to create the system folder :
You created this :
/system/app/com/niksoftware.snapseed
But the /com is not needed , I mean it maybe the reason of you issue .
So try to remove the /com :
/system/app/niksoftware.snapseed
Let me know if it worked

RaiZProduction said:
Personally I never tried to install third party apps like that , but it could be interesting to test this out .
But I think you've made a mistake while trying to create the system folder :
You created this :
/system/app/com/niksoftware.snapseed
But the /com is not needed , I mean it maybe the reason of you issue .
So try to remove the /com :
/system/app/niksoftware.snapseed
Let me know if it worked
Click to expand...
Click to collapse
Hi
Thank you for your reply. I've only just realised there is a typo in the directory. The 'com/' should be 'com.' However, I will give removing 'com' altogether to see if that makes any difference.

willowen100 said:
Hi
Thank you for your reply. I've only just realised there is a typo in the directory. The 'com/' should be 'com.' However, I will give removing 'com' altogether to see if that makes any difference.
Click to expand...
Click to collapse
Let me know if it worked , happy to see I helped :highfive:

RaiZProduction said:
Let me know if it worked , happy to see I helped :highfive:
Click to expand...
Click to collapse
I renamed all of the folders inside the zip folder so there is no '.' (dots) in the folder and file names and unfortunately the apps still crash. It's a shame there is no command that extracts the .APK files into their correct directories. I'd love to know how the OpenGApps package works because that basically does the same thing as my ZIP folder.
Sent from my LG-H930 using Tapatalk

willowen100 said:
I renamed all of the folders inside the zip folder so there is no '.' (dots) in the folder and file names and unfortunately the apps still crash. It's a shame there is no command that extracts the .APK files into their correct directories. I'd love to know how the OpenGApps package works because that basically does the same thing as my ZIP folder.
Click to expand...
Click to collapse
GApps does the same thing .
Basically it's a zip file with a script that copy all the file and the directories to the root directory of your phone.
I think the problem is the signature used bybthe third party apps. But that's just an hypothesis , I could be wrong I'll let you search more deep on that subject with Google , hope this helped a bit
:highfive:

RaiZProduction said:
GApps does the same thing .
Basically it's a zip file with a script that copy all the file and the directories to the root directory of your phone.
I think the problem is the signature used bybthe third party apps. But that's just an hypothesis , I could be wrong I'll let you search more deep on that subject with Google , hope this helped a bit
:highfive:
Click to expand...
Click to collapse
I've found a couple of APK/ZIP folder signing utilities but unfortunately they've made no difference.
The part that's going wrong somewhere is the folders that should be created alongside the APK files are not being created.
Sent from my LG-H930 using Tapatalk

I made some videos explaining the situation.
The first video shows the app crashing on launch. The APK file is installed at
Code:
/system/app/Snapseed
I then proceed to install it which is successful and installs itself as a user app found at
Code:
/data/app/com.niksoftware.snapseed-1
Next I rename it and move it to system directory and delete the original directory so there isn't a clash of identical apps. Finally I reboot the phone.
https://youtu.be/mL6ePOMnDQw
The second video I show that it opens up perfectly fine. To show that the two folders inside the
Code:
/system/app/com.niksoftware.snapseed
directory are important, I move them to the internal storage Downloads folder and then relaunch the app. It now crashes. I restore the folders and then app once again works again.
https://youtu.be/hL60APHTV7Q
Will

willowen100 said:
I made some videos explaining the situation.
...
Will
Click to expand...
Click to collapse
Hi , the videos you made made me understand better your issue , but I've a question , when you moved the oat and lib folders to the system , you opened the Snapseed app successfully without any bugs isn't it ?
And because the installation folders are in the system , the factory reset won't affect them .
So is your problem solved ?

RaiZProduction said:
Hi , the videos you made made me understand better your issue , but I've a question , when you moved the oat and lib folders to the system , you opened the Snapseed app successfully without any bugs isn't it ?
And because the installation folders are in the system , the factory reset won't affect them .
So is your problem solved ?
Click to expand...
Click to collapse
Yes you could say I have solved the problem but it's not the solution I'm looking for. I want to be able to install the apps in bulk during the flashing stage using a custom recovery like TWRP I'm using. The order I would flash would be:-
1) Flash Lineage OS
2) Flash OpenGApps
3) Flash additional apps (essentially third party apps from the Google Play Store)
Sent from my LG-H930 using Tapatalk

willowen100 said:
Yes you could say I have solved the problem but it's not the solution I'm looking for. I want to be able to install the apps in bulk during the flashing stage using a custom recovery like TWRP I'm using. The order I would flash would be:-
1) Flash Lineage OS
2) Flash OpenGApps
3) Flash additional apps (essentially third party apps from the Google Play Store)
Click to expand...
Click to collapse
Ok , now flashable zips are field so I can help you
If you want me to do it for you , just upload those files to Google drive and send me the link , I'll make your flashable zip and upload it to Dropbox so you can download it :good:.
The files you should upload :
• Libs folder of every third party apps you want to install
• Oat Folder of every third party apps you want to install
• Base.apk file of every third party apps you want to install
If you want to do it yourself , I'll make you a guide on how to do it ( you require a PC to do it with RAR and Notepad++ or another text editor installed on it )

RaiZProduction said:
Ok , now flashable zips are field so I can help you
If you want me to do it for you , just upload those files to Google drive and send me the link , I'll make your flashable zip and upload it to Dropbox so you can download it :good:.
The files you should upload :
• Libs folder of every third party apps you want to install
• Oat Folder of every third party apps you want to install
• Base.apk file of every third party apps you want to install
If you want to do it yourself , I'll make you a guide on how to do it ( you require a PC to do it with RAR and Notepad++ or another text editor installed on it )
Click to expand...
Click to collapse
I'd rather do it myself please if that's okay with you creating a guide, as I would like to learn how to do it for future reference? I use Notepad++ quite frequently and I use 7-zip to archive everything so I'm all setup there.
This is going to sound stupid but where do I get the Libs and Oat folders from except for copying them from Android? I am aware you can open the APK files themselves but I've never seen the Oat folders inside.
Many thanks again for your help so far.
Will
Sent from my LG-H930 using Tapatalk

willowen100 said:
I'd rather do it myself
...
Will
Click to expand...
Click to collapse
I meant I need the Content of this folder for each apps you want to install as system apps:
/data/app/com.niksoftware.snapseed-1
> lib
> oat
> base.apk
Click to expand...
Click to collapse
You will need this to make the flashable zip.
Copy and paste those files to your download folder ( Internal storage ) , then transfer those folders (and the APK file to your PC in order to use it .
I'm preparing the guide and I'll post it in around 10 min , don't forget to press the thank button on the posts

willowen100 said:
I'd rather do it myself please if that's okay with you creating a guide
...
Sent from my LG-H930 using Tapatalk
Click to expand...
Click to collapse
So , let's start with what you need :
- The folder /data/app/com.niksoftware.snapseed-1 and its content on your desktop
Now what you should do :
1) Extract the 2 folders in the template I made you
2) Open the system folder and create a folder called "app" into it
3) Copy the com.niksoftware.snapseed-1 folder (with the content inside it) and paste it into the app folder newly created
4) Repeate the step above for each and every app you want to install as system app
5) Exit the folders
6) Select the META-INF folder and the system folder and compress them with 7-Zip
7) You are ready to flash the zip to your phone !
My Advice is to do this in your Desktop in first place, because it's more easy to see what you're doing.
When you get used to this, you may do it everywhere (even on your phone).
Don't forget to disable signature verification in TWRP ( if there is the option , I don't remember well)
And make a backup of your phone before every modification , we never know what can happen (but in this case, it'll be okay since we're modifying nothing)
Hope this helped you , don't forget to press the thank button

RaiZProduction said:
I meant I need the Content of this folder for each apps you want to install as system apps:
You will need this to make the flashable zip.
Copy and paste those files to your download folder ( Internal storage ) , then transfer those folders (and the APK file to your PC in order to use it .
I'm preparing the guide and I'll post it in around 10 min , don't forget to press the thank button on the posts
Click to expand...
Click to collapse
I'm just trying to find out if there a more time saving tool that will extract the the lib, oat and base.apk from the containing .apk file so I can do it in bulk on a PC.
The problem I have is that I have about 20+ APK's that will be flashed additionally on top of the Lineage OS ROM and OpenGApps. Thinking how long it took to do one installing it as a user app, renaming it, moving it to the system partition, I would have to do that for everyone. Even if I was to do this method the contents I extracted for one Android architecture (CPU chipset type) used on one device may be completely incompatible on another.
Sent from my LG-H930 using Tapatalk

willowen100 said:
I'm just trying to find out if there a more time saving tool that will extract the the
...
on one device may be completely incompatible on another.
Click to expand...
Click to collapse
Unfortunately I don't know any tool able to do that.
And for the architecture , that's not really a problem
Because there are only 4 architecture :
x86 (rare)
x86_64 (very rare , mostly used on emulators)
arm (most common)
arm64 (common)
And the arm APKs work for arm64 devices , so you just have to do this for arm APKs and it'll be okay for almost every Android device . (Edit 1 : Not really sure of this info, should be good but I can't certify it 100%)
And I know myself that doing that takes time , but if you really want to do that , that's the only way I can suggest.
Do as you feel it , I hope my answers were clear and useful for you.
Let me know what's your decision,
Have a nice day

RaiZProduction said:
Unfortunately I don't know any tool able to do that.
And for the architecture , that's not really a problem
Because there are only 4 architecture :
x86 (rare)
x86_64 (very rare , mostly used on emulators)
arm (most common)
arm64 (common)
And the arm APKs work for arm64 devices , so you just have to do this for arm APKs and it'll be okay for almost every Android device . (Edit 1 : Not really sure of this info, should be good but I can't certify it 100%)
And I know myself that doing that takes time , but if you really want to do that , that's the only way I can suggest.
Do as you feel it , I hope my answers were clear and useful for you.
Let me know what's your decision,
Have a nice day
Click to expand...
Click to collapse
I'm going to go ahead with it. Like you said ARM will work for ARM64. Even if the apps become slightly outdated if I were to flash my ZIP onto future devices, as soon as the Play Store is installed it will hopefully update anyway.
Sent from my LG-H930 using Tapatalk

willowen100 said:
I'm going to go ahead with it. Like you said ARM will work for ARM64. Even if the apps become slightly outdated if I were to flash my ZIP onto future devices, as soon as the Play Store is installed it will hopefully update anyway.
Click to expand...
Click to collapse
Good luck my friend

Related

[GUIDE]Solution to recover some apps like IM,swype etc. mostly missing in custom ROMs

I am not sure if this is already known or has been discussed before. Search did not yield any relevant results. Please post your feedback.
Introduction
In most custom ICS ROM's, you might have noticed some apps like the Polaris office, Photo editor, IM or even Swype missing. These are not even there in many of the "Stock unmodified" versions released either. Surprisingly, they are very well present if you flash the original ROM through Odin. So where do these apps go? They are actually installed on first boot only if you flash from Odin.
Usual missing apps
KiesAir
OceanWeather and WindyWeather live wallpapers
Polaris Office
Photo Editor
Samsung IM
Swype
Vlingo
For those who do not want to go through this procedure and straight away want the CWM package of these missing files, you can download it from here...
How to extract them?
I am assuming the most common method ROM cooks use maybe using dsixda's kitchen (thanks to his fantastic scripts!).
When extracting and de-odexing the ROM, you may have noticed a file called hidden.img in the original ROM file which is usually ignored in this process. this file contains the above apps and they are installed to the /data/app folder. The hidden.img file is not readable using regular softwares, just like factoryfs.img.
Extract this hidden.img file from the original ROM image and paste it in the original_update folder of dsixda's kitchen (xxx.tar.md5 can be renamed to xxx.tar and opened in softwares like winrar)
Rename the hidden.img file to factoryfs.img.
Close any existing kitchen tasks and restart the kitchen.
Select option 1 to set working folder.
Make a backup of your existing working directory.
When prompted, choose the factoryfs.img option to proceed with (option 3).
You will get a message saying the file is being converted to a format for extraction.
The ext2fs program should automatically be launched.
Select open file in the program and choose the ext_factoryfs.img file (which is actually the converted from of the renamed hidden.img file).
Right click on the left pane where the opened file is listed and select Save.
Save it to the root folder of your working directory.
Now you will have a folder called data in your working directory with the missing apps. Include extraction of this folder in your updater script and you are done
If the tutorial wasn't clear, feel free to post questions on the thread.
Hope this was helpful, Cheers...
ajayjohn said:
In most custom ICS ROM's, you might have noticed some apps like the Polaris office, Photo editor, IM or even Swype missing.
Click to expand...
Click to collapse
It seems to be missing in all Deodexed ROM
Photo editor not working. Also there isn't new gallery app in official ROm???
nikki2325 said:
Photo editor not working. Also there isn't new gallery app in official ROm???
Click to expand...
Click to collapse
Photo editor works fine for me. Did you try clearing your cache?
Also, Samsung still uses the old GingerBread gallery.
Couldn't someone just extract the apps then post them here.
thecrater said:
Couldn't someone just extract the apps then post them here.
Click to expand...
Click to collapse
You can get them in a zipped file from here
Unzip and use the app you want.
ajayjohn said:
In most custom ICS ROM's, you might have noticed some apps like the Polaris office, Photo editor, IM or even Swype missing. These are not even there in many of the "Stock unmodified" versions released either. Surprisingly, they are very well present if you flash the original ROM through Odin. So where do these apps go? They are actually installed on first boot only if you flash from Odin.
Click to expand...
Click to collapse
Why not make a custom rom .tar? install with odin? or mobile odin?
If I wanted to flash this hidden.img in heimdall what should i do ? Meaning where should i put it ?
Sent from my GT-I9100 using XDA
Custom roms apps missing i just open the zip with win rar go to system /apps and ADD required apps or even delete apps not wanted close and flash .
Thats open not unzip .
jje
sachs said:
Why not make a custom rom .tar? install with odin? or mobile odin?
Click to expand...
Click to collapse
JJEgan said:
Custom roms apps missing i just open the zip with win rar go to system /apps and ADD required apps or even delete apps not wanted close and flash .
Thats open not unzip .
jje
Click to expand...
Click to collapse
That is definitely a way to do it.
But since these apps get installed to /data/app when installed via odin. Hence, to replicate that (not needed), i mentioned unzipping and installing as a regular apk.
Another option is to open the zip as you said and place these in a /data/app folder and flash it.
But primarily, this thread was created because i have found people asking on many rom threads about missing these apps, without getting a reply...
ajayjohn said:
But since these apps get installed to /data/app when installed via odin. Hence, to replicate that (not needed), i mentioned unzipping and installing as a regular apk.
Another option is to open the zip as you said and place these in a /data/app folder and flash it.
Its just the missing stock apps i put in system /apps i do not add apps to data s that is hit and miss unless the script is edited .
I also remove stuff i dont want from custom roms and add my own wallpaper ringtones boot CSC etc by the same method .
jje
Click to expand...
Click to collapse
Very nice and simple guide.Thank you :good:
since it s not mentioned, I advice to add the libs missing for polaris office and swype etc..
U can retrieve them opening the apks and check out the lib folder.
These have to be pasted into /system/lib to avoid FCs.
It s an important step, mention it into OP.
i'm trying to get stock swype for a galaxy ace s5830 installed on my custom rom. So far without succes. I have pasted swype.apk (extracted from stock rom!) into /system/app and libswypecore.so into /system/lib. Both with permissions: 6-4-4.
When I try to use swype I get an error that this swype version was intended to use on a different device. result: I can swype but nothing happens (no words are entered, though the different dictionairies are present in the swype.apk).
I'm wondering what I should do now. (besides checking the build.prop file for differences).
DutchArjo said:
i'm trying to get stock swype for a galaxy ace s5830 installed on my custom rom. So far without succes. I have pasted swype.apk (extracted from stock rom!) into /system/app and libswypecore.so into /system/lib. Both with permissions: 6-4-4.
When I try to use swype I get an error that this swype version was intended to use on a different device. result: I can swype but nothing happens (no words are entered, though the different dictionairies are present in the swype.apk).
I'm wondering what I should do now. (besides checking the build.prop file for differences).
Click to expand...
Click to collapse
It's galaxy s2 theard, ask in galaxy ace
Ganjax said:
It's galaxy s2 theard, ask in galaxy ace
Click to expand...
Click to collapse
sorry. I thought as it are both samsung devices, It would be the same for Ace, but I will ask in Ace forum.

Zip into apk

How to install a file with *.zip extension as normal apk???????? Instruction says as to install file as normal apk but when i downloaded i could retrive a zip file format only Plzzzzzzzzzzz do help
Sathub4u said:
How to install a file with *.zip extension as normal apk???????? Instruction says as to install file as normal apk but when i downloaded i could retrive a zip file format only Plzzzzzzzzzzz do help
Click to expand...
Click to collapse
2 things can be happening. Either after you exctract the zip file with Winrar and it contains an apk file which you can transfer to your phone and using a file explorer just run it.
Or you have to go into CMW clockwork mode recovery (if you have it) and select flash a zip file.
Sathub4u said:
How to install a file with *.zip extension as normal apk???????? Instruction says as to install file as normal apk but when i downloaded i could retrive a zip file format only Plzzzzzzzzzzz do help
Click to expand...
Click to collapse
if the apk is signed as zip then open that zip with some editor like notepad++ and save it as "*.apk"
There is no apk inside zip file.Its like meta file and system..But its just an app,is it necessary to install via CWM!!!!!!!!!!! in thread it was given as instal file as normal apk!!!!!!!!!!!!!!!!
Sathub4u said:
There is no apk inside zip file.Its like meta file and system..But its just an app,is it necessary to install via CWM!!!!!!!!!!! in thread it was given as instal file as normal apk!!!!!!!!!!!!!!!!
Click to expand...
Click to collapse
Search all the folders for a apk file
Sent from my Xperia Ray using Tapatalk 2
Just rename file's extension from .zip to .apk then. Depending on your OS configuration, you may have to edit 1 setting, if you can not change the extension. For that - Control Panel, Folder Options, View, untick Hide extensions for known file types.
Someguyfromhell said:
Just rename file's extension from .zip to .apk then. Depending on your OS configuration, you may have to edit 1 setting, if you can not change the extension. For that - Control Panel, Folder Options, View, untick Hide extensions for known file types.
Click to expand...
Click to collapse
:good: 1st on this thread who knows what about he talks :good:
bejunk said:
:good: 1st on this thread who knows what about he talks :good:
Click to expand...
Click to collapse
If u dont knw jst remain silent..Its clear..
Someguyfromhell said:
Just rename file's extension from .zip to .apk then. Depending on your OS configuration, you may have to edit 1 setting, if you can not change the extension. For that - Control Panel, Folder Options, View, untick Hide extensions for known file types.
Click to expand...
Click to collapse
Ya i have tried this bro,it works with certain apps..but few say problem in the package,could not install. tis is the download link http://d-h.st/mCp. it is downloaded as zip
How to install tis link
http://d-h.st/mCp tis link downloads a zip file..the thread says that it has to installed as normal apk..I tried renaming file extension into apk..Any help by Android lovers.................
Sathub4u said:
http://d-h.st/mCp tis link downloads a zip file..the thread says that it has to installed as normal apk..I tried renaming file extension into apk..Any help by Android lovers.................
Click to expand...
Click to collapse
got it as apk bro
btw what browser are you using
am using chromium(chrome)
smarthavoc said:
got it as apk bro
btw what browser are you using
am using chromium(chrome)
Click to expand...
Click to collapse
dear chrome user can u tell me if this browser gettting lags when openend many tabs i would likely use it but this happens on many browsers
bejunk said:
dear chrome user can u tell me if this browser gettting lags when openend many tabs i would likely use it but this happens on many browsers
Click to expand...
Click to collapse
nope it is better without lags and crashes
am on Ubuntu 13.10, i have issues with Firefox(some crashes), so i use chromium no lags at all for me
smarthavoc said:
nope it is better without lags and crashes
am on Ubuntu 13.10, i have issues with Firefox(some crashes), so i use chromium no lags at all for me
Click to expand...
Click to collapse
thank u for review.. hope it works same for me....
i only used stock browser until now bcuz like said after to many opened sites most browser get bad lag (oom)
bejunk said:
thank u for review.. hope it works same for me....
i only used stock browser until now bcuz like said after to many opened sites most browser get bad lag (oom)
Click to expand...
Click to collapse
guess it is not that memory problem, chrome&firefox renders on quality than speed, so most animations lag if more than 10-15 tabs(content also matters may be) are opened at once
anyway we were off the topic
did you got it @Sathub4u
smarthavoc said:
guess it is not that memory problem, chrome&firefox renders on quality than speed, so most animations lag if more than 10-15 tabs(content also matters may be) are opened at once
anyway we were off the topic
did you got it @Sathub4u
Click to expand...
Click to collapse
no from my brain, bro ;D i dont talk same as somebody else said :/ i get behind myself im pretty sure its oom, bcuz if i usng stock browser he holds 2 sites loaded, now when open more sites , he only holds the current one. so if i switch to other site he (re)load data. on it. memory usage is some higher but okay. now when i use some browser that usaally tries to holds all the data my memory decreases very hard until to some mb left, on early legacy xperia buils my phone restarted more often if i used other browser hard. i faced this issues on nearly all new browser's... sometimes even my device stops responding so must take off battery i never faced this on stock browser but more site-reloads.
i had seen this behaviour on several roms like stock ics and cm's JB. ...
ahh YES OFFTOPIC! sry ur right bro but thanks for help

Flash all your apps at one time (makes life so much easier)

Here is a .zip where you can flash all your apps in one fell swoop.
This is not my work but something Silesh made for me. I don't think he will mind me sharing it.
I use it all the time and it saves me tons of time not having to install my apps manually.
All you need is WinZip
Just put all your apk files into the data/app folder
and flash away.
What I do is flash the rom and fully boot it first,
then I go back into recovery and flash this .zip.
Boom, all my apps installed. Very nice!
I put just one apk in there. Clean Brower, just so it will work and I can post it here.
Another trick is, using Root Explorer on you phone, just copy your data/app folder from your rom
Then replace that app folder in this .zip and all your apps will be in there.
The advantage to doing this is even when you update or add new apps your apps from the playstore or other, the updated apks will end up in this flashable .zip.
Just make sure when using WinZip when you "add files" and add the app folder you drag it into the data folder. (first delete the app folder that is already in there.)
Again all credit goes to Silesh
Just thought I'd share this.
..
Thanks :good:
Nice to have. Thanks for sharing.
Very good!
Thanks for you. It really works.
Please, can you show, how I can use your zip for another devices? May be for I9000?
faorekh said:
Thanks for you. It really works.
Please, can you show, how I can use your zip for another devices? May be for I9000?
Click to expand...
Click to collapse
It should work on other devices the same.
It flashes all your apps to data/app folder which is used on any Android device.
Obviously not for windows or apple.
Sent from my GT-I9205 using Tapatalk 2
Hi,
zcink said:
It should work on other devices the same.
It flashes all your apps to data/app folder which is used on any Android device.
Obviously not for windows or apple.
Sent from my GT-I9205 using Tapatalk 2
Click to expand...
Click to collapse
zicnk, maybe you are interested in this app too:
https://play.google.com/store/apps/details?id=zip.me&hl=en
treare said:
Hi,
zicnk, maybe you are interested in this app too:
https://play.google.com/store/apps/details?id=zip.me&hl=en
Click to expand...
Click to collapse
Yes thanks.
I have a couple other apps that create flashable zips
But none work as good as the script Silesh has made.
One has an aroma installer but it also has alot of bugs.
Copying my data/app folder into Silesh's .zip works flawless for me.
Sent from Smoke Signals
Aroma Installer
Here is an apk that basically does the same thing.
You can use it to backup and reflash all your apks in recovery at the same time.
This one uses an aroma installer which is nice because you can check or uncheck only the apps you want to install.
It will also do system apps.
Not my work. Had this kicking around from a older phone.
Seems to work fine on the Mega.
Just sharing.
Sent from Smoke Signals

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

ALL IN ONE ZIP[HwIntelligent, CallRecord, HwParent, Autorun, HwMusicCutter, HpPlugin]

This is the all in one zip file with some extra functionality for honor 6x.
The file will give you some useful utilities like hw intelligent , call record , autorun, hp plugin, music with cutter, parent control.
REQUIREMENT:
1. ROOT , TWRP RECOVERY.
2. ANY ROOT EXPLORER.
STEPS:
1. OPEN ANY ROOT EXPLORER AND NAVIGATE TO SYSTEM/PRIV-APP/GOOGLE PACKAGE INSTALLER
2. DELETE THE FOLDER GOOGLE PACKAGE INSTALLER.
3. REBOOT TO RECOVERY , FLASH THE DOWNLOADED ZIP .
THATS IT , YOU HAVE DONE IT.
Download links below :
http://gestyy.com/wrLHXH
screenshots
http://gestyy.com/wrLGLz
Thanks
XDA:DevDB Information
EXTRA UTILITIES FOR HONOR 6X, Tool/Utility for the Honor 6X
Contributors
Khan ubaid
Version Information
Status: Testing
Created 2017-11-05
Last Updated 2017-11-05
It doesn't work on 6X BLN21, bootloop on start after flashed the zip !
MiPiMok said:
It doesn't work on 6X BLN21, bootloop on start after flashed the zip !
Click to expand...
Click to collapse
You can go for manual setup ,
1. Extract the zip file, you will get HwCallrecord, HwParent, HwIntelligent under system/app
and PackageInnstaller, HwMediacenter, HpPlugin under system/priv-app.
2. Copy these files in corresponding directory by using any root explorer under root/system/app and root/ystem/priv-app.
3. If you want package installer with autorun and backgroung run facility, you have to delete the GooglePackageInstaller under /root/system/priv-app/GooglePackageInstaller.
4.Give permission to the apk files as well as folders, How? go through screenshots.
5. Reboot, Enjoy
Any queries, you can ask....
Remember to give permission to every folders and files you place or replace...
MiPiMok said:
It doesn't work on 6X BLN21, bootloop on start after flashed the zip !
Click to expand...
Click to collapse
Permission to odex file also...
http://q.gs/Dx2KW
Done ! And it works, thanks.
Welcome buddy...
Hi, I've got problem with HwParent and HwIntelligent, how install them if they are not installed in the original ROM...because I can't install them normally...package corrupt it says me....
you cannot install them normally, they have to be placed in the system partition and changing the permission as i have already given the screenshots...
Thank you
Hey,
thank you for explaining the manual way - that helped me a lot and also fixed a second problem i have had.
The problem was, that after the update my FM Radio was gone.
I found the app here but i cant push files by ADB as root. So i just installed doing the same way:
i copied the apk to an own folder to /system/app/ , set permissions, rebbooted and it worked perfect.
all your apps are working too.
Except the parental controll - i didnt install it because nothing planned yet... ^^
starkeeper2018 said:
Hey,
thank you for explaining the manual way - that helped me a lot and also fixed a second problem i have had.
The problem was, that after the update my FM Radio was gone.
I found the app here but i cant push files by ADB as root. So i just installed doing the same way:
i copied the apk to an own folder to /system/app/ , set permissions, rebbooted and it worked perfect.
all your apps are working too.
Except the parental controll - i didnt install it because nothing planned yet... ^^
Click to expand...
Click to collapse
Thats good.... keep it up,,
and about parent control should work too, after installing by the given procedure is done,,, you will find it under setting/additional setting /student mode
Khan ubaid said:
you cannot install them normally, they have to be placed in the system partition and changing the permission as i have already given the screenshots...
Click to expand...
Click to collapse
OK sorry, it was badly asked... I did it as you explained and I succeed to install them but I can't find where to activate them... Now, I find the parent control in the advanced settings with the "student app" with the last post and it works but where I can find or activate the "intelligent" smart assistance app ? And about the package installer, I pasted it in the priv-app file but what happens now ?
MiPiMok said:
OK sorry, it was badly asked... I did it as you explained and I succeed to install them but I can't find where to activate them... Now, I find the parent control in the advanced settings with the "student app" with the last post and it works but where I can find or activate the "intelligent" smart assistance app ? And about the package installer, I pasted it in the priv-app file but what happens now ?
Click to expand...
Click to collapse
After you paste the package installer and gave permission , you have to delete( or cut to make a copy of ) google package installer,,, it will be activated when you remove google package installer folder in the same directory
link dead
Link dead need mirror for the same
.
does anybody have the apps from the link?
can someone reupload it?

Categories

Resources