Error while deodexing rom! - Galaxy Y GT-S5360 and Duos 6102 Q&A, Help & Troubl

(If this location is not correct to this thread, please, move it to the correct location. Tanks)
Hey guys!
I'm trying deodex my stock rom using the XUltimate, but XUltimate give an error.
The XUltimate give error in all of the .odex, in /system/app and /system/framework
Starting AccountAndSyncSettings.odex
*****************************************
* Deodexing... *
UNEXPECTED TOP-LEVEL EXCEPTION:
org.jf.dexlib.Util.ExceptionWithContext: regCount does not match the number of a
rguments of the method
at org.jf.dexlib.Util.ExceptionWithContext.withContext(ExceptionWithCont
ext.java:54)
at org.jf.dexlib.Code.InstructionIterator.IterateInstructions(Instructio
nIterator.java:92)
at org.jf.dexlib.CodeItem.readItem(CodeItem.java:154)
at org.jf.dexlib.Item.readFrom(Item.java:76)
at org.jf.dexlib.OffsettedSection.readItems(OffsettedSection.java:48)
at org.jf.dexlib.Section.readFrom(Section.java:143)
at org.jf.dexlib.DexFile.<init>(DexFile.java:431)
at org.jf.baksmali.main.main(main.java:265)
Caused by: java.lang.RuntimeException: regCount does not match the number of arg
uments of the method
at org.jf.dexlib.Code.Format.Instruction3rc.checkItem(Instruction3rc.jav
a:129)
at org.jf.dexlib.Code.Format.Instruction3rc.<init>(Instruction3rc.java:7
9)
at org.jf.dexlib.Code.Format.Instruction3rc.<init>(Instruction3rc.java:4
4)
at org.jf.dexlib.Code.Format.Instruction3rc$Factory.makeInstruction(Inst
ruction3rc.java:145)
at org.jf.dexlib.Code.InstructionIterator.IterateInstructions(Instructio
nIterator.java:84)
... 6 more
Error occured at code address 8
code_item @0x25ec
Pressione qualquer tecla para continuar. . .
*****************************************
MAJOR ERROR!! WITH DEODEXING! AccountAndSyncSettings.odex
*****************************************
********DELETING INCORRECT FILES*********
please exit out of window "***Deodexing ADB Window, DO NOT EXIT!***"
Pressione qualquer tecla para continuar. . .
Click to expand...
Click to collapse
I have the Android SDK working properly and the Java 32bits and 64bits installed.
My O.S. from PC is Windows 8 64Bits! My ROM from Galaxy Y is the Stock UTME1 (Brazil)
Please, help-me!
And sorry by my bad bad english... But you can understand despite errors! And I'm studying kkk

JoaoMarcos said:
(If this location is not correct to this thread, please, move it to the correct location. Tanks)
Hey guys!
I'm trying deodex my stock rom using the XUltimate, but XUltimate give an error.
The XUltimate give error in all of the .odex, in /system/app and /system/framework
I have the Android SDK working properly and the Java 32bits and 64bits installed.
My O.S. from PC is Windows 8 64Bits! My ROM from Galaxy Y is the Stock UTME1 (Brazil)
Please, help-me!
And sorry by my bad bad english... But you can understand despite errors! And I'm studying kkk
Click to expand...
Click to collapse
These is not a correct thread but your answer is here
By using xultimate may people face errors but i preffer you to use Cygwin with packages and Dsixda's android kitchen it is very easy to use and very easy to Deodex the rom
Sent from my Ace-i

Use cygwin and set api to level 10 - this will get your rom deodex

marcussmith2626 said:
Use cygwin and set api to level 10 - this will get your rom deodex
Click to expand...
Click to collapse
I try with Cygwin and Kitchen but I can't open the rom (.tar.md5) with WinRAR and 7zip.

