Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,814,105 Members 44,911 Now Online
XDA Developers Android and Mobile Development Forum

[GUIDE][GT-I9082/GT-I9082L][GRAND DUOS][04/06/2013]Make your own custom rom!!

Tip us?
 
k2wl
Old
(Last edited by k2wl; 29th September 2013 at 03:29 PM.) Reason: added new level correction for 4.2.2
#1  
Senior Member - OP
Thanks Meter 4,573
Posts: 2,039
Join Date: Apr 2008

 
DONATE TO ME
Angry [GUIDE][GT-I9082/GT-I9082L][GRAND DUOS][04/06/2013]Make your own custom rom!!

THIS GUIDE WILL NOT MAKE YOU DEVELOPER OVERNIGHT. THIS GUIDE ONLY GIVEN TO GIVE YOU HEAD START IN ROM DEVELOPMENT.

I am glad that i am posting this in our new forum...(thanks xda)

IT IS HIGHLY RECOMMENDED THAT YOU SHOULD KNOW SOME BASICS OF LINUX COMMANDS FOR ANDROID DEVELOPMENT.
DISCLAIMER- I AM NOT RECOMMENDING TO ADD PAID APPS OR SOME OTHER DEVELOPER'S WORKS IN UR ROM. PLEASE DON'T PUBLISH ROM WITH PAID CONTAINS OR OTHER DEVELOPER WORKS.
AND
"DON'T SPAM DEVELOPMENT FORUM WITH UR ROMS IF IT DOESN'T CONTAINS ANYTHING NEW."


STEPS:-

