Edit contents of a flashable zip on the device itself. - Galaxy Tab 10.1 Q&A, Help & Troubleshooting

Last time i flashed cm9 on my p7500 i had to remove the first line of the updater-script for cwm to flash it. now i got the same problem with an other build. i wonder if i could change it somehow without the need of a computer. root explorers text editor doesnt seem to work inside a zip file and fully extracting and repacking seems a bit to much for just little modifications.
got any advice for me?
Sent from my SGH-T859 using XDA Premium HD app

Tyrado said:
Last time i flashed cm9 on my p7500 i had to remove the first line of the updater-script for cwm to flash it. now i got the same problem with an other build. i wonder if i could change it somehow without the need of a computer. root explorers text editor doesnt seem to work inside a zip file and fully extracting and repacking seems a bit to much for just little modifications.
got any advice for me?
Sent from my SGH-T859 using XDA Premium HD app
Click to expand...
Click to collapse
Get root explorer, unextract to a folder, edit with notepad or text editor, then find a zip program to zip it back, Truth be told, why not just get something like WiFi Explorer so you don't need to bring the cable with you everywhere, do the changes on a laptop and send it via WiFI to the folder you want, Kinda like an FTP. It's zipping back that's the problem, most support for editing in zip's changes the permission which can cause issues later.

Related

[HOW TO] CRT-Effect only

