How to Pre-root Custom Rom? - Galaxy Ace S5830 Q&A, Help & Troubleshooting

can anyone tell me how to preroot and pre include CWM 5 in my stockbased custom rom? Thanks!

Try including the necesary files, boot.img, app and binaries in the proper adress (along with necessary modifications on the updater script).
Check the cf-root flashable zip, it includes all of that. Just take the required files.

Just get a root package, extract it and put the files in your rom and set the right permissions for it.
Sent from my GT-S5830 using Tapatalk 2

http://androidsu.com/superuser/

Related

How to create a cwm flashable zip file

Does anyone know how to create a .zip file that can be flashed through cwm? say for instance a .zip file that contains the cwm recovery? Any help would be great, and thanks to all in advance who reply
Sent from my SCH-I800 using xda premium
I want to know this too. When I take a zip file that flashes correctly and put a different file in the zip folder, like a modem for example, the new zip file won't flash.
modems are tricky in the Galaxy S line, there's been some work i've seen about flashable modems, but almost everything i've read says they always fail to flash. There are tons of tuts about creating CWM flashable .zip on XDA, just do a quick search.
Same here. I would like to create a cwm zip files that contains all my user apps. TB is good in batch mode but would be so much quicker if I could create a zip and do it after flashing rom.
Have to know how to create scripts to do this. The script takes care of where the file you want to install goes in the system. Then there is the META-INF folder.
Too complicated for me. Let us ask Noxxious.
Sent from my GT-P1000 using Tapatalk

Help.

Holla amigos...
I need help........again.
See, I'm creating my own rom and my base uses blackhawk. I want to change this to firekernel. I searched xda and Google but I couldn't find anything. All they talk about is how to flash another kernel. I want to know how to include it in rom before flashing. And also, could someone tell me the .XML that is used for Modding the lock screen.
Sent from my GT-S5830 using xda app-developers app
Inside the flashable zip (any flashable zip) you'll find several folders and files. To see where each file gets flashed to, look inside the META-INF folder and search for a file called "updater script".
Its the updater script the one that indicates where each part of the zip will be flashed, so open it with a text editor, take notes where each file ends up, and copy them to their location inside your rom.
dxppxd said:
Inside the flashable zip (any flashable zip) you'll find several folders and files. To see where each file gets flashed to, look inside the META-INF folder and search for a file called "updater script".
Its the updater script the one that indicates where each part of the zip will be flashed, so open it with a text editor, take notes where each file ends up, and copy them to their location inside your rom.
Click to expand...
Click to collapse
And at the start, through dsixda kitchen updater script was converted into update script. Is it the same? Okk. And what about including scripts, I want adrenaline engine. I downloaded the zip. Ignored the Meta -inf and copied the system folders inside the system folder of the working project....Am I right?
Sent from my GT-S5830 using xda app-developers app
If you're using the kitchen its OK, you can add any flashable zip that way, copying the files and folders to their respective location inside your Project. Checking the updater script is only necessary when in doubt of where each thing goes.
Don't use kitchen's updater script and binaries.They won't work,could even brick the device.To change kernel,download firekernel and replace the boot.img in that pack with the one in your rom.Boot.img is the kernel.Scripts go in init.d
Prawesome said:
Don't use kitchen's updater script and binaries.They won't work,could even brick the device.To change kernel,download firekernel and replace the boot.img in that pack with the one in your rom.Boot.img is the kernel.Scripts go in init.d
Click to expand...
Click to collapse
Hey. Thanks for that. Please help me out here: http://forum.xda-developers.com/showthread.php?p=28891130#post28891130

Creating and un-flashing a zip file