Quote:
1.Things needed
2.Setting up Cygwin in windows
3.Setting up linux (if you are going to use windows then skip this)
3.Setting up a dsixda kitchen
4.Using a kitchen to make a rom
5.Customise the rom
1.THINGS NEEDED

 
Quote:
1.DSIXDA Kitchen
http://github.com/dsixda/Android-Kitchen/tags
(for any kitchen related issues please report to original kitchen THREAD
2. GT-I9082 /I9082L kitchen compatibility file http://d-h.st/qr5
3. Latest Firmware from sammobile.com/firmwares or samsung-updates.com
4. 7-zip (to extract tar.md5 file) in windows.
5. Notepad++
6.cygwin or linux (ubuntu or its variant preferred)i recommend using Linux for your development (sometimes cygwin causes symlink errors in updater script)
i use linuxlite or ubuntu 10.04 or ubuntu 13.04 64bit.
In windows android development is difficult and for porting and debugging ,tar,untar and many other functions linux is the only way.
7.JDK www.java.com


2.SETTING UP CYGWIN IN WINDOWS


(I am not using cygwin for my development ,although it is setup in my pc.I personally prefer linux)

 
Quote:
Download Latest JDK from http://www.java.com/en/download/manual.jsp choose windows offline version

Download cygwin package from http://content.wuala.com/contents/ne...ols/Cygwin.zip

-->Install JDK first .
-->extract cygwin.zip C:\
-->We need to install cygwin, open the setup.exe, just keep hitting next until you are on the select packages screen, go to "Devel" menu and select to install gcc, gdb and make, in "Interpreters" check perl, in "Archive" check zip and unzip, in "Web" check wget, in "Editors" check nano and vim and in "Utils" select cpio, util-linux and ncurses. Make some tea and wait for the cygwin install to finish and we are ready to go to the next step.


NOW CYGWIN IS READY TO GET KITCHEN

3.SETTING UP LINUX

i personally recommend linux for kitchen and other android development use.
i use linux lite(based on ubuntu LTS release) http://www.linuxliteos.com/ I also use ubuntu 13.04
if u want to use ubuntu then i recommend version 10.4 or 13.04 or use kubuntu latest release.
Installing linux along with windows on other partition as dual boot can be done but need experience.
Following are 2 methods are easiest and currently recommended by me.

FIRST METHOD

Most easy and recommended
INSTALLING UBUNTU ALONG WITH WINDOWS WITHOUT FORMATING HARD DRIVE OR PARTITION
 
Quote:
-->Download Ubuntu 13.04 64bit
-->Download WUBI 13.04
-->make sure ur one of the partitions on ur pc have atleast 25 to 30 gb space.
-->After downloading put wubi and ubuntu iso in same folder
(note don't use wubi on windows 8 pc)
-->Double click on wubi.exe
-->Select Drive with maximum space. select 22gb in installation size.
-->set ur administrator password & re-enter it in confirm password box.
-->click install & wait for finish screen.
-->select reboot.
-->on rebooting it will start installation automatically.
-->wait till installation finishes & reboot to default ubuntu log screen.
-->login with ur username/password
-->make sure ur internet is connected.
-->Press Ctrl+Alt+T to open terminal & type following
(if it ask for password then type it and press enter)

Code:
sudo apt-get install gnome-shell gnome-session-fallback  indicator-applet-appmenu gnome-tweak-tool ia32-libs
-->after that logout (it is round setting like icon in top corner) and select the session as "genom fallback with no effects" from login screen (round icon beside ur_username on login screen)
-->now relogin
-->go to applications>>ubuntu software center
-->search java>>select openjdk7 java runtime environment>>click install. Wait till installation.


NOW SETUP KITCHEN

SECOND METHOD
Those who want to set up linux in virtual machine need fast pc with lots of ram.
 
Quote:
--> install virtual box http://www.virtualbox.org/
-->after installation open virtual box
--> click new-->in name box type ubuntu or kubuntu , it will automatically select linux and ubuntu or kubuntu in below boxes.-->click next-->select ram size u want to devote to virtual machine i recommend atleast 1024mb.
-->click next you will see menu to creat a virtual hard disk.Select create new hard disk-->select hard disk type as vdi in next screen.-->in next screen select dynamically allocated.-->in next screen click yellow icon beside ubuntu or kubuntu and select where you want to put your hard disk. You need atleast 15 to 20 gb space for hard disk. then click create.
-->now click start in virtual box on selecting kubuntu. it will ask for you bootable disk. browse and select ubuntu or kubuntu or linuxlite bootable disk. It will boot into boot menu. select install to hard drive.(google for installation instructions for ubuntu or kubuntu or linuxlite)
-->now boot up your virtual machine
-->login with user you created.
then follow the instruction s in this post http://forum.xda-developers.com/show...00&postcount=3 under linux/ubuntu section.


NOW YOUR VIRTUAL MACHINE IS READY TO SETUP KITCHEN

4.SETING UP DISXDA KITCHEN

A] cygwin instructions

 
Quote:
-->Download kitchen from above link.
-->extract it to C:\cygwin\home\
-->rename the extracted folder to "kitchen" from "Android-Kitchen-xxx" (easier to navigate)
-->Now fireup cygwin from desktop icon.
-->In command window type "cd ../kitchen" press enter
-->then type ./menu
--> and you ready to go...!!!


B] Linux instructions

 
Quote:
-->Download the kitchen
-->extract it to home/your_username directory
-->rename the extracted folder to "kitchen" from "Android-Kitchen-xxx" (easier to navigate)
-->Open the terminal & type "cd kitchen" press enter
-->then type ./menu press enter.
--> and you ready to go...!!!


NOW YOU HAVE YOUR KITCHEN SETUP FOR USE.

MAKING I9082/I9082L ROM DEVELOPMENT COMPATIBLE WITH KITCHEN

 
Quote:
-->Now go to \kitchen\tools\edify_defs in linux or cygwin folder
-->copy the compatibility file I provided above to this folder.
-->VOILA NOW OUR GRAND IS COMPATIBLE WITH KITCHEN.!!!!


4.USING KITCHEN TO MAKE A ROM

 
Quote:
-->Download the firmware of choice from www.sammobile.com/firmwares or www.samsung-updates.com
-->Unzip it.
-->You will get tar.md5 file.
-->If you are using windows then open the tar.md5 with 7-zip. or in linux open it with archiever
-->7-zip will show an error just click ok.
-->Now your tar.md5 is open.
-->extract system.img,boot.img,cache.img to"original update" folder in kichen folder.

-->Fireup the kitchen as stated above.
-->select option 1 - Set up working folder from ROM
-->press enter to continue.
-->press enter again to copy imgs to working folder
-->now in linux it will automatically copy them ,extract them to working folder
-->but in cygwin it will show prompt to extract system.img. (read the instructions when it prompt) extract it to working folder.-->it will show prompt to extract cache.img to system folder.-->Now you have your working folder setup for use. do it.
-->now select option 2 , 3 one by one to get root and busybox respectively.
-->now select 0 advanced options
--> in that select 14 to add init.d support
-->select 11 Deodex files in your rom . here press "v" to change the API level. Set it to 16 or 17 .(JB4.1.2 is level 16 and JB4.2.2 is level 17 )Now select "b" to deodex both app and framework folder.
--> now go back to main menu. and select 99 build the rom from working folder. here select 2 lazy mode.
--> Wait for some time. you will get prompt that baffin_signed_xxxx.zip is created in output_zip folder.(this lies in kitchen's folder)


HERE IT IS... YOUR FIRST CUSTOM ROM.


MY WORK
 
For Samsung Galaxy Grand I9082
ProBAM KK | Evolution Kernel | Kernel building guide |
OmniROM 4.4.2 | Android Kitchen ROM guide


For Samsung Galaxy S4 mini Duos I9192

CM-11.0
Hit thanks if i help you. And donate if you can.
The Following 28 Users Say Thank You to k2wl For This Useful Post: [ Click to Expand ]
 
k2wl
Old
(Last edited by k2wl; 4th June 2013 at 10:22 AM.) Reason: ADD apps section updated
#2  
Senior Member - OP
Thanks Meter 4,573
Posts: 2,039
Join Date: Apr 2008

 
DONATE TO ME
Thumbs up 5.how to customise your rom.

So first thing now for you to customize your own rom.
You can do this in linux or windows

DISCLAIMER- I AM NOT RECOMMENDING TO ADD PAID APPS OR SOME OTHER DEVELOPER'S WORKS IN UR ROM. PLEASE DON'T PUBLISH ROM WITH PAID CONTAINS OR OTHER DEVELOPER WORKS

A]Remove & add apps
B]Remove unnecessary files.
C]Add your own ringtones,alarm,notification sounds

So lets start....
First u have to make back up copy of ur rom.(I am a back up freak...)

A]Remove & add apps
REMOVE APPS
Extract your rom to some directory like "myrom"
Now you get system,boot.img,meta-inf folder extracted.
Go to >>system/app
DELETE THE APPS YOU DON'T NEED.
I AM GIVING YOU THE NAME OF FILES I REMOVE AS PER MY NEED.
 
Quote:
\system\app


ACCUWEATHER

AccuweatherDaemon.apk
AccuweatherWidget.apk
AccuweatherWidget_Main.apk
WeatherWall.apk


ALLSHARE
AllshareMediaServer.apk
AllSharePlay.apk
AllshareService.apk

CLOCK
AnalogClockSimple.apk
DigitalClock.apk
DualClockAnalog.apk
DualClockDigital.apk
SimpleAlarmClock.apk

CAMERA FEATURE
BestGroupPose.apk
FaceLock.apk
GroupCast.apk

SAMSUNG MESSANGER
ChatON_MARKET.apk

FONTS
ChocoEUKor.apk
CoolEUKor.apk
HelvNeueLT.apk
RoseEUKor.apk

CHROME BROSWER
ChromeBookmarksSyncAdapter.apk
ChromeWithBrowser.apk

CSC
CSC.apk

LIVE WALLPAPER
DeepSea.apk
LuminousDots.apk
NoiseField.apk
PhaseBeam.apk
SecLiveWallpapersPicker.apk

DROPBOX
Dropbox.apk
DropboxOOBE.apk

GALLARY
EasyGalleryWidget.apk

EMAIL,EXCHANGE,VPN
EdmSysScopeService.apk
EdmVpnServices.apk
EnterprisePermissions.apk
Gmail.apk
SecEmail.apk
SecExchange.apk

FLASH ANNOTATE SERVICE
FlashAnnotate.apk
FlashAnnotateSvc.apk

SOFTWARE UPDATE CLIENT (MUST REMOVE BECOZ IT WONT WORK)
FotaClient.apk

GAME HUB
GameHub_2.0_ICS.apk

MAPS
GMS_Maps.apk
Street.apk
Velvet.apk

