[HOW TO] Beginners Guide to Android ROM Development - Android

This tread is not monitored or updated any more use for reference only
{
"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"
}
Started this tutorial in the HTC HD2-Nand forum, I think maybe someone
can find it useful ​
Who is this tutorial for?
Absolute Beginners like me
People with little or no programming skills
This is a very basic tutorial!!
Click to expand...
Click to collapse
Step one: Setting up the Android kitchen
First you will need to set up dsixda's android kitchen
(All credit for the kitchen to dsixda's)
Go to dsixda's thread for a list of supported devices.
Here is a summary of the installation process( I recommend you read the tread first)​
1. Before you do anything install the java jdk(find it in dsixda's thread)
2. Download and extract the cygwin_packages.zip provided by dsixda on third post
3. Run the set up(make sure there is no previous cygwin installation)
4. Follow the kitchen read me txt!!!
5) local package directory *must* be the path to the cygwin_packages folder that you just extracted
6) when it shows all the package names, go to the top and select "all <-> default" until it changes to "all <-> install" (you must click on the arrows)
7. Run the cygwin at least once and close, now you will see a folder inside the cygwin installation like this: Home\your user name\
8. Download the kitchen and extract to the home\your user name\
9. Rename the dsixda-android-kitchen-*** folder to just "kitchen"
10. Now your ready to run the kitchen type:
Code:
cd kitchen(enter)
./menu(enter)
11. If you did things right you should see this:
congratulations!!
Click to expand...
Click to collapse
Step Two: Setting up a working folder​1. First our folder structure should look like this:
Code:
cygwin folder/home/your user name/kitchen
2. Inside the kitchen it should look like this:
3. Now we need a rom to work on, for this tutorial i will use my own rom but you can use any hd2 rom. Place the original rom zip in the original_update folder inside the kitchen.
4.run the cygwin.exe again type:
Code:
cd kitchen(enter)
./menu(enter)
5.now enter option 1, enter again. You should see your rom listed, choose and enter
6.you will be asked about changing the working folders name, at this point it makes no difference so just continue.
7.you will be asked to convert to update-scrip do it and continue
8. Now you can view the roms info
9. congratulations you have a working folder!!!
Click to expand...
Click to collapse
Step Three :change/modify/update!​
First I will be covering basic changes you can make to your rom, later I will be adding more helpful hints.
Adding/removing applications
1. Go to the working folder where you extracted your rom, inside you will find:
or
2. Then go to "system/app" inside this folder you will find all the rom applications(apks) you may also find some in the data folder if your rom has this folder.
3. Copy, replace, and change any app(apk) be carefull if you dont know what the apk is do not delete!!
4. Congrats you have modified a rom, if your ready and want to see if it worked skip to step four to buil rom from working folder.
Click to expand...
Click to collapse
Adding new boot animation
1. Just replace the bootanimation.zip located in "workingfolder/system/media" with the boot animation of your choice.
here is a sample of my bootanimation to try.
Click to expand...
Click to collapse
Edit the gps script for your country/location
1. In the workingfolder/system/etc/ you will find a file named gps.conf, you can
edit this file with notepad++ or even word.
2. using the right gps script in this file can speed up gps lock, you can
find some from angeldeath, download extract and replace the gps.conf.
Click to expand...
Click to collapse
Changing the default wallpaper
1. Be very careful doing this, do not edit,delete or modify an apk without knowing what it is or does.not all things are as simple as copy and paste.
2. go to the workingfolder/system/framework/
3. Install 7zip and open the framework-res.apk
4. With in the framework-res.apk with 7zip go to "res/drawable-hdpi/" and look for the default_wallpaper.jpg. You can extract modify and replace with new one.
5. Make sure its the same file format and image dimensions.(in some roms you can also modify the default_lock_wallpaper.jpg)
Click to expand...
Click to collapse
MMS Fix for T-mobile
1. *I Have only tested this on MIUI Roms*
2. Go to "workingfolder/system/app"
3. Find MMS.apk
4. Right click and open with 7zip
5.Inside mms.apk go to "rex/xml/"
6.replace the "mms_config.xml" with this "mms_config.xml"
Click to expand...
Click to collapse
modifying build.prop
"build.prop" is a file that contains various system-vital "parameters"
Some can be modified with little risk, some can cause havoc. So Please do this Carefully!!!!!!
1. Locate the file "workingfolder/system/"
2. Open with notepad++
There is several simple changes that can be done, I will start with some and add more later.
LCD Density
1. If you dont know anything about this topic Here is some info to get started
2.Locate this line inside the build.prop "ro.sf.lcd_density=240"
3.The only value you will modify is the "240" to your preference.
Difference is simple and visible!
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Update Kernel From update.zip
Note that it's not always as easy as copy and paste
1. Extract you kernel_update.zip
2. Copy and replace the extracted files to the corresponding folders inside your finished ROM
3.Start with the boot folder
3. Than the system folder (there might be some libs and modules associated with the rom)
4. Another helpful hint is to open the updater-script
to see if your kernel requires you to delete anything for the kernel to work correctly.
sample script:
Code:
delete("/system/ppp");
Click to expand...
Click to collapse
-there are several other options provided by dsixda's android kitchen for that I recomend you go to the tread and read.
Click to expand...
Click to collapse
Step Four: repackage the rom ​
Now that you have made some changes it's time to test!!
1. Run the kitchen and enter option 99 - "biuld rom from working folder"
2. Choose mgldr or clk
3. I recommend that you go with all default options until you get more experience with the kitchen.
4. When its all done you will find a folder inside "cygwin/home/yousername/kitchen" called output_zip
5. Inside the folder is your new rom ready to be flashed and tested!!!
Click to expand...
Click to collapse
UPDATER-SCRIPT
Thanks to user langthang for a great updater-script guide.
Download it HERE
Click to expand...
Click to collapse
I had a couple of request on how to get custom txt during the ROM installation in CWM,
the updater-script basically tells CWM what steps to take during the installation(flashing rom).
If you don't have any experience please don't edit anything other than what is in this simple tutorial.
1.First once you have your Rom ready in .zip format, Open with 7zip
2.Go to META-INF/com/google/android
3.Extract the updater-scrip file
4.Open with Notepad++
5.Any text that would appear during the CWM install should be in this format :
Code:
ui_print("Put your text in HERE");
Here is the requested 3d MIUI LOGO for example:
Code:
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print(" ___ ___ ");
ui_print(" /__/\\ ___ /__/\\ ___ ");
ui_print(" | |::\\ / /\\ \\ \\:\\ / /\\ ");
ui_print(" | |:|:\\ / /:/ \\ \\:\\ / /:/ ");
ui_print(" __|__|:|\\:\\ /__/::\\ ___ \\ \\:\\ /__/::\\ ");
ui_print("/__/::::| \\:\\\\__\\/\\:\\__ /__/\\ \\__\\:\\\\__\\/\\:\\__ ");
ui_print("\\ \\:\\~~\\__\\/ \\ \\:\\/\\\\ \\:\\ / /:/ \\ \\:\\/\\");
ui_print(" \\ \\:\\ \\__\\::/ \\ \\:\\ /:/ \\__\\::/");
ui_print(" \\ \\:\\ /__/:/ \\ \\:\\/:/ /__/:/ ");
ui_print(" \\ \\:\\ \\__\\/ \\ \\::/ \\__\\/ ");
ui_print(" \\__\\/ \\__\\/ ");
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print(" ");
6.Add your text start at top and save,
then replace with new updater-scrip
Click to expand...
Click to collapse
congratulations!!
Click to expand...
Click to collapse
There is allot more that I did not cover, didn't even scratch the surface.
This was not intended for porting roms or any mayor scripting, this wont help you
with writing drivers, kernels, libs etc. Just tried to make it as simple as possible for
beginners like me, so we can understand the amount of work devs go through.
Please! please! before you release any Rom, test and test again!!!!!!
Like I said this was Originally for the HD2 so use at your own discretion!!
(original thread)
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Just want to thank XDA Forums for giving us this space to play learn and share.

