Related
i read into his topic in making tar file from 1.2 kernel, since update.zip is only provided from 1.2. i tried but was unable to get results : (
please help a noob out. thank you !!
Why not just install it using rom manager- that's how he designed the package =P
that is an option, which i used (and worked, thank you again for your help) but i like my rom as clean as possible. if i could just have it as tar file, i could flash it with odin along with the pit when building my rom without needing a separate apk to do the process. i make a update.zip with all custom designed apks.
The only thing the ROM manager package does is utilize a thing called "Redbend" to actually flash the kernel while the system is running- it's the same thing as taking an OTA update from Samsung. It doesn't leave any crap behind or make your ROM any messier.
Though if you're insistent, extract the zImage and use tar:
tar --format=ustar -cf zImage.tar zImage
(Thanks to AJerman for that little tidbit)
what program do i use? i downloaded the tool from unhelpful and tried command prompt but that doesn't work.
You'll have to find the command line based tar software somewhere out on the internet. I haven't personally messed with it, but normally when using tar it's assumed you're using a Linux box =P
haha icic. yeah i googled that and i've decided to stick with rom manager. thank you very much : )
There's really no reason not to use ROM Manager for this. The update.zip does not install any files, it only flashes the kernel.
Sent from my SAMSUNG-SGH-I897 using XDA App
This is how I made ROM, I'll try to write the steps as simple as I can. For advanced users only!
Update 22/08/11:
Revised packaging steps.
Update 13/08/11:
Removed unwanted method for ROM cooking.
Update 04/08/11:
Modified extract and repack ROM guide and added extracting system.rfs guide.
Things you need:
Base firmware
Archiver software (7zip recommended)
Any Linux environment to build ROM or Cygwin
APK Manager to optimize and decompile *.apk files
MagicISO (Optional) if you want to extract system.rfs
And the last thing is... You need enough experience in android world
So, here is the steps to cook a ROM:
Flash your phone with your desired base firmware
Make required modifications
Pull system.rfs from your phone by running this command on adb shell or Terminal Emulator:
Code:
dd if=/dev/stl12 of=/sdcard/system.rfs
Extract any *.tar.md5 files from your base firmware to your working folder with 7zip
Replace the current system.rfs with your modified one
EDIT: Pack your ROM by running this code via terminal or just pack it with 7zip/WinRAR as *.tar
Code:
tar -H ustar -c * >> ROMNAME.tar
change ROMNAME to your desired, well, ROM name.
Here is (yet) useful guide to modify your ROM.
Extract system files on system.rfs to make modding easier:
Extract PDA file (*.tar.md5) files with 7zip
Open system.rfs with MagicISO
To extract it, just drag and drop
NOTE: Never edit your ROM with MagicISO because the file permissions will be ignored, use MagicISO only for extracting files from system.rfs
Deodex, and Zipalign (optimize) your ROM apk files:
Ready to use deodex + root for KPN: http://forum.xda-developers.com/showthread.php?t=1196230
Ready to use deodex + root for KPH and other firmware: http://forum.xda-developers.com/showthread.php?t=1118048
Open APK Manager
To zipalign your apk files, in apk manager folder /place-apk-here-to-batch-optimize put your:
framework-res.apk, twframework-res.apk and all system apk
but not these:
AxT9IME, Calculator, Camera, Email, MMS, Phone, Screen Capture, Settings, Swype, Thinkdroid, Voice search
Choose Choose option 15
Then choose both (zp)
Let it run and done.
Now put back the apk files where they belong in the ROM.
How to put these apk files to my ROM? Copy these files to appropriate locations, such as /system/app to your ROM's /system/app, and etc.
Another handy modification guide:
Unpack and repack boot.img - http://forum.xda-developers.com/showthread.php?t=1173427
Convert firmware filesystem to ext4 - http://forum.xda-developers.com/showthread.php?t=1202049
Overscroll glow for any firmware - http://forum.xda-developers.com/showthread.php?t=1215933"
Give thanks to all dev who made that possible!
If you have more guides to put here, please PM me.
Am I pertamax?
hehe..just kidding.
Nice Info....great share.
I would want the Fla.sh Rom :'(
Thats a gr8 share...Thank you...)
saiftheboss7 said:
I would want the Fla.sh Rom :'(
Click to expand...
Click to collapse
sorry... once again, I'm sorry, I can't continue my ROM
Helpful thread man!
Thanks!
Great job taking your time to make this! Unfortunately, i dont even know the basics but now I know where to check when I do
fla.sh said:
sorry... once again, I'm sorry, I can't continue my ROM
Click to expand...
Click to collapse
Hey!
THX man, nice thread. Very useful!
Just PM to MOD, that they close you previous thread, a bout fla.sh.ROM. Or ppl just waiting it and asking.
CHEERS!
i think the most troublesome problem i encounter is to repack system.rfs. yes it can be mounted in magiciso, but howto repack/compile it back?
an0nym0us_ said:
i think the most troublesome problem i encounter is to repack system.rfs. yes it can be mounted in magiciso, but howto repack/compile it back?
Click to expand...
Click to collapse
Just save it.
didnt work when i just save it. my device got bootloop
an0nym0us_ said:
didnt work when i just save it. my device got bootloop
Click to expand...
Click to collapse
What modification you've added to your ROM? Maybe that modification causing the problem...
fla.sh said:
What modification you've added to your ROM? Maybe that modification causing the problem...
Click to expand...
Click to collapse
As Linux, MagicISO read RFS image as a FAT filesystem. File permissions can not be maintained. A better way but need linux:
1. Mount system.rfs as FAT and mount it to /tmp/rfs
2. Make ext4 image, and mount it to /tmp/system
3. Copy /tmp/rfs contents to /tmp/system
4. Make modification inside /tmp/system
5. Fix file permissions inside /tmp/system
6. Umount both image
7. Make ODIN flashable image, contains system.rfs (now in ext4 format) and CF-Root-S5830 boot and recovery image (for ext4 support)
8. Boot to Windows and flash your new firmware using ODIN.
ketut.kumajaya said:
As Linux, MagicISO read RFS image as a FAT filesystem. File permissions can not be maintained. A better way but need linux:
1. Mount system.rfs as FAT and mount it to /tmp/rfs
2. Make ext4 image, and mount it to /tmp/system
3. Copy /tmp/rfs contents to /tmp/system
4. Make modification inside /tmp/system
5. Fix file permissions inside /tmp/system
6. Umount both image
7. Make ODIN flashable image, contains system.rfs (now in ext4 format) and CF-Root-S5830 boot and recovery image (for ext4 support)
8. Boot to Windows and flash your new firmware using ODIN.
Click to expand...
Click to collapse
I use this command to mount rfs:
Code:
mount -o loop system.rfs /some_dir
Can you share us the command?
now thats really informative. thanks
ROM unpacking and repacking gude has been corrected. Tested by me. If you have any problems, just ask here.
Thanks.
I think you should add the date of update in the title, so that everyone can know about the update...
BTW thanks for this amazing guide...
Love it!!!
After making changes to system.rfs, how to save it as .rfs again?
adiles said:
After making changes to system.rfs, how to save it as .rfs again?
Click to expand...
Click to collapse
Please take look at the first page, it's updated, you know?
After I created md5 file and selected it in odin, it says "invalid image type" and "invalid model binary". How to solve that? After that I continued, skipped these errors and flashed, my phone stopped at boot screen with text "Galaxy ACE....". Plz help me
Hi,
For everyone Using the Samsung Galaxy Grand I9082 Here is a way to Root your Phone without Increasing the BIN Counter. In the Second Post I am posting the Steps for advanced Users on how to do it yourselves.
In the Third Post I am posting a pre-rooted Firmware for people Who just want to root the Phones Without all the Headache for Creating their Own.
Be Advised that even though this will Not increase the Bin Counter it is still advised to Flash a Stock Firmware when Claiming warranty.
For those who want to know the Procedure
Requirements
1) Linux (Preferably Ubuntu)
2) An Official Firmware tar (Search http://www.sammobile.com/firmwares/)
3) SU Binary and Ext4uils (Attached)
4) Patience
5) Windows (To use ODIN)
6) ODIN (To Flash)
Flash the Firmware through ODIN First so that there are no Firmware Mis-matches later.
Steps:
1)Create a "sam" directory in your Home Directory (home/username) folder where username is your linux username.
2)Extract the downloaded firmware, then move system.img and cache.img to home/username/sam dir
3)Extract su.zip and ext4utils.zip in the same folder where you have system.img and cache.img.
4)Open a terminal window, and enter:
Code:
mkdir /home/username/sam/system
sudo –i (this will ask for password..Enter your Root password)
apt-get install zlib1g-dev
cd /home/username/sam
make
mv system.img system2.img
./simg2img system2.img system.img
mount system.img system
Copy the su binary to the mounted folder
Code:
cp su system/bin/su
Give the Binary the Required Permission
Code:
chown root:root system/bin/su
chmod 06755 system/bin/su
Code:
./mkuserimg.sh -s sam ./new_system.img ext4 ./temp 1511M
Now unmount the system File and delete it
Code:
umount system
rm system.img
Rename new_system.img to system.img
Code:
mv new_system.img system.img
Now Create a flashable tar:
Code:
tar cf rooted.tar system.img
Now you need to tar the cache.img file we copied as well.
Code:
tar cf cache.tar cache.img
All Done. Now you can Flash them through ODIN.
In ODIN only Auto reboot and F. Reset Time should be checked
In PDA select: rooted.tar
In CSC select: cache.tar
After the phone Boots Download the Superuser app through Play Store.
Now you have root and No Increase in Bin Counter.
I am not that good at explaining.Incase of Question please ask them here or PM me
Also Please Consider Donating to Support My Work
For those who Just want to root.
Here i am Posting the Pre-Modded Firmware.The firmware is based on I9082XXAMB3_I9082ODDMB2_INU.zip
If you are on a different firmware then please download the firmware and Flash through ODIN.Link for the Official Firmware is:
http://uppit.com/46oxsxob7re3
Also Download the Pre-rooted firmware as well.It is in 3 parts so you need to Download all three.Also Download 7zip to extract the files.
Links for the files are:-
1) https://www.dropbox.com/s/9jh9yi88yuz49hr/Samsung Rooted.7z.001
2) https://www.dropbox.com/s/g1rk1qfuk440839/Samsung Rooted.7z.002
3)https://www.dropbox.com/s/1ej082e1z4ipqwc/Samsung Rooted.7z.003
right click on Samsung Rooted.7z.001 ->7zip ->Extract.
Wait for it to Extract
Open the extracted folder.there will be 2 files:-
1)rooted_system.tar
2)csc.tar
open ODIN:
In PDA select rooted_system.tar
In CSC select csc.tar
and Flash it.Wait for the Phone to start.once it Starts go to the Play Store and download the superuser app.
All done now you have a rooted phone Without increasing the BIN Counter
I am not good at explaining. Incase of any problems post here or Send me a PM.
Also Please Consider Donating to Support My Work
Another one
Just in case
Last Reserve
Does root package.zip refer to su zip???
How do I get CWM??
Also if I already have bin count (5 in my case)..does it reset it or stay as it is??
Sent from my GT-I9082 using xda premium
Ambarishbakre said:
Does root package.zip refer to su zip???
How do I get CWM??
Also if I already have bin count (5 in my case)..does it reset it or stay as it is??
Sent from my GT-I9082 using xda premium
Click to expand...
Click to collapse
I have the same questions.
BTW, thank you. I wish I had this method earlier, before I bumped up my bin counter.
Sent from my GT-I9082 using Tapatalk 2
manasgirdhar said:
Hi,
For everyone Using the Samsung Galaxy Grand I9082 Here is a way to Root your Phone without Increasing the BIN Counter. In the Second Post I am posting the Steps for advanced Users on how to do it yourselves.
In the Third Post I am posting a pre-rooted Firmware for people Who just want to root the Phones Without all the Headache for Creating their Own.
Be Advised that even though this will Not increase the Bin Counter it is still advised to Flash a Stock Firmware when Claiming warranty.
Click to expand...
Click to collapse
Hi,
I have already rooted my device b4, and my if I flash back with original samsung firmware, will it reset bin back to original ?
And then i can i use your procedure, would it work?
Please explain.
Thanks
Ambarishbakre said:
Does root package.zip refer to su zip???
How do I get CWM??
Also if I already have bin count (5 in my case)..does it reset it or stay as it is??
Sent from my GT-I9082 using xda premium
Click to expand...
Click to collapse
Yes root package refers to SU Zip and it is not flashable..it is to be included if creating a pre-rooted firmware.No it wont Flash CWM.And no it wont reset the counter.
This is basically for people who have not yet rooted their Device or for people who dont want to increase their counter.
Hey bro can u provide the link gor multiwindow manager'
Sent from my GT-I9082 using Tapatalk 2
yuvi123456 said:
Hey bro can u provide the link gor multiwindow manager'
Sent from my GT-I9082 using Tapatalk 2
Click to expand...
Click to collapse
Here You go:
http://forum.xda-developers.com/showthread.php?t=2079807
chotu222 method is the best because it also helps in addons of him as well as CWM
It is not about rooting a device, it is about the ROM that we are going to get as well as many other features.I am sure he is going to figure out a way to reset bin counter.
respect
conanFX said:
chotu222 method is the best because it also helps in addons of him as well as CWM
It is not about rooting a device, it is about the ROM that we are going to get as well as many other features.I am sure he is going to figure out a way to reset bin counter.
Click to expand...
Click to collapse
chottus method might be the best , but respect the developer and it is not an easy task...this method allows you too root without voiding the warranty
if this doesn't benefit you.. don't discourage the developer bro:good:
conanFX said:
chotu222 method is the best because it also helps in addons of him as well as CWM
It is not about rooting a device, it is about the ROM that we are going to get as well as many other features.I am sure he is going to figure out a way to reset bin counter.
Click to expand...
Click to collapse
Actually we can have Features without custom recovery as well.At the Moment there is no Custom ROM so it makes no point in Increasing the Counter.And What if someone has to submit his phone at the service center before we can reset BIN Counter?
There are a lot of things to consider when dealing with a samsung Phone.Anyway..If you dont like it then dont use it.
how to unroot galaxy grand??
shahid9695 said:
how to unroot galaxy grand??
Click to expand...
Click to collapse
download frimware from sammobile.com flash with odin 3.04
Sent from my GT-I9082 using xda premium
What about TriangleAway? http://forum.xda-developers.com/showthread.php?t=1494114
Links are not working........
Error (509)
This account's public links are generating too much traffic and have been temporarily disabled!
manasgirdhar said:
For those who want to know the Procedure
Requirements
1) Linux (Preferably Ubuntu)
2) An Official Firmware tar (Search http://www.sammobile.com/firmwares/)
3) SU Binary and Ext4uils (Attached)
4) Patience
5) Windows (To use ODIN)
6) ODIN (To Flash)
Flash the Firmware through ODIN First so that there are no Firmware Mis-matches later.
Steps:
1)Create a "sam" directory in your Home Directory (home/username) folder where username is your linux username.
2)Extract the downloaded firmware, then move system.img and cache.img to home/username/sam dir
3)Extract su.zip and ext4utils.zip in the same folder where you have system.img and cache.img.
4)Open a terminal window, and enter:
Code:
mkdir /home/username/sam/system
sudo –i (this will ask for password..Enter your Root password)
apt-get install zlib1g-dev
cd /home/username/sam
make
mv system.img system2.img
./simg2img system2.img system.img
mount system.img system
Copy the su binary to the mounted folder
Code:
cp su system/bin/su
Give the Binary the Required Permission
Code:
chown root:root system/bin/su
chmod 06755 system/bin/su
Code:
./mkuserimg.sh -s sam ./new_system.img ext4 ./temp 1511M
Now unmount the system File and delete it
Code:
umount system
rm system.img
Rename new_system.img to system.img
Code:
mv new_system.img system.img
Now Create a flashable tar:
Code:
tar cf rooted.tar system.img
Now you need to tar the cache.img file we copied as well.
Code:
tar cf cache.tar cache.img
All Done. Now you can Flash them through ODIN.
In ODIN only Auto reboot and F. Reset Time should be checked
In PDA select: rooted.tar
In CSC select: cache.tar
After the phone Boots Download the Superuser app through Play Store.
Now you have root and No Increase in Bin Counter.
I am not that good at explaining.Incase of Question please ask them here or PM me
Also Please Consider Donating to Support My Work
Click to expand...
Click to collapse
I tried this procedure....flashed it and yes it has no bin count. BUT still showing SYSTEM CUSTOM. Perhaps in the next version this will be solved. Thanks for the effort. I would have donated if not for this.
Futhermore:
./mkuserimg.sh -s sam ./new_system.img ext4 ./temp 1511M
Click to expand...
Click to collapse
sam should be replaced by
/home/username/sam/system
Click to expand...
Click to collapse
As a learner, I am looking for a stock rom to build.
Is there any working DDLK2 rom that can be used in dsixda android kitchen?
I have already made a set-up on android kitchen in my linux operating system.
Can PDA_S5360_DDLK2.tar.md5 be used in the working folder?
I failed extracting this file.
I need only that rom and not any other rom.
Please reply me as soon as possible.
Also I found a trick to make a nandroid backup and use that file for developing. But I need some other way.
I am not sure whether someone had already posted this question before me. If so, attach the links.
flash stock rom on your phone
root it
install busybox (get installer from playstore)
install android terminal emulator (playstore)
open android terminal emulator
type
su
tar -c system/* >> sdcard/system.tar
after typing su press enter and grant super user then type next line
if you get error tar blablabla not found you have not installed busybox
wait about 5 mins - its a good idea to set screen timeout to 30 mins so the screen stays on whilst its doing it
you will know its finished when the command prompt returns
once done you will now have a file called system.tar on the root of your sd card
copy this file to kitchen/original_update
when you run kitchen select create working folder then select your tar file
kitchen will then create the working folder
and as a bonus the rom in the working folder will already be rooted as any changes you make before creating the tar file will be pulled
and deodex the rom in kitchen before you start making changes (make sure sdk level is set to 10)
Hi there guys...recently i wanted to deodex my rom but i cant understand so can someone deodex it?
Sent from my GT-S5360 using XDA Free mobile app
Sent from my GT-S5360 using XDA Free mobile app
My baseband is xxlc1 and build number is jplc1
Sent from my GT-S5360 using XDA Free mobile app
bigsmoke9250 said:
Hi there guys...recently i wanted to deodex my rom but i cant understand so can someone deodex it?
Sent from my GT-S5360 using XDA Free mobile app
Click to expand...
Click to collapse
Read this thread
http://forum.xda-developers.com/showthread.php?t=1801690
Learn how to install cygwin and android kitchen
Once done download android terminal emulator on phone
Type the following (phone needs to be rooted with busybox installed from playstore)
su
tar -c system/* >> sdcard/system.tar
Now transfer the file system.tar from the root of your SD card to your pc and place it the kitchen ROM folder
Run kitchen from the cygwin terminal
Create a working folder and select your system.tar
GOTO advance and select deodex
Set api to correct android version
Deodex
Then put the contents of your working folder excluding boot.img into a flashable zip - you may need to change the update binary and edit updater script
Full instructions can be found by the power of search
There may also be programmes that can do it all for you in a simpler way