GOOGLE SEARCH AND OTHER SERCICES
GoogleSearchWidget.apk
GoogleTTS.apk[TEXT TO SPEECH SERVICE]
Magazines.apk[PLAYSTORE MAGAZINES]
Music2.apk
MusicHub_31.apk
PlusOne.apk[GOOGLE+1]
VoiceRecorder.apk
VoiceSearchStub.apk
YouTube.apk

HELP
HelpHub.apk
PickUpTutorial.apk
WebManual.apk

KIES OVER WIFI
kieswifi.apk

SAMSUNG SERVICES AND APPS
MobileTrackerEngineTwo.apk
S-Voice_Android_phone.apk
SamsungApps.apk
SamsungAppsUNA3.apk
Samsungservice.apk
SamsungTTS.apk
SamsungWidget_FavoriteApp.apk
SamsungWidget_ProgramMonitor.apk
SimpleFavoritesWidget.apk
SlideShow.apk
SMemo2.apk
SNoteProvider.apk
SSuggest.apk

PAGE BUDDY
PageBuddyNotiSvc.apk

POLARIS
PolarisViewer.apk

CLOUD SERVICES
sCloudDataRelay.apk
sCloudDataSync.apk
sCloudSyncBrowser.apk
sCloudSyncCalendar.apk
sCloudSyncContacts.apk
sCloudSyncSNote.apk

WIFI DIRECT
SecFileShareClient.apk
SecFileShareServer.apk

SETUP WIZARD
SecSetupWizard.apk

SOCIAL
SNS.apk

GTALK
Talk.apk
talkback.apk

VIDEO & OTHER VIDEO APPS
TrimApp_phone.apk
VideoHub.apk


YAHOO SERVICES
YahoonewsDaemon.apk
YahoonewsWidget.apk
YahoostockDaemon.apk
YahoostockWidget.apk

Now that u deleted the apps u dont need.
make a zip of "system,boot.img & meta-inf" by selecting all . >>>right click >>add to archive(winrar) or some other zip program u use>>ur zip is ready to flash through cwm.

ADD APPS
There are 3 ways to add apps to your rom
1.Including apps in system/app
2.including apps in data/app
3.Using cwm zip for adding apps

1. Including apps in system/app
 
This can be done by following method
>> install apps from play store in ur rooted rom.
>>go to file manager like es or root browser or root explorer
>>open data/app folder
>>you will get your install app apks there.
>>copy them to your external sd card.
>>now open ur extarcted rom's system/app folder
>>copy the apps u wanted to install in this folder.
>>make a zip of system,boot.img and meta-inf
>>now flash ur rom .


2.Including apps in data/app
 
This can be done by following method.
>>enable data/app in ur rom while making rom in dsixda kitchen.
>>extarct ur rom
>>copy the applications u want in data/app
>>make a zip of all the containts in extracted folder & flash.


3.using cwm flashable zip to add apps
 
this is done as follows
>>extract cwm zip
>>mostly u will get system & meta-inf folder
>>open system folder and see what folders u have in that.
>>copy these folders in ur rom's system folder.
>>make a zip of ur rom
>>flash through cwm.
MY WORK
 
For Samsung Galaxy Grand I9082
ProBAM KK | Evolution Kernel | Kernel building guide |
OmniROM 4.4.2 | Android Kitchen ROM guide


For Samsung Galaxy S4 mini Duos I9192

CM-11.0
Hit thanks if i help you. And donate if you can.
The Following 10 Users Say Thank You to k2wl For This Useful Post: [ Click to Expand ]
 
k2wl
Old
#3  
Senior Member - OP
Thanks Meter 4,573
Posts: 2,039
Join Date: Apr 2008

 
DONATE TO ME
reserved#1
MY WORK
 
For Samsung Galaxy Grand I9082
ProBAM KK | Evolution Kernel | Kernel building guide |
OmniROM 4.4.2 | Android Kitchen ROM guide


For Samsung Galaxy S4 mini Duos I9192

CM-11.0
Hit thanks if i help you. And donate if you can.
The Following 3 Users Say Thank You to k2wl For This Useful Post: [ Click to Expand ]
 