This is just the plain CRT effect. No custom roms, no pre-made files or anything. (You need root)
I've searched for this on XDA, Google, other forums etc. but I couldn't find it.
It always showed up ROMs including this feature, not the actual feature itself
DO A BACKUP BEFORE EDITING ANY FILES!
Also, you need root
1. Pull framework-res.apk from the /system/framework/ folder via ADB (Alternate way below*)
2. Decompile framework-res.apk with APKTool/APK Manager (Whatever you prefer..)
3. Navigate to /res/values/ and open the bools.xml file with Notepad++ (Notepad works too )
4. Search for "config_animateScreenLights" and change the "true" to "false".
5. Save, and compile the file. Open the fresh-compiled file and copy resources.arsc to the original apk. (Overwrite the existing one)
Click to expand...
Click to collapse
Transfer the framework-res.apk file back to your phone, and then switch it with the original one
You must reboot to make it work!
*If you don't know how to push/pull files via adb, you can use Root Explorer and copy it to the /sdcard/ folder, then transfer it to your PC.
If you switch it back with root explorer, programs will start to force close. Just reboot and you'll be fine
Click to expand...
Click to collapse
CWM Flashable template
Use the attachment below as a template for flashing with CWM.
Open the .zip file, and place your framework-res.apk in system/framework/
Then extract it to your phone and flash it
Click to expand...
Click to collapse
Thank you very much, Worked
tried it on KF2
Don't forget to share what you make mentioning what fw it is from
Sent from my GT-I9100 using XDA App
Rawat said:
Don't forget to share what you make mentioning what fw it is from
Sent from my GT-I9100 using XDA App
Click to expand...
Click to collapse
Doesn't matter, it's integrated in every Android 2.3 devices.
Sent from my GT-I9100 using XDA App
thanks for this, could you possibly make a similar "how to" for the overscroll glow effect?? Been searching everywhere and can't find a simple guide
viva.fidel said:
thanks for this, could you possibly make a similar "how to" for the overscroll glow effect?? Been searching everywhere and can't find a simple guide
Click to expand...
Click to collapse
I'll see what I can do
Edit: Looks like there's something wrong with my firmware.. I don't have a classes.dex files within framework.jar
And it's hell of a process to do it, so I might have to re-concider this :/
Edit 2: I dont have a deodexed rom, and when I try to deodex it, it fails
Is the Pixelbug still there?
Sent from my GT-I9100 using XDA App
i think metamorph app supports editing system files... can u make a compatible zip?
DooMLoRD said:
can u make a compatible zip?
Click to expand...
Click to collapse
Sorry, I'm waaaaay to lazy to create a zip compatible for every single firmware out there. I can't take a framework file from KE2 and think it works on a phone with KF3..
fuzzl said:
Is the Pixelbug still there?
Sent from my GT-I9100 using XDA App
Click to expand...
Click to collapse
Pixelbug?
No idea what that is, but I can't see any pixels being stuck or anything.
Thanks, but...
Would you like to explain step 5 a bit further? I'm a bit confused. I'm using apk manager and it asks me a bunch of things and you don't tell me where to overwrite the arsc-file, etc.
sackynuts said:
Thanks, but...
Would you like to explain step 5 a bit further? I'm a bit confused. I'm using apk manager and it asks me a bunch of things and you don't tell me where to overwrite the arsc-file, etc.
Click to expand...
Click to collapse
Ah, so sorry.
Open the original framework-res with WinRar. And do the same with the modified. In there you'll see the resources.arsc file
If you don't know how to use APK Manager, use google.
Not trying to be rude, I'm just in a little hurry
I'll ask a mod later if he can move on of my posts up, and then I can perhaps create a more user friendly guide
Sent from my GT-I9100 using XDA App
bruflot said:
I'll see what I can do
Edit: Looks like there's something wrong with my firmware.. I don't have a classes.dex files within framework.jar
And it's hell of a process to do it, so I might have to re-concider this :/
Click to expand...
Click to collapse
No worries, thanks for having a look though
Sent from my GT-I9100 using XDA App
viva.fidel said:
No worries, thanks for having a look though
Sent from my GT-I9100 using XDA App
Click to expand...
Click to collapse
Well, I can take a further look, but only if you upload your framework.jar file and then send it to me.
Sent from my GT-I9100 using XDA App
bruflot said:
Doesn't matter, it's integrated in every Android 2.3 devices.
Sent from my GT-I9100 using XDA App
Click to expand...
Click to collapse
I read your thread, and know what you posted.
What I'm saying is that if someone makes the anim for example KF3, it would only take a few seconds to upload so other people could use, while diy CRT anim takes at least 5 mins even if you know what you're doing.
bruflot said:
I have always liked the CRT effect, but it got kinda annoying to always have a custom ROM installed to have it (I prefer stock ROMs )
I've searched for this on XDA, Google, other forums etc. but I couldn't find it.
It always showed up ROMs including this feature, not the actual feature itself
DO A BACKUP BEFORE EDITING ANY FILES!
Transfer the framework-res.apk file back to your phone, and then switch it with the original one
You must reboot to make it work!
I don't know the adb commands for switching the system files, so if anyone could tell them to me?
Sent from my GT-I9100 using XDA App
Click to expand...
Click to collapse
So to send a file to system in adb I used
Code:
abd push (new apk with mods) /sdcard // used to temp move it
adb shell
su
mount -o remount,rw /system
mv /sdcard/framework-res.apk /system/framework/framework-res.apk
Is that what you were asking?
bruflot said:
Well, I can take a further look, but only if you upload your framework.jar file and then send it to me.
Sent from my GT-I9100 using XDA App
Click to expand...
Click to collapse
That I can do no problem, appreciate you willing to look into this, used to have CM7 on my old HTC Desire and missing the overscroll effect! The only how-to thread on this I could find was [MOD][PORT][04-16] Android 2.3 Overscroll Glow MOD for Galaxy S I9000 (Gingerbread) but it's only for specific SGS firmwares, might be of some help to you still
Hmm...I don't have a res/values folder (just res, there is no values). There is also no Books.xml anywhere in the apk. I'm on stock rooted KE7...Is the value somewhere else on my version? Am I doing something wrong?
TheSopranos16 said:
Hmm...I don't have a res/values folder (just res, there is no values). There is also no Books.xml anywhere in the apk. I'm on stock rooted KE7...Is the value somewhere else on my version? Am I doing something wrong?
Click to expand...
Click to collapse
And you decompiled it right? I know i you were to just open the apk it would have a res but not res/values.
I followed the instructions ... and used APK Manager, I complied, signed, and before i quit it asked me to delete a file...resources.arsc
do i have to do that?
also, i noticed the APK Manager made signed apk of less size as compared to original file
original apk file size = 8.05 mb
complied, signed apk = 5.16 mb
is that normal?
infra4800 said:
I followed the instructions ... and used APK Manager, I complied, signed, and before i quit it asked me to delete a file...resources.arsc
do i have to do that?
also, i noticed the APK Manager made signed apk of less size as compared to original file
original apk file size = 8.05 mb
complied, signed apk = 5.16 mb
is that normal?
Click to expand...
Click to collapse
yeh same thing happend to mine, works fine though also use LCD Density to change the DPI to 240 to get rid of the pixelated crt animation