JoaoMarcos said:
I try with Cygwin and Kitchen but I can't open the rom (.tar.md5) with WinRAR and 7zip.
Click to expand...
Click to collapse
Flash stock rom to your phone & root & install busybox
use terminal commands to pull system folder into a tar file
the terminal command you run in terminal emulator on phone is
su
tar -c system/* >> sdcard/system.tar
wait until prompt appears to signal it's done
copy system.tar file from sd card into kitchen rom directory
create a working folder using the tar file
deodex rom after setting api to level 10
Repack rom & flash (take an update script from a custom rom if you get status 0 error when flashing)
more detailed instructions here
http://forum.xda-developers.com/showthread.php?t=1801690

Related

[UPDATE 22/08/12] ROM Cooking Guide (One Package)

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

[GUIDE]How to make a ROM - Easiest

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

[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:-
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
Click to expand...
Click to collapse
1.THINGS NEEDED
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
Click to expand...
Click to collapse
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)
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/neroyoung/XDA%20ROM%20Dev%20Tools/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.
Click to expand...
Click to collapse
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
-->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.
Click to expand...
Click to collapse
NOW SETUP KITCHEN
SECOND METHOD
Those who want to set up linux in virtual machine need fast pc with lots of ram.
--> 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/showpost.php?p=5626300&postcount=3 under linux/ubuntu section.
Click to expand...
Click to collapse
NOW YOUR VIRTUAL MACHINE IS READY TO SETUP KITCHEN
4.SETING UP DISXDA KITCHEN
A] cygwin instructions
-->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...!!!
Click to expand...
Click to collapse
B] Linux instructions
-->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...!!!
Click to expand...
Click to collapse
NOW YOU HAVE YOUR KITCHEN SETUP FOR USE.
MAKING I9082/I9082L ROM DEVELOPMENT COMPATIBLE WITH KITCHEN
-->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.!!!!
Click to expand...
Click to collapse
4.USING KITCHEN TO MAKE A ROM
-->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)
Click to expand...
Click to collapse
HERE IT IS... YOUR FIRST CUSTOM ROM.:good:
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.
\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​
Click to expand...
Click to collapse
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.
reserved#1
reserved #2
reserved#3
k2wl said:
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.:good:
Click to expand...
Click to collapse
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.........
tonylin880806 said:
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.........
Click to expand...
Click to collapse
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.
k2wl said:
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.
Click to expand...
Click to collapse
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.
tonylin880806 said:
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.
Click to expand...
Click to collapse
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/showthread.php?t=2152398
it already contains kitchen.
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...
Just a note, installing linux alongside windows is a very, very simple job. You only need to partition your hard disk to have like a 100GB empty partition, and make an Ubuntu bootable USB using Rufus (Awesome program), and just boot using the USB and follow the steps to install Ubuntu.
@DBZo07
ya basically that is main purpose of this tutorial.
@panda00
or u can use UNetbootin to have bootable linux usb.
k2wl said:
@panda00
or u can use UNetbootin to have bootable linux usb.
Click to expand...
Click to collapse
Yes, Rufus has the same function, but I prefer Rufus, because Rufus is universal (i.e. works with windows ISO as well) and it's portable (no need for an install)
k2wl said:
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/showthread.php?t=2152398
it already contains kitchen.
Click to expand...
Click to collapse
finally i have download the big file 1.5G hells-kitchen beta5, work on virtualbox ,but no password to login. confused
what's the passwords?
shall i try to download ubuntu and kitchen.....
tonylin880806 said:
finally i have download the big file 1.5G hells-kitchen beta5, work on virtualbox ,but no password to login. confused
what's the passwords?
shall i try to download ubuntu and kitchen.....
Click to expand...
Click to collapse
password is "p"
This guide helped me to have my own customized rom.. Thanks k2wl for your efforts... Hats off man..
Possible customization were done looking at your rom features and my requirements.
Turned out to be awesome one..
Further, dpi is set to 160 without any single bug.
Battery usage is awesome. Still haven't used your custom kernel, which I don't wanna try for now.
Again, thanks man for this guide finally got perfect awesomeness. Now, I can focus on my exams rather than such hunting around for better.
God bless you.. Later...
Here are screens
{
"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"
}
Sent from my GT-I9082 using Tapatalk 2
DBZo07 said:
This guide helped me to have my own customized rom.. Thanks k2wl for your efforts... Hats off man..
Possible customization were done looking at your rom features and my requirements.
Turned out to be awesome one..
Further, dpi is set to 160 without any single bug.
Battery usage is awesome. Still haven't used your custom kernel, which I don't wanna try for now.
Again, thanks man for this guide finally got perfect awesomeness. Now, I can focus on my exams rather than such hunting around for better.
God bless you.. Later...
Sent from my GT-I9082 using Tapatalk 2
Click to expand...
Click to collapse
hey thanks for those kind words...u r using xperia launcher... does it block ur notifications??? or any other errors u may got???
Nope, no such errors... There was a guy who posted https://www.dropbox.com/s/reyimmczzn7e6nq/Sony_Xperia_Z_Walkman_by_Ravi.zipWalkman + launcher flushable zip which worked well.
Sent from my GT-I9082 using Tapatalk 2
DBZo07 said:
Nope, no such errors... There was a guy who posted https://www.dropbox.com/s/reyimmczzn7e6nq/Sony_Xperia_Z_Walkman_by_Ravi.zipWalkman + launcher flushable zip which worked well.
Sent from my GT-I9082 using Tapatalk 2
Click to expand...
Click to collapse
ok i thought that u include in the rom and then install the rom....becoz if u try to include it in rom..it will generally crashes the notifications and many other problems...

[Q] dsixda android kitchen rom

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)

[Q&A] [MOD]Stock SystemUI and Stock Firmware DXMD1[DEODEXED] for GT-S6102

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.

Categories

Resources