k2wl
Old
#4  
Senior Member - OP
Thanks Meter 4,573
Posts: 2,039
Join Date: Apr 2008

 
DONATE TO ME
reserved #2
MY WORK
 
For Samsung Galaxy Grand I9082
ProBAM KK | Evolution Kernel | Kernel building guide |
OmniROM 4.4.2 | Android Kitchen ROM guide


For Samsung Galaxy S4 mini Duos I9192

CM-11.0
Hit thanks if i help you. And donate if you can.
The Following 3 Users Say Thank You to k2wl For This Useful Post: [ Click to Expand ]
 
k2wl
Old
#5  
Senior Member - OP
Thanks Meter 4,573
Posts: 2,039
Join Date: Apr 2008

 
DONATE TO ME
reserved#3
MY WORK
 
For Samsung Galaxy Grand I9082
ProBAM KK | Evolution Kernel | Kernel building guide |
OmniROM 4.4.2 | Android Kitchen ROM guide


For Samsung Galaxy S4 mini Duos I9192

CM-11.0
Hit thanks if i help you. And donate if you can.
The Following 2 Users Say Thank You to k2wl For This Useful Post: [ Click to Expand ]
 
tonylin880806
Old
#6  
Member
Thanks Meter 6
Posts: 51
Join Date: Aug 2011
Quote:
Originally Posted by k2wl View Post
THIS GUIDE WILL NOT MAKE YOU DEVELOPER OVERNIGHT. THIS GUIDE ONLY GIVEN TO GIVE YOU HEAD START IN ROM DEVELOPMENT.

I am glad that i am posting this in our new forum...(thanks xda)

IT IS HIGHLY RECOMMENDED THAT YOU SHOULD KNOW SOME BASICS OF LINUX COMMANDS FOR ANDROID DEVELOPMENT.

STEPS:-

1.THINGS NEEDED


2.SETTING UP CYGWIN IN WINDOWS (I am not using cygwin for my development ,although it is setup in my pc.I personally prefer linux)

NOW CYGWIN IS READY TO GET KITCHEN

3.SETTING UP LINUX

i personally recommend linux for kitchen and other android development use.
i use linux lite(based on ubuntu lts release) http://www.linuxliteos.com/
if u want to use ubuntu then i recommend version 10.4 or use kubuntu latest release

instaling linux along with windows is complex and i am not covering that in this guide.

NOW YOUR VIRTUAL MACHINE IS READY TO SETUP KITCHEN

4.SETING UP DISXDA KITCHEN

A] cygwin instructions

B] Linux instructions
NOW YOU HAVE YOUR KITCHEN SETUP FOR USE.

4.USING KITCHEN TO MAKE A ROM

HERE IT IS... YOUR FIRST CUSTOM ROM.
hi k2wl,

i also use cygwin+kitchen and have a same file as baffin on home\kitchen\tools\edify_defs, and also do the same steps as you mentioned, but the updater-script is not same as yours. it stuck on boot loop--WO 3G, when i flash my baffin_zip, no samsung arround on the screen.
i upload my updater-script, can you help me check it? what's wrong with it ?

my device : I9082_CU Chinese Unicom mobile, wether i should change the device name to cu_baffin or not ? confused.........

i also can flash your roms based on XXAMCD and ZTAMD1, maybe not the name issue.

help.........
Attached Files
File Type: 7z updater-script.7z - [Click for QR Code] (919 Bytes, 74 views)
Samsung Galaxy Ace---CM10.1
Samsung Galaxy Grand Duos---Samsung Stock Rom
 
k2wl
Old
(Last edited by k2wl; 16th May 2013 at 04:20 AM.)
#7  
Senior Member - OP
Thanks Meter 4,573
Posts: 2,039
Join Date: Apr 2008

 
DONATE TO ME
Quote:
Originally Posted by tonylin880806 View Post
hi k2wl,

i also use cygwin+kitchen and have a same file as baffin on home\kitchen\tools\edify_defs, and also do the same steps as you mentioned, but the updater-script is not same as yours. it stuck on boot loop--WO 3G, when i flash my baffin_zip, no samsung arround on the screen.
i upload my updater-script, can you help me check it? what's wrong with it ?

my device : I9082_CU Chinese Unicom mobile, wether i should change the device name to cu_baffin or not ? confused.........

