[Q] How to create flashable ZIP for CWM in T989?? - T-Mobile Samsung Galaxy S II SGH-T989

I have tried finding a guide specific for our phone, but only found it for other samsung phones..is it the same process to create a flashable zip? I just need to create one that will flash a modified systemUI.apk in /system/app..not sure where to start on a template..

euklid said:
I have tried finding a guide specific for our phone, but only found it for other samsung phones..is it the same process to create a flashable zip? I just need to create one that will flash a modified systemUI.apk in /system/app..not sure where to start on a template..
Click to expand...
Click to collapse
All phones are different. Some have a yaffs2 mount system, others like our devices, have an ext4 mounting system. Here is my systemUI zip i use and created. Have fun!

You should be able to download elesbb's zip. With root explorer extract all and replace his systemui.apk with yours, rezip and flash away. And be sure to thank him for the template/updater-script.
Sent from my SGH-T989 using xda premium

Thanks i will try this!
Sent from my SAMSUNG-SGH-T989 using Tapatalk 2

Related

(Q) Can someone tell me how to make .zip files compatable with cwm3.0.0.6, please?

Im wondering if it is possible to be able to make it from my phone? Can I use the app ZipThemer to accomplish this? Like, is there a way to take a regular zip file, and use an app to make it edify compatable? How does one make files cwm 3.0.0.6 compatable?
Sent from my SPH-D700 using XDA App
sniperkill said:
Im wondering if it is possible to be able to make it from my phone? Can I use the app ZipThemer to accomplish this? Like, is there a way to take a regular zip file, and use an app to make it edify compatable? How does one make files cwm 3.0.0.6 compatable?
Sent from my SPH-D700 using XDA App
Click to expand...
Click to collapse
Found this thread in Dev and Hacking:
[Q] Upgrading Amend Scripts to Edify
http://forum.xda-developers.com/showthread.php?t=898289
maybe that will help?
Dont overthink it. Find a zip that is edify ready and does something similar to what u wanna do and replace ur files in it. Yes it can be done on the phone. I have created flashables from root explorer before. Just extract it replace what u want and re-create it.
sniperkill said:
Im wondering if it is possible to be able to make it from my phone? Can I use the app ZipThemer to accomplish this? Like, is there a way to take a regular zip file, and use an app to make it edify compatable? How does one make files cwm 3.0.0.6 compatable?
Sent from my SPH-D700 using XDA App
Click to expand...
Click to collapse
Sent from my SPH-D700 using XDA App
Make the zips just like you see them, usually all files and folders will match where they go, then google and download amend2edify and use that on them. But I prefer the previously mentioned file swaps.
Thanks guys. I downloaded amend2edify ad that took care of the files. I'm not real good at doing the file swap thing, as I wouldn't even know what I was looking at. But, the file/zip I ran thru amend2edify didn't work after I ran it thru. It was the file in Epic android and development about adding the reboot mod to the power menu. It was the complete power mod. I mean, in cwm3.0.0.6 it said "appy from sdcard complete", but after I rebooted, no power mod was there. I'm guesing that I did something wrong.
Sent from my SPH-D700 using XDA App
Maybe, upload the zip that amend2edify spit out and we can debug the updater-script. That mod requires a framework.jar change and an android.policy.jar change and a framework-res.apk change. Are those all in the zip you made?
sniperkill said:
Thanks guys. I downloaded amend2edify ad that took care of the files. I'm not real good at doing the file swap thing, as I wouldn't even know what I was looking at. But, the file/zip I ran thru amend2edify didn't work after I ran it thru. It was the file in Epic android and development about adding the reboot mod to the power menu. It was the complete power mod. I mean, in cwm3.0.0.6 it said "appy from sdcard complete", but after I rebooted, no power mod was there. I'm guesing that I did something wrong.
Sent from my SPH-D700 using XDA App
Click to expand...
Click to collapse

How to combine multiple .zips into 1 flashable .zip?

I have multiple .zips that I flash for inverted gapps and I was wondering was there anyway I could combine them into one flashable .zip file so I don't have to flash each one individually. I suspect it would take more than just putting all the .zips into one .zip, right?
Also, I'm on a mac. I can access a windows computer if necessary but it would be nice to do it all from my mac
Ngo93 said:
I suspect it would take more than just putting all the .zips into one .zip, right?
Click to expand...
Click to collapse
Not really, no. Just unzip all your files, organize them all together ignoring duplicates, then re-zip.
LordButtersI said:
Not really, no. Just unzip all your files, organize them all together ignoring duplicates, then re-zip.
Click to expand...
Click to collapse
When I unzip each .zip I get the folder that contains the data, META-INF and system folders inside. Where do I go from there? Do I compress all the separate folders into one .zip? I've never done this before so sorry for the seemingly obvious questions!
If they are all just apps from the system folder, simply take every apk out of each zip and place them in the system folder of one of the zips (using 7-zip) then flash it.
artvandelay440 said:
If they are all just apps from the system folder, simply take every apk out of each zip and place them in the system folder of one of the zips (using 7-zip) then flash it.
Click to expand...
Click to collapse
I was thinking that but I was also wondering if the other files inside contributed to each individual apps theming of some sort. But thanks for the tip! I will try that on my next ROM flash
Ngo93 said:
I was thinking that but I was also wondering if the other files inside contributed to each individual apps theming of some sort. But thanks for the tip! I will try that on my next ROM flash
Click to expand...
Click to collapse
The meta-inf folder tells it where to install and sets the proper permissions.
Sent from my Galaxy Nexus using Tapatalk 2
artvandelay440 said:
The meta-inf folder tells it where to install and sets the proper permissions.
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
Ah, thank you for clarifying
So, would it be possible to, in addition to customizing which apps load on flashing the "re-zipped" ROM, also add a kernel to be flashed along with the ROM all in one flash? Or would the kernel need to be baked into the from?
Sent from my Galaxy Nexus using xda premium
thenewguy821 said:
So, would it be possible to, in addition to customizing which apps load on flashing the "re-zipped" ROM, also add a kernel to be flashed along with the ROM all in one flash? Or would the kernel need to be baked into the from?
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
In theory this would be possible, but it would be more complicated then flagging a few system apps.

extract rom from phone for Dsixda kitchen

I am trying to Deodex my rom in my phone. I've customized it and i want to extract it to the PC. Then I will deodex it with the DSIDXA Kitchen and then I will put it back.
How can i extract the rom in a form that the kitchen can use.
I tried CWM Touch 6.0.1.2 backup, export and image. The backup as both normal and tar.
None of them were compatible with the kitchen.
Any help would be appreciated
Thanks in advance....
Hmm. I thought it could use the nandroid img.
Did you rename the extension to.img?
Otherwise just grab the firmware for the build you want and use it instead.
Stickies in development.
Sent from my SGH-T999 using xda app-developers app
DocHoliday77 said:
Hmm. I thought it could use the nandroid img.
Did you rename the extension to.img?
Otherwise just grab the firmware for the build you want and use it instead.
Stickies in development.
Sent from my SGH-T999 using xda app-developers app
Click to expand...
Click to collapse
from tar to img?
No it should be something like .ext4.cwm
I know in twrp its .ext4.win
Dont know if itll work but u can try.
Why not just use the original fw?
Sent from my SGH-T999 using xda app-developers app
DocHoliday77 said:
No it should be something like .ext4.cwm
I know in twrp its .ext4.win
Dont know if itll work but u can try.
Why not just use the original fw?
Sent from my SGH-T999 using xda app-developers app
Click to expand...
Click to collapse
Because I have made several mods to the stock roms on the phone already (beats, using supersu, pimp my room, debloating, etc). And I don't feel like having to redo all of that.
There must be a simple way to do this. This is at least one of the ways that stock rom images are acquired so they can get posted.
In ClockWorkMod i have tried all of the following:
from the backup and restore menu
Create image.zip
Backup to external sdcard dup format
Backup to external sedcard tar format
None of them worked.
For image.zipo I copied the image.zip file and tried it zipped and unzipped and neither way worked.
For backup I copied all of the files from the /mnt/extSdCard/clockworkmod/backup/<DateOfTheBackup> directory.
I must be missing something stupid here
Thanks again...
Ok. Lets try something entirely different. Find a tool called Apk Manager, (google wanam apk manager ics).
Now extract all your files into a folder, or if you prefer you can plug into the computer and do adb pull /system.
Install/set up apk manager per instructions you should see where you download it. Then basically follow instructions to deodex the app and framework folders.
Sent from my SGH-T999 using xda app-developers app
DocHoliday77 said:
Ok. Lets try something entirely different. Find a tool called Apk Manager, (google wanam apk manager ics).
Now extract all your files into a folder, or if you prefer you can plug into the computer and do adb pull /system.
Install/set up apk manager per instructions you should see where you download it. Then basically follow instructions to deodex the app and framework folders.
Sent from my SGH-T999 using xda app-developers app
Click to expand...
Click to collapse
thanks for your help. That will deodex my rom but not let me load it into the kitchen.
deodexing is just step one towards my attempts at themeing.
how can i download the rom from my phone so i can use it in the kitchen.
Thanks again...
Well, it not only would deodex, but you can also use apk mgr to decompile, mod/theme, recompile....pretty much do everything you want to do.
But if you are insistent on the kitchen, use tge stock fw to get started, then adb pull your system and plug your files in place of the ones from the stock fw.
Sent from my SGH-T999 using xda app-developers app
DocHoliday77 said:
Well, it not only would deodex, but you can also use apk mgr to decompile, mod/theme, recompile....pretty much do everything you want to do.
But if you are insistent on the kitchen, use tge stock fw to get started, then adb pull your system and plug your files in place of the ones from the stock fw.
Sent from my SGH-T999 using xda app-developers app
Click to expand...
Click to collapse
Thanks i will give it a try.
I still would like learn how to copy the rom image in a kitchen compatible format.
Thank you again...
Ill look over dsixdas instructions to see. I know it should be possible to do, I just havent used it that way.
Itll be a bit later before I can look though.
Have you read through his threads here and the one he links to. Hes got pretty detailed instructions.
Sent from my SGH-T999 using xda app-developers app
DocHoliday77 said:
Ill look over dsixdas instructions to see. I know it should be possible to do, I just havent used it that way.
Itll be a bit later before I can look though.
Have you read through his threads here and the one he links to. Hes got pretty detailed instructions.
Sent from my SGH-T999 using xda app-developers app
Click to expand...
Click to collapse
Thank you for your time and effort. I did wade through some of them but most of them seem to assume that you already have the rom image. I guess I'm just trying to do thinks backwards. I get like that sometimes, just ask my wife
I really appreciate your help. It's really difficult to not be a newb but trying to learn something new when you know half of what you are doing.
Please there's no real rush my phone is up and running fine just trying to tweak it a bit more.
Thanks....
Hi, did you manage to get an image of your current ROM?
The easiest way is to use Root Explorer and the "Zip this folder" option, by long-pressing on the system folder.
Another way is to use ADB:
e.g. #1 (Copy all files and folders to your PC)
Type on your PC:
Code:
mkdir my_system_dir
adb pull /system my_system_dir
e.g. #2 (Pull all files into an image file)
Code:
adb shell
su
mount -o remount,rw /dev/block/mmcblk0p14 /system
dd if=/dev/block/mmcblk0p14 of=/sdcard/system.img
Likewise, I believe you could do the same for the boot.img (mmcblk0p7).

twrp2.3 update-binary

I can't flash nearly half my zips, and after doing some googling I found out that you have to now replace a file within the zip in order to be useable within twrp. Not a big deal.... only I can't save the dang file without appending some sort of file association. txt, zip, img, bin,mp3 etc...... So how do I exactly save this thing so I can overwrite the original?
I normally frown on double posts, but I can't find this information anywhere. Any information on how to replace an update-binary will prevent me from throwing my phone at a wall. I just want to flash my mason kernel
Sent from my PC36100 using xda premium
Naturesretard said:
I normally frown on double posts, but I can't find this information anywhere. Any information on how to replace an update-binary will prevent me from throwing my phone at a wall. I just want to flash my mason kernel
Sent from my PC36100 using xda premium
Click to expand...
Click to collapse
If u having problem with ur recovery flashing I wouldn't care replacing binaries why u don't use another recovery ?
What about smelkus. That could be the faster and the better option to solve ur issue.
Sent from my Nexus 7 using Tapatalk 2
Okay what the problem is that with the 2.3x recovery software they use the jellybean update-binary. To fix this you unzip any zip file that works. Copy that binary over the one that wont flash check updater script to make sure you don't have to change any of the script. Then rezip it all back and it will work fine.
I would suggest changing your recovery also. It is quicker than redoing all the zips. If you want to stay with twrp 2.2.2.0 will work with all your zips.
Oh just double read your post. I use es file explorer on my phone to do the zip fix. I am guessing that you are on a Windows machine. I forget about that sometimes. Been running a Linux box for couple years now.
Sent from my PC36100 using xda app-developers app
a lucid explanation here
If you use 7-zip, simply put the file on windows somewhere and drop it into the right directory. Note that update-script changes to updater-script and the parsing is Amend not Edigy anymore so scripts will change.

recompile hell

Ok so I decompiled GB08 Seclauncher2 with team rejects quick fix and have already installed framework-res and twframework-res and systemui with the if batch file made one change to res/value/bool and recompiled when trying to install with root explorer apk installer it says app not installed and when i push to preload and creat symlink I get bootloop after reboot wtf am I doing wrong LMAO!:crying:
Sherbon26 said:
Ok so I decompiled GB08 Seclauncher2 with team rejects quick fix and have already installed framework-res and twframework-res and systemui with the if batch file made one change to res/value/bool and recompiled when trying to install with root explorer apk installer it says app not installed and when i push to preload and creat symlink I get bootloop after reboot wtf am I doing wrong LMAO!:crying:
Click to expand...
Click to collapse
The only successful way I've been able to add to preload was to use an existing flashable zip and just replace the apk, or you can add out the ROM of your choice and reflash.
Something in the process of adding a symlink via root explorer borks it.
The other thing is you can't replace a process in use ie, systemui, services etc... using root explorer, it boot loops me every time:beer:
If you get really hard up finding the zip you need you can create or modify the updater script from a ROM to have only the apk and permissions you want by deleting the other stuff in there, just be sure to delete anything that formats your mount points.
Sent from my SPH-D710 using xda premium
Stryke_the_Orc said:
The only successful way I've been able to add to preload was to use an existing flashable zip and just replace the apk, or you can add out the ROM of your choice and reflash.
Something in the process of adding a symlink via root explorer borks it.
The other thing is you can't replace a process in use ie, systemui, services etc... using root explorer, it boot loops me every time:beer:
If you get really hard up finding the zip you need you can create or modify the updater script from a ROM to have only the apk and permissions you want by deleting the other stuff in there, just be sure to delete anything that formats your mount points.
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
Thank you so much the people in this community are so helpful and great you are all awesome!
:good::good:
Sherbon26 said:
Thank you so much the people in this community are so helpful and great you are all awesome!
:good::good:
Click to expand...
Click to collapse
No problem:thumbup:
Sent from my SPH-D710 using xda premium
So the only way I knew how to install with clockwork mod was to delete SecLauncher2.apk from ko's GB08 rom and add mine then flash that but it is working so now gonna learn how to right a script and I will be sharing my first mod all thanx to you and _dan....you guys are all so helpful
Sent from my SPH-D710 using xda premium

Categories

Resources