[Q] Just a thought - Galaxy Ace S5830 General

Is it possible to mod recovery.img for it to process .rar files instead of .zip ?
RAR files have better compression
Herpderp Adreno + Tegra.

EmoBoiix3 said:
Is it possible to mod recovery.img for it to process .rar files instead of .zip ?
RAR files have better compression
Herpderp Adreno + Tegra.
Click to expand...
Click to collapse
IMO (sorry if I didn't answer the question) 7zip has better compression ratio than both of them for most files. And it's opensource, so it would (theorectically) easier to implement... right?

adeklipse said:
IMO (sorry if I didn't answer the question) 7zip has better compression ratio than both of them for most files. And it's opensource, so it would (theorectically) easier to implement... right?
Click to expand...
Click to collapse
agree. 7zip with lzma or xz compression is far better than rar.

Answer or failure of the day upto you -
OK guys when android developers whomever made android os they thought they need a format to use in recovery and it dose not have license issues. So, bcz zip extractors are preinstalled in windows, Linux and mac from very start that's why they use zip format but to use rar you have to use a third party applications like winrar or 7zip. That's my theory hope you guys like it.....
If I helped you In any means hit thanks button.....

Seeing as there are file managers and apps that can unrar (not always successfully) it should theoretically be possible, but I'm sure Koush would have implemented it by now if it was worth the work. Could be it would make the programme massive and inefficient. Maybe this idea is what lead to the creation of Mobile Odin because it wasn't practical to do within Clockworkmod.
Give it a go. Might become your claim to fame in the Android world if you pull it off
Sent from a phone with an app.

sdotmouse said:
Seeing as there are file managers and apps that can unrar (not always successfully) it should theoretically be possible, but I'm sure Koush would have implemented it by now if it was worth the work. Could be it would make the programme massive and inefficient. Maybe this idea is what lead to the creation of Mobile Odin because it wasn't practical to do within Clockworkmod.
Give it a go. Might become your claim to fame in the Android world if you pull it off
Sent from a phone with an app.
Click to expand...
Click to collapse
Lmao , it's just a thought , never had the ability to do it .
Herpderp Adreno + Tegra.

Related

deodex for the streak?? Anybody.. anybody??

Does anyone know if someone has created a deodex .zip file to flash via customer recovery?
For those that don't know, many of the apk files installed by an official rom will have a .odex file associated with them which slows down your phone considerably. These odex files interact with delvik cache and java VM and from what I understand wreak havoc on data access times and are largely uneccessary. Other dev platforms such as the droid x and evo have a .zip file that you can simply flash via recovery that will "deodex" your apps in system\apps folder. Basicially this zip will take your odex file and associated apk file and take the important information out of the odex and input it into the apk making just one streamlined faster file.... with all of your odex files gone, your phone will spend less time executing programs both for end user and core google apps and your phone will be way faster. Any idea if someone has developed this yet for the streak? Thanks
For others who, like me, didn't understand the question - read this.
But what I gathered from that wasn't that de-odexing speeds anything up, more that it makes it easier to make modifications.
Why are you posting this in more than one forum? This is the same as what you posted in the dev forum, right?
Sent from my Dell Streak using XDA App
alperin1 said:
Why are you posting this in more than one forum? This is the same as what you posted in the dev forum, right?
Sent from my Dell Streak using XDA App
Click to expand...
Click to collapse
wasn't sure if anybody would follow what I am posting in the QA as most noobs are in here. Why do you care? I meant delete this one and go with the developer post anyway.
marvin02 said:
For others who, like me, didn't understand the question - read this.
But what I gathered from that wasn't that de-odexing speeds anything up, more that it makes it easier to make modifications.
Click to expand...
Click to collapse
Marvin my man.... deodexing more than doubles data access speeds for core google apps and makes the phone more snappy. Seen this performed on a droid x and an HTC evo... works wonders.
I just want to know if someone has developed a simple flashable .zip file that will deodex my system/app apk files so I can speed things up and modify my self. I don't care that dj steve's rom already has this done... I don't care for steves latest roms as they are very buggy on 3g, wifi, gps, notification bar hangs, drops data when wifi toggle is enacted, gmail won't sync... I got tired of messing with he streaddroid roms (for now) and went to stock 318 with just smokku's dj steve kernal mod which allows me to OC to 1.19ghz. I get 2000 quad out of that and I am happy, plus I get the added bonus of having a 99.9% stable rom. Can't wait to see what steve comes out with next. i always try his roms out first.
Thanks
You could probably copy you're system/app folder and write a simple batch script to use baksmali to deodex *.odex, use 7-zip command line to put the .dex file in the apk (I assume that is what has to happen), and then push that folder back to your phone with an adb push. I dont really want to try this because I'm on 319 and cant make a nandroid backup but since you can on 318 it never hurts to try.

[Q] dump modem.bin?

I pretty much give up on this, and it's not all that important, but it's bugging me.
How do you, or even CAN you, dump the radio/modem from this device? The best I've been able to do is scour the web and end up with a 512KB .bin file that essentially contains nothing but 0xFF bytes in it.
(If context is required, I'm learning how to make an ODIN image from a device ... and so far this is the only partition that's really killing me)
Just download one of the complete Odin tar files and use something like winrar to extract all the bin files from it.
Sent from my SCH-I500 using XDA Premium App
you cant dump the modem...its like the only thing that cant be....if making a full odin package, pack in one of our existing ones
nitsuj17 said:
you cant dump the modem...its like the only thing that cant be....if making a full odin package, pack in one of our existing ones
Click to expand...
Click to collapse
That's what I figured, since it seems to be something you can't do with the Epic either. Do we know if it's because of CDMA? Something that needs to be secured from dumping perhaps? Meh, doesn't matter
Thanks guys!

[HOWTO] Theming your Sense framefork for newbies

It's not much, but I thought everyone should be able to theme their Legend
Requirements: WinZip(or any other zipping program), Android SDK, testsign, some graphics editor...
So what you need to start with is your framework files:
framework-res.apk, com.htc.resources.apk ... both are located in SYSTEM:framework/
These files are just renamed zip files, so rename them back to .zip and extract them (you can also edit them inside WINRAR or something, but it is more comfortable if you extract them)
In these, images are usually saved in res/drawable-mdpi or such, but you have to think here, allways modify all files from one resource
Now locate the images you want to edit but I only know how to edit .png files (.9.png files are for a different howto, probably not by me as I've never really mastered it)
Pick those you want to edit, and edit them (I'm not gonna tell you how here, I usually use photoshop to do that )
Once you have edited those images, it is recomended to optimize those png's (Firstly to make them smaller, but more importantly, most of the times the png's from Windows graphics editor didn't work for me...)
To optimize png's you can use:
OptiPNG: DOWNLOAD This one is drag'n'drop batch conversion capable...
Pngcrush: DOWNLOAD Command line utility, but it has more settings
...or something else, but I find these two the best
Once you have these optimized, copy and re-write them to folders you took them from to edit...
Now you need to zip these back, for framework files I was told it is usual to zip them as "store", but correct me someone if I'm wrong.
After you have zipped those, they will have to be re-signed. To do this, use testsign from code.google.com
Then run this in cmd line (or create a .bat file as I did, it's much easier):
Code:
java -classpath testsign.jar testsign [COLOR="DarkRed"]file.zip[/COLOR] [COLOR="DarkRed"]file-signed.zip[/COLOR]
Now that you have signed it, it is recomended to zipalign it:
(zipalign.exe is located in /tools in your SDK)
Run this in cmd line:
Code:
zipalign 4 [COLOR="DarkRed"]infile.zip[/COLOR] [COLOR="DarkRed"]outfile.zip[/COLOR]
(4 is alignment in bytes)
Now that you have aligned the .zip, rename it to the original name and then you just need to push it back to your phone:
Code:
adb shell mount /system
adb push [COLOR="DarkRed"]com.htc.resources.apk[/COLOR] /system/framework/[COLOR="DarkRed"]com.htc.resources.apk[/COLOR]
or
adb push [COLOR="DarkRed"]framework-res.apk[/COLOR] /system/framework/[COLOR="DarkRed"]framework-res.apk[/COLOR]
And you're done
I hope this helps someone! Enjoy!
note: This way you should be able to modify any apk I think
Is this the thing that has the potential to break the power menu in BlaY0's ROM, among other things?
Amongst other things...but this works on any ROM as long as you follow the guide I've succesfully ported my BattMod and Cryshop's navbar/lockscreen to B0.8 while doing these exact steps
Dr.Romca said:
Amongst other things...but this works on any ROM as long as you follow the guide I've succesfully ported my BattMod and Cryshop's navbar/lockscreen to B0.8 while doing these exact steps
Click to expand...
Click to collapse
can you post them?
stegg said:
can you post them?
Click to expand...
Click to collapse
Why? He gave you quite simple instructions on how to construct it yourself, so he wouldn't need to do that for every single release for any of you.
Sent from my HTC Legend
Right on I think it's simple enough...besides, I had to figure this all out myself...
It's nice when people use that round head sitting on their neck
BlaY0 said:
Why? He gave you quite simple instructions on how to construct it yourself, so he wouldn't need to do that for every single release for any of you.
Sent from my HTC Legend
Click to expand...
Click to collapse
you have some personality disorder, you'd better see someone specialised in mental health care
stegg said:
you have some personality disorder, you'd better see someone specialised in mental health care
Click to expand...
Click to collapse
I will do that as soon as you contribute at least one theme for three different roms and then supply new updates for every new release of those roms...
Sent from my HTC Legend
stegg said:
you have some personality disorder, you'd better see someone specialised in mental health care
Click to expand...
Click to collapse
Oh come on stegg, that was uncalled for I just think it's a better idea to share how I did it rather then do all the work for you. Hell it would be a full time job - making themes for everyone
...too bad there isn't a "what the hell?" button ...
Question ; are there any limitations to what you can port like different functioning slide bar / nav bar?
Sent from my HTC Legend using XDA Premium App
This howto only tells you how to replace png's inside those framework .apk packages. And you can change navbar as well, but you'd have to make it in the same shape as long as you don't want to decompile the apk...
Cool thanks, I'm giving this a go now
Sent from my HTC Legend using XDA Premium App
I guess my device has to be rooted to do this?
You are correct, sir
Damn...

[Q] WinRAR Error trying to edit ROM files

I'm trying to edit some of the files in the ROM before flashing so I can have my defaults settings in place. I could do this just fine with EVO 4G ROM files, but when I try to open...say...build.prop, it says the archive is corrupt and that there are no files to extract. However, the ROM will flash onto my phone just fine.
Do I need a different version of WinRAR? Different program? Anyone else having that problem? Thanks for any answers.
Holyrolla said:
I'm trying to edit some of the files in the ROM before flashing so I can have my defaults settings in place. I could do this just fine with EVO 4G ROM files, but when I try to open...say...build.prop, it says the archive is corrupt and that there are no files to extract. However, the ROM will flash onto my phone just fine.
Do I need a different version of WinRAR? Different program? Anyone else having that problem? Thanks for any answers.
Click to expand...
Click to collapse
Update winRAR, or try 7zip. Redownload the file if you still get the error.
Maybe the ROM is signed that will keep you from making changes without extracting it first..
Id have to say use 7zip. Free app that's a 1000 x better for using when doing rom and theme building. IMO of course
Papa Smurf151 said:
Id have to say use 7zip. Free app that's a 1000 x better for using when doing rom and theme building. IMO of course
Click to expand...
Click to collapse
7zip does not care if the .zip is signed or not. Don't know if I would agree that its a 1000x better but thats just me. This is why I don't sign my ROMs anymore. Just encase someone wants to delete or add something before they flash.
zone23 said:
7zip does not care if the .zip is signed or not. Don't know if I would agree that its a 1000x better but thats just me. This is why I don't sign my ROMs anymore. Just encase someone wants to delete or add something before they flash.
Click to expand...
Click to collapse
It doesn't matter if a rom is signed or not. Its just a zip file. With 7zip u should be able to edit what ever you want. You won't be able to view any PNG files unless they are extracted but if you edit the rom or the apk it will usually break the signature which isn't a huge issue. You can always resign an apk or flash a rom without a signature. I can't stand win zip or winrar. They take forever and always have to extract crap. With 7zip its drag and drop and never an issue.
Thanks guys. I'll give 7-zip a try. That must mean that none of the EVO 4G roms I've ran (CM7 and MIUI) were ever signed...
Holyrolla said:
Thanks guys. I'll give 7-zip a try. That must mean that none of the EVO 4G roms I've ran (CM7 and MIUI) were ever signed...
Click to expand...
Click to collapse
Probably not most DEVs stopped signing ROMs a while ago.

Working with backups.

Ok, this may be answered elsewhere, I don't know. "Search is temporarily unavailable" I am trying to understand how I am supposed to work with the backup from CWM. I understand that I should have a System image that I can work in, but what I have is 3 files in its place. System.ext4.tar, System.ext4.tar.a, and System.ext4.tar.b. All three files are broken to some degree.
System.ext4.tar is a zero byte file.
System.ext4.tar.a appears to be a spanned tar file that 7ZIP/WinRAR simply think was cut-off (never asks for the second file, and complains of unexpected End of Archive)
System.ext.4.tar.b appears to be the second part of the archive, but nothing will open it.
So, how do I get to a point I have a complete archive that I can edit? Or do I need to use different software than CWM to back up the phone?
Thanks for the help guys.
waldojim said:
Ok, this may be answered elsewhere, I don't know. "Search is temporarily unavailable" I am trying to understand how I am supposed to work with the backup from CWM. I understand that I should have a System image that I can work in, but what I have is 3 files in its place. System.ext4.tar, System.ext4.tar.a, and System.ext4.tar.b. All three files are broken to some degree.
System.ext4.tar is a zero byte file.
System.ext4.tar.a appears to be a spanned tar file that 7ZIP/WinRAR simply think was cut-off (never asks for the second file, and complains of unexpected End of Archive)
System.ext.4.tar.b appears to be the second part of the archive, but nothing will open it.
So, how do I get to a point I have a complete archive that I can edit? Or do I need to use different software than CWM to back up the phone?
Thanks for the help guys.
Click to expand...
Click to collapse
Well, I found a solution for now. Fire up Linux, use cat to combine all three files, then use tar to extract the contents. Not sure why this needed split in the first place, but at least the files can be extracted.
I have managed to remove the APKs I do not want, and made a new system.ext4.tar file (all in Linux), but need to know what else I have to do to make the system image usable.
I found several guides on making a ZIP file, but I didn't want to necessarily go through all that. I backed up everything, so what I would like to know, is what all needs to change so that I can use the separate files as they are, and simply do a CWM "restore" function?
I know I sound like a complete noob at this point, and will deal with the related comments. However, please understand, I don't want the heavily modified rom packs. I simply wanted a rom VOID of all the Verizon bloatware, and have the Verizon tethering restraints removed. I have them all disabled now, and 3rd party tethering is working quite well. So I would rather not have that garbage wasting space. Right now, it looks like I may save 250MB or so.
Any help would be appreciated. Thanks.
waldojim said:
I have managed to remove the APKs I do not want, and made a new system.ext4.tar file (all in Linux), but need to know what else I have to do to make the system image usable.
I found several guides on making a ZIP file, but I didn't want to necessarily go through all that. I backed up everything, so what I would like to know, is what all needs to change so that I can use the separate files as they are, and simply do a CWM "restore" function?
I know I sound like a complete noob at this point, and will deal with the related comments. However, please understand, I don't want the heavily modified rom packs. I simply wanted a rom VOID of all the Verizon bloatware, and have the Verizon tethering restraints removed. I have them all disabled now, and 3rd party tethering is working quite well. So I would rather not have that garbage wasting space. Right now, it looks like I may save 250MB or so.
Any help would be appreciated. Thanks.
Click to expand...
Click to collapse
Backups really aren't meant to be unzipped and played with. Usually bloat removal is done while booted into the system or you can unpackage a Rom and remove the bloat there and then repackage it and flash it then make your backup that doesn't contain any bloat. Using the xda kitchen tools from dsxda I believe is the name
Sent from my HTC6435LVW using XDA Premium HD app
.torrented said:
Backups really aren't meant to be unzipped and played with. Usually bloat removal is done while booted into the system or you can unpackage a Rom and remove the bloat there and then repackage it and flash it then make your backup that doesn't contain any bloat. Using the xda kitchen tools from dsxda I believe is the name
Sent from my HTC6435LVW using XDA Premium HD app
Click to expand...
Click to collapse
I think this is where some of my confusion comes from - it was never zipped. There was a group of tarred files, an MD5sum and a few other items. But nothing there was zipped.
waldojim said:
I think this is where some of my confusion comes from - it was never zipped. There was a group of tarred files, an MD5sum and a few other items. But nothing there was zipped.
Click to expand...
Click to collapse
I guess what I meant to say by "zipped" was just in general they are compressed by the recovery in a way that it knows how to go and use them to restore data to the device.

Categories

Resources