Related
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
How to Make Your Own Custom Rom
Click to expand...
Click to collapse
Part 1 : Setting Up Dsixda's Android Kitchen.
So, Do you want to make a custom rom or, mod one that is made already? If your answer to this question is yes then you are at the right place. In this article I will help you get started with setting up an environment to make your own custom roms or edit the ones that are developed already. We are going to take help of dsixda's Android Kitchen Utility to help us in this task and in this article I am going to help you get started by guiding you through the installation process of Android Kitchen on your Personal Computer. So, you might have the question in your mind what exactly is Android Kitchen and what does it do and whom it is for? Continue reading to know all this as well as to get instructions on setting it up on your PC.
What is Dsixda's Android Kitchen?
Who is this kitchen for?
-Those who are brand new to creating custom ROMs and want an easy place to start learning
-Those who just want to modify shipped ROMs or someone else's custom ROMs to their liking
-Those who are confused by all those scripts and complex commands required for building and extracting
Please note:
-The kitchen will not automatically turn you into a developer. A developer is someone who writes code or builds something from the ground up and understands exactly what goes on behind the scenes. The kitchen hides all that and puts a user-friendly interface above it. However, this may be the push that gets you into development in the future.
My goal is to give you the tools to make your life easier and save you lots of time, and at the same time help you learn about the Android OS.
A little bit of prior UNIX command-line knowledge would be useful to get started with the kitchen, but the help guides should be enough for a newbie. Knowledge of command lines is always important if you ever want to get involved in Android or development.
Code:
===========================================================
Android Kitchen - by dsixda (xda-developers.com)
===========================================================
Main Menu
1. Set up working folder from ROM
2. Add root permissions
3. Add BusyBox
4. Disable boot screen sounds
5. Add wireless tethering
6. Zipalign all *.apk files to optimize RAM usage
7. Change wipe status of ROM
8. Change name of ROM
9. Check update-script for errors
10. Show working folder information
Advanced Options
11 - Deodex files in your ROM
12 - Add task killer tweak for speed (stock ROM only)
13 - Add /data/app functionality
14 - Add Nano text editor + sysro/sysrw
15 - Add Bash (command shell)
16 - Add Apps2SD
17 - Add /etc/init.d scripts support (busybox run-parts)
18 - Add custom boot animation functionality
19 - Porting tools (experimental)
20 - Tools for boot image (unpack/re-pack/etc.)
21 - Unpack data.img
22 - Sign APK or ZIP file(s)
23 - Convert update-script or updater-script
24 - Miscellaneous optins / Plugin scripts
99. Build ROM from working folder
00. About/Update kitchen
x. Exit
How To Install Kitchen?
1. Install latest Java JDK. It's pretty simple just follow the instructions and you are done.
2. Download and Extract Cygwin Packages and Android Kitchen on your desktop or somewhere easy to
access.
3. Once extracted go through kitchen_readme.txt and you will get an overview of how to setup the
kitchen.
4. To begin, install Cygwin first. So, run setup.exe from the extracted files and go through the installation
process.
5. Run Cygwin.exe once and it will create a folder with your username on /home/ directory.
6. Navigate to the folder where you installed Cygwin and go inside .../ home// folder.
7. Copy the extracted kitchen folder to this location.
8. Once copied, rename it to kitchen (type all letters in lower case for Linux is case sensitive).
9. Run Cygwin.exe and navigate to kitchen folder. for that simply type the command cd kitchen and press Enter
10. Once inside kitchen folder, type ./ menu to run android kitchen. Note: if you get a permission denied error then type chmod +x menu or chmod 777 menu in Cygwin command line utility first and then only run the command ./menu .
11. You will be presented with the Android Kitchen menu seen above. Use these options and get started. That's all. You have successfully installed android kitchen on your PC. Though this is originally meant for only HTC based roms some of it's features will come handy for modding Samsung Roms too. Please note that because of the same reason all the functions/features of Android Kitchen may not work for you.
Wow. Why did you copy and create a new thread and paste it? Why? Don't we have enough spam already?
EDIT: I don't see the point of this. Couldn't just share a link to the thread?
Interesting.
Thanks!
Sent from my Xperia™ PLAY using TapatalkHD
Lol. Nah, I think I will just stick with good ol' Linux and good ol' terminal and gedit (the proper way )
Sent from my E15i using XDA
Aha!!!
This is what i need... Great! Thankx
Nice info
Creating Custom ROM For Xperia 2011 Device
SatrioDwiPrabowo said:
Nice info
Click to expand...
Click to collapse
Is there any guide how to make custom rom for 2011 device like : Xperia Ray .. ???
engkozhe said:
Is there any guide how to make custom rom for 2011 device like : Xperia Ray .. ???
Click to expand...
Click to collapse
Use dsixda for basic tools rest you do whatever you want theme it add scripts do whatever you want !
Sent from my HTC Explorer A310e using xda premium
Ok. Tnx
Sent from my ST18i using xda app-developers app
I got stuck on services.odex n i cant get the classes.dex file, how can i deodex. Odex n put it on jar file? Tnx
ST18 with custom kernel
engkozhe said:
I got stuck on services.odex n i cant get the classes.dex file, how can i deodex. Odex n put it on jar file? Tnx
ST18 with custom kernel
Click to expand...
Click to collapse
To deodex ROMs use the option in Kitchen for it!
Sent from my HTC Explorer A310e using xda premium
Oh... One more question, can we put apk directly to system folder on cygwin? And how do you create credit on updater script?? Thank you
Sent from my ST18i using xda app-developers app
engkozhe said:
Oh... One more question, can we put apk directly to system folder on cygwin? And how do you create credit on updater script?? Thank you
Sent from my ST18i using xda app-developers app
Click to expand...
Click to collapse
You can add apps in /system/app or /data/app
But if you add in data you will have to create appropriate lines in updater script!
Sent from my HTC Explorer A310e using xda premium
Interesting.
...
updated
Q&A for [MOD]Stock SystemUI and Stock Firmware DXMD1[DEODEXED] for GT-S6102
Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer.
Before posting, please use the forum search and read through the discussion thread for [MOD]Stock SystemUI and Stock Firmware DXMD1[DEODEXED] for GT-S6102. If you can't find an answer, post it here, being sure to give as much information as possible (firmware version, steps to reproduce, logcat if available) so that you can get help.
Thanks for understanding and for helping to keep XDA neat and tidy!
De-odexed!!!
Well, here again, hmm, it looks like the main problem with my swipe to remove is that I don't have a fully deodexed ROM(Xduos V3) which is why it's not working. sigh, and I was preparing myself to go for the hard way.
Guess my questions are answered here as for now.
marcussmith2626
Click to expand...
Click to collapse
will meet again.
New question
Can I save the little space I have in internal storage with a deodexed rom? deodexed rom is going to solve my issues with the rom's UI but I am concerned as to what effect it will have on my sgy performance?
billysam said:
Well, here again, hmm, it looks like the main problem with my swipe to remove is that I don't have a fully deodexed ROM(Xduos V3) which is why it's not working. sigh, and I was preparing myself to go for the hard way.
Guess my questions are answered here as for now. will meet again.
New question
Can I save the little space I have in internal storage with a deodexed rom? deodexed rom is going to solve my issues with the rom's UI but I am concerned as to what effect it will have on my sgy performance?
Click to expand...
Click to collapse
If the rom is odex you will see .odex files in system/app and framework
To deodex follow these steps
Requirements
Pc
Android kitchen
Cygwin
Rooted phone with Busybox & terminal emulator
Winrar
Notepad++ (different from the windows notepad)
Alot of patience & a little knowledge
Please note I'm writing this from memory - some steps may vary
First root your phone & install Busybox (open app & click install) from the playstore
Also install terminal emulator
https://play.google.com/store/apps/details?id=stericson.busybox
https://play.google.com/store/apps/details?id=jackpal.androidterm
Set your screen timeout to 30mins
Open terminal emulator
Type the following (a new line represent push enter after the line before)
Su
tar -c system/* >> sdcard/system.tar
Note it may take around 5mins to complete - You will know it's done when the prompt cursor returns
This will copy your phones system folder to the root of your site
card and call it system.tar
Copy this tar file to your pc
Next head to this thread
http://forum.xda-developers.com/showthread.php?t=2195858
Download and install Cygwin and Android kitchen
There is a YouTube video which explains how on the thread so watch it
This is the part I can't remember exactly from memory
You need to setup a working folder - I can't
remember if you place the tar file in the rom folder in the kitchen directory or you unzip it & copy it to a working folder - that thread will say
Start Cygwin as administrator (right click on icon & run as administrator) if you get a load of errors turn off your antivirus
Navigate to your kitchen folder (you can bring up a list of folders by typing ls and type cd to change directory
Type ./menu
Kitchen will start
You have the option to create a working folder which will look in the rom folder - if a tar file is acceptable it will extract your tar into a working folder - can't remember if that's how you do it
Next goto advance (or extra options can't remember what it says)
Goto deodex
You need to change the api level so it matches your Android version
Now you are finally ready to deodex
Deodex both folders
Once done build the rom (lazy mode options should be fine Think it signs rom create scripts & so on)
Once it's built collect your rom zip
Now download any custom stock rom - maybe hyperion 9 for 5360
Open your rom zip with winrar
Delete boot.img if present
Goto meta-inf folder and I think it's in com/google/andoid
Delete the update binary and replace with the one from hyperion9
Next open extract the updater script from both roms from the same folder the binary way in
Open them both in notepade++
Replace everything in your script above where the symlinks start with what is written in the hyperion9 one
Save & copy this script back to your rom zip meta in folder replacing the one that is there
Copy zip to sd card
Go into Cwm
Create a nandroid backup
Format system data cache
Mount system data cache
Flash your rom zip
Error codes
Status 0 wrong update binary
Status 6 error with updater script
Hopefully there will be no errors and it will flash and when you restart you will have a fresh deodexed rom
You can go into Cwm and advance restore data only
This should restore your contacts sms and app data
For extra storage create a 2nd ext partition on your site card in Cwm (note that this will format your ad card so copy it's contents to a pc then copy back once done)
Once you have a 2nd ext partition you can download link2sd from the playstore and link apps to sd card - you can also use the app to uninstall bloatware from the system
Note you will need to use a kernel that supports ext and try ext4 first from the link2sd menu that will pop up & work your way back up if that fails
I don't normally post such a long explanation but I'm feeling generous - anything else please research yourself
Very Much Appreciated
marcussmith2626 said:
If the rom is odex you will see .odex files in system/app and framework
To deodex follow these steps
Requirements
Pc
Android kitchen
Cygwin
Rooted phone with Busybox & terminal emulator
Winrar
Notepad++ (different from the windows notepad)
Alot of patience & a little knowledge
Please note I'm writing this from memory - some steps may vary
First root your phone & install Busybox (open app & click install) from the playstore
Also install terminal emulator
https://play.google.com/store/apps/details?id=stericson.busybox
https://play.google.com/store/apps/details?id=jackpal.androidterm
Set your screen timeout to 30mins
Open terminal emulator
Type the following (a new line represent push enter after the line before)
Su
tar -c system/* >> sdcard/system.tar
Note it may take around 5mins to complete - You will know it's done when the prompt cursor returns
This will copy your phones system folder to the root of your site
card and call it system.tar
Copy this tar file to your pc
Next head to this thread
http://forum.xda-developers.com/showthread.php?t=2195858
Download and install Cygwin and Android kitchen
There is a YouTube video which explains how on the thread so watch it
This is the part I can't remember exactly from memory
You need to setup a working folder - I can't
remember if you place the tar file in the rom folder in the kitchen directory or you unzip it & copy it to a working folder - that thread will say
Start Cygwin as administrator (right click on icon & run as administrator) if you get a load of errors turn off your antivirus
Navigate to your kitchen folder (you can bring up a list of folders by typing ls and type cd to change directory
Type ./menu
Kitchen will start
You have the option to create a working folder which will look in the rom folder - if a tar file is acceptable it will extract your tar into a working folder - can't remember if that's how you do it
Next goto advance (or extra options can't remember what it says)
Goto deodex
You need to change the api level so it matches your Android version
Now you are finally ready to deodex
Deodex both folders
Once done build the rom (lazy mode options should be fine Think it signs rom create scripts & so on)
Once it's built collect your rom zip
Now download any custom stock rom - maybe hyperion 9 for 5360
Open your rom zip with winrar
Delete boot.img if present
Goto meta-inf folder and I think it's in com/google/andoid
Delete the update binary and replace with the one from hyperion9
Next open extract the updater script from both roms from the same folder the binary way in
Open them both in notepade++
Replace everything in your script above where the symlinks start with what is written in the hyperion9 one
Save & copy this script back to your rom zip meta in folder replacing the one that is there
Copy zip to sd card
Go into Cwm
Create a nandroid backup
Format system data cache
Mount system data cache
Flash your rom zip
Error codes
Status 0 wrong update binary
Status 6 error with updater script
Hopefully there will be no errors and it will flash and when you restart you will have a fresh deodexed rom
You can go into Cwm and advance restore data only
This should restore your contacts sms and app data
For extra storage create a 2nd ext partition on your site card in Cwm (note that this will format your ad card so copy it's contents to a pc then copy back once done)
Once you have a 2nd ext partition you can download link2sd from the playstore and link apps to sd card - you can also use the app to uninstall bloatware from the system
Note you will need to use a kernel that supports ext and try ext4 first from the link2sd menu that will pop up & work your way back up if that fails
I don't normally post such a long explanation but I'm feeling generous - anything else please research yourself
Click to expand...
Click to collapse
Well, thank you for your valuable time and efforts in getting me involved to the basics. your generosity is very much appreciated, I am on my path to research it all myself.
Ultimate guide for Spreadtrum sc6820/sc8810 rooting/porting/making cwm recovery/Kernal sources etc.
Every one asking me how i make universal rom & porting different roms
So here i m back with the ultimate guide for porting roms in just few minutes,comling recoveries & how to fix bugs bla bla bla
So Lets Start with about SC6820/8810 Chipset
SC6820 is a cheap marketing chipset provided by Spreadtrum....
SC6820 is a such chipset which is not capable to power 3G,it comes with EDGE CLASS 12.....
SC8810 is also same as SC6820 the only difference is that sc8810 supports chinese forum of 3G(not for any other country)...
Most of the sc6820 is GB 2.3.5 powered by MocorDroid marked as fake 4.0 or 4.2 but still some of them are real ICS/JB....... the chipset supports 512mb ram max & it is come with single core CPU @ 1GHz & it can be overclock to 2.4GHz according to chinese developers.
SC6820 is chipset is much faster than other chipset though its drains battery like hell..... So here i m sharing some tricks/tips about SPRD...
[GUIDE]How to root unrootable spreadtrum devices & make adb operations on it
Most of the Spreadtrum devices comes with a secured/locked boot.img which cant be rooted..
Although u can root it by force by force by VROOT but u cant do adb actions on it such as pushing files to system with adb......
So we have change something in our boot.img to make it unsecured
Requirements:
1.dsixda's Android Kitchen
2.Ur Stock boot.img
3.Notepad++
4.Little Knowledge
Steps to do:
>Unpack ur boot.img through android kitchen(cywin)[in menu Press 12 for advance option & there u will see option for unpacking]
>now goto Boot-extracted folder & open ramdisk folder
>now open default.prop in Notepad++ & Change from
Code:
ro.secure=1
to
Code:
ro.secure=0
>Now Repack ur boot.img & flash it using fastboot
CODE:
fastboot erase boot
CODE:
fastboot flash boot boot.img
>Now ur done u can root ur Phone with any rooting tool (eg.unlock root toolkit,srs root) & do adb operations too
>Or u may State forward to this guide which contains much information about sprd
Click to expand...
Click to collapse
[GUIDE]HOW TO MAKE CUSTOM RECOVERY[CWM/MIUI] FOR SC6820
Well Compiling Recovery is though hard but for SC6820 its too easy just by porting it
Requirements:-
1.dsixda's Android Kitchen
2.Ur Stock recovery
3.MIUI or CWM Recovery provided by me
4.Little Knowledge
Steps to do:
>First download miui recovery from here or CWM recovery from here
>Make a working folder & unpack miui/cwm recovery through kitchen(It will be better if u rename recovery.img to boot.img)
>Unpack ur stock recovery too(separately)
>copy zimage from stock recovery to miui/cwm recovery.....
>repack the miui/cwm recovery,now u r done u can flash it in fastboot
>If u r still in doubt feel free it reply or attach ur stock recovery below
Click to expand...
Click to collapse
Credits:-
Hadi Khouridin for miui recovery
@ElectronikHeart for this informative guide
[guide]porting roms & make it universal
[guide]how to port roms/make it universal
here i m going to share my trick how i port different roms in just few minutes.......
As sc6820/8810 is a chipset which have much similar specs with all the phones so the rom dont need much things to boot on any device
lets start
requirements:
1.7zip archiver
2.android kitchen
3.notepad++
4.brain
steps to do:
>first take the port rom which is for same chipset
>now make another folder take ur base rom(u can extract ur system.img in unyaffs tool or android kitchen u can directly copy required files from phone )
>now extract the port rom & took these files from /system/
/app (whole folder)
/framework (whole folder)
/media (whole folder)
/etc/permissions/ (whole folder except hardware_handheld & platform)
/fonts (whole)
libandroid_runtime.so , libwebcore.so (from /system/lib/)
/oem (whole folder if exists,most of the roms does not contain oem)
build.prop
>now put the above file and folders in "/system" folder & for lib make a "lib" folder inside /system & put the libraries in /system/lib, create "etc" folder inside /system folder & put "permissions" folder in /system/etc
so finally it should look like this
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
/system/app/
/system/framework/
/system/lib/
/system/fonts/
/system/media/
/system/oem/
/system/etc/permissions/
./system/build.prop
>now we will make a flashable zip of the above files/folders
>get meta-inf folder from any rom/any other flashable zip
>now open updator script from meta-inf\com\google\android\ & open it with notpad++
make it blank & add these lines
Code:
ui_print("****************************************");
ui_print("* >>>>>>>>>universal rom<<<<<<<<<< *");
ui_print("****************************************");
show_progress(1.000000, 0);
ui_print("mounting filesystems...");
run_program("/sbin/busybox", "mount", "/system");
set_progress(0.100000);
ui_print("deleting files...");
delete_recursive("/system/framework");
delete_recursive("/system/app");
delete_recursive("/system/media");
delete_recursive("/system/fonts");
ui_print("extracting files...");
package_extract_dir("system", "/system");
set_progress(0.300000);
ui_print("setting permissions...");
set_perm(0, 0, 0644, "/system/lib/libandroid_runtime.so");
set_perm(0, 0, 0644, "/system/lib/libwebcore.so");
set_progress(0.400000);
set_progress(0.500000);
set_progress(0.700000);
# unmounting filesystems...
Run_program("/sbin/busybox", "umount", "/system");
set_progress(0.900000);
set_progress(1.000000);
ui_print("****************************************");
ui_print("* install complete! *");
ui_print("* reboot your device *");
ui_print("****************************************");
>now save it & make a zip archive of system & meta-inf folder in 7zip & set compression level to normal
>now u can flash the universal rom in cwm.........
some additional information:-
*if rom have a oem folder than it must contain a oem.prop which need to be work the rom buglessly although the rom can boot without its oem but still it will lead some bugs & the rom who have oem they have the bootanimation in the oem folder....
Oem folder/oem.prop does not works unless we define it in our default.prop @boot.img
so what we have to:
-unpack the boot.img
-open default.prop in notepad++ & add this code to the bottom of defaul.prop
Code:
ro.oempath=/system/oem
-now save the default.prop & repack boot.img
-now u r done u can see the bootanimation now
*u can make flashable zip of ur boot.img
-just take meta-inf from any where & open updater-script in notepad++
make it blank & add these lines
Code:
ui_print("installing please wait");
assert(package_extract_file("boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "boot"),
delete("/tmp/boot.img"));
show_progress(0.2, 10);
-save updater-script
-now make zip archive of meta-inf & boot.img at compression normal
-ur done u can flash it in cwm
happy porting
if u still faced any trouble u can comment below we will help u
Although u can make universal rom/port roms easily from the above method but u cant port some critical roms like lewa with this method so u have to try the ultimate porting method given below to port any rom but its not universal & not recomended for noobs xd
Click to expand...
Click to collapse
[guide][dev]ultimate guide to port roms
well as i know porting is easy than modding apps xd
its takes lot of time to make a rom by modding all the stock apps which i know better but porting a rom is work of minutes or may be a year depends upon u
in this guide i will tell u how to port lewa or bee os or any other roms which u failed on the above method......
So lets start
requirements:
1.7zip archiver
2.android kitchen (cywin)
3.notepad++
4.brain
note:- u cant port roms from different chipset(it does not mean its impossible ) & u cant port roms having differnt sdk version(eg. Gb to jb,its possible only through source codes ), u can port roms from sc6820 to sc8810 or sc6820 to sc6820 or sc8810 to sc8810,u can port too from hdpi to mdpi & mdpi to hdpi(only if u know decompiling/modding apps),for porting ram & cpu clock speed does not matter.
steps to do:
>take any of ur stock based roms & extract to a folder & name it "base"
>take the rom which u want to port & extract it to a folder & name it "port"
copy these files from stock to port
from /system/bin
akmd8975
tc
netd
wpa_supplicant
hciattach
bluetoothd
bccmd
from /system/lib
hw(whole folder)
modules(whole folder)
egl(whole folder)
libhardware.so
libhardware_legacy.so
libbluetooth.so
libbluetoothd.so
libbluedroid.so
libctest.so
libdbus.so
libdiskconfig.so
libeng_wifi_ptest.so
libclient.so
lisensorservice.so
from /system/etc[/size]
bluetooth(whole folder)
dhcpcd(whole folder)
firmware(whole folder)
wifi(whole folder)
handheld_core_hardware.xml (from permissions)
platform.xml(from permissions)
vold.fstab
from from /system
sps(whole folder)
usr(whole folder)
>now open build.prop of port rom & change device name,version to ur desired one
>atlast take boot.img from ur stock rom....
>now repack the rom in 7zip by selecting compression normal
>ur done,it should boot now
additional steps for porting lewa:-
lewa os cant boot with ur stock boot.img,so u have to made some changes in ur boot.img(@init.rc) to boot lewa
u have to change its bootclass path to boot lewa......
>unpack ur stock boot.img in a working folder using android kithen
>now open ur init.rc (in ramdisk) with notepad++ & search for the line
Code:
export bootclasspath
>now select the whole line as shown in the image below
change the whole line to this
Code:
export bootclasspath /system/framework/core.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/core-junit.jar:/system/framework/lewa.policy.jar:/system/framework/lewa.systemservice.jar
>now save ur init.rc & repack ur boot.img
>now lewa should boot with this boot.img :laugh:
If booted take a bear lol
credits:
hadi khoirudin for his patch rom methods
& ofc me
U can take some roms from below links to port as very less custom roms are available for sc6820... so me & Somnath made some amazing roms by modding stock apps
Links:-
http://forum.xda-developers.com/showthread.php?p=53610668
http://needrom.com/
Click to expand...
Click to collapse
fixing known issues/bugs
well my porting methods should not lead bugs as the procedure contains much from ur stock...
But still if u flash a rom of a clone of ur device or what ever u port leads bugs then these are the steps to fix.....
Take these files from ur stock
boot
libandroid_runtime.so ( if rom did not boot with port lib)
libandroid_servers.so
wifi
libhardware_legacy.so - it contains the driver path of wifi
from modules 8723as.ko or unifi_sdio.ko or may be other - these are the drivers to load wifi
if u are confused what is ur wifi driver then do these steps
>open libhardware_legacy.so in notepad++ & search for /system/lib/modules/ the name(*****.ko) u will find after that is ur wifi driver
libeng_wifi_ptest.so :- important to work wifi properly
from binaries(/system/bin) copy these
wpa_supplicant - for this u can scan networks
synergy_wifi_attach - important
synergy_service
netd
eng_setbtwifiaddr
engmodemclient
engservice
engtest
from /etc/
dhcpcd- for this u will be able to find networks
wifi - important
firmware - most important
bluetooth
libhardware_legacy.so
libbluedroid.so
libbluetoothd.so
libbluetooth.so
from binaries
bluetoothd
synergy_service
netd
eng_setbtwifiaddr
engmodemclient
engservice
engtest
from /system/etc/
bluetooth
firmware
headset
headset.ko from /system/lib/modules
rotation
libsensorservice.so
sensors.sprdbp.so (from /system/lib/hw)
android.hardware.sensor.proximity.xml (from /etc/permissions)
gpu
egl folder (from /system/lib)
mali.ko (from modules)
gralloc.mali.so (from hw)
hardkeys/softkeys
usr folder (from /system)
touch
sps folder (from /system)
Click to expand...
Click to collapse
reserved will be updated tomorrow
SC6820/SC8810 Kernal Sources by Hadi
Well Every one knows Micromax or Karbon are not releasing their source codes for their phone & most of the cheap phones comes with a Spreadtrum Chipset.....
But now ur wait is over
Developers Get ready for the war as we got Kernal sources.....
A big thanks @Hadi_K.t(t_t)t for sharing the source codes of Spreadtrum Sc6820
Kernal Source Codes SC6820 GB
Click here to download Sources
[Guide]Compiling Kernal with source codes using ubuntu
Click here to download full guide of compiling Kernal
Reserved for more information
reserved
Great man !
here is my custom roms for sc6820/sc8810
feel free to port remember to give proper credits..
ionmod v2.0
http://www.needrom.com/download/yxtel-g928-v1-0-6-ionmodv2-0-custom-rom/
http://www.needrom.com/download/yxtel-g928-v1-0-4-ionmodv2-0/
ionmod v1.0
http://www.needrom.com/download/yxtel-g928-v1-0-6-ionmod-xperia-based-custom-rom/
abhimortal6 said:
Great man !
here is my custom roms for sc6820/sc8810
feel free to port remember to give proper credits..
ionmod v2.0
http://www.needrom.com/download/yxtel-g928-v1-0-6-ionmodv2-0-custom-rom/
http://www.needrom.com/download/yxtel-g928-v1-0-4-ionmodv2-0/
ionmod v1.0
http://www.needrom.com/download/yxtel-g928-v1-0-6-ionmod-xperia-based-custom-rom/
Click to expand...
Click to collapse
Good work.......
why dont u post ur ROMS in here means XDA forum with some more screenshots
BTW here are some roms that never before on SC6820
All the roms u find here most of them are made by me & somnath
U can port it to ur device
http://forum.xda-developers.com/showthread.php?t=2799418
http://forum.xda-developers.com/showthread.php?t=2791901
Hit thanks if u like my work
pritish sahoo said:
Good work.......
why dont u post ur ROMS in here means XDA forum with some more screenshots
BTW here are some roms that never before on SC6820
All the roms u find here most of them are made by me & somnath
U can port it to ur device
http://forum.xda-developers.com/showthread.php?t=2799418
http://forum.xda-developers.com/showthread.php?t=2791901
Hit thanks if u like my work
Click to expand...
Click to collapse
ya nice work thr but i dont have a sprd phone any more.
Spectacular
This is just wonderful :laugh::laugh::laugh: thanks soo much for this guide on porting recoveries and roms i now have a custom recovery that actually works
kirito9 said:
This is just wonderful :laugh::laugh::laugh: thanks soo much for this guide on porting recoveries and roms i now have a custom recovery that actually works
Click to expand...
Click to collapse
u r welcome
if u like guide then rate it 5star & share this guide
well can say ur device name?
there is too many roms for SC6820 made by me & som u can try those & port them to ur device
pritish sahoo said:
u r welcome
if u like guide then rate it 5star & share this guide
well can say ur device name?
there is too many roms for SC6820 made by me & som u can try those & port them to ur device
Click to expand...
Click to collapse
your 5 star rating has been added and my device is blu dash jr, i will begin porting your rom to my device and credit you :good:
device reboots
i've successfully ported cyanokat v1 .........and it boots in my walton primo c1.......
but,my device reboots after 1-2 minutes of booting............
i cant take logcat........ i think u better make a guide on taking logcat on spreadtrum phones
---------- Post added at 10:39 AM ---------- Previous post was at 10:11 AM ----------
what does gpu fix means at bug fixing
bluetooth.... can't enable bluetooth ....tried ur bugfix..... no luck
Cpt.mactavish said:
bluetooth.... can't enable bluetooth ....tried ur bugfix..... no luck
Click to expand...
Click to collapse
try this guide to take logcat
http://forum.xda-developers.com/showthread.php?t=1726238
some times bluetooth bug occurs due to busybox
So better u use busybox from ur stock
& one more suggetion
if mmx a65 rom does not suits to ur device u can port another device's rom which is suitable for u
U can try this rom to port( its made for a62)
http://forum.xda-developers.com/android/development/custom-rom-cyanokat-inverse-t2861825
Kernel sources link needs updating
can you post a guide to port roms to sc8830/7731
dev.shinchan said:
can you post a guide to port roms to sc8830/7731
Click to expand...
Click to collapse
Any custom recovery for sc8830/7731
Sent from my KIW-L22 using XDA Free mobile app
Great!My HUAWEI Y220-T10 runs SpreadTrum SC8810 with android 2.3 GB,Do you think SC6820's code will work?Is it possible to run ICS on my phone?
due i found Advanced_cwm_recovery(a35).img-zImage do you mean copy it to mine without rename it to recovery.img-zImage
pritish sahoo said:
Well Every one knows Micromax or Karbon are not releasing their source codes for their phone & most of the cheap phones comes with a Spreadtrum Chipset.....
But now ur wait is over
Developers Get ready for the war as we got Kernal sources.....
A big thanks @Hadi_K.t(t_t)t for sharing the source codes of Spreadtrum Sc6820
Kernal Source Codes SC6820 GB
Click here to download Sources
[Guide]Compiling Kernal with source codes using ubuntu
Click here to download full guide of compiling Kernal
Click to expand...
Click to collapse
Will the source of SC6820 work on SC8810 GingerBread devices?
Android小楼阁-QQ群 439637151
来自搭载Android 2.3 GingerBread的华为Y220-T10
can you post a guide to port custom recovery.img for SC7715 ??
Hello and Welcome to AutoApk topic
#screenshot attached
This Auto tool will do all job for you and you can access it anywhere
lets get started
-----------------------------------------
requirement :
linux [ tested on ubuntu ]
jdk installed
------------------------------------------
installation :
Download the file from the link
extract the zip file
open terminal in the folder
or cd to the folder
then
copy and paste this line
Code:
sudo sh $PWD/install.sh
and enter your password and done
easy huh ?
lets complete the setup .
now copy your device framework-res.apk and put in a folder
open terminal there and select 1
install the framework
( if you have a touch wiz rom install tw framework too by using number 2 )
note :for editing system apps you need that rom frame work installed
now for last step you need to install update binary of your device
you can copy it too a folder
open terminal there and install it by selecting 4>1
you can install from a working flash zip file too just open terminal where the file is and 4>2 enter the name and wait
---------------------------------------------------
hows this tool works ?
lets see .
you have a apk on here :
Code:
/home/me/Desktop/folder/1.apk
you just go to the folder and right click and click open terminal here or manually cd to the folder containing the file
then in the terminal just write
autoapk
follow by a enter and done
you can choose what to do
here are the available commands :
1) Install-framework-res
2) Install-TWframework-res
3) Install-App
4) Install-Update-Binary ( For flashable zips )
5) Decompile
6) Compile
7) Compile+Sign
8) Compile+Sign+Flashable-zip
9) Flashable-zip
10) sign
11) Check-for-Update
12) Reload
13) Exit
-------------------------------------------------------
check for update is working but my server is not good :crying:
if it was good enough i could put auto update
-------------------------------------------------------
codes are sooooooo beautiful ! i love them !
but not open source if any one need anything or want to help me just contact me :victory:
-------------------------------------------------------
credits :
@iBotPeaches for apktool
any donation will help me keep up the project )
paypal : [email protected]
-------------------------------------------------------
current version : 1
no bugs
if you found any contact me :good:
Download :
Here
Code:
v1 release
added flashable zip
and others ....
A tool for android developing in which you will not have a bad time using. Simple to use with great features. - 10/10 Cosinus.
Awesome work with many features packed in at once, i was having bad times downloading all utilities to work on one app, but now I've finally found an AIO tool.
im the 5th comment?
Sent from my GT-I9515 using XDA-Developers mobile app