Really nice, simple, step by step guide for beginners!
Also, thanks for the files, i guess ill try kitchen on w7.

I love seeing more rom cooking material. I wish some one would do an advanced one.
Sent from my Droid Incredible 3D using Tapatalk

Great thread and tut! couldn't be better timing since dsixda is taking a break. anyway im having a little trouble with something im working on. i can get past the boot animation to the lock screen, and i can see the data kicking in and then before anything really gets going, it reboots. thats as far as i have gotten. heres my recovery log.
http://pastebin.com/GeXmphrt
seems to me like its not mounting the system or something of that nature. And I'm pretty green to all this if you couldn't tell lol.
this is a port by the way. thanks again for this thread!

Nice work for rom making for beginners.
Sent from my HTC Vision using xda premium

Wow thanks for this was getting tired of just being told to use the kitchen. My fault for my own noobness but this is very helpful.
Sent from my Inspire 4G using xda premium

ive never had any luck with cygwin before, so what i'd like to know can this process be done in ubuntu?

dzee206 said:
ive never had any luck with cygwin before, so what i'd like to know can this process be done in ubuntu?
Click to expand...
Click to collapse
Yes it can all be done from within ubuntu, then you do not need Cywgin,

I find working in ubuntu a little easier. But cygwin works good aswel
Send from a lightning fast Htc Sensation

Awsome guide.
I hope someone would like to help me make the galaxy ace compatibe with the kitchen.
http://forum.xda-developers.com/showthread.php?t=1303345

BstabKillaR said:
Thanks! This was very helpful
Click to expand...
Click to collapse
thanks button?

hey guys any body can help me
i install cygwin_packages.zip with tutorial in page one but i get the problem in step 6, on the top root I see No Packages Found and I can't get directory user name in Home directory "home\your user name\".
and when I run cygwin the command prompt can't open and just show fleeting
so please.... help me

i tried everything
but whenever i try to update it through clockwork recovery it shows a error

Have you logged in???
Thanks button will appear as soon as you'll logon in xda.
Sent from my HTC Vision using Tapatalk

I tried the cygwin process first and had issues so I used the ubuntu installation and got it installed. But being such a beginner at it all its hard to find step by step instructions like this. I may try the cygwin set up again so I can follow this thread unoess someone knows of something similar to this but using ubuntu

I have a few queries
i)How do i add jkay support?Only copying the files from an extracted Jkay zip to relevant folders will do?
ii)How do i change Kernel.It was suggested to replace the kernel in the BASE(Does this refer to the zImage present inside the base folder).Didnt get it what is base?I have for the time being unpacked bootimage and put the zimage from siyahkernel inside it.
iii)How do i add multi csc.I downloaded a multi csc package from intratech's thread.Unzipped it ,but cant extract csc file from cache.img.Can i just copy a folder CSC(with multi csc) from another ROM and keep it in system folder?Will that help?

cygwin dont want to show up...everything is installed..and is not work...and where i have to put folder with name kithcen because in cygwin show my that is now find...please help me...

Stupid Question........
But can I use a Linux Distro like Ubuntu or Backtrack instead of Cygwin?
I'm guessing that you can, but I'm a newb so I don't know anything!

Great explanation except every time I make a rom I get error in CWM
Tip: it doesnt matter if I mod it or not as soon as it changes update-script it screws the rom up I think and I even converted it back to updater-script when I was done still nothing.
It was an ICS rom if that helps.

Thanks for tutorial. Im using the kitchen, its works great.
I build one rom from stock rom 2.1, and another from a custom rom i found on here.
But i have a problem after i flash the rom, it wont boot. Noone of the roms i cook will boot on my device. It just stops at SE logo.
I have the u20i, x10 mini pro.
Anyone know what im doing wrong? Thanks

Related

How to port themes to HTC Legend (example Minimal Matte)

