Flashable zip.. - Galaxy S II Q&A, Help & Troubleshooting

I don't know how to decompile and compile..
If anybody could make this one a flashable zip??.
Thanks a ton..
This is for those of us who preferred the stronger haptic feedback strength of the capacitive buttons that we had from 2.3.5 (and also for those who haven't taken the ICS plunge). The basic steps of this could probably also be used for other changes to the framework-res.apk. These are the steps I used and are by no means the best way to do this (in fact, this probably guarantees it's not the best way  ).
As always, you should be careful when performing any modifications to things like this. I STRONGLY suggest making a nandroid backup and an extra copy of your framework-res.apk in case you want to switch back. Also, you should have cwm on boot enabled so you can always get back to a working condition if you end up in a boot loop. This worked perfectly for me on my first try, but that doesn't mean much . You do all things at your own risk!
You will need:
APK Manager
7zip
Notepad++
Not on ICS!
1. Extract (copy) your framework-res.apk found in \system\framework\
2. Put copy in the "place-apk-here-for-modding" in APK Manager (you may want to re-name the file so you can remember what version/ROM you took it from)
3. Open the APK Manager script and select the apk you want to change
4. I set the compression to 0 and heap size to 512mb (I saw several threads that suggested these settings)
5. De-compile the apk
6. Find the decompiled apk in the "Projects" folder and open it up
7. Navigate to \res\values\arrays.xml and open with Notepad++
8. Find:
And replace with:
9. Save the file
10. Compile the apk. When asked "Is this a system apk?", I said "yes". And then when asked if anything else needs to be copied, I said "no".
11. Using 7zip, open the new apk as an archive found in "place-apk-here-for-modding" folder.
12. Also, open the original apk as an archive with 7zip
13. Drag and drop the "res" folder and "resources.arsc" file from the NEW apk into the ORIGINAL apk
14. Use your favorite method of getting the modified ORIGINAL apk back in your \system\framework\ directory on your phone
-I prefer to hi-jack someone's flashable zip and put my own framework-res.apk--I used AlteredLikeness's "The Stock Monster" http://forum.xda-developers.com/showthread.php?t=1645950 since I'm using stock, odexed 2.3.6. Thanks AlteredLikeness!
I understand there are a dwindling few still using 2.3.6 and the days of GB are numbered for the A2, but I hope this still helps someone! If you have any questions, feel free to post, but try to do some research first (that's how we all learn this stuff  ).
Peace Out!
Sent from my GT-I9100 using Tapatalk 2

Related

trying (and failing) to change signal pngs

i've read quite a bit & was really confident - these are the steps i took:
1. extracted the 5 png files from framework-res.apk (in res/drawable)
2. converted to 16m colours, and edited them.
3. extracted the framework-res.apk from the ROM update.zip
4. opened framework-res.apk in winrar & browsed to the res/drawable folder
5. added the amended pngs (overwrite option in winrar)
6. closed the framework-res.apk in winrar
7. signed framework-res.apk with SignApk_xda_v20100411
8. used adb push to get ramework-res.apk back on the phone.
phone just froze, and wouldn't reboot (even nandroid restore failed ).
suspects are steps 2 (16m colours, maybe shoudl be 256), and/or 7 & 8 - maybe not the right way to get it back on the phone.
any help would be appreciated; i'm using MrBang's 1.5, and just want to make minor customisations to icons & stuff.
cheers
apes
do not resign the apk. just put the files in as you did (not sure about winrar, afaik 7zip is suggested for windows, i use zip -u on linux command line for that job), and put the apk back on the phone. if nandroid restore fails do a complete wipe before the restore and try again.
edit: not sure about the colors, but i would bet my money on "don't change color depth"...
cheers, kept colour depth & got them back on the phone. oddly the icons seem to be positioned slightly lower than before
time to keep messing i guess.

[Q] SystemUI.apk (apktool) Windows/Mac

i have been trying to change some strings in the SystemUI.apk file in synergy, just to see what i can make them say... but i keep getting the same issues.
WTF am i doing wrong? :l
alright, so i put a (framework) folder in the usr/local/bin folder and added synergy frameworks.
(com.htc.resources.apk) <--- labeled this 1.apk
(framework-res.apk) <--- labeled this 2.apk
i decompiled SystemUI.apk using [apktool d /Users/Rolando-Ramiro/Desktop/SystemUI.apk /Users/Rolando-Ramiro/Desktop/SystemUI]
and used textmate (application for mac to edit xml files) to edit the strings i wanted and then i built the file again using..
apktool b /Users/Rolando-Ramiro/Desktop/SystemUI /Users/Rolando-Ramiro/Desktop/SystemUI.apk
no errors on either part.
now i tried 2 things after this.
i unzipped the synergy rom and added the SystemUI.apk to system/app folder on my computer.
i compressed it once more and tried to flash it. Nothing happened.
so i got the SystemUI.apk (the one with the modified strings.xml) and just moved it from my sdcard to the system/app folder in my phone.
Right after that, i got FC.
so i went back to what i originally had.
any idea what im doing wrong?
i keep getting
install /sd card ...
finding update package
opening update package
Installing update...
then it goes back to TWRP
--> choose zip to flash
[ ] reboot after successful flash
[ ] zip signature verification
--> reboot to system
<-- back to main menu
anyone with input please let me know.
i have mac/windows
omg ^^..
I already said it many times to you:
1. Pull the SystemUI.apk from your rom.
(put the apk in the same folder with the apktool, the you just have to type teh name of the the apk,with out a complete path. just like in step two)
2. Decompile it:
apktool d SystemUI.apk
Click to expand...
Click to collapse
3. make the changes in the SystemUI folder
4. Recompile it WITH AN OTHER NAME:
apktool b SystemUI SystemUI_NEW.apk
Click to expand...
Click to collapse
DON'T overwrite the original SystemUI.apk! (In your 1st post you did this!)
5. open both apks with 7zip
6. when u made changes in the res folder drag&drop the ressources file from SystemUI_NEW to SystemUI
- when you see other folder in the 7zip, with xml/pictures you also edited drag&drop them also
7. You dont need do do anything more now!
- just zipping the apk and flash via cwm won't work, read here how to make one:
http://forum.xda-developers.com/showthread.php?t=732957
- to try installing this apk won't work either.
8. The right way: copy the SystemUI.apk with ne new ressources file in it
and paste in on your sdcard. move it to /system and change the permission with root explorer to 644 or similar (just like all other apks in system/app) and then finally move it in system/app
- or just push it via adb to system/app
9. reboot
Edit: if u still don't understand how to do it, open teamviewer and give me id and pw =P
Rolando.Ramiro said:
i keep getting
install /sd card ...
finding update package
opening update package
Installing update...
then it goes back to TWRP
--> choose zip to flash
[ ] reboot after successful flash
[ ] zip signature verification
--> reboot to system
<-- back to main menu
anyone with input please let me know.
i have mac/windows
Click to expand...
Click to collapse
i would imagine there is an error in your edify script somewhere. and did you resign the apk as a system apk after you recompiled?
i've done everything you said, I PROMISE!
but it still messes up...
how do i resign it?
i decompile SystemUI.apk
it makes a folder called SystemUI
i remove the original SystemUI.apk
then i edit the string, then compile it again.
(i am using the frameworks from the rom that i got the SystemUI.apk from)
once i compile it, i extract the original rom, and go into (system/app) folder and add the .apk
then i compress it back to .zip
i try and flash and i get same error.
i really did the same steps.
i havent tried it on PC though, but i do have it.
gonna do that today.
edit; ok so im reading over the steps that you gave me.
im half asleep right now so i didnt get to fully read them.
my bad! ill do that right now and let you know what i came up with.
edit 2; (15 mins later) i have zip signer 2 on my phone, im pretty sure that will work the same as ppcgeeks apk signer. right?
alright, so instead of creating an update script, i just wanted to push the application from my phone straight into it.
i followed the steps;
1. decompile
2. modify files
3. build with NEW name
4. use 7zip for both NEW and original .apks
5. move over any files from NEW that were modified into original.
6. compress (im not sure if i should of compressed or built again..)
7. move to /system/ and change to what all the apps in /system/app/ are (permissions)
8. move from system/ into system/app.
i still get FC.
sorry if i sound REALLY retarded. im just really unsure what im doing wrong so i have to write it all out.
j4n87 said:
omg ^^..
I already said it many times to you:
1. Pull the SystemUI.apk from your rom.
(put the apk in the same folder with the apktool, the you just have to type teh name of the the apk,with out a complete path. just like in step two)
2. Decompile it:
3. make the changes in the SystemUI folder
4. Recompile it WITH AN OTHER NAME:
DON'T overwrite the original SystemUI.apk! (In your 1st post you did this!)
5. open both apks with 7zip
6. when u made changes in the res folder drag&drop the ressources file from SystemUI_NEW to SystemUI
- when you see other folder in the 7zip, with xml/pictures you also edited drag&drop them also
7. You dont need do do anything more now!
- just zipping the apk and flash via cwm won't work, read here how to make one:
http://forum.xda-developers.com/showthread.php?t=732957
- to try installing this apk won't work either.
8. The right way: copy the SystemUI.apk with ne new ressources file in it
and paste in on your sdcard. move it to /system and change the permission with root explorer to 644 or similar (just like all other apks in system/app) and then finally move it in system/app
- or just push it via adb to system/app
9. reboot
Edit: if u still don't understand how to do it, open teamviewer and give me id and pw =P
Click to expand...
Click to collapse
DUDE I ****ING GOT IT. :O
thank you so much.
posting screenshots right meow.
Rolando.Ramiro said:
DUDE I ****ING GOT IT. :O
thank you so much.
posting screenshots right meow.
Click to expand...
Click to collapse
no need to resign/compress after drag/drop file...thats the way im doing it
Congrats that u finally made it..was a hard way =P
j4n87, that guide. it's beautiful.
You saved my day, Sir!
@j4n87:
Thanks a lot for your nice step by step guide - it really helped me a lot!
As a beginning, I tried to change the color of the statusbar's clock. My main mistake was violating your rule 6b:
6. when u made changes in the res folder drag&drop the ressources file from SystemUI_NEW to SystemUI
- when you see other folder in the 7zip, with xml/pictures you also edited drag&drop them also
So you have to copy the file status_bar.xml from SystemUI_NEW.apk/res to SystemUI.apk/res, too.
Thanks again!
Wolfgang
EDIT:
Here is a little timesaver for you when you have installed Android Development Kit (with adb command within your PATH) and you have a WLAN connection to your development PC:
- Install the app adbWireless from the market.
- To get SystemUI.apk installed, start adbWireless and type in your PC's terminal:
1. adb connect 192.168.1.100:5555
2. adb remount
3. adb push SystemUI.apk /system/app
4. adb shell killall system_server
ad 1) Take the values the app tells you.
ad 2) Makes /system partition writeable.
ad 3) You may have to add the correct path to the SystemUI.apk on your PC.
ad 4) That's the command for soft rebooting your smartphone which is faster than a normal reboot.