A primer for modifying framework-res.apk?

I've been trying to make a couple of modifications to framework-res.apk and I've been having a lot of trouble. I've bootlooped the DX2 more than a few times (and was able to recover with the recently released SBF).
I've tried making one change, I've tried signing the file, I've tried not signing it, I've tried different compression levels on the zip, all with no luck. The one time I got my apk into the phone with my change on board (I verified that it was there) my change was ignored by the phone. (I've been trying to replace /res/drawable-hdp/zz_moto_list_texture_bg.png to change the default list background from the light gray to black.)
Has anyone been successful making modifications to this file in a DX2? If so, how did you do it?
What did program did you zip it with?
What was the compression set to?
Did you sign the file? If so, with what program and key?
What method did you use to drop framework-res.apk back into the phone?
Are there any files that should not be modified? (I've heard to leave the ".9" files alone.)
Thanks,
Chris
I've been trying to do the exact same thing and haven't got too far. I'm doing dev stuff thru Ubuntu and it seems to be very friendly along with gimp. I've actually been able to drag and drop replacement files without extracting the apk but haven't been able to flash it inside a theme. I haven't actually tried just replacing the framework.
Staying tuned...
Sent from my DROID X2 using XDA App
You can make a theme at uot.dakra.lt and flash the .zip file to your phone.. jus upload your framework-res.apk to the site once you make it, but anyway, they modify the file and it worked for me.
Peperm1nt said:
You can make a theme at uot.dakra.lt and flash the .zip file to your phone.. jus upload your framework-res.apk to the site once you make it, but anyway, they modify the file and it worked for me.
Click to expand...
Click to collapse
Yes I've been using this but it's not really set up for blur. we're talking about going deeper than UOT can reach with current software.
Sent from my DROID X2 using XDA App
You can recompile and decompile with apkmanager, but its not without some hiccups. First, it compresses the resources.arsc which unlike the rest of the apk needs to be decompressed. To fix this I pull it out then with 7zip I add it back to the framework-res archive with zip as the format and store as compression. That fixes the boot-loops. Even after that there's been some minor problems with it recompiling certain .xml a little goofy.
But at least it doesnt cause a boot loop.

[Q] How to flash a new bootscreen?

Hello, everyone. Recently, I installed the Legend port of CM9, but I really dislike the bootscreen, I prefer lighter, simpler images. Some days ago, the designer of the past CM bootscreens revealed the bootscreen for CM10 and provided download links on the video.
First, I'm kinda noobish to the Android scene and such, so I tried flashing the entire zip provided, but then noticed the zip had more zips, named "bootanimation.zip" and realized that was the thing I was supposed to flash. So, I went ahead and tried flashing the 480 vertical zip, but CMR kept throwing me errors, without even pointing what was wrong, it just didn't install it.
I've been looking for a bit about some issues, and then found that the desc.txt file includes the info needed, like height and width. So, I change width to 320 and keep height to 480, leaving the rest untouched. Didn't work either, so I'm asking you guys if I'm doing anything wrong.
Tech data:
- Running Cyanogenmod 9 b4 for HTC Legend.
- Opened zip files with 7zip and edited text files with notepad.exe
- Trying to flash through Clockwork Recovery.
Alxe said:
Hello, everyone. Recently, I installed the Legend port of CM9, but I really dislike the bootscreen, I prefer lighter, simpler images. Some days ago, the designer of the past CM bootscreens revealed the bootscreen for CM10 and provided download links on the video.
First, I'm kinda noobish to the Android scene and such, so I tried flashing the entire zip provided, but then noticed the zip had more zips, named "bootanimation.zip" and realized that was the thing I was supposed to flash. So, I went ahead and tried flashing the 480 vertical zip, but CMR kept throwing me errors, without even pointing what was wrong, it just didn't install it.
I've been looking for a bit about some issues, and then found that the desc.txt file includes the info needed, like height and width. So, I change width to 320 and keep height to 480, leaving the rest untouched. Didn't work either, so I'm asking you guys if I'm doing anything wrong.
Tech data:
- Running Cyanogenmod 9 b4 for HTC Legend.
- Opened zip files with 7zip and edited text files with notepad.exe
- Trying to flash through Clockwork Recovery.
Click to expand...
Click to collapse
First of all that zip file is not a zip to flash, it is a animation package that android reads on boot you need to simply copy it into the /system/media folder, its also best not to mess with the stuff inside the zip if you haven't done any learning about what the stuff inside does.
Sent from my Legend using xda app-developers app
ranger4740 said:
First of all that zip file is not a zip to flash, it is a animation package that android reads on boot you need to simply copy it into the /system/media folder, its also best not to mess with the stuff inside the zip if you haven't done any learning about what the stuff inside does.
Sent from my Legend using xda app-developers app
Click to expand...
Click to collapse
You can also put it in data/local if you're doing nightlies it something that doesn't require a full wipe.
Sent from my Galaxy Nexus using xda premium
ranger4740 said:
First of all that zip file is not a zip to flash, it is a animation package that android reads on boot you need to simply copy it into the /system/media folder, its also best not to mess with the stuff inside the zip if you haven't done any learning about what the stuff inside does.
Sent from my Legend using xda app-developers app
Click to expand...
Click to collapse
I know about the contents of the folder plus how the text file interacts with the system. (frames per second, location of each "part" of the entire animation.., to loop or not to loop) but seeing that, based on info found across the web, I could flash it, I tried becasue I think it's a cleaner way, rather than going into a file manager and placing the zip somewhere.

Force closes in system after updating one file in framework-res

Hi
I have this problem with my friends galaxy ace GT-S5839i:
I need someone to help me here because I don't know what to do
I pulled the file framework-res.apk from system and then changed the extension to zip, and changed an image inside one of the folders.
After that I zipped the pack again (tried several zip options) and changed the extension back to apk
My first question: Is this ok?
I copied the changed file to sdcard and using es explorer moved the file to system/framework. Imediately After answering if I wanted to overwrite the phone freezes and never booted again.
I restored the rom and tried several times with same result
I tought the problem would be trying to overwrite a file that's in use but then I found a tool the decompiled the original apk, changed the image, compiled and signed it and made a flashable zip of it.
It gsve always error in trying to flash this on recovery so I extrated the compiled and signed new framwork apk and moved it to system with es explorer... The difference now is that it didn't froze the phone but started to show fc's everywhere. Rebooted, wipede cash and dalvik, messed up woth permissions... Everything I could think of and the result os always tbe same...
Please can amyone share a light here?
Thanks
Sent from my GT-I9300 using xda premium
im not totaly clude up in modding apk's but i know you dont sighn a system apk that might be the problem or its been recompiled incorectly. how did you recompile it.
gluonyc said:
Please can amyone share a light here?
Click to expand...
Click to collapse
Give the second link in my sig a once over, might clear it up for you.
gavster26 said:
im not totaly clude up in modding apk's but i know you dont sighn a system apk that might be the problem or its been recompiled incorectly. how did you recompile it.
Click to expand...
Click to collapse
I decompiled and recompiled using a script I found at xda - can't remember now where I got it...
Sent from my GT-I9300 using xda premium
XperienceD said:
Give the second link in my sig a once over, might clear it up for you.
Click to expand...
Click to collapse
Ok
I'm gonna look into it, thanks
Edit: Nothing I found there worked...
The only solution was install a different rom (previously had a stock rooted 2.3.6) v4.1
Changed the framework file from the rom and flashed it...
Its working now but still don't know why the previous actions didn't work
Thanks
Sent from my GT-I9300 using xda premium

need stock media_profiles.xml for 47a

Hello,
I flashed a different media_profiles.xml (found in the latest camera thread in the developer section) to try out open camera and see what it could do to see if i wanted to venture from stock based roms (with all the LG camera features) to an AOSP based rom but i forgot to back up the stock media_profiles.xml file first.
does anyone have copy of this file from 47A that they could share? I dont think i lost any functionality with xcamlg as 60fps 1080p video still looks correct but id rather have the file in case i do run into any issues.
i tried to browse system.img from the 47A rom on my PC with 7zip and extract media_profiles.xml and copy to my G3 and reset the permissions and reboot but there is something about the file that solid explorer isnt happy with and im guessing its the program i extracted it with or windows or something that isnt linux/android friendly.
anyone know the proper way to do this in addition to posting the file?
thanks
brian
Here's the one from my running ROM, which is stock 47A so it shouldn't be different than what's in the system.img. If you have trouble with this one, I'd guess there's some other problem going on and maybe try a different root file manager. Or maybe you just can't replace that file while the ROM is running.
You could take zip you had flashed which had the one your current running, delete the .xml file out of it, place this .xml (or the one you extracted from the system.img) in the zip in the same place as the other was, then flash this new zip file.
For what it's worth, I've never had any problem using any file I extracted from the system.img with 7-Zip - but since I've never fooled with that one...
thank you.
ill try it in a few min.
yeah i remembered someone saying use 7-zip rather than other utilities (cant remember if it was you or stang5litre or muniz_ri over in the vzw galaxy s4 forum) to edit/extract android images.
great idea on swapping files in the zip. if i cant copy this one in ill try the zip swap method.
Brian
problem solved.
turns out it was my fault. i was able to copy the file that i extracted into system/etc/ no problem but was not able to change permissions so i figured that it was something wrong with the file.
nope...
when i copied in your file, i couldnt change permissions..... it gave me the same error.
i was using solid explorer and i had the phone sideways so i could have two directories selected for super easy copying.
downloads on the left, system/etc/ on the right.
once the file copied into the right window, i tried to scroll down to the bottom of the list where it now was placed and edit the permissions in the right window and it gave me the error.
i rotated the phone vertical so there was only one window and selected system/etc/ and the file and was able to change the permissions no problem. then rebooted the phone and everything was back to normal.
oops....
Brian
reliant_turbo said:
problem solved.
turns out it was my fault. i was able to copy the file that i extracted into system/etc/ no problem but was not able to change permissions so i figured that it was something wrong with the file.
i rotated the phone vertical so there was only one window and selected system/etc/ and the file and was able to change the permissions no problem. then rebooted the phone and everything was back to normal.
oops....
Click to expand...
Click to collapse
Ha! What an interesting bug! Wonder if the dev of Solid Explorer knows? Glad you solved it. Thanks for sharing the solution.
roirraW "edor" ehT said:
Ha! What an interesting bug! Wonder if the dev of Solid Explorer knows? Glad you solved it. Thanks for sharing the solution.
Click to expand...
Click to collapse
Yeah it's weird. I guess you have to "refresh" the window before you can edit permissions of the file. I just tried to set permissions in both the left and right window when in landscape rotation just to check and you can.
Its just that you can't immediately after pasting a file. You seem to have to select that directory again.
I'll try to contact them.
Brian

Categories

Resources