i also can flash your roms based on XXAMCD and ZTAMD1, maybe not the name issue.

help.........
my friend its a issue of symlinks....
i recommend to use linux+kitchen for perfect rom making....i have faced this for some other device previously and from that time i always use linux for development.
(i have been linux user since 2000...)
install linuxlite/ubuntu/kubuntu in virtual box and put kitchen in it. copy the compatibility file in the fore said folder and and fire up your kitchen. Rest procedure is same.

i am giving u my updater script for your convenience . replace your updater script with this and reflash again.
TELL me the results of reflash!!!

also attach build.prop here ...i wana look at it.
Attached Files
File Type: zip updater-script_k2wl.zip - [Click for QR Code] (905 Bytes, 86 views)
MY WORK
 
For Samsung Galaxy Grand I9082
ProBAM KK | Evolution Kernel | Kernel building guide |
OmniROM 4.4.2 | Android Kitchen ROM guide


For Samsung Galaxy S4 mini Duos I9192

CM-11.0
Hit thanks if i help you. And donate if you can.
 
tonylin880806
Old
#8  
Member
Thanks Meter 6
Posts: 51
Join Date: Aug 2011
Quote:
Originally Posted by k2wl View Post
my friend its a issue of symlinks....
i recommend to use linux+kitchen for perfect rom making....i have faced this for some other device previously and from that time i always use linux for development.
(i have been linux user since 2000...)
install linuxlite/ubuntu/kubuntu in virtual box and put kitchen in it. copy the compatibility file in the fore said folder and and fire up your kitchen. Rest procedure is same.

i am giving u my updater script for your convenience . replace your updater script with this and reflash again.
TELL me the results of reflash!!!

also attach build.prop here ...i wana look at it.
hi, k2wl

i have try to use your updater-script to replaced.but also faild....i have wiped all before flash.
the build.prop and boot.img are attached, please check it.
i also unpack the cache.img to the system file, is this the reason why can not flash? because i see nothing csc related files in your roms.

and i will try to build lunix, and do it again.
Attached Files
File Type: 7z build prop and boot img.7z - [Click for QR Code] (4.63 MB, 73 views)
Samsung Galaxy Ace---CM10.1
Samsung Galaxy Grand Duos---Samsung Stock Rom
The Following User Says Thank You to tonylin880806 For This Useful Post: [ Click to Expand ]
 
k2wl
Old
(Last edited by k2wl; 16th May 2013 at 06:29 AM.)
#9  
Senior Member - OP
Thanks Meter 4,573
Posts: 2,039
Join Date: Apr 2008

 
DONATE TO ME
Quote:
Originally Posted by tonylin880806 View Post
hi, k2wl

i have try to use your updater-script to replaced.but also faild....i have wiped all before flash.
the build.prop and boot.img are attached, please check it.
i also unpack the cache.img to the system file, is this the reason why can not flash? because i see nothing csc related files in your roms.

and i will try to build lunix, and do it again.
it is not the csc... ur build.prop and boot imgs are ok. do rom building in linux and give me feed back.

if u going to use ubuntu then use HELLS-KITCHEN | Ubuntu-Based | ROM Developing Distro http://forum.xda-developers.com/show....php?t=2152398
it already contains kitchen.
MY WORK
 
For Samsung Galaxy Grand I9082
ProBAM KK | Evolution Kernel | Kernel building guide |
OmniROM 4.4.2 | Android Kitchen ROM guide


For Samsung Galaxy S4 mini Duos I9192

CM-11.0
Hit thanks if i help you. And donate if you can.
The Following 2 Users Say Thank You to k2wl For This Useful Post: [ Click to Expand ]
 
DBZo07
Old
(Last edited by DBZo07; 17th May 2013 at 09:40 PM.)
#10  
DBZo07's Avatar
Senior Member
Thanks Meter 307
Posts: 660
Join Date: Feb 2011
awesome guide brother..
Making rom is jst about experience. When a person like you makes rom they keep getting better and better. So rom made by you will be any day better than a first time user.
People should be able to make their own Rom. So that you can focus on development of powerful custom Rom and kernels. Your contributions for sgg are huge...

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes