FORUMS

Which Lockscreen Security Type Do You Use?

From pattern locks to the controversial face unlock, there are a number of different ways you … more

Xposed 3.0 Alpha 3 Released

A new alpha for the Xposed framework is out and brings several bug fixes. You’ll only need to flash … more

XDA Recap: This Week In Android (Apr 18 – 25)

Here in the digital XDA newsroom, we spend our days pouring over an average of … more

Sunday Debate: Custom ROMs vs. Modular Tweaks

Join us in a fun Sunday Debate on Mods and ROMs. Come with your opinions and feel free to … more
Post Reply Subscribe to Thread Email Thread

[TOOLS][HOW-TO] One Click Scripts to Pack/Unpack boot.img

23rd October 2012, 01:25 PM |#1  
Adi_Pat's Avatar
OP Recognized Contributor / Retired Recognized Developer
Flag Mumbai
Thanks Meter: 3,604
 
Donate to Me
More


This is for all ROM cooks, Kernel devs or anyone who wants to make quick changes to the Kernel or ramdisk without wasting much time!

I made or rather put together some scripts for-

All this happens in just one click
  • Unpack boot.img
  • Repack boot.img
  • Make CWM flashable signed zip


Its very easy to use. Download the tools (At the end of the post)

Extract them..

In the root of the extracted files place the boot.img you wanna mod.
Then,
To unpack the Kernel-

Code:
 ./extract.sh
Your zImage will be in kernel/zImage
Your ramdisk will be in ramdisk folder (unpacked)


Make the necessary changes.. whatever you wish.

Then to pack up everything and get output as boot.img , run.

Code:
 ./pack_boot.sh
Your repacked boot.img will be in out/boot.img


OR.

If you want a CWM Flashable zip,

Code:
 ./pack_cwm.sh
The flashable zip will be out/GT-I9103_KERNEL.zip


Easy eh?



DOWNLOAD

On a side note,

What in contains:
  • My scripts
  • mkbootimg, unpackbootimg and mkbootfs binaries (Compiled from latest CM Source)
  • signapk.jar and necessary files (To Sign Zip file)

The Following 47 Users Say Thank You to Adi_Pat For This Useful Post: [ View ]
 
 
24th October 2012, 11:40 AM |#2  
The-Droidster's Avatar
Senior Member
XDA 24 x 7
Thanks Meter: 856
 
More
Thanx a bunch for this. I have boot image of a stock gb kernel and want to just add voodoo sound and increase the max brightness level a bit. Is that possible using this tool?

Thanx!!

Tapatalked from my Galaxy R GT-I9103 using XDA Premium App
I don't go to sleep until I utilize my quota of 8 thanx a day!
24th October 2012, 11:44 AM |#3  
Adi_Pat's Avatar
OP Recognized Contributor / Retired Recognized Developer
Flag Mumbai
Thanks Meter: 3,604
 
Donate to Me
More
Quote:
Originally Posted by The-Droidster

Thanx a bunch for this. I have boot image of a stock gb kernel and want to just add voodoo sound and increase the max brightness level a bit. Is that possible using this tool?

Thanx!!

Tapatalked from my Galaxy R GT-I9103 using XDA Premium App
I don't go to sleep until I utilize my quota of 8 thanx a day!

Then make changes in Kernel source,
Compile , simply replace the compiled zImage with the one in kernel/zImage .. and run ./pack_cwm.sh
The Following User Says Thank You to Adi_Pat For This Useful Post: [ View ]
26th October 2012, 03:14 PM |#4  
Junior Member
Thanks Meter: 2
 
More
Quote:
Originally Posted by Adi_Pat

Then make changes in Kernel source,
Compile , simply replace the compiled zImage with the one in kernel/zImage .. and run ./pack_cwm.sh

code is..?
27th October 2012, 11:25 AM |#5  
Adi_Pat's Avatar
OP Recognized Contributor / Retired Recognized Developer
Flag Mumbai
Thanks Meter: 3,604
 
Donate to Me
More
Quote:
Originally Posted by sagitta5499

code is..?

Make changes in source code.
27th October 2012, 06:41 PM |#6  
yajnab's Avatar
Recognized Contributor
Flag Kolkata
Thanks Meter: 2,740
 
More
Smile
Man really a dev. Gr8 tool
27th October 2012, 06:49 PM |#7  
Adi_Pat's Avatar
OP Recognized Contributor / Retired Recognized Developer
Flag Mumbai
Thanks Meter: 3,604
 
Donate to Me
More
Quote:
Originally Posted by yajnab

Man really a dev. Gr8 tool

You can use it for your fit too. Simply change base address. Or may even work as it is. Password for zip is galaxyrrocks

Sent from my GT-I9003 using xda premium
The Following User Says Thank You to Adi_Pat For This Useful Post: [ View ]
27th October 2012, 08:17 PM |#8  
Serp87's Avatar
Senior Member
Flag Moscow
Thanks Meter: 79
 
More
Quote:
Originally Posted by Adi_Pat

You can use it for your fit too. Simply change base address. Or may even work as it is. Password for zip is galaxyrrocks

Sent from my GT-I9003 using xda premium

password which
27th October 2012, 10:35 PM |#9  
'cooleagle''s Avatar
Retired Forum Moderator
Thanks Meter: 1,143
 
More
Quote:
Originally Posted by Serp87

password which

password =
Code:
galaxyrrocks
Cheers !
28th October 2012, 04:18 PM |#10  
shoey63's Avatar
Recognized Contributor
Flag Somewhere in Oz...
Thanks Meter: 1,509
 
More
Would this work on galaxy note n7000 stock kernels if zImage were renamed to boot.img?

Sent from my GT-N7000 using xda app-developers app
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes