How to compress a rom - Desire HD Q&A, Help & Troubleshooting

I used the SuFu, but found nothing that suit my situation.
I extracted a Rom to remove some apps i don´t need, but the problem is i used windows 7 (also Winrar) to compress the file together, but the phone is seeing the file but it´s not executable. When i click on the file in recovery mode, all i get are just the individual files and i cannot install like a normal rom.
How do i return the rom to it´s original form for installation. What am i doing wrong.

Use 7zip instead. Don't extract the ROM.zip file.
Once I stalled, right click / 7zip / open archive / and delete what you need.... Close, save if asked.
Sent from my Desire HD using XDA App

UpInTheAir said:
Use 7zip instead. Don't extract the ROM.zip file.
Once I stalled, right click / 7zip / open archive / and delete what you need.... Close, save if asked.
Sent from my Desire HD using XDA App
Click to expand...
Click to collapse
Thanx mate for the blitz response. will give it a try.

Related

Unzipping and zipping apk files?

I unzipped a apk file to change some of the images in the drawable-hdpi folder, how do I zip it back into an apk file to reinstall it on my phone. Or can I flash the zip file? I dunno how that would work...
Sent from my HTC Vision using XDA App
Can you get another copy of the apk?
If you can then the best thing to do is use winRAR or 7zip to open/explore the apk just like with a .zip file. That way you never unzip it and don't run into that issue. Using those allows you to delete and add files. You can also do the same thing on your phone using root explorer or something similar.
As far as correcting what you've done already (assuming you can't get a copy of that apk) I've completely forgotten since I never have to do it. I know if you look on the android sdk's site you can find the answer though.
adamtheindien said:
I unzipped a apk file to change some of the images in the drawable-hdpi folder, how do I zip it back into an apk file to reinstall it on my phone. Or can I flash the zip file? I dunno how that would work...
Sent from my HTC Vision using XDA App
Click to expand...
Click to collapse
An apk is just a zip file with the apk extension, once you zip it up change it from a .zip to a .apk
Sent from my T-Mobile G2 using XDA App
i changed what i wanted and rezipped, changed the extension, tried to install it, says problem parsing the package?
adamtheindien said:
i changed what i wanted and rezipped, changed the extension, tried to install it, says problem parsing the package?
Click to expand...
Click to collapse
It can also depend on which APK (system vs non-system) and which images (.9 images can be tricky to replace if you don't know what you are doing). Sometimes, you also need to re-sign the APK, depending on what you modified (there are tools to re-sign in the SDK or you can use something like APK Manager).
You should try the opening the APK directly in WinRAR/7-zip and replacing the images method. In my experience, if you are just replacing simple images, you usually don't have to re-sign when doing this (it leaves the existing signature intact).
ok i mainly just replaced images and and edited a couple. i dont know how to use all that adbsdkwhatever stuff.... -_- i know i should but im too lazy. so i dunno how to re sign it...
all im trying to do is edit the quick search bar images. maybe i dont have to do this if there is somewhere to find themed search bars?
If you can then the best thing to do is use winRAR or 7zip to open/explore the apk just like with a .zip file.
Click to expand...
Click to collapse
If your using winRAR click and drag stuff works if its one or two files.
If its a lot of images or a large file like framework-res.apk (I'm thinking your search bar might be in there if I'm not mistaken) then you'll want to make a new ZIP archive with "store" compression (uncompressed pretty much).
(also you shouldn't need to resign the framework-res.apk)
I haven't tested 7zips click and drag but the same principals apply. If its bigger files being recompiled Winrar tends to compress it a bit and sometimes it causes bootloops.
That being said, don't forget to nandroid
82_Z28 said:
If your using winRAR click and drag stuff works if its one or two files.
If its a lot of images or a large file like framework-res.apk (I'm thinking your search bar might be in there if I'm not mistaken) then you'll want to make a new ZIP archive with "store" compression (uncompressed pretty much).
(also you shouldn't need to resign the framework-res.apk)
I haven't tested 7zips click and drag but the same principals apply. If its bigger files being recompiled Winrar tends to compress it a bit and sometimes it causes bootloops.
That being said, don't forget to nandroid
Click to expand...
Click to collapse
Well from my experience, 7zip handles the task like a champ. I've taken every image out and put others back in with no issues. The downside is that some apps set certain dependencies in the .xml files so if you delete the wrong things it won't install and if it does, all you get is a fc all day. In that case it helps to know how to convert the xml binary to something readable (unless you're a king a hex editing).

[Q] How to Convert Zip to apk file? is this possible?

Hi everyone
is this possible zip file convert to apk?
its very important cause i try to instal any zip file but my rom is not rooted!!
please if this possible tell me
Thanks
change file from zip to apk
to change file type from zip to apk on windows 7
1- open computer in start menu
2- press alt
3- select tools and choose folder options
4- go to view and uncheck hide extentions for known file types
5- finally go to the file you want to change and change its name (ex: .apk)
It depends if you downloaded a file which was a zip file but was packed as an apk then yes changing the extension of .zip to .apk would be fine if you know what I mean.
Sent from my HTC Desire HD using XDA Premium App
Use zip2apk v1.0 to convert zip to apk
There is an application known as Zip2apk v1.0 that you can use to convert your zip to apk. unlike all other replies here where you have to interfere with your system settings, zip2apk v1.0 is a portable program built to convert zip to apks and does not alter system settings. link: f1compsolutions.kbo.co.ke/Zip2apk
thanks bro
ali magdy said:
to change file type from zip to apk on windows 7
1- open computer in start menu
2- press alt
3- select tools and choose folder options
4- go to view and uncheck hide extentions for known file types
5- finally go to the file you want to change and change its name (ex: .apk)
Click to expand...
Click to collapse
thanks bro, this little help really help me so much, good job
Both methods work like a charm. :highfive:
ali magdy said:
to change file type from zip to apk on windows 7
1- open computer in start menu
2- press alt
3- select tools and choose folder options
4- go to view and uncheck hide extentions for known file types
5- finally go to the file you want to change and change its name (ex: .apk)
Click to expand...
Click to collapse
This is really work Nice tip !
Thank you. I'm also searching for this info
No. Android binaries are located in a apk, you just can't turn a mod into a apk, the only way to build an apk is from Android SDK. Its not possible.
I recently made an android game, just for fun, and for some reason the site i was on changed it to a zip file instead of an apk file. I used a script to make this app. So it works, but i cant play it on my phone because it is in the zip format and whenever i rename it to .apk on my phone, it doesnt work. Any help wold be appreciated.
Sent from my LG-D415 using XDA Premium 4 mobile app
Maurice5813 said:
No. Android binaries are located in a apk, you just can't turn a mod into a apk, the only way to build an apk is from Android SDK. Its not possible.
Click to expand...
Click to collapse
Oh, how would i put my script into Android SDK?
Sent from my LG-D415 using XDA Premium 4 mobile app
Hi,
I'm trying to do something along these lines.
I have a keyboard skin that I want to change it's theme from blue to green. I unpacked it several months ago with EasyApk and attempted this but eventually gave up.
I've done all of the color editing to the .png files but after zipping and changing the ext to apk, it won't install. I get this message... "There was a problem parsing the package."
Any suggestions would be greatly appreciated.
RuLEoF2 said:
Hi,
I'm trying to do something along these lines.
I have a keyboard skin that I want to change it's theme from blue to green. I unpacked it several months ago with EasyApk and attempted this but eventually gave up.
I've done all of the color editing to the .png files but after zipping and changing the ext to apk, it won't install. I get this message... "There was a problem parsing the package."
Any suggestions would be greatly appreciated.
Click to expand...
Click to collapse
RuLEoF2, have you found a solution. I'm getting the same problem.
dabadoo said:
RuLEoF2, have you found a solution. I'm getting the same problem.
Click to expand...
Click to collapse
Nope. The XDA well of good will towards those in need has apparently dried up. Either that or I'm on the do-do list for something.
I haven't gotten responses to any of my last several posts for quite a while now.
Good luck!
RuLEoF2 said:
Nope. The XDA well of good will towards those in need has apparently dried up. Either that or I'm on the do-do list for something.
I haven't gotten responses to any of my last several posts for quite a while now.
Good luck!
Click to expand...
Click to collapse
I found a work around. I used 7zip in windows and made all of the edits (adding files, removing files, editing contents of files) I needed in the zip file WITHOUT unzipping it (7zip and winrar allow this). Once I did that I changed the extension back to apk and the app installed.
Hope this helps some people.
dabadoo said:
I found a work around. I used 7zip in windows and made all of the edits (adding files, removing files, editing contents of files) I needed in the zip file WITHOUT unzipping it (7zip and winrar allow this). Once I did that I changed the extension back to apk and the app installed.
Hope this helps some people.
Click to expand...
Click to collapse
Not working for me. What editing program are you using for graphics?
For graphics, let's say images. I would work on whatever it is you need to add, outside of the zip, and then just add that file by replacing it with whatever it is you wanted to edit. Do you get what I'm saying?
I used 7zip on windows to do this.
REVIVE!!
Its like this for me, I got an apk of Loco Craft (Android Game) extracted it into a folder with winrar, then I modified a bunch of things in there, then I compressed it to a .rar file with WinRAR, then I renamed it from application.rar to application.apk. then when I sent it to my phone (Acer B1-730, Android 4.4.2) and opened the apk file, it said: "There was a problem parsing the package"! So what do I do? Please!!! I really want to try my new game! And pls help me I am only 9!!!
How I make a gems generator?
ali magdy said:
to change file type from zip to apk on windows 7
1- open computer in start menu
2- press alt
3- select tools and choose folder options
4- go to view and uncheck hide extentions for known file types
5- finally go to the file you want to change and change its name (ex: .apk)
Click to expand...
Click to collapse
I want to create a gems generator for an outstanding game. Can anybody help me to create a gems generator like this

[Q] Anyone know how to install LMT launcher???

When i download the .Apk file it shows up on my desktop as a .Zip. If i place it on my sdcard Astro just wants to open it instead of installing it.
Any ideas on what im doing wrong???
Thank you
unzip it first on your desktop, the apk is located in the zip. and then move the apk
Jeff Zaugg said:
When i download the .Apk file it shows up on my desktop as a .Zip. If i place it on my sdcard Astro just wants to open it instead of installing it.
Any ideas on what im doing wrong???
Thank you
Click to expand...
Click to collapse
Hm, which version? It should just be an apk which you can download/install via phone. Or download it via desktop and move it to the phone. Perhaps your browser is doing something wrong!?
Sent from my Galaxy Nexus
Its version LMT v0.9 here from the Xda site.
Maybe im suppost to flash it in cwm.....
If i extract it to my desktop the files that show up are as follows-
res.rar
Androidmanifest.rar
classes.dex
resources.rar
META-INF.rar
Lib.rar
No apk in there. I sure i just dont know what im doing. Guess i need i step by step guide for beginers..lol
Jeff Zaugg said:
Its version LMT v0.9 here from the Xda site.
Maybe im suppost to flash it in cwm.....
If i extract it to my desktop the files that show up are as follows-
res.rar
Androidmanifest.rar
classes.dex
resources.rar
META-INF.rar
Lib.rar
No apk in there. I sure i just dont know what im doing. Guess i need i step by step guide for beginers..lol
Click to expand...
Click to collapse
Please don't install it via cwm! . An apk is nothing more than a normal zip file with a special folder structure/contained files (you already posted the contained files ). So perhaps your browser tried to find the "best" extension and named it *.zip. Just rename it to *.apk again, push it to your phone and try to install it again. Then it should work...
Sent from my Galaxy Nexus
noname81 said:
Please don't install it via cwm! . An apk is nothing more than a normal zip file with a special folder structure/contained files (you already posted the contained files ). So perhaps your browser tried to find the "best" extension and named it *.zip. Just rename it to *.apk again, push it to your phone and try to install it again. Then it should work...
Sent from my Galaxy Nexus
Click to expand...
Click to collapse
You were right. Thank you very much.
Guess windows was adding the .zip to the end of it after i renamed it .apk..lol Didnt notice that until i took a look at the file in Root Explorer and it was Lmt_v0.9.apk.zip. Just renamed it again to Lmt_v0.9.apk. Astro installed it just fine now...
Thanks again
This thread should have been posted on a microsoft windows forum. Period.

[Q] how do i extract the contents of 4.0.2.A.42.ftf?

how do i extract the contents of 4.0.2.A.42.ftf so that i can load it into custom rom creator studio and edit this stock rom/firmware to my liking? i wish to build my own rom from scratch and i want to base it from a stock rom of my phone (xperia play r800i). can anyone point me into this development/modding of roms?
Here are what i need to do:
1. removed bloatware stuff that i think is really bloatware for me
2. tweak the build.prop, init.d, sysctl.conf files, etc.
3. have my own home launcher
4. edit system.ui or the main looks of my android phone
5. incorporate auto-rooting feature to my rom
6. adding my own battery saving techniques to this rom through undervolting, governors and io schedulers.
If there is a thread on this topic which is universal for all android phones please give me a link. thanks. I have tested different roms for my xperia play and I decided that the best thing now for me is to be a rom developer as well. I already have Eclipse, JDK and Android SDK, Flashtool, etc. to begin with. What else do i need? thanks
I can't really help, but for #6 you'll need to make a kernel
Sent from my R800i using XDA
You can extract the .sin files from the .ftf with an archiving program like 7zip or Winrar, then user sin2img to convert the data and system .sin files to a readable .img format. Then edit the files from there
jacklebott said:
You can extract the .sin files from the .ftf with an archiving program like 7zip or Winrar, then user sin2img to convert the data and system .sin files to a readable .img format. Then edit the files from there
Click to expand...
Click to collapse
I dont get it. There is no other option when i extract 4.0.2.A.42.zip it just extracts to 4.0.2.A.42.ftf.
Sent from my R800i using XDA
anbu187 said:
I dont get it. There is no other option when i extract 4.0.2.A.42.zip it just extracts to 4.0.2.A.42.ftf.
Sent from my R800i using XDA
Click to expand...
Click to collapse
Unzip it.
Sent from my iDevice
savage24x said:
Unzip it.
Sent from my iDevice
Click to expand...
Click to collapse
it seems that my winrar version is obsolete lol installed 4.11 now and 7zip to be sure. now where do i edit my apks?

[Q] Open .face files on pc

Hello everyone, I would like to know if it's possible to open files with .face extension on a PC with Win or OSX.I tried unsuccessfully with xn viewer.
Try renaming to .zip and use 7Zip , Winzil or WinRar to open the file.
Sent from my HTC One using XDA Free mobile app
mayen said:
Try renaming to .zip and use 7Zip , Winzil or WinRar to open the file.
Sent from my HTC One using XDA Free mobile app
Click to expand...
Click to collapse
If you use 7Zip, you don't even have to rename it. It's that cool of a program that it'll let you extract anything that is extractable simply by right clicking on it.
Thanks for the tip.I can extract the files but I was hoping to see immediately the animated clock.Maybe one day there will be a program for PC similar to Facer in order to edit faces for the smartwatch.
Someone once mentioned a program that did exactly that. I can't remember what it's called now, but it was some ambitious name for the software.
Watchface-Studio
Thank you for the suggestion LazyT !!.
rename the .face to .zip then you can extract the info reverse step to make back to a .face and install Note make sure to turn off the "Hide extensions for known file type" in Folder view options..
Or use my program
Sent from my Galaxy Note 4 using Tapatalk

Categories

Resources