Hi. Is it possible to unflash a zip that can't delete all the file that I flash from the zip?
And can I flash a zip that have apps that is going to be installed into the SD card and not the system?
Help please
no you cannot unflash a zip but you can delete the content of the zip directly from the mobile by going to /system and deleting those files
app 2 zip:- http://forum.xda-developers.com/showthread.php?t=1567614
app2zip will create a flashable zip of your installed apps but cannot install them on sdcard
RayQXX said:
Hi. Is it possible to unflash a zip that can't delete all the file that I flash from the zip?
And can I flash a zip that have apps that is going to be installed into the SD card and not the system?
Help please
Click to expand...
Click to collapse
The only way to unflash a zip is by reflashing your ROM and about creating zips there are a few tutorials about that in XDA so make a search.
Sent from my GT-S5570 using Tapatalk 2
hasman1999 said:
The only way to unflash a zip is by reflashing your ROM and about creating zips there are a few tutorials about that in XDA so make a search.
Sent from my GT-S5570 using Tapatalk 2
I meant by making a zip file that can install all the apks into the sdcard as a normal app. I already know how to create a flash zip and i only can flash apks into my system/app/.
Click to expand...
Click to collapse
Try my backup root the basic concept is the same it creates zips of the apks as backup but unfortunately you can restore it only via my backup root.
Sent from my GT-S5570 using xda app-developers app

[Q] Add kernel into VO-1 cm7 Rom

I want to add firekernel into VO-1 CM7 rom but i wanna ask if it's ok to just DRAG and DROP kernel files into rom.zip.
It's safe or not ?
Install ROM and then install fire kernel zip....
pvrx said:
Install ROM and then install fire kernel zip....
Click to expand...
Click to collapse
I want to integrate kernel in rom ...
Its safe. Drag and drop boot.img and system files from the kernel's flashable zip into the rom's zip.
tj_droid said:
Its safe. Drag and drop boot.img and system files from the kernel's flashable zip into the rom's zip.
Click to expand...
Click to collapse
Thanx man !
tj_droid said:
Its safe. Drag and drop boot.img and system files from the kernel's flashable zip into the rom's zip.
Click to expand...
Click to collapse
What do u mean?
Do u mean that I can just paste all the kernel files into Rom.zip via WinRAR?
I had tried it today,but it just made my device bootloop...
SOS!!!
Dragonkind said:
What do u mean?
Do u mean that I can just paste all the kernel files into Rom.zip via WinRAR?
I had tried it today,but it just made my device bootloop...
SOS!!!
Click to expand...
Click to collapse
Yes, drag and drop kernel files work 100%.
Just drag the right kernel ...
I'm not a "recognised dev" and honestly I'm only a bit better than a noob but usually to create a flashable rom i do this things:
1)i customize my rom and i flash the kernel i want..
2)i do a nandroid backup, i extract the /system folder which is ".tar" using "zArchive" (I'm not sure about the name you can search on play store "tar opener")
3)i "steal" a meta-inf folder from other rom and finally i create a zip file with a)boot.img; b)meta-inf; c)system.
To do this i don't need to switch my computer on!!
Inviato dal mio GT-S5830 con Tapatalk 2

Not available