{
"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"
}
Hey Guys,
I was asked if i could do a Tutorial how to port themes to HTC Legend. And here it is
Perform a Nandroid Backup first... as usual.
Be careful i am not responsible for any damage at your device.
Method 1 = not changing your system and will integrate it to running system (ADB Method)
Method 2 = new clear install of Rom required (Flashable ZIP)
At first you need a few things:
SDK from Android
Theme-Porter by Daneshm90 (Thanks for support! ) Make sure you are using the newest beta of the program
The Rom of files with the theme in it ( in our example Minimal Matte 1.5 !! NOT THE VERSION FOR LEGEND! from the Thread here at XDA Dev's)
The Rom you are using ( for example Cyanogenmod 6.1 (Thanks to ali Ba for his awesome work))
Update.zip Modifier/Creator
A USB cable
Time
Click to expand...
Click to collapse
Let's start.
METHOD 1:
STEP 1:
First you have to use the Theme-Porter so you unzip the folder to C:\Theme-Porter or something similar. In this folder there are two important folders called new and old. So you unzip your Roms and put all files in system/app/ from your current Rom in the folder Theme-Porter/new/app/ and all files from system/framework/ in Theme-Porter/new/framework/. Unpack also the themed Rom and replace files from system/framework/ and system/app/ to old/framework and old/app.
STEP 2:
Run script.bat in root folder of Theme-Porter (C:\Theme-Porter) and select the option you want.
In our case if we want to port Minimal Matte, choose Option 1 because we are porting a froyo rom to a froyo rom.
If you are porting a theme from a hdpi device ( for example Nexus One and Desire ) you have to toggle Hdpi to Mdpi with option 4 ( Legend devices. (has something to do with the resolution)).
If it's ready the files in the Theme-Porter/new folder are themed.
STEP 3:
Unzip the SDK to C:\SDK (make sure in the name of the SDK is no space in it. NOT like this C:\Android SDK ) .
Now Copy the files from Theme-Porter/new to C:\SDK\tools. Like this Theme-Porter/new/framework/framework-res.apk -> C:\SDK\tools\framework-res.apk.
Connect the HTC Legend to the Computer via USB. Go to Clockwork recovery mode via Rom Manager.
Click on restart in Recovery Mode in Rom Manager. Once rebooted go to partition menu and click on mount /system.
Turn now to your PC and follow the steps
STEP 4:
Now go to your comand line (Windows Vista and Windows 7 Start->Type "cmd").
Code:
cd C:\SDK\tools
(or wherever you have placed the SDK, remember NO spaces in folder name, and make backslash = \ and NOT / ). Back in the black window:
Code:
adb shell
exit
Make a folder in C:/framework , C:/app , C:/fonts and so on. Copy the new files in there. It pretends what you want to change.
Code:
adb push C:/framework /system/framework
adb push C:/app /system/app
adb push C:/fonts /system/fonts
Push all files to phone which were themed
If you are ready you can type :
Code:
adb reboot
exit
STEP 5:
The Phone will reboot and your system will be themed.
Click to expand...
Click to collapse
METHOD 2:
STEP 1:
It is easier to flash a zip file but sometimes they are not available. ( In our case I contacted shiftedx from Minimal Matte to give him my ported files...)
If you like to create a flashable/themed Rom, you have to download this tool and unpack it to C:\Update-Zip-Packager\ .
STEP 2:
After that copy the unzipped files from the Rom you want to use (Cyanogenmod 6.1 Stable for example) to folder C:\Update-Zip-Packager\placehere. (should look like this: C:\Update-Zip-Packager\placehere\META-INF ... )
STEP 3:
Then copy the files from C:\Theme-Porter\new to C:\Update-Zip-Packager\placehere\system\ . (btw files like fonts or something doesn't have to be ported so copy them from old to new folder.
STEP 4:
Now run script.bat in C:\Update-Zip-Packager\script.bat. select "make Update.zip" with option 2. Ready? Ok then drag update.zip to sdcard of your phone and apply it with rom manager.
Click to expand...
Click to collapse
Extras:
I prepared a Cyanogenmod 6.1 Stable Rom with Minimal Matte (included fonts...) and working wifi tether, replaced FileManager with Astro and replaced ADWlauncher with LauncherPro:
Here is the link if somebody wants to use it.
CM6.1 RC 1 with Minimal Matte (Outdated)
DOWNLOAD
The new Stable version of CM6.1 with Minimal Matte
DOWNLOAD
Minimal Matte LD pre release version for CM7 (any version) No wipe needed!
DOWNLOAD
Minimal Matte HD Thread
Note to Screenshots: Theme will not change widgets,Lockscreen, Launcher, Wallpaper. If you want the Lockscreen look at this beautiful Thread. It will change Statusbar, Notification windows, keyboard and fonts.
Works not so well with official Vodafone 2.2 version.
Click to expand...
Click to collapse
Great post, thanks for your efforts !
I'll give this a go when my Legend has its screen fixed and report back with questions or success
Eitherway, thank you!
By the way, this thread should be stickied!
Awesome.
Can't wait to get home and try to do some decent themes.
- - - - - - - - - - - - - - - - - - - - - - - -
Woooo
Anyone know any decent themes?
Hey parker, did you try it on the rooted 2.2 rom from vodafone?
Currently using: CyanogenMod 6.1.0 RC1
c_man said:
Great post, thanks for your efforts !
I'll give this a go when my Legend has its screen fixed and report back with questions or success
Eitherway, thank you!
By the way, this thread should be stickied!
Click to expand...
Click to collapse
All right! I have reorganized the text a bit so you can follow easily.
Westi01 said:
All right! I have reorganized the text a bit so you can follow easily.
Click to expand...
Click to collapse
Thank you.
Also thank you for this below, its ideal for most of us!
Westi01 said:
STEP 5:
I prepared a Cyanogenmod 6.1 RC1 Rom with Minimal Matte (included fonts...) and working wifi tether, replaced FileManager with Astro and replaced ADWlauncher with LauncherPro:
Here is the link if somebody wants to use it.
http://www.multiupload.com/UN01TMO9I1
FIXED.
Click to expand...
Click to collapse
I look forward to using it soon
hey, just been playing with it for the last hour or so, trying to make a transparent notification bar, it works well when it boots up phone and goes into keyguard mode but once its on the homescreen (and ShootMe isn't running!!) it looks dark and ****.
I had the same problems porting MIUI theme to Legend. Don't know how to fix it at the moment.
Sent from my Legend
tried porting the Elegant steel rom (http://forum.xda-developers.com/showthread.php?t=769376&highlight=elegant+steel) to the rooted froyo vodafone rom but it didnt work. =(
Uploaded with ImageShack.us
Would something like the transparent MIUI work?
http://forum.xda-developers.com/showthread.php?t=798661
BicolXpress said:
tried porting the Elegant steel rom (http://forum.xda-developers.com/showthread.php?t=769376&highlight=elegant+steel) to the rooted froyo vodafone rom but it didnt work. =(
Click to expand...
Click to collapse
Maybe because of the HDPI<-->MDPI
I couldn't even get it to port
Code:
framework-res
Downsizing drawable Images ...
The application has failed to start because its side-by-side configura
tion is incorrect. Please see the application event log or use the com
mand-line sxstrace.exe tool for more detail.
Downsizing drawable-en-mdpi Images ...
The application has failed to start because its side-by-side configura
tion is incorrect. Please see the application event log or use the com
mand-line sxstrace.exe tool for more detail.
Downsizing drawable-land-mdpi Images ...
The application has failed to start because its side-by-side configura
tion is incorrect. Please see the application event log or use the com
mand-line sxstrace.exe tool for more detail.
Downsizing drawable-mdpi Images ...
The application has failed to start because its side-by-side configura
tion is incorrect. Please see the application event log or use the com
mand-line sxstrace.exe tool for more detail.
parker09 said:
Maybe because of the HDPI<-->MDPI
I couldn't even get it to port
Code:
framework-res
Downsizing drawable Images ...
The application has failed to start because its side-by-side configura
tion is incorrect. Please see the application event log or use the com
mand-line sxstrace.exe tool for more detail.
Downsizing drawable-en-mdpi Images ...
The application has failed to start because its side-by-side configura
tion is incorrect. Please see the application event log or use the com
mand-line sxstrace.exe tool for more detail.
Downsizing drawable-land-mdpi Images ...
The application has failed to start because its side-by-side configura
tion is incorrect. Please see the application event log or use the com
mand-line sxstrace.exe tool for more detail.
Downsizing drawable-mdpi Images ...
The application has failed to start because its side-by-side configura
tion is incorrect. Please see the application event log or use the com
mand-line sxstrace.exe tool for more detail.
Click to expand...
Click to collapse
There are Issues with Sense and Themes that are made for example for Cyanogenmod. And try to redownload both Roms and try again it seem to be a wrong MD5Sum or something. The files seem to be corrupt. I have tried to Port the MIUI style but it doesn't work because they modified whole Apks and not only replacing PNGs like the Theme-Porter does.
Westi01 said:
There are Issues with Sense and Themes that are made for example for Cyanogenmod. And try to redownload both Roms and try again it seem to be a wrong MD5Sum or something. The files seem to be corrupt.
Click to expand...
Click to collapse
Oh I see.
Westi01 said:
I have tried to Port the MIUI style but it doesn't work because they modified whole Apks and not only replacing PNGs like the Theme-Porter does.
Click to expand...
Click to collapse
I tried the one I posted and for the lockscreen it worked perfectly but once the phone gets unlocked thats when the notification bar goes black (I think its from all the other images from the dropdown menu being on top of each other).
parker09 said:
Oh I see.
I tried the one I posted and for the lockscreen it worked perfectly but once the phone gets unlocked thats when the notification bar goes black (I think its from all the other images from the dropdown menu being on top of each other).
Click to expand...
Click to collapse
Ah ok. I tried to port the original Theme. Could be that your Link works better.
Maybe this helps someone?
[Application] Mac: Convert HDPI images to MDPI
Are these any good for you guys? I can't test right now, still without my Legend .
[Theme] CM v6.1.0-RC1 / Biffmod 2.1 / Nightly 250 (mdpi)
BlueDark [11/07/10]MDPI Full Roms Cyanogen 6.1RC1
Hey Westi01,
the picture with the surfer girl is pretty awesome. Could you please upload the picture as jpg?!
Westi01!
Is it possible to use your ported Minimal theme without flashing the whole ROM?
I would like to keep my system as it is if possible!
Thank you,
zappelfry said:
Hey Westi01,
the picture with the surfer girl is pretty awesome. Could you please upload the picture as jpg?!
Click to expand...
Click to collapse
It's a picture out of UltraLinx Gallery. It a very good Site by the way !
greenolive said:
Westi01!
Is it possible to use your ported Minimal theme without flashing the whole ROM?
I would like to keep my system as it is if possible!
Thank you,
Click to expand...
Click to collapse
Look at Method 1 for applying themes without Flashing. You have to use ADB.

[GUIDE] How to Make a Fully Working ROM For Xperia MDPI [NOOB FRIENDLY]

Hi guys, today i am going to Show you How to Make a ROM, Starting from Base.. [Powered by Walkman Style]
Sorry For the Bad English, if i spell something wrong tell me!
This Tut shows how to make a fully Working ROM for Xperia MDPI devices, Any File Provided is suggested for xperia mdpi only! if you have another android device, you can look at this, but links Like META-INF/dev/ won't Work for all Android Devices!!
Index
1st Post .- Index / Downloads / Setting up the Things
2nd Post .- Making The ROM Prototype
3rd Post .- Final Modifications & True ROM​
Click to expand...
Click to collapse
{
"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"
}
Tools Required:
- Notepad++ - MUST DOWNLOAD THIS! NORMAL NOTEPAD KILL THE FILES LIKE BUILD.PROP
- Java JDK - Required for Cygwin to Work
- Dsixda Android Kitchen Thread - Download Kitchen & Reffer to the FAQ
- Cygwin - its Like a Linux Emulator for Windows.
- META-INF & Dev folders - I am Giving Walkman Style v4 Folders, They are Fine for Locked/Unlocked & also all xperia.
- Android Terminal Emulator - You will need it for lots of things
Click to expand...
Click to collapse
Installing Java JDK & Cygwin to your PC
Now, Simply download Java JDK and execute the file, after that you can continue with the install of cygwin..
Now You can Choose Between following the Instructions above or watching the video on how to install cygwin
INSTRUCTIONS:
~ Download and extract Cygwin packages to a folder in Desktop
Now you should have a Cygwin Pakaces folder in Desktop if you did everything Okay.
~ Now Run the Cygwin Setup and Install Cygwin at C:/
The Cygwin setup will ask you to select were are the cygwin packages, search on desktop and choose the path to cygwin packages .
After installation progress it will show a Message that its similar to an error, ignore it
~ Now you will se a menu with Lots of Things (See video Min 1:51) Click in the arrows and change from Default to Install
If you did not understand please check the video at min 1:50, after that you have succefully installed cygwin
~ Now download the Kitchen from the XDA thread, Extract the folder from the zip and rename that Folder to Kitchen
Run Cygwin.exe and after you run it the script will create two folders at C:/Cygwin/home
Those Folders are *Your username* and inside you will find some files..
~ Remember you Renamed the Dsixda kitchen to "kitchen"? ok, now move it to C:/Cywgin/home/User/
So it will be like C:/Cygwin/home/User/kitchen .
~ Go to desktop and Run Cygwin - then you will see a CMD window, right? there, you must type the following things:
Code:
[COLOR="Orange"]cd kitchen (enter)
./menu (enter and wait)[/COLOR]
~ if you did everything right, then you should see this
Click to expand...
Click to collapse
Making the ROM
Now we will make the flashable zip (rom) , for this we must Have a System Folder / META-INF Folder / Dev Folder
~ Download the META-INF & Dev folders from the Tools section at First Post.
Extract the Folders from the zip and move both folders to desktop.
~ Creating a Working Folder : Go to C:/Cygwin/Home/User/Kitchen and Create a Folder Called "WORKING_ROM"
Move Dev & META-INF Folders to the WORKING_ROM Folder
Now we Must Get the System Folder..
~ Open Terminal Emulator & Type This:
Code:
su
tar -c system/* >> sdcard/system.tar
~ Connect your Phone via USB cable & get the System.tar File
~ Extract System.tar to System Folder and Place it in C:/Cygwin/home/user/kitchen/WOKRING_ROM
Congrats , Now you Have all necessary for the ROM to work.
Click to expand...
Click to collapse
Note: Before Extracting the System Folder, Flash Stock GB/ICS and modify as you wish.
Things you can do to modify the rom:
- Add Init.d Support (you can do it so easy with the kitchen)
- Add Busybox (you can do it from the app or with the kitchen)
- Add Scripts for Better Rendering
- Change ROM Font
- Change/Modify status bar
- Change/Modify Framework
- Add new themes
- Add Apps from Themes & Apps Section..
- Modify Build.prop
- Much more..
Time to Make the ROM Prototype
Now, You are supposed to have 3 Folders (System,META-INF,dev) in C:/Cygwin/home/user/kitchen/WORKING_ROM/
Now go to Desktop and execute Cygwin..
Type
Code:
[COLOR="Red"]cd kitchen
./menu[/COLOR]
Click to expand...
Click to collapse
and you will see the Menu of Dsixda Android Kitchen
Now Type 99 (Make a ROM from Working Folder) And you should see Something like This:
Now Type 2 and Sit Back, if you don't get any error it will take pretty much time (depends in your RAM, for me it takes like 10/15 Min.)
After that, Go to OUTPUT_ZIP Folder and take your rom.
~ Connect your device via USB Cable.
~ Rename the ZIP to your ROM Name (Ex: Walkman Style)
~ Move the ZIP to the Root of your sdcard
~ Start Recovery & Flash the ROM
Click to expand...
Click to collapse
Now you should see aroma, but all that has mi rom names, why? that's because you didn't modified The proper files.. See next post for that info..
Making the True ROM
I Imagine that now you might be using your new rom, if the ROM is working 100% fine, then, now lets go to the PC and edit what last..
~ Open Cygwin Directory
~ Go to Home
~ Enter to the User folder
~ Go to Kitchen
~ Go to WORKING_ROM
~ Open META-INF Folder
~ Go to META-INF/com/google/android and you should have this Files:
~ Now Open Aroma-Config with Notepad++ and edit as you want (WARNING , FOR NOOB USERS , ONLY EDIT ROM NAME, DATE, VERSION AND AUTHOR, DON'T TOUCH WHAT YOU DON'T KNOW)
~ Then open Aroma Folder There and Edit License.txt as you wish..
Click to expand...
Click to collapse
Now, You Have Your OWN META-INF & System Folder, But.. What happend to dev folder? Open it!
Dev Folder Editing
Dev folder contains files for locked/unlocked bootloader & also files for each device.. these files are used in the aroma, in the part you choose Bootloader status & Device.. we are going to edit the build.prop of each device :
~ Open Build.prop with Notepad.cc and do whatever you want:
What to do?
-Add Build.prop Tweaks
-Modify Rom Name
-Change Android Version (Fake)
-Etc..
Click to expand...
Click to collapse
Now you have edited everything.. lets make the rom!!
~ Open Cygwin
~ Type:
Code:
cd kitchen
./menu
~ *Optional* If your rom does not contain Init.d , Busybox , Etc.. Just add it with the kitchen, its not so difficult! use your brain
~ Now type 99 (Make a rom from working folder)
~ Now type 1 or 2 (i recommend 2, since zipalign make the ram usage reduce)
~ Now wait till the rom appear at C;/Cygwin/home/user/kitchen/output_zip like this:
So now, You are Done, Congrats, You have made your ROM!​
Extra Links Related to This :
How to Port a ROM from MIUI/HDPI to MDPI - By Sandy7
How to Compile/Decompile .Apks - By Sandy7
How to Compile/Decompile .Apks - By Stanlin salu
List of Scripts - By Moonblade
Dsixda for the android kitchen
neroyoung for video,most ideas & cygwin
Click to expand...
Click to collapse
Bro, sorry to tell but this is repost from te misc section and the tutorial made by neroyoung :/
anerik said:
Bro, sorry to tell but this is repost from te misc section and the tutorial made by neroyoung :/
Click to expand...
Click to collapse
1- i take the video only from another post.. the rest is mine, also the screenshots are mine
2- there's no guide telling how to make a rom "working" for all xperia mdpi with Locked & Unlocked Bootloader.
3- What did i repost?
Nachospeicys said:
1- i take the video only from another post.. the rest is mine, also the screenshots are mine
2- there's no guide telling how to make a rom "working" for all xperia mdpi with Locked & Unlocked Bootloader.
3- What did i repost?
Click to expand...
Click to collapse
nono, i'm not saying you copied it, i'm saying you didn't realise, but this is kinda same that your guide and works on all devices, so it will work on all mdpi, and this is that too... so you could do a guide specially for mdpi, but not like those 2, it's just the same thing in a different section
anerik said:
nono, i'm not saying you copied it, i'm saying you didn't realise, but this is kinda same that your guide and works on all devices, so it will work on all mdpi, and this is that too... so you could do a guide specially for mdpi, but not like those 2, it's just the same thing in a different section
Click to expand...
Click to collapse
This tut is not similar to neuroyoung one.. and, maybe it looks similar to misc one bec i learned from there.. :silly:
Nachospeicys said:
This tut is not similar to neuroyoung one.. and, maybe it looks similar to misc one bec i learned from there.. :silly:
Click to expand...
Click to collapse
Bro, it's the same that the misc one, and the same that neroyoung videos, it's just made by you in another section. Leave this here, but add more stuff so it's not the same!
anerik said:
Bro, it's the same that the misc one, and the same that neroyoung videos, it's just made by you in another section. Leave this here, but add more stuff so it's not the same!
Click to expand...
Click to collapse
suppose you read neuroyoung/misc section thread using a xperia, what would happen?
bootloop
Awesome :laugh:
i will start a rom now :good:
Problem
hey man, could you help me with this problems?
1- i get system folder with terminal emulator fine. but it give me error when i zipalign with the kitchen (the .apks)
2- i have tried without zipalign and rom is not booting..
plz help me solve that and i will thanks this post
sh4kon said:
Awesome :laugh:
i will start a rom now :good:
Click to expand...
Click to collapse
Goodluck :highfive:
XperiaMiniProZ said:
hey man, could you help me with this problems?
1- i get system folder with terminal emulator fine. but it give me error when i zipalign with the kitchen (the .apks)
2- i have tried without zipalign and rom is not booting..
plz help me solve that and i will thanks this post
Click to expand...
Click to collapse
mm try removing the apk that's causing the problem, most probably its damaged..and if its a very important app, then replace it with one from another rom or stock rom..
the zipalign wont make your rom boot if it doesnt boot now, something is going wrong!
have you edited files with notepad++ ? if you edit them with normal notepad the file will die and the rom probs will bootloop.
Nachospeicys said:
suppose you read neuroyoung/misc section thread using a xperia, what would happen?
bootloop
Click to expand...
Click to collapse
Well i learned how to do roms like that. no bootloop, since it works any device bro. Just try and see for yourself first
anerik said:
Well i learned how to do roms like that. no bootloop, since it works any device bro. Just try and see for yourself first
Click to expand...
Click to collapse
Neroyoung tutorial made for universal, this tutorial made for noobs. You know the difference right?
So, lets leave the OP with his tutorial alone. If he think his tutorial better than real developer like neroyoung.
Sent from Hubble Telescope
Thanks for this tutorial
Michunio said:
Thanks for this tutorial
Click to expand...
Click to collapse
it worked right?
chepoz said:
Neroyoung tutorial made for universal, this tutorial made for noobs. You know the difference right?
So, lets leave the OP with his tutorial alone. If he think his tutorial better than real developer like neroyoung.
Sent from Hubble Telescope
Click to expand...
Click to collapse
what the hell are you saying?? i never said mi tut is better than neroyoung,, dont be that stupid to thnk that!!
i made this for noob. and for noob, it will work better like this.. of course if they dont own an xperia mdpi i will recommend neroyoung one.
Nachospeicys said:
what the hell are you saying?? i never said mi tut is better than neroyoung,, dont be that stupid to thnk that!!
i made this for noob. and for noob, it will work better like this.. of course if they dont own an xperia mdpi i will recommend neroyoung one.
Click to expand...
Click to collapse
N why you said if we follows neroyoung tutorial we will get bootloop? I used that 2 times without any bootloop. So, watch your words man!
Sent from Hubble Telescope
Nachospeicys said:
what the hell are you saying?? i never said mi tut is better than neroyoung,, dont be that stupid to thnk that!!
i made this for noob. and for noob, it will work better like this.. of course if they dont own an xperia mdpi i will recommend neroyoung one.
Click to expand...
Click to collapse
Whats up with this noob tutorial... Noob guide thing...
A guide is a guide...
Neroyoung guide can also help users...
both guides are no really different

[TUTORIAL]Create your own MIUI ROM![BOTH BL'S]

{
"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"
}
So, i learnt how to make my MIUI rom out of this tutorial (all credits to sandy7), but with time the tut got old due to some bugs in miui rom, and if you use that, the rom will probably boot but with some bugs like reboots, launcher fc, etc etc. So i will make a complete guide including the tutorial by sandy with the additional files to make a fully working MIUI rom. Enjoy!
Click to expand...
Click to collapse
Code:
[SIZE="3"][FONT="System"][COLOR="Red"][I][B]*I'm not responsible for any damage you do to your device, however i will provide full support.[/B][/I][/COLOR][/FONT][/SIZE]
The basics!​
Things you'll need
Notepad++ - the notepad we will use to edit basically all files. Normal one won't work so don't even think about it
Base LT18i MIUI rom we will use this to get apps, fonts, etc
7-zip used to rebuild the rom
APKTool used to install apks in the PC so you won't get errors decompiling
ApkManager used to decompile and build apks
base MIUI rom! this is the base, i already fixed some bugs on it and deleted stuff
Click to expand...
Click to collapse
Let's get started with this!
1-Unrar the MIUI base rom i gave up in some folder you like, and open the lt18i one with winrar or 7zip.
2-Copy the folders app, fonts, framework and media from the LT18i ROM to the MIUI base. Don't worry if it doesn't ask you to replace anything. Delete SemcHdmiControlService.apk in miui base after copying
3-Open lib folders in both base and lt18i, and copy this from lt18i to base:
content-types.properties
liblbesec.so
liblocSDK_2.5OEM.so
libshell.so
libshell_jni.so
libshellservice.so
4-Open etc folders, and do the same as step 3 but with these files:
yellowpage.db
telocation.td
5-Open permissions foder in /etc, and same as step 3 with these files:
miui-framework.xml
com.google.android.media.effects.xml
com.google.widevine.software.drm.xml
com.google.android.maps.xml
6-Open xbin in both base and lt18i, and copy from lt18i to base:
shelld
Build.prop mods! Make your own!
In MIUI base, there's a folder named dev. If you don't know what that is, i'll try to give you a brief explanation: there are 4 xperia mdpis. In order to make a ROM that works on all of them with aroma, you need some files they require (like camera lib files) that are flashed right after the rom. There are 4 build.props in total, each in one dev folder, you can edit all or just the one that suits your phone, if rom is for personal use.
Open the build.prop you want, and edit the red lines with whatever you want:
Code:
ro.build.id=[COLOR="Red"]4.1.B.0.587[/COLOR]
ro.build.display.id=[COLOR="red"]MIUIAndroid 3.1.18[/COLOR]
ro.build.version.incremental=[COLOR="red"]3.1.18[/COLOR]
ro.rommanager.developerid=[COLOR="red"]miuiandroid[/COLOR]
ro.modversion=[COLOR="red"]MIUIAndroid-3.1.18-EN-WT19i[/COLOR]
ro.goo.rom=[COLOR="red"]MIUIAndroid-EN-WT19i[/COLOR]
Note: after ## Project Fluid™ ## in build.prop, you can delete everything, those are tweaks i forgot to remove, you just delete them and add the ones you like
Decompiling! Take that stupid black bar!
First of all, you need to install 3 files in order to make this work. Search for this files in /framework (MIUI base rom, not lt18i) and move them to apktool folder:
framework-res.apk
framework-miui-res.apk
SemcGenericUxpRes.apk
1-Shift-Right-click any blank space in APKTool folder, and click "Open command window here"
2-Copy and paste these 3 lines separed by enter (copy one, press enter, copy another, blabla):
apktool if framework-res.apk
apktool if framework-miui-res.apk
apktool if SemcGenericUxpRes.apk
Disabling auto-brightness and make the leds work
1-Copy framework-res.apk from miui base to apkmanager folder called place-apk-here-for-modding and open Script.bat
2-In the script, select 22, then select framework-res.apk, and then select 9 (decompile apk)
3-Once it's done, go to projects folder in apkmanager, open framework-res.apk, and go to res/values/bools.xml (right click, edit with notepad++)
4-Change this line:
Code:
<bool name="config_automatic_brightness_available">[COLOR="Red"]true[/COLOR]</bool>
to this:
Code:
<bool name="config_automatic_brightness_available">[COLOR="red"]false[/COLOR]</bool>
5-Go back to script.bat and choose option 11 (build apk)
It will ask "Is this a system app?" say yes to that
Then it'll ask "Do you wanna copy over any additional content..." say no to that
And we're done with framework-res.
Click to expand...
Click to collapse
Remove SystemUI black bar
1-Copy MiuiSystemUi.apk from miui base to apkmanager folder called place-apk-here-for-modding and open Script.bat
2-In the script, select 22, then select MiuiSystemUi.apk, and then select 9 (decompile apk)
3-Once it's done, go to projects folder in apkmanager, open MiuiSystemUi.apk, and go to res/values/drawables.xml (right click, edit with notepad++)
4-Delete this line:
Code:
<item type="drawable" name="notification_header_bg">#ff000000</item>
5-Go back to script.bat and choose option 11 (build apk)
It will ask "Is this a system app?" say yes to that
Then it'll ask "Do you wanna copy over any additional content..." say yes to that
It will pop-up a dialog, DO NOT PRESS ENTER!, go to keep folder in apkmanager and delete resources.arsc. Now, go to script.bat and press enter. Recompiling is done with no errors
And we're done with black bar
Click to expand...
Click to collapse
META-INF changing! Your ROM, not mine!
1-Go to META-INF/com/google/android and open aroma-config with notepad++
2-Edit these lines adding anything you want:
Code:
ini_set("rom_name", "[COLOR="Red"]MIUIv4[/COLOR]");
ini_set("rom_version", "[COLOR="red"]3.1.18[/COLOR]");
ini_set("rom_author", "[COLOR="red"]anerik[/COLOR]");
ini_set("rom_device", "[COLOR="red"]Xperia MDPI[/COLOR]");
ini_set("rom_date", "[COLOR="red"]18 jan 2013[/COLOR]");
3-Go to META-INF/com/google/android/aroma and open changelog.txt, write anything you want.
Now you have everything setted up, select all 4 folders and make a zip out of it with 7-zip. This will be 100% clean MIUI, in the next posts (tomorrow, sleep time now) i will add more addons like scripts, supercharger, etc! Just flash the ROM, it should boot fine, no launcher FC, no themes working bad, nothing.​
anerik said:
1-Right-click any blank space in APKTool folder, and click "Open command window here"
Click to expand...
Click to collapse
I don't know about linux but in windows it should be Shift+Right-Click...
BTW thanks for the tut....really helpful...will press the thanks button afterwards because this 8-thanks limit will not let me press it....
Regards,
AJ
alokbina said:
I don't know about linux but in windows it should be Shift+Right-Click...
BTW thanks for the tut....really helpful...will press the thanks button afterwards because this 8-thanks limit will not let me press it....
Regards,
AJ
Click to expand...
Click to collapse
lol such a noob error, my bad, thanks for pointing out
anerik said:
lol such a noob error, my bad, thanks for pointing out
Click to expand...
Click to collapse
Ur welcome buddy....
---------- Post added at 01:34 PM ---------- Previous post was at 01:03 PM ----------
So it is for all mdpi or a single device??
alokbina said:
Ur welcome buddy....
---------- Post added at 01:34 PM ---------- Previous post was at 01:03 PM ----------
So it is for all mdpi or a single device??
Click to expand...
Click to collapse
all mdpi!
:good::good::good::good::good:
sandy7 said:
:good::good::good::good::good:
Click to expand...
Click to collapse
:laugh:
Thanks in advance BRO! :good:
Really good tuturial.
kovacslaszlo13 said:
Thanks in advance BRO! :good:
Really good tuturial.
Click to expand...
Click to collapse
Thanks!!
Bugfixes!​
Bad keyboard!
-Yes, i forgot to replace keyboard. To fix:
1-Go to /system/app delete LatinImeGoogle.apk
2-Download this or any keyboard you like, and flash it or just unpack it on your ROM. Don't forget to hit thanks to the autor.
No wi-fi!
-This might just be kernel problem, but in any case, here are the modules, just unpack and copy folder lib to your system folder, replace if asked. Then flash
FC's!
-Kernel problem, i am unable to fix since i am on stock with locked bl. Just change your kernel
When i switch bluetooth on, bootloop?
-I believe kernel problem aswell, tested that a hundred times with no bootloop, stock talking.
cool thread dude.. is it possible to use a stock-rom as base for miui??
kulas1987 said:
cool thread dude.. is it possible to use a stock-rom as base for miui??
Click to expand...
Click to collapse
Yep the base he provided was of stock only just apps, fonts, framework and media folder was deleted
Best Regards,
AJ
alokbina said:
Yep the base he provided was of stock only just apps, fonts, framework and media folder was deleted
Best Regards,
AJ
Click to expand...
Click to collapse
yeh he right!
Thanks for the nice tutorial bro:good::good:
I'm using micromax A100.So far only one custom rom for it.I would like to port a miui rom for it..how do i select the appropriate version making sure that it will work on my phone?..I'm a noob.I'm sorry if i'm confusing you.:silly:
looks like not work for me,anyway thank for the tutorial
want to create latest miui rom for karbonn s5
I want to create latest version of miui rom for my karbon s5 titanium. So which version of miui can i used as a port ram.....?
and also ri8 now i m using miui v5 3.8.9, it working fine for my mobile, so can i use this rom as a base rom
Many thanks. Really helpful for me )
Sent from my ST18i using XDA Free mobile app
want to make/port a miui v5 rom for Nokia X2 dual sim...plz help
can i make a miui v5 rom for nokia x2 dual (android v4.3) using your tutorial?
plz give me some specific suggestions... there are no custom roms for this device.so, i want to make one..plz help.
this will mean a lot.
Any one ported MIUI 6 ?
how to repack MIUI rom then ?

[TUTORIAL][How-To] Edit .jar or .apk files using VTS

----------------------------------------------------------------------------------------------------------
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
----------------------------------------------------------------------------------------------------------
PREFACE
Hello guys, first of all I want to say thanks to all the real developers (and not just rom-modder like me) that are here, helping us to get better performance and features everyday, so thanks to FXP, CosmicDan, DooMLorD, wedgess, smokerman, krisdee, Spizzy, Keiran, fareneith, Pizza_Dox, Bakisha, and many, many others.​
This guide is intended for those who want to make some mods, for example touchpads fix to their rom, and it's not too hard to understand how to do it (we will just use an IDE to achieve that, so it'll be pretty simple).
Let's start!​
Click to expand...
Click to collapse
----------------------------------------------------------------------------------------------------------
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
----------------------------------------------------------------------------------------------------------
DECOMPILING .APK AND .JAR FILES
without custom framework
Make sure you have installed NetFramework 4.5,
if not download it from here and then install ;
You can now install Virtuous Ten Studio (VTS):
download it from here and follow the passages to install it ;
Run VTS (you could easily find it under Start) ;
Now you can create a new Project:
simply click on File (on the left top) and select New Project ;
Projects can be of 4 kinds: apk, jar, m10 and boot.
Select apk if you want to edit an apk; select jar if you want to edit a jar ;
Compile the fields on the bottom (Solution and Project name) ;
Wait for VTS to create the folders...;
Now you can import the file you want to edit:
simply right-click on the project you have created (you can find it under Solution Explorer bar, on the left)
and select Import File, then find and select the file you want to edit ;
Here we go! VTS will now decompile our file, and when it finishes,
Solution Explorer bar will be updated to show you what your file contains (smali files and whatever) ;
Now you can make every modification you want to do;
When you have finished, you can recompile that file by right-clicking your project and selecting Build Project:
you can easily find your modded file, just click Binary (under Home tab on the top) and select your file project name;
Here we are! If you've got some questions, just ask here!
Click to expand...
Click to collapse
​​
Click to expand...
Click to collapse
​​
​
----------------------------------------------------------------------------------------------------------
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
----------------------------------------------------------------------------------------------------------
DECOMPILING .APK FILES
with custom framework
first of all, you must know what to do: just take a look at the guide above and follow the steps (from 1 to 7) ;
now you must take the custom resources needed from the apk you want to decompile to work (that resources file is another apk, generally located under /system/framework and its name contains always something like Res or Resources - for example SemcGenericUxpRes -) then place it wherever you want ;
once you've done that you can create your project (DON'T import now the app you want to modify, because you'll get errors related to missing resources) and set-up a custom framework: just right-click on your project and go under Properties ;
find External tools on the left and click on apktool: select Add single framework, import the custom-resources apk that you took from your rom ( see first step ) and set a Tag (the name you want to assign to that file) ;
now you must select that framework to be used instead of the default one: right-click on your project and go under properties; here you can find a selector called Framework tag: select the one you've just setted ;
that's it! Now you can import your custom-framework-based apk ( if you don't know how just take a look at the guide above - step 8 ) .
​
Click to expand...
Click to collapse
​
Click to expand...
Click to collapse
----------------------------------------------------------------------------------------------------------
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
----------------------------------------------------------------------------------------------------------​
When i have the time, i really have to give this program a chance. Tnx for tutorial
Sent from my R800i using xda app-developers app
Good job, I've used vts.for awile now.its a great program.
Dark Lords Development Team
Needed to learn Apk Decompiling, now i can!,
simpler than apk tool..and easy to use in small changes..comes handy. nice post.
i have a problem with decompiling resource files can anyone help plz???
{
"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"
}
and this is my log
raminta said:
and this is my log
View attachment 2048601
Click to expand...
Click to collapse
It seems apktool is missing, maybe an incorrect installation? Have you tried reinstalling?
CriGiu said:
It seems apktool is missing, maybe an incorrect installation? Have you tried reinstalling?
Click to expand...
Click to collapse
Yes but nothing has changed
Sent from my R800i using xda premium
raminta said:
Yes but nothing has changed
Sent from my R800i using xda premium
Click to expand...
Click to collapse
try using an older version of VTS, but I can't promise anything
it's clearly related to missing binary, and that's strange. does this happen just with that specific apk, or with all of them?
And keep in mind that you're decompiling an apk with a custom framework, so before you can decompile it, you must add its resources by right-clicking on your project, selecting properties, going under External tools and clicking on Apktool, selecting Add single framework (here you must place your resources apk file: it's generally located under /system/framework folder of your rom - the rom from which you're taking the apk you're modifing - it's something having for name SonyResources or something like that).
Then you must set that framework to be used instead of the "stock" one by right-clicking on your project and going under properties; here you can find a selector called Framework tag: select the one you've just placed in.
CriGiu said:
try using an older version of VTS, but I can't promise anything
it's clearly related to missing binary, and that's strange. does this happen just with that specific apk, or with all of them?
And keep in mind that you're decompiling an apk with a custom framework, so before you can decompile it, you must add its resources by right-clicking on your project, selecting properties, going under External tools and clicking on Apktool, selecting Add single framework (here you must place your resources apk file: it's generally located under /system/framework folder of your rom - the rom from which you're taking the apk you're modifing - it's something having for name SonyResources or something like that).
Then you must set that framework to be used instead of the "stock" one by right-clicking on your project and going under properties; here you can find a selector called Framework tag: select the one you've just placed in.
Click to expand...
Click to collapse
Ok thanks for replying:thumbup:
Sent from my R800i using xda premium

[Tutorial] Decompile/Recompile Apk with Apk Multitool + Decompile/Recompile Jar Files

" This thread will cover various useful guides starting from how to Decompile/Recompile Apk & Jar files. Me & my friend Aneel will provide new guides/tutorial day by day so that you guys can get many handy guidance in one place. Please Suggest us If you need any guide & we will try to post it If we actually can. Also If you find our guides useful then support us my giving feedback, hitting thanks & adding in credits section "
1st Let's start with [How to decompile & recompile with Apk Multitool]:
*Requirements*
Latest Java
Latest JDK+JRE (get everything from http://www.oracle.com/technetwork/java/javase/downloads/index.html)
Apk Multi Tool (Download from attachment)
Steps
1. Unzip Apk Multi Tool into a folder
2. Now run Setup.bat. It will 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"
}
3. Now choose 3. Setup Directories & press enter
4. This will create the folders needed. It will look like this
5. Now place the apk you want to decompile in place-apk-here-for-modding
6. Place a framework-res.apk, SemcGenericUxpRes.apk & SystemUI.apk in other folder. Preferebly it should be from the same package of apk/same apks of a Rom which you placed in the place-apk-here-for-modding folder. If there is no corresponding apks then you can try with other framework & systemUI apks also.
7. Now again run Setup.bat & press enter & choose 2. Installing Framework-Res. It will look like this
8. Now choose option 1 & enter to install framework & again option 4 & enter to install SystemUI
9. Now run Script.bat & press enter to activate various menu. Choose option 9 to decompile the apk. Then press enter. It will look like this
10. Once decompile is complete close the script & go to projects folder
11. Do the necessary changes you want to
12. When editing is done again run Script.bat
13. Choose option 11 to recompile & press enter. It will prompt a message after sometimes, Aside from the signatures....of errors (y/n)
14. Input y & press enter
15. Now after sometimes, it will again ask you to delete everything you have modified from keep folder & also delete resources.arsc if you have modified any xml. Minimize the script, delete the xml(s) you have modified (other than from values folder, it won't appear in keep folder) & also resources.arsc. If you have modified any png (not added) then delete it too. Then press enter when you are ready.
16. Now your new apk is ready. You can find it in place-apk-here-for-modding folder. Note that, your original apk will also be in the same folder with original name. Your modified apk will have System_ attached in the name.
17. Copy it to some other place & rename to original apk name & enjoy.
18. When you want to work on the next project then delete everything from place-apk-here-for-modding & projects folder. Now follow the same steps again from Number 5 of this guide.
[How to decompile & recompile Jar Files]:
*Requirements*
Winrar/7zip
Deodexed Jar files
smali.jar
baksmali.jar (both are in the attachment)
Command Prompt/Terminal
0. Take the classes.dex from jar file by opening it with 7zip/Winrar.
1. Open a new folder in Desktop named suppose "Jar"
2. Place smali.jar & baksmali.jar in the folder
2. Open Command Prompt. On windows type cmd in Run
3. cd to your directory where you have opened the new folder. In my case it is
Code:
C:\Documents and Settings\USER\Desktop\Jar
4. Write
Code:
cd C:\Documents and Settings\USER\Desktop\Jar
& press enter. Note that, on your case the directory will be different from mines. So get the correct directory by going into that directory from C:
5. Now type this to Decompile. Note that, there is a "space" before "classes.dex"
Code:
java -jar baksmali.jar -o classout\ classes.dex
& press enter
6. When Decompiling is done there will a folder named "classout" be placed in Jar folder. Minimize the cmd.
7. Now make the necessary changes inside the classout folder
8. When done,type this to recompile & press enter. Remember, there is a "space" before "new-classes.dex"
Code:
java -Xmx512M -jar smali.jar classout\ -o new-classes.dex
9. When recompiling is done there will be a new file in the folder named "new-classes.dex"
10. Now rename new-classes.dex to classes.dex & put it in the jar file with 7zip/Winrar
..............That's All. Thank You.................
​
Credits:
@raziel23x for Apk Multitool
@iONEx for teaching me about Apk Multitool when I was a noob
@Hero for Decomping jar files concept
Nice share... BTW, can mod MiuisystemUI.apk with this tool? I've heard Miui uses different aapt.
Aciong.Aksaya said:
Nice share... BTW, can mod MiuisystemUI.apk with this tool? I've heard Miui uses different aapt.
Click to expand...
Click to collapse
yes you can just follow this cause miui has more than one framework-res.apk & you don't need twframework in this case http://forum.xda-developers.com/showthread.php?t=2306397
saqib nazm said:
yes you can just follow this cause miui has more than one framework-res.apk & you don't need twframework in this case http://forum.xda-developers.com/showthread.php?t=2306397
Click to expand...
Click to collapse
The tool is great but I can't seem to do what should I do the centered clock for MiuisystemUI.apk I can't seem to find decent tutorial.
Aciong.Aksaya said:
The tool is great but I can't seem to do what should I do the centered clock for MiuisystemUI.apk I can't seem to find decent tutorial.
Click to expand...
Click to collapse
here is the guide http://en.miui.com/thread-4353-1-1.html
Hell there is an error in your compiling code of your smali/jar
it should be "-o new-classes.dex"
Razor! said:
Hell there is an error in your compiling code of your smali/jar
it should be "-o new-classes.dex"
Click to expand...
Click to collapse
Right! Thanks Razor,now it's correct :good:
saqib nazm said:
Right! Thanks Razor,now it's correct :good:
Click to expand...
Click to collapse
Welcome
Press thanks if you like my work/advice
@saqib nazm, it would be good if you add tut on how to recompile apks after making changes in androidmanifest.xml.. Because I have observed it gives bootloops.. As signing of apps just puts meta inf and doesn't do anything to androidmanifest.. Just a suggestion..
Sent from my MT11i using xda premium
sandy7 said:
here is the guide http://en.miui.com/thread-4353-1-1.html
Click to expand...
Click to collapse
Ive been into that place if you knew david guetta face in the thread thats me. Thanks for your kindness to redirect me. The OP is not just very much accommodating geez...
Aciong.Aksaya said:
Ive been into that place if you knew david guetta face in the thread thats me. Thanks for your kindness to redirect me. The OP is not just very much accommodating geez...
Click to expand...
Click to collapse
I suggested you to install the proper framework files to decompile miui stuffs properly, though this thread is for compiling & decompiling with apk multi tool,not how to center clock on miui I beg your pardon? & I didn't say anything else because sandy already directed you to a guide, that's probably I would also gonna do If I were in the 1st place like sandy replied. You cannot say words which can hurt other people. Cause If I would know how to "Center clock on miui" I would open a thread with that guide,isn't it?
First of all,Thank you for work but I have a lot of problems.Can you help me about thats? I did everything step by step.No problems with 1 to 6 steps.I placed the apk place-apk-here-for-modding and I placed a framework-res.apk, SemcGenericUxpRes.apk & SystemUI.apk in other folder.
After that,in step 7&8,when I choose option 1 & enter to install framework & again option 4 & enter to install SystemUI,I get this screens
So,in step 9,Run Script.bat & press enter to activate various menü choose option 9 to decompile the apk. Then press enter,I get errors like this
And so,projects folder is empty.What is the problem and what can I do?
Mazellat said:
First of all,Thank you for work but I have a lot of problems.Can you help me about thats? I did everything step by step.No problems with 1 to 6 steps.I placed the apk place-apk-here-for-modding and I placed a framework-res.apk, SemcGenericUxpRes.apk & SystemUI.apk in other folder.
Click to expand...
Click to collapse
that could be a problem with that apk, you cannot decompile it. If you have done all the steps properly as you said can you try with any other apk? so to be sure if that's the problem with that apk
Aciong.Aksaya said:
Ive been into that place if you knew david guetta face in the thread thats me. Thanks for your kindness to redirect me. The OP is not just very much accommodating geez...
Click to expand...
Click to collapse
saqib nazm said:
I suggested you to install the proper framework files to decompile miui stuffs properly, though this thread is for compiling & decompiling with apk multi tool,not how to center clock on miui I beg your pardon? & I didn't say anything else because sandy already directed you to a guide, that's probably I would also gonna do If I were in the 1st place like sandy replied. You cannot say words which can hurt other people. Cause If I would know how to "Center clock on miui" I would open a thread with that guide,isn't it?
Click to expand...
Click to collapse
Hi Saqib Nazm, Yes it it but this is a full misunderstanding. The OP I am referring to is the OP on the link that Sandy gave.
Mea Culpa...
Aciong.Aksaya said:
Hi Saqib Nazm, Yes it it but this is a full misunderstanding. The OP I am referring to is the OP on the link that Sandy gave.
Mea Culpa...
Click to expand...
Click to collapse
Oh ok I am extremely sorry then. Have a nice day
Hi saqib i want to ask again. If I make own fragment in settings_header.xml. How?
Sent from my LT25i using xda premium
danisariandi said:
Hi saqib i want to ask again. If I make own fragment in settings_header.xml. How?
Sent from my LT25i using xda premium
Click to expand...
Click to collapse
bro I have told you how to do it that day in the original thread, which part you didn't understand? You asked about smali files, you don't need any smali files man.
Kjkkkkkkkkk
poria1999 said:
Hi all members
I have some problem in recompiling apk files...
When i compile apk and delete resources.arsc+xmls that i have modified them,anything didnt change in apk ...
i am working on framework-res.apk ...
please helpe me...
Click to expand...
Click to collapse
what were you trying to change? & what you did?
Yyyyyyyyyyyyyyyyyyyyyy

Categories

Resources