CRT Animation

Is there a way to get this without rooting/custom rom? Much appreciated if someone could give me step-by-step instructions as I'm still a noob.
BestInGalaxy said:
Is there a way to get this without rooting/custom rom? Much appreciated if someone could give me step-by-step instructions as I'm still a noob.
Click to expand...
Click to collapse
You need to be rooted and deodexed at a minimum. Stock roms out there that just deodex and root with no other changes. Reason is you need CWM to flash the modified framework-res which would be easiest since your not used to all of this. Also deodexed is a must in order to theme roms.
Here is rough instructions if your on stock rom with root and is deodexed:
First download APK Multi Tool and extract it to a folder on your desktop
Download APK Multi Tool
Download Notepad++ google for the download
Download this update.zip from my ICS theme.
Open the Multi Tool folder and open folder Place-apk-for-modding-here.
Next open the ZIP for the rooted/deodexed ROM your running. Browse to System > Framework and drag framework-res.apk from the ZIP to the Place-apk-for-modding-here folder.
Now in go one folder to the main folder of Multi-tool and click script.bat at the bottom of the folder. It will open a cmd prompt click continue to bring up the menu.
Type in option 25 and hit enter.
Type in 1 hit enter(you've selected framework-res)
Now type in 9 and hit enter to decompile. Give it a few minutes when your back at main menu and its waiting for input minimize the cmd prompt(do not close it).
Open projects folder then browse in this order framework-res.apk > res > values. In values folder open bools.xml with notepad++.
With bools.xml opened in Notepad++ browse to Line 16: it should look like this:
<bool name="config_animateScreenLights">true</bool>
Click to expand...
Click to collapse
Change from true to false and save XML.
Now open Multi apk cmd prompt type in 11 and hit enter. Give it a few you will be asked if its a system apk input Y then hit enter. Next screen input Y and hit enter. Let it do its thing and you will see a small paragraph stating pretty much delete what you've changed and delete resources.arsc if you've edited an XML.
Anyhow dont hit any keys leave that paragraph up for the moment. Minimize cmd prompt then get to main folder of Apk multi tool you will see a keep folder. Inside the folder delete only Resources.arsc then pull back up CMD prompt. Hit any key let it finish up.
Now minimize cmd prompt and go back into Place-apk-for-modding-here folder you will see unsignedframework-res.apk.
Delete original framework-res.apk and rename the unsignedframework-res.apk to framework-res.apk.
Open the ZIP package you downloaded from my theme browse to System > framework.
You will see only framework-res.apk in there drag the modded one you just did into there and then drag this zip to your SDCARD and flash from CWM.
What in the world... my head hurts LOL. Um what does deodexed mean and how do I know I'm "deodexed"?
BestInGalaxy said:
What in the world... my head hurts LOL. Um what does deodexed mean and how do I know I'm "deodexed"?
Click to expand...
Click to collapse
Google sir. That is a step by step I typed up. I recommend ignoring it until you learn more about the phone though.
Sent from my SAMSUNG-SGH-I777 using xda premium
K, I'm willing to learn. Uh, let's start with baby steps, lol. If I root my device, will I be able to update to ICS 4.0 when it becomes available?
In short, yes. There are other threads that answer that fully.
You will always be able to take your phone 'back' to stock like it was when you first got it, to be able to install ICS from At&t.
Though you will be able to install ICS before it is released from At&t by installing a custom rom. It's not a possibility, it's a fact. Just be patient.
Sent from my SAMSUNG-SGH-I777 using XDA App
jivy26 said:
You need to be rooted and deodexed at a minimum. Stock roms out there that just deodex and root with no other changes. Reason is you need CWM to flash the modified framework-res which would be easiest since your not used to all of this. Also deodexed is a must in order to theme roms.
Here is rough instructions if your on stock rom with root and is deodexed:
First download APK Multi Tool and extract it to a folder on your desktop
Download APK Multi Tool
Download Notepad++ google for the download
Download this update.zip from my ICS theme.
Open the Multi Tool folder and open folder Place-apk-for-modding-here.
Next open the ZIP for the rooted/deodexed ROM your running. Browse to System > Framework and drag framework-res.apk from the ZIP to the Place-apk-for-modding-here folder.
Now in go one folder to the main folder of Multi-tool and click script.bat at the bottom of the folder. It will open a cmd prompt click continue to bring up the menu.
Type in option 25 and hit enter.
Type in 1 hit enter(you've selected framework-res)
Now type in 9 and hit enter to decompile. Give it a few minutes when your back at main menu and its waiting for input minimize the cmd prompt(do not close it).
Open projects folder then browse in this order framework-res.apk > res > values. In values folder open bools.xml with notepad++.
With bools.xml opened in Notepad++ browse to Line 16: it should look like this:
Change from true to false and save XML.
Now open Multi apk cmd prompt type in 11 and hit enter. Give it a few you will be asked if its a system apk input Y then hit enter. Next screen input Y and hit enter. Let it do its thing and you will see a small paragraph stating pretty much delete what you've changed and delete resources.arsc if you've edited an XML.
Anyhow dont hit any keys leave that paragraph up for the moment. Minimize cmd prompt then get to main folder of Apk multi tool you will see a keep folder. Inside the folder delete only Resources.arsc then pull back up CMD prompt. Hit any key let it finish up.
Now minimize cmd prompt and go back into Place-apk-for-modding-here folder you will see unsignedframework-res.apk.
Delete original framework-res.apk and rename the unsignedframework-res.apk to framework-res.apk.
Open the ZIP package you downloaded from my theme browse to System > framework.
You will see only framework-res.apk in there drag the modded one you just did into there and then drag this zip to your SDCARD and flash from CWM.
Click to expand...
Click to collapse
Wow that's one hell of a step by step, and here I was Modding apks in 7zip
sent from the Dark Obelisk.
You're good Jivy26
hey there Jivy.. i'm a Sensation noob, but all was going too well with your step by step process parameter, untill i got the following error
Could Not Find C:\Users\SUMICO\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\place-apk-here-for-modding\../place-apk-here-for-modding/signedframework-res.apk
Could Not Find C:\Users\SUMICO\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedframework-res.apk
'java' is not recognized as an internal or external command,
operable program or batch file.
am i missing something?????
d.durrani said:
hey there Jivy.. i'm a Sensation noob, but all was going too well with your step by step process parameter, untill i got the following error
Could Not Find C:\Users\SUMICO\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\place-apk-here-for-modding\../place-apk-here-for-modding/signedframework-res.apk
Could Not Find C:\Users\SUMICO\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedframework-res.apk
'java' is not recognized as an internal or external command,
operable program or batch file.
am i missing something?????
Click to expand...
Click to collapse
Do you have java installed on your computer?
Sent from my GT-I9100 using Tapatalk

Original apk for statusbar

i installed the transparent statusbar mod in my xperia mini st15i.. i just want the original one back. i don't have a nand backup. can someone post the related apks here and tell me how to install them if a specific procedure is to be followed.
gandhar said:
i installed the transparent statusbar mod in my xperia mini st15i.. i just want the original one back. i don't have a nand backup. can someone post the related apks here and tell me how to install them if a specific procedure is to be followed.
Click to expand...
Click to collapse
Someone with mini have to help you. But since no one replying, and to save your time from searching all over the web;
To know which apk that has been modified, open the mod that you have applied using archive apps (winrar should do if you are in windows) and see what apk is inside (generally it should be framework-res.apk and/or SystemUI.apk)
To revert back, one of the way is to extract that apk from stock fw file, copy to your /system/ then change permission rw-r--r-- (if you dont know what it means, just refer to any apk inside /system/app/ permission's, they are all the same generally for /system/app/ and /system/framework/ ). Then, move it to appropiate folder replacing the current file (SystemUI.apk into /system/app/ for example. Better to replace systemui.apk first before framework-res.apk to avoid unexpected fc in the process)
Once done, reboot.
Other ways, ask anyone to make cwm compatible zip file for you to revert back to original or wait for someone to post the apk's here for you.
Thats a very good lessons actually, do a backup first before doing/modifying anything. Dont just simply flash any zip file, see first whats inside, backup whatever files that is affected by that zip to your sdcard is the fastest way (but not 100% reliable compare to make a backup in cwm.
Anyhow, good luck. cheers fren.
Sent from my SK17i using XDA App
feed3 said:
Someone with mini have to help you. But since no one replying, and to save your time from searching all over the web;
To know which apk that has been modified, open the mod that you have applied using archive apps (winrar should do if you are in windows) and see what apk is inside (generally it should be framework-res.apk and/or SystemUI.apk)
To revert back, one of the way is to extract that apk from stock fw file, copy to your /system/ then change permission rw-r--r-- (if you dont know what it means, just refer to any apk inside /system/app/ permission's, they are all the same generally for /system/app/ and /system/framework/ ). Then, move it to appropiate folder replacing the current file (SystemUI.apk into /system/app/ for example. Better to replace systemui.apk first before framework-res.apk to avoid unexpected fc in the process)
Once done, reboot.
Other ways, ask anyone to make cwm compatible zip file for you to revert back to original or wait for someone to post the apk's here for you.
Thats a very good lessons actually, do a backup first before doing/modifying anything. Dont just simply flash any zip file, see first whats inside, backup whatever files that is affected by that zip to your sdcard is the fastest way (but not 100% reliable compare to make a backup in cwm.
Anyhow, good luck. cheers fren.
Sent from my SK17i using XDA App
Click to expand...
Click to collapse
i got it from a friend, thanks anyway.

GUIDE Modify apks

Hi. I just wanted to write a guide on modifying apks. You probably have seen my rom in the ported section.
(I'll make the guide look better when I get home)
Well lets get started.
1.
First. An introduction to what an apk is. An apk is (believe it or not) a zip of files.
2.
So how do you go about editing a zip? I suggest using 7z on your computer or root explorer on your phone.
Second: there are a lot of apks you can edit but for this guide I'll be using the systemui.apk that you find in any rom in the system/app folder.
3.
Ok. So assuming you start with the system ui apk your going to need to extract the apk with 7z on your computer. (or root explorer on your phone. Es file should work also)
4.
Now you should have a new folder where you chose to extract your apk. Open that folder. Your going to see a bunch of files. What your probably going to be interested in is the res folder. Go into that folder and find the drawable hdpi folder. Open it.
Your going to see a lot of icons. Here is where you can change things like wifi icons. You can add 4g icons and so much more. Even edit what your contacts look like.
5.
This is an important step. Make sure your using the system ui apk from the rom your currently on or make sure its compatible with yoir rom.
Ok so now we get to the things like icon changes. Download a theme you've been dying for but couldn't get because it was either for another rom or phone. And the only thing you wanted was a few things from the theme.
Now extract that zip. Then extract the systemui.apk again from the zip you want your icons to look like. MAKE SURE YOU RENAME THE THE SYSTEM UI TO SOMETHING DIFFERENT SO YOU DON'T MIX THEM UP.
6.
So now that you got the system ui apk with whatever you want to use all you need to do is go into the drawable hdpi of the one with the icons you want in it. Copy them and bring them to your roms stock system ui and replace them.
7.
Thats about it. Now zip your roms stock system ui back up and change the ending to .apk. Then put it in system/apps and replace it. Reboot. And boom. Your modded apk is ready.
Hit thanks if I helped.
for step three rename the. apk to .zip its easier
This can only be used for replacing regular images in the APK. There are many images that are .9 images which require decompiling.
There are MANY guides across xda that go into detail and show you the proper way to modify APK's..... There is much more then images.
This one is even in this forum: http://forum.xda-developers.com/showthread.php?t=1388459

Categories

Resources