not available
Make sure you use Notepad++ to edit the updaterscript. If you have problems. Take an updater-script from a working rom and see if it flashes successfully.
---------- Post added at 09:34 AM ---------- Previous post was at 09:33 AM ----------
Copy the entire META-INF folder from any rom and paste it in your rom's zip.
EG- If your rom is based on cm7, copy cm7's meta-inf
I copied META-INF from Adrenaline ROM
And it didn't work
assert failed:raw_boot_img
Could it be a kernel problem (boot.img)
Sent from my GT-S5830 using xda premium
Which boot.img are you using?
You need to use a boot.img from a custom kernel, stock boot.img wont work.
Mate Upload Your Rom and PM it to me and i'll look at what is wrong if u like.
Are you sure you never used any of the Dsixda kitchen tools?
Because they are not compatible with the Ace.
Plus, I hope you never converted it into update-script.
Is your rom CM7 based, or stock based?
Im using stock boot.img
I thought it would work... I don't like custom kernels like nims or CF-Root.
As soon as I get home I'll send you ROM.
It was originally update-script and changed with dsixda kitchen to updater-script.
Stock based
Sent from my GT-S5830L using xda premium
Tovagulet said:
Im using stock boot.img
I thought it would work... I don't like custom kernels like nims or CF-Root.
As soon as I get home I'll send you ROM.
It was originally update-script and changed with dsixda kitchen to updater-script.
Stock based
Sent from my GT-S5830L using xda premium
Click to expand...
Click to collapse
So that's the problem.
Dsixda scripts are not compatible with the Ace.
did the stock rom u are basing this rom on have a Meta-Inf. or was it from a system.img
Tovagulet said:
Im using stock boot.img
I thought it would work... I don't like custom kernels like nims or CF-Root.
As soon as I get home I'll send you ROM.
It was originally update-script and changed with dsixda kitchen to updater-script.
Stock based
Sent from my GT-S5830L using xda premium
Click to expand...
Click to collapse
After creating zip usi.g dsixda kitchen. Extract zip and copy meta-inf folder from.other rom and replace. Stock kernel wont work. Extract the zip of any custom kernel, copy system folder and boot.img and paste in the root directory of extracted files of rom. Zip back everything. It will work.
tj_droid said:
After creating zip usi.g dsixda kitchen. Extract zip and copy meta-inf folder from.other rom and replace. Stock kernel wont work. Extract the zip of any custom kernel, copy system folder and boot.img and paste in the root directory of extracted files of rom. Zip back everything. It will work.
Click to expand...
Click to collapse
Yes exactly.
Do right as he said and your rom will boot.
Cheers.
tj_droid said:
After creating zip usi.g dsixda kitchen. Extract zip and copy meta-inf folder from.other rom and replace. Stock kernel wont work. Extract the zip of any custom kernel, copy system folder and boot.img and paste in the root directory of extracted files of rom. Zip back everything. It will work.
Click to expand...
Click to collapse
So I just replace boot.img with a custom kernel and start building from that?
or after creating the .zip I also have to copy the META-INF from another ROM?
Tovagulet said:
So I just replace boot.img with a custom kernel and start building from that?
or after creating the .zip I also have to copy the META-INF from another ROM?
Click to expand...
Click to collapse
Just replace META-INF in your rom with META-INF from Blackhawk(if stock rom) and make necessary edits.Your rom will work perfectly.I personally haven't had any problem by using stock kernel.
POTATO!!!!
Tovagulet said:
So I just replace boot.img with a custom kernel and start building from that?
or after creating the .zip I also have to copy the META-INF from another ROM?
Click to expand...
Click to collapse
Ok. Read carefully.
After creating the zip via dsixda kitchen. Close it and dont touch it at all. The follow the steps from my last comment.
Buddy.
Just upload your meta-inf..
and i'll look into it.
Got this problem before , it's because the assert command in updater-scripts do not support boot.imgs larger than 4MB .
Just remove the assert() and replace the commands in the proper format (replace commas at the end of command with semi-colons) as well as grab a proper update-binary , your boot.img should work .
Sent from Ursa's claws.
CallMeVentus said:
Got this problem before , it's because the assert command in updater-scripts do not support boot.imgs larger than 4MB .
Just remove the assert() and replace the commands in the proper format (replace commas at the end of command with semi-colons) as well as grab a proper update-binary , your boot.img should work .
Sent from Ursa's claws.
Click to expand...
Click to collapse
I'm working on a Samsung Galaxy GT-B5510, having the same problem trying to install custom ROMs and kernels. All failing with the same error you describe here. However, when I edit the script and rerun it, it does not throw an error but it looks like the kernel is not replaced. The only thing I didn't do was change the update-binary. What do you mean by a "proper" one?
Thanks.
MrRimmer said:
I'm working on a Samsung Galaxy GT-B5510, having the same problem trying to install custom ROMs and kernels. All failing with the same error you describe here. However, when I edit the script and rerun it, it does not throw an error but it looks like the kernel is not replaced. The only thing I didn't do was change the update-binary. What do you mean by a "proper" one?
Thanks.
Click to expand...
Click to collapse
The ones inside the custom ROMs where flashing a custom kernel has been a success in
I give up writing anymore signatures.

Categories

Resources