Related
When I modify the CMParts.apk's ../res/values-zh-rCN/strings.xml,
It lead to a bug, a CM setting option will Force Close;
CyanogenMod settings->Interface->Notification power widget->Widget buttons->Brightness modes,
Brightness modes will FC, can anyone help me?
These are my steps to modify the CMParts.apk:
1. install JRE;
2. download the apktool1.4.3 from code.google.com;
3. use "apktool d CMParts.apk" to decompile CMParts.apk;
4. modify ../res/values-zh-rCN/strings.xml, edit the string"警告:前面有怪兽!" to "警告!", in line 356;
5. use "apktool b CMParts CMParts1.apk" to compile modified files;
6. use CMParts1.apk's resources.arsc to replace CMParts.apk's resources.arsc;
7. copy CMParts.apk to /system/app, and grant it all permissions.
Any other CM settings work well;
the string"警告:前面有怪兽!" is be change to "警告!" succeed.
My OS is Win7(32bit), Used tools is apktool 1.4.3;
Sorry my English, My English is so poor;
Can anyone help me? Thx.^*(- -)*^
this ploblem is sloved, plz look 5th floor.
Nobody can help me? :-(
I've modded a few apks and im pretty sure you have to delete the new resources.arsc (the one from the project folder) before recompiling or it won't work, that could be why you get fc.
Also did you copy your modified XML to the new project folder too?
Sent from my HTC Legend using XDA App
but, when compile the modified xml,
the modified xml is not exist in CMParts1.apk,
and i replace the resources.asrc,
the string which i wanna modified is changed,
to puzzle me, the xml which lead to fc, is not the strings.xml,
In my opinion, it should be in /res/values/X.xml.
Sent from using XDA App
the cmparts.apk cant be decomplied by apktool or other tools,
if modify, should be modify the Source Code from CyanogenMod,
that's all.
Good Day Guys!I present this small guide on how to modify your SystemUI.apk (ICS only)Things yah need:APK Manager (http://forum.xda-developers.com/showthread.php?t=695701)Java (Oh... You know where to find it)A Windows or Linux PC.Lets Get Started!Decompiling:
1. Extract APK Manager from the .zip file.
2. Run Setup.bat
3. Grab the untouched framework-res.apk and SystemUI.apk from the Base ROM.
4. Place them both in "place-apk-here-for-modding" folder
5. Double click on Script.bat
6. type in 24 and type the corresponding number for framework-res.apk
7. type 9 and it should decompile (If you don't decompile framework-res.apk first you'll have serious problems.)
8. Now type in 24 again and type in the corresponding number for SystemUI.apk
9 Type in 9 and decompile.
10. Now make your modifications in "projects folder"
Click to expand...
Click to collapse
Recompiling:
1. Once your Done go back to script.bat
2.Make sure the "Current Project" is set to SystemUI.apk
3.Type in 11 ENTER to compile apk
4.Type "y" again to confirm you DO want to add additional files that you didnt modify from thee ORIGINAL apk
5.Go into where Apkmanager is installed, and you should see a new folder called KEEP
6.Open "KEEP" folder and whatever you modified, delete the stock version of it I.e: if you inserted new battery icon png's, delete the STOCK battery icon pngs, and if you also edited any xml(s), DELETE the resources.arsc from the KEEP folder
7.Once done, go back into Script.bat and press ENTER to continue
Click to expand...
Click to collapse
Well Good Luck! , Happy Modding!
Reserved for the Manual
Nice tutorial, man! You're back! http://bancomicsans.com/
Great! I believe lots of users will love this good to have you back
Sent from my awesome fridge
TAM
I respect your knowledge no doubt..However I have just opened systemui.apk by 7-zip>replaced png which I want>closed 7-zip..Thats it..Replace sytemui.apk at phone>Changed persmission.
R: [TUTORIAL]How to modify SysemUI.apk
KSKHH said:
TAM
I respect your knowledge no doubt..However I have just opened systemui.apk by 7-zip>replaced png which I want>closed 7-zip..Thats it..Replace sytemui.apk at phone>Changed persmission.
Click to expand...
Click to collapse
In fact only pngs you can replace without decompiling but if you want to edit smali or XML files you have to decompile like Tam wrote.
xpirt
Hi everyone, I'm here to teach you guys on how to change the text "Swipe up or down to unlock" on Xperia Z lock screen. Since I saw some request on it.
Preparation:
*Framework Toolkit by Themike10452 http://forum.xda-developers.com/showthread.php?p=36085941 (at B section, only the toolkit) (from now on will call toolkit)
*Notepad++ http://notepad-plus-plus.org/ (under download tab)
*Java Development Kit http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html (choose the one compatible with your os) (install it before you open toolkit)
*Latest apktool (both apktool and and it's dependencies) http://code.google.com/p/android-apktool/downloads/list (use dependencies for windows if you are on windows)
*7zip File Manager http://www.7-zip.org/
{ above all software are essentials for one to mod any apk files and frameworks. }
*UxpNxtLockScreen.apk (extract from ROM either from phone memory using root file explorer or from flashable ROM zip (at system/app)
*A thinking Brain
**Framework Toolkit by Themike10452 http://d-h.st/Pkb (this is the version that I'm using to mod apk and framework (it mean it is working, for me), use it if your toolkit is not working, only for windows os only) (I have no idea am I allowed to share this tool or not, since i didn't get permission from Themike10452 yet, request sent but no reply at all at the moment, I will put this down if Themike10452 request so)
Click to expand...
Click to collapse
Instructions/Guide:
§ 1st, extract Framework Toolkit by Themike10452 and put it aside on any where of your comp (preferable desktop).
§ 2nd, extract apktool files with 7 zip. Yes, open the bz2 files you had download just now, you will see a tar file within, open it again, then you will see a folder, for apktool, you will see a file jar file ; for dependencies, you will see 2 files exe and bat each, copy them and replace the same file in toolkit folder (inside the "other" folder", just override the old files).
§ place UxpNxtLockScreen.apk in "place-apk-here-for-modding" within toolkit folder.
§ run "Apk-Multi-Tool.bat" as admin. Press any keys to continue after the "Multi Tool Screen" appear. It will lead you to a screen with multiple options shown with numbers in front of them.
§ check: at top right corner, "Current-App" should follow with "UxpNxtLockScreen.apk"(if no, please recheck whether if the file you put is in correct place or not and you shouldn't have more than 1 apk in that folder to start modding or theming), then press "9" and enter to decompile apk. Once it's done, minimize the toolkit, you will use it later, now go to root folder of toolkit, within projects folder you will see a folder named "UxpNxtLockScreen.apk".
(from 1st instruction until here is the general decompiling apk process, it should works on all apks unless the apk have extraordinary resources that can't be decoded by apktool by other toolkit, maybe? and the following instructions will be called "modding" *yes, you are now starting to mod a/an apk file now )
§ navigate to /projects/UxpNxtLockScreen.apk/res/values/ and you will see 11 xml files. Open strings.xml with Notepad++.
§ find the line with this name "lockscreen_unlock_hint", use Ctrl + F if you can't find them.
eg:<string name="lockscreen_unlock_hint">Swipe up or down to unlock</string>
§ change the sentence after " > " and before " </string> " with the sentence you desire and save the file (Ctrl + S)
§ Back to Apk Multi Tool, press " 21 " > enter > " 0 " > enter. ( This is to set compression level to 0. I'm not sure if it works with Compression level at 9) then " 11 " and enter to recompile the apk. A while later. screen will pause and show a message end with < y / n >:
2 options here:
# To be safe, press " y " and enter then wait for it to extract source from original apk, navigate to keep folder, delete a file named "resources.arsc" and back to apk multi tool and press any buttons to continues. (this is to keep the original sources at new modified apk to reduce error and maintain its compatibilities to the ROM.)
# Another is " n ", just press n and enter, and done. (i wont give 100% working in this way, do it on your own risk)
§ You will then get a file named "System_UxpNxtLockScreen.apk", move or copy it into your SD, rename to "UxpNxtLockScreen.apk", and replace it with correct permission ( R W - R - - R - - ).
Click to expand...
Click to collapse
# To change the number of times unlock to remove the unlock tips (unlock untill a certain times to remove the unlock tips), navigate to /projects/UxpNxtLockScreen.apk/res/values/ and open intergers.xml with note++, and find the following lines "unlocks_before_hint_removal"
eg: <integer name="unlocks_before_hint_removal">100</integer>
change the number value to number of times you desire and save the file, then recompile the apk.
Click to expand...
Click to collapse
Extra
You may use the apktool provided by stanlin salu from his tutorial of decompile/recompile apk. About decompile and recompile apk, follow his tutorial, just edit those files according to my instructions/guide. This thread is actually only providing the information about which file and which line to be edited to change the unlock tips and unlock times before remove tips.
{stanlin salu's apk decompile and recompile tutorial and apktool download------------> http://forum.xda-developers.com/showthread.php?t=2011337
CAUTION!
§ Please check both of your apk file by opening them with 7 zip file manager, compare both apk for their content(should be total of 3 files and 2 folders), all the files and folders within should have the same size except "resource.arsc" *unless you modified some other pictures, then check the number of files contained in the folder, the number of files must be the same. If "META-INF" is different, please copy the folder from original apk to modded apk and override them. None of those files (classes.dex, AndroidManifest.xml, META-INF...) can be 0kb (I think only odexed framework will get 0kb, deodexed framework will not get 0kb)
§ If you replaced any picture in drawable folders, please make sure that the picture have same file name with the original picture. And during recompile process, please delete the same picture file of the same name that you modified at keep folder if you choose < y > at the pause.
Miscellaneous:
§ If you seriously having problem to recompile or modding, you may upload UxpNxtLockScreen.apk or yours to me for modding and I will upload to you once I get it done.
§ Please give me some time to mod for you since I'm just a Pre-University Student who studied 12 hours a day and also spending my time with my family and friends as well. I'm doing all these as a part of my interest and my own free will. :angel:
Credits:
Themike10452 for the apk multi tool and his great tutorial there.
stanlin salu for his apk decompile and recompile tutorial (even though i didn't learnt to decompile apk from his tutorial, but something extra from his tutorial)
*I will take no responsibilities if your phone is bricked because of using any mod from this thread. Everything is done on your own risk. So please don't point your finger at me if anything goes wrong, or I will LMAO. You should have know the forum's rules, you are the one who chose to use this mod at your own decision, I do not use a gun point at you to use it
Please click the "Thanks" button if this mod helped you and of course those who are in credits for their effort
I´ll try and try but don´t works for me, I follow the steps. maybe i´ts a pc or sofware problem.
Re: [TUT] How to change "swipe up or down to unlock" for Xperia Z lockscreen
I think this should go in Theming section maybe if I'm not mistaken
But still nice work
Sent from my Xperia Neo V using xda premium
Ghostfreak NB said:
I think this should go in Theming section maybe if I'm not mistaken
But still nice work
Sent from my Xperia Neo V using xda premium
Click to expand...
Click to collapse
sorry about that, maybe i should request moderator to move this thread later
Re: [TUT] How to change "swipe up or down to unlock" for Xperia Z lockscreen
jordiluna said:
I´ll try and try but don´t works for me, I follow the steps. maybe i´ts a pc or sofware problem.
Click to expand...
Click to collapse
What kind of problem is it? Can you give more detailed info for me to sort it out? Best with screen shot of the toolkit.
Sent from my MT15i using xda app-developers app
Re: [TUT] How to change "swipe up or down to unlock" for Xperia Z lockscreen
xange said:
Hi everyone, I'm here to teach you guys on how to change the text "Swipe up or down to unlock" on Xperia Z lock screen. Since I saw some request on it.
Preparation:
*Framework Toolkit by Themike10452 http://forum.xda-developers.com/showthread.php?p=36085941 (at B section, only the toolkit) (from now on will call toolkit)
*Notepad++ http://notepad-plus-plus.org/ (under download tab)
*Java Development Kit http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html (choose the one compatible with your os) (install it before you open toolkit)
*Latest apktool (both apktool and and it's dependencies) http://code.google.com/p/android-apktool/downloads/list (use dependencies for windows if you are on windows)
*7zip File Manager http://www.7-zip.org/
{ above all software are essentials for one to mod any apk files and frameworks. }
*UxpNxtLockScreen.apk (extract from ROM either from phone memory using root file explorer or from flashable ROM zip (at system/app)
*A thinking Brain
§ 1st, extract Framework Toolkit by Themike10452 and put it aside on anyway of your comp (preferable desktop).
§ 2nd, extract apktool files with 7 zip. Yes, open the bz2 files you had download just now, you will see a tar file within, open it again, then you will see a folder, for apktool, you will see a file jar file ; for dependencies, you will see 2 files exe and bat each, copy them and replace the same file in toolkit folder (inside the "other" folder", just override the old files).
§ place UxpNxtLockScreen.apk in "place-apk-here-for-modding" within toolkit folder.
§ run "Apk-Multi-Tool.bat" as admin. Press any keys to continue after the "Multi Tool Screen" appear. It will lead you to a screen with multiple options shown with numbers in front of them.
§ press "9" and enter to decompile apk. Once its done, go to root folder of toolkit, within projects folder you will see a folder named "UxpNxtLockScreen.apk". and minimize the window, you will use it later.
§ navigate to /projects/UxpNxtLockScreen.apk/res/values/ and you will see 11 xml files. Open strings.xml with Notepad++.
§ find the line with this name "lockscreen_unlock_hint", use Ctrl + F if you can't find them.
eg:<string name="lockscreen_unlock_hint">Swipe up or down to unlock</string>
§ change the sentence after " > " and before " </string> " with the sentence you desire and save the file (Ctrl + S)
§ Back to Apk Multi Tool, press " 21 " > enter > " 0 " > enter. ( This is to set compression level to 0. I'm not sure if it works with Compression level at 9) then " 11 " and enter to recompile the apk. A while later. screen will pause and show a message end with < y / n >:
2 options here:
# To be safe, press " y " and enter then wait for it to extract source from original apk, navigate to keep folder, delete a file named "resources.arsc" and back to apk multi tool and press any buttons to continues. (this is to keep the original sources at new modified apk to reduce error and maintain its compatibilities to the ROM.)
# Another is " n ", just press n and enter, and done. (i wont give 100% working in this way, do it on your own risk)
§ You will then get a file named "System_UxpNxtLockScreen.apk", move or copy it into your SD, rename to "UxpNxtLockScreen.apk", and replace it with correct permission ( R W - R - - R - - ).
Credits:
Themike10452 for the apk multi tool and his great tutorial there.
Click to expand...
Click to collapse
Nice explanation for new learners...
I knew this but I thanked you because there was no post like this when I started theming.....
Cheers
---------- Post added at 04:30 PM ---------- Previous post was at 04:24 PM ----------
jordiluna said:
I´ll try and try but don´t works for me, I follow the steps. maybe i´ts a pc or sofware problem.
Click to expand...
Click to collapse
U should tell at which step u were struck whether it compiled and decompiled without errors
Sorry for the delay, I always compiled with errors, with this programe and with other versions of apktool. So I say it is software problem, something missing in my computer, I never could decompiled and compiled any apk.Whit this tutorial and others. This tutorial is great, and no doubt it will work.:good:
jordiluna said:
Sorry for the delay, I always compiled with errors, with this programe and with other versions of apktool. So I say it is software problem, something missing in my computer, I never could decompiled and compiled any apk.Whit this tutorial and others. This tutorial is great, and no doubt it will work.:good:
Click to expand...
Click to collapse
did you install the Java and restart your comp? the apktool require Java Development Environment(JDE) to run it. JDE download is on 1st post. and you must choose the correct version, for instance like me, i'm using windows 7 ultimate x64, so i installed windows x64 bits version. since you said u tried different version of apktool and its not working, you must have either java problem, or you did not running it as administrator.
Re: (Moderator plz move this to theme section) [TUT] Xperia Z change unlock screen ti
I download the java file, and restart, but run as administrator......., I'll try
send from my mind, without phone.
Re: [Tutorial] Xperia Z Lockscreen - change unlock screen tips
jordiluna said:
I download the java file, and restart, but run as administrator......., I'll try
send from my mind, without phone.
Click to expand...
Click to collapse
Try it friend and tell here...
If it still does nor work for u I will upload my apktool which I think will work 100%
I´ll try, ..... this is the apk, some png´s are modified by me. But something´s strange, classes.dex 0 kb, androidmanifest 0kb.In meta inf all three files 0 kb View attachment System_UxpNxtLockScreen2neon.apk
Is this normal?
And a lot of thanks for your time...:good:
jordiluna said:
I´ll try, ..... this is the apk, some png´s are modified by me. But something´s strange, classes.dex 0 kb, androidmanifest 0kb.In meta inf all three files 0 kb View attachment 1760764
Is this normal?
And a lot of thanks for your time...:good:
Click to expand...
Click to collapse
it souldn't be 0kb.... that dex file is what dalvik cache used to store. i upload mine apktool, you try and see if is it still the same or not......, you are running which os by the way?
would you mind to send me your original file as well?
Re: [Tutorial] Xperia Z Lockscreen - change unlock screen tips
I'm on windows vista. I'll send the original file this afternoon. Thanks
send from my mind, without phone.
Re: [Tutorial] Xperia Z Lockscreen - change unlock screen tips
jordiluna said:
I'm on windows vista. I'll send the original file this afternoon. Thanks
send from my mind, without phone.
Click to expand...
Click to collapse
I have a exam tomorrow after that I will surely solve it problem and by that time u will upload the original file
And till then just tell are u installing framework via apktool as uxpnxt is a framework dependent files
The original file......View attachment UxpNxtLockScreen4elements.apk
salsreloded said:
I have a exam tomorrow after that I will surely solve it problem and by that time u will upload the original file
And till then just tell are u installing framework via apktool as uxpnxt is a framework dependent files
Click to expand...
Click to collapse
I already uploaded a working version that i'm using......
jordiluna, you try it see if it works or not. and, after recompile, please recompare the modded apk and original apk, the 3 files must have same file size, choose < y > during recompile, just delete the resources.arsc only. leave other untouched files and pictures there to be rewrite to the new modded apk.
I downloaded apktool and I put the original file and.......recompile without errors!!! all files are well. but :crying: The word that I edit in strings, I put just UNLOCK, don´t shows in the lockscreen. I redownloaded notepad too, and nothing.:silly::silly::silly:
Please mod this file for me. I just only need this word- UNLOCK. And thanks for your time, a lot of thanks.
View attachment UxpNxtLockScreen.apk
Re: [Tutorial] Xperia Z Lockscreen - change unlock screen tips
jordiluna said:
I downloaded apktool and I put the original file and.......recompile without errors!!! all files are well. but :crying: The word that I edit in strings, I put just UNLOCK, don´t shows in the lockscreen. I redownloaded notepad too, and nothing.:silly::silly::silly:
Please mod this file for me. I just only need this word- UNLOCK. And thanks for your time, a lot of thanks.
View attachment 1765456
Click to expand...
Click to collapse
Apk is downloaded to my phone now, I will mod it and post to you once I done it tomorrow afternoon (+8 here) after I back from school.
Sent from my MT15i using xda app-developers app
Take your time, don´t hurry. And thanks.
jordiluna said:
Take your time, don´t hurry. And thanks.
Click to expand...
Click to collapse
Well, I gave you 2 versions. one is tips with "Unlock" as you requested, another one is "jordiluna @ XDA-Developers".
just rename anyone of those to UxpNxtLockScreen.apk and replace the old one with correct permission ( R W - R - - R - - ). correct permission 1st before replace. and reboot. hope you will like it
Welcome to a whole new guide on Android Development
-SArnab©®
{
"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"
}
I will cover up all small n big details that one can need to step his/her foot on the road to android development.
What are you gonna find in this Guide/Tutorial :
Basic knowledge of Android Development.
Tutorials to set up a full working environment or Your Workspace.
Knowledge about tools used/needed in Development.
Easy tutorial for cooking one's own custom rom.
What are you not gonna get :
Spoon fed help to do even a simple work.
Pre modded Apps or Roms.
A pre built option to carry on a project.
TUTORIAL CONTENT:
#1 GENERAL INTRODUCTION & REQUISITES[REQUIRED TOOLS] OF ANDROID DEVELOPMENT;
#2 OS WISE WORK ENVIRONMENT SETUP GUIDE;
#3 GUIDE TO MODIFY APPS PART-1.
#4 GUIDE TO MODIFY APPS PART-2.
#5 GUIDE TO COOK CUSTOM ROM PART-1.
#6
#7
#8
#9
#10
#11
#12
#13
THINGS YOU NEED TO START YOUR JOURNEY
PER-REQUISITES:
COMPUTER/LAPTOP TO WORK ON
A WELL KNOWN OPERATING SYSTEM THAT YOU ARE USED TO:
WINDOWS OS : VISTA OR 7 PREFERRED.
LINUX DISTRO : UBUNTU 12.10 64 BIT PREFERRED. DOWNLOAD LINK
MAC OS-X : THIS GUIDE DOES NOT SUPPORT MAC OS-X. SORRY MAC USERS.
JAVA DEVELOPMENT KIT[JDK] : V6 N V7 BOTH FOR BETTER RESULTS. [USE V6 IF YOU DON'T HAVE A HUGE CAPACITY DATA PLAN. IT'S THE PREFERRED ONE.] DOWNLOAD LINK
DOWNLOAD THIS ANDROID SDK ADT BUNDLE TO MAKE YOUR OWN APPS.[RECOMMENDED]DOWNLOAD LINK.
TOOLS/SOFTWARES REQUIRED AS PER YOUR NEED:
TOOLS REQUIRED BY WINDOWS USERS ONLY:
NOTEPAD++ FOR EDITING : .xml & .smali FILES OF APPS, build.prop TO ADD TWEAKS & Updater-scripts FOR YOUR ROM & UPDATE PACKAGES.[DO NOT USE WINDOWS NATIVE NOTEPAD/WORDPAD. THEY WILL DAMAGE THE FILES.] DOWNLOAD.
Click to expand...
Click to collapse
7zip ARCHIVE MANAGER : USED TO MAKE UPDATE PACKAGES, SIGN APPS, & OTHER ARCHIVE RELATED JOBS.
Click to expand...
Click to collapse
PAINT.NET : IT IS USED FOR MAKING .PNG FILES FOR UI. YOU CAN ALSO EDIT THEM. DOWNLOAD LINK.
[YOU MAY EVEN USE GIMP IMAGE MANIPULATION PROGRAM OR ADOBE PHOTOSHOP.]
Click to expand...
Click to collapse
TOOLS REQUIRED BY LINUX USERS ONLY:
p7zip ARCHIVE MANAGER : USED TO MAKE UPDATE PACKAGES, SIGN APPS, & OTHER ARCHIVE RELATED JOBS.
Click to expand...
Click to collapse
GIMP IMAGE MANIPULATION PROGRAM : IT IS USED FOR MAKING .PNG FILES FOR UI. YOU CAN ALSO EDIT THEM. ITS ALREADY INCLUDED IN UBUNTU.
Click to expand...
Click to collapse
TOOLS REQUIRED TO COOK YOUR OWN ROM: TOOLS REQUIRED FOR COOKING ROM THROUGH METHOD NUMBER 1:
FOR WINDOWS USERS
CYGWIN : ITS A UNIX LIKE TERMINAL APP FOR WINDOWS USERS. YOU NEED TO INSTALL THIS TO RUN ANDROID KITCHEN.
DOWNLOAD LINK
ALSO DOWNLOAAD N EXTRACT THIS PACKAGE : DOWNLOAD LINK
Click to expand...
Click to collapse
dsixda's Android Kitchen: USED FOR COOKING A CUSTOM ROM.
DOWNLOAD THE LATEST ONE.ORIGINAL THREAD
Click to expand...
Click to collapse
FOR LINUX/UBUNTU USERS
dsixda's Android Kitchen: USED FOR COOKING A CUSTOM ROM.
DOWNLOAD THE LATEST ONE.ORIGINAL THREAD
Click to expand...
Click to collapse
TOOLS REQUIRED FOR COOKING ROM THROUGH METHOD NUMBER 2
FOR SAMSUNG DEVICES:
ODINATRIX: IT IS REQUIRED TO GET SYSTEM.img FROM SAMSUNG FIRMWARES COOKING CUSTOM ROM FROM KITCHEN. DOWNLOAD
ORIGINAL THREAD
Click to expand...
Click to collapse
FOR XPERIA DEVICES:
FLASH TOOLS FOR XPERIA DEVICES : DOWNLOAD
UNYAFFS TOOLS : DOWNLOAD
Click to expand...
Click to collapse
ORIGINAL THREAD
Click to expand...
Click to collapse
TOOLS REQUIRED TO MOD/EDIT AN APK : USE ANY ONE OF APKTOOL/APK BOX/APK MULTI TOOL & BAKSMALI MANAGER IS NECESSARY TO DOWNLOAD FOR ADVANCE MODDING.
APKTOOL : THIS TOOL HELPS YOU TO DECOMPILE N RECOMPILE APK: ITS THE BEST FOR NEW COMERS DOWNLOAD LINK
INSTALLATION PROCEDURE
Windows:
Download apktool-install-windows-* file
Download apktool-* file
Unpack both to your Windows directory
Linux:
Download apktool-install-linux-* file
Download apktool-* file
Unpack both to /usr/local/bin directory (you must have root permissions)
ORIGINAL THREAD
Click to expand...
Click to collapse
APK BOX
DOWNLOAD :
Windows batch version: https://www.dropbox.com/s/xrzids3oyc...ApkBox_1.0.zip
Linux shell version: https://www.dropbox.com/s/y7fks74mvi...pkBox2_1.0.zip
Install
- Download the .zip file
- Extract the .zip file in your working folder[or anywhere in your computer/laptop as u like]
- Open ApkBox folder n double click apk.bat to run it.
ORIGINAL THREAD
Click to expand...
Click to collapse
APK MULTI TOOL: DOWNLOAD LINK
AVAILABLE ONLY FOR WINDOWS OS.
Installing APK Multi-Tool Itself
Run the installer and make sure it is pointed to the root of hard drive
Example
C:\APKMultiTools\
ORIGINAL THREAD
Click to expand...
Click to collapse
BAKSMALI MANAGER: IT IS USE TO BAKSMALI N SMALI .JAR FILES.
DOWNLOAD LINK.
INSTALLATION : EXTRACT THE DOWNLOADED ZIP FILE WHERE EVER U WANT.
Click to expand...
Click to collapse
==========================================================================================
CREDITS :
TO YOUR PARENTS OR GUARDIANS FOR THE PC OR LAPTOP U R USIN.:angel:
TO DEVELOPERS OF VARIOUS OPERATING SYSTEMS.
TO:
iBotPeaches FOR APKTOOL.
iptux FOR APK BOX.
raziel23x FOR APK MULTI TOOL.
TO: UNKNOWN FOR BAKSMALI TOOL.
TO DSIXDA FOR HIS AWESOME KITCHEN.
TO THE TEAM BEHIND CYGWIN, NOTEPAD++, PAINT.NET.
TO GOOGLE FOR ANDROID & ANDROID SDK
TO noobzFTW FOR THE GREAT ODINATRIX TOOL.
LAST BUT NOT THE LEAST TO ME FOR THE GUIDE ITSELF.
==========================================================================================
PLEASE PRESS THE THANXXX BUTTON IF THIS POST/THREAD HELPED YOU EVEN A BIT. BE GENEROUS N DONATE TO HELP ME N TO PRAISE MY HARD WORK.
GUYS I WILL UPDATE THE GUIDE SLOWLY SO THAT I DON'T MISS ANY NECESSARY INFO.
Setting up a perfect user friendly build environment
WORK ENVIRONMENT SETUP GUIDE
WINDOWS OS
1ST OF ALL MAKE SURE TO HAVE A LOT OF FREE SPACE IN LOCAL DISK C. [REASON : ALL YOUR TOOLS ARE GONNA STAY THERE FOR THE DEVELOPMENT PROCEDURE.]
SETUP 1: COMPLETE SETUP
DOWNLOAD & INSTALL JAVA DEVELOPMENT KIT [JDK].
Click to expand...
Click to collapse
DOWNLOAD N EXTRACT ANDROID SDK ADT BUNDLE IN THE ROOT OF C DRIVE [My Computer/Local Disk C/here].
Click to expand...
Click to collapse
DOWNLOAD N INSTALL CYGWIN IN THE ROOT OF C DRIVE [My Computer/Local Disk C/here].
Q.]HOW TO INSTALL CYGWIN?
ANS.] DOWNLOAD setup.exe
DOUBLE CLICK ON THE DOWNLOADED FILE.
PRESS YES IF ASKED.
PRESS NEXT.
SELECT THE 3RD OPTION [INSTALL FROM LOCAL DIRECTLY].
PRESS NEXT.
IF DESTINATION DRIVE IS SET TO "c/cygwin" PRESS NEXT ELSE 1ST SET DESTINATION DRIVE TO "c/cygwin".
SELECT WHERE YOU WANT TO DOWNLOAD THE FILES.
THEN WHEN IT SHOWS ALL THE PACKAGE NAMES, GO TO THE TOP & CLICK ON THE ARROW NEAR "all default" UNTIL IT CHANGES TO "all install" N PRESS NEXT.
WAIT FOR THE INSTALLATION TO FINISH.
THEN TICK BOTH THE OPTIONS FOR ICON PLACEMENT n PRESS FINISH/NEXT.
OPEN THE CYGWIN FOLDER.[My Computer/Local Disk C/cygwin/home/make a new folder here].
RENAME THE NEW FOLDER AS YOUR USER NAME. [My Computer/Local Disk C/cygwin/home/xxx12 or xxx.12].
NOTE: YOUR USERNAME IN WINDOWS SHOULD NOT HAVE SPACE IN BETWEEN. [EXAMPLE: "xxx 12" is not recommended. "xxx12" or xxx.12" ARE THE BEST FORMAT OF USERNAME.] [REASON : IN SIMPLE WORDS CYGWIN WILL NOT UNDERSTAND THE SPACE]
Click to expand...
Click to collapse
DOWNLOAD N EXTRACT dsixda's ANDROID KITCHEN IN CYGWIN FOLDER. [My Computer/Local Disk C/cygwin/home/xxx12 or xxx.12/kitchen].
Click to expand...
Click to collapse
DOWNLOAD AND EXTRACT APKTOOL/APK MULTI TOOL/APK BOX IN LOCAL DISK C. [ANY ONE OF THEM YOU LIKE.][RECOMMENDED: APKTOOL][My Computer/Local Disk C/apktool/apk multi tool/apk box].
Click to expand...
Click to collapse
FOR APKTOOL YOU NEED TO DOWNLOAD N EXTRACT TWO PACKAGES IN SAME FOLDER.[My Computer/Local Disk C/apktool/].
Download apktool-install-windows-* file
Download apktool-* file
Click to expand...
Click to collapse
DOWNLOAD N EXTRACT BAKSMALI MANGER IN LOCAL DISK C.[My Computer/Local Disk C/baksmali].
Click to expand...
Click to collapse
IF YOU HAVE FOLLOWED ALL THESE STEPS CORRECTLY THEN U SHOULD HAVE SET UP A PERFECT COMPLETE WORKING ENVIRONMENT FOR YOURSELF. IF NOT THAN FOLLOW THE STEPS AGAIN IN THEIR ORDER. IF STILL U GOT STUCK SOMEWHERE FELL FREE TO POST ABOUT WHERE U GOT STUCK OR WAT U R NOT ABLE TO UNDERSTAND. JUST NOT POST CANT DO OR ITS TO HARD OR ANYTHING LIKE THAT.
SETUP 2: ROM COOKING SETUP
DOWNLOAD & INSTALL JAVA DEVELOPMENT KIT [JDK].
Click to expand...
Click to collapse
DOWNLOAD N INSTALL CYGWIN IN THE ROOT OF C DRIVE [My Computer/Local Disk C/here].
Q.]HOW TO INSTALL CYGWIN?
ANS.] DOWNLOAD setup.exe
DOUBLE CLICK ON THE DOWNLOADED FILE.
PRESS YES IF ASKED.
PRESS NEXT.
SELECT THE 3RD OPTION [INSTALL FROM LOCAL DIRECTLY].
PRESS NEXT.
IF DESTINATION DRIVE IS SET TO "c/cygwin" PRESS NEXT ELSE 1ST SET DESTINATION DRIVE TO "c/cygwin".
SELECT WHERE YOU WANT TO DOWNLOAD THE FILES.
THEN WHEN IT SHOWS ALL THE PACKAGE NAMES, GO TO THE TOP & CLICK ON THE ARROW NEAR "all default" UNTIL IT CHANGES TO "all install" N PRESS NEXT.
WAIT FOR THE INSTALLATION TO FINISH.
THEN TICK BOTH THE OPTIONS FOR ICON PLACEMENT n PRESS FINISH/NEXT.
OPEN THE CYGWIN FOLDER.[My Computer/Local Disk C/cygwin/home/make a new folder here].
RENAME THE NEW FOLDER AS YOUR USER NAME. [My Computer/Local Disk C/cygwin/home/xxx12 or xxx.12].
NOTE: YOUR USERNAME IN WINDOWS SHOULD NOT HAVE SPACE IN BETWEEN. [EXAMPLE: "xxx 12" is not recommended. "xxx12" or xxx.12" ARE THE BEST FORMAT OF USERNAME.] [REASON : IN SIMPLE WORDS CYGWIN WILL NOT UNDERSTAND THE SPACE]
Click to expand...
Click to collapse
DOWNLOAD N EXTRACT dsixda's ANDROID KITCHEN IN CYGWIN FOLDER. [My Computer/Local Disk C/cygwin/home/xxx12 or xxx.12/kitchen].
Click to expand...
Click to collapse
SETUP 3: APP MAKING SETUP
DOWNLOAD & INSTALL JAVA DEVELOPMENT KIT [JDK].
Click to expand...
Click to collapse
DOWNLOAD N EXTRACT ANDROID SDK ADT BUNDLE IN THE ROOT OF C DRIVE [My Computer/Local Disk C/here].
Click to expand...
Click to collapse
SETUP 4: APP MODDING/EDITING SETUP
DOWNLOAD & INSTALL JAVA DEVELOPMENT KIT [JDK].
Click to expand...
Click to collapse
DOWNLOAD AND EXTRACT APKTOOL/APK MULTI TOOL/APK BOX IN LOCAL DISK C. [ANY ONE OF THEM YOU LIKE.][My Computer/Local Disk C/apktool/apk multi tool/apk box].[apktool/apk multi tool/apk box means EITHER apktool or apk multi tool or apk box.][RECOMMENDED: APKTOOL]
FOR APKTOOL YOU NEED TO DOWNLOAD N EXTRACT TWO PACKAGES IN SAME FOLDER.[My Computer/Local Disk C/apktool/].
Download apktool-install-windows-* file
Download apktool-* file
Click to expand...
Click to collapse
DOWNLOAD N EXTRACT BAKSMALI MANGER IN LOCAL DISK C.[My Computer/Local Disk C/baksmali].
Click to expand...
Click to collapse
==========================================================================================================================
LINUX DISTRO : UBUNTU
GUYS PLZ FOLLOW THESE STEPS TO SUCCESSFULLY ROOT YOUR UBUNTU:
To get started, press Ctrl – Alt – T on your keyboard to open the terminal. When it opens, run the commands below to create a root password.
sudo passwd root
Click to expand...
Click to collapse
Next, run the commands below to enable root login in Ubuntu 12.10:
sudo sh -c 'echo "greeter-show-manual-login=true" >> /etc/lightdm/lightdm.conf'
Click to expand...
Click to collapse
THEN TYPE:
$ sudo -i
Click to expand...
Click to collapse
THEN FOLLOW THE ONSCREEN INSTRUTION.
NOW THE LOGIN PART.
TO SUCCESSFULLY BOOT INTO ROOT USER ACCOUNT RESTART YOUR PC/LAPTOP AND WAIT FOR THE PC TO SLEEP. NOW REACTIVATE IT. WHEN ASKED FOR PASSWORD SELECT DIFFERENT USER ACCOUNT N PUT root AS USERNAME n UR ROOT PASSWORD N LOGIN.
SEE ATTACHMENTS FOR PICS
HERE ARE THE VIDEO TUTORIALS TO SET UP WORKING ENVIRONMENT ON UBUNTU:
VIDEO-1 | VIDEO-2 | VIDEO-3
SETUP ANDROID SDK:
Download the SDK.
169.9 MB [http://developer.android.com/sdk/dow...x86-1.5_r3.zip]
Click to expand...
Click to collapse
Right-click and select Extract Here.
Move the contents of the android-sdk-linux_x86-1.5_r3 directory to your desired location.
Close directory window.
Using your favorite text editor, open the .mycshrc file in your home directory.
Add the following text to the end of the file:
set path=($path <android_sdk_dir>/tools)
set path=($path <android_sdk_dir>/platform-tools
Open up a terminal, navigate to your home directory and execute the following command:
source .mycshrc
INSTALL JAVA DEVELOPMENT KIT 6[JDK-6]
STEPS:
OPEN THE TERMINAL WINDOW
TYPE N HIT ENTER:
sudo apt-get purge openjdk*
Click to expand...
Click to collapse
NOW TYPE N PRESS ENTER:
sudo apt-get purge *jre*
Click to expand...
Click to collapse
OPEN UP YOUR SYNAPTIC PACKAGE MANAGER AND DO A SEARCH FOR JRE OR ANY JAVA RELATED PACKAGES N IF YOU FOUND ANY THEN UNINSTALL THEM.
ONCE YOU MAKE SURE THAT YOUR SYSTEM IS CLEANED OF ANY JAVA PACKAGE, DOWNLOAD THE SCRIPT FROM HERE : DOWNLOAD SCRIPT
ONCE YOU HAVE DOWNLOADED THE SCRIPT FROM THE ABOVE GIVEN LINK, YOU WILL NEED TO ENABLE THE EXECUTING PERMISSION BIT. SO CHANGE YOUR DIRECTORY TO WHEREVER YOU HAVE DOWNLOADED THE SCRIPT N THEN IN TERMINAL WINDOW TYPE THE CODE BELOW N HIT ENTER:
chmod +x ./whatever_the_script_is_named
Click to expand...
Click to collapse
NOTE: AFTER "./" YOU WILL HAVE TO WRITE THE NAME OF THE DOWNLOADED SCRIPT.
THEN IN THE TERMINAL WINDOW RUN THE SCRIPT WITH THE FOLLOWING CODE:
sudo ./whatever_the_script_is_named
Click to expand...
Click to collapse
NOTE: AFTER "./" YOU HAVE TO PUT THE NAME OF THE SCRIPT.
ABOUT ALL THESE STEPS: THESE STEPS HELP YOU BUILD PACKAGES FOR YOUR SYSTEM AND PLACE THEM IN LOCAL REPOSITORY FOR apt-get TO INSTALL THEM. THIS BYPASSES JAVA ANAL RETENTIVE LICENSING BULL SQUASH.
SO, NOW YOU NEED TO INSTALL IT WITH THE HELP OF FOLLOWING CODE:
sudo apt-get install sun-java6-jre
Click to expand...
Click to collapse
WAIT FOR IT TO FINISH INSTALLING.
TO ENSURE YOUR VERSION IS CORRECT RUN THIS CODE:
java -version
Click to expand...
Click to collapse
YOU SHOULD GET AN OUTPUT SIMILAR TO:
[email protected] ~ $ java -version
java version "1.6.0_32"
Java(TM) SE Runtime Environment (build 1.6.0_32-b05)
Java HotSpot(TM) 64-Bit Server VM (build 20.7-b02, mixed mode)
[email protected] ~ $
Click to expand...
Click to collapse
THIS GUIDE ON JAVA INSTALLATION WORKS ON: Precise/Mint-Maya/Ubuntu.
INSTALL JAVA ON 64BIT UBUNTU.[GUIDE BY THE AWESOME dsixda- THE CREATOR OF REVOLUTIONARY ANDROID KITCHEN.][EDITED BY ME FOR NEW COMERS]
STEPS:
OPEN TERMINAL WINDOW BY PRESSING : CTRL + ALT + T
TYPE THE FOLLOWING CODE TO INSTALL 32BIT libs SO THAT YOU CAN INSTALL JAVA IN 64BIT.
sudo apt-get install ia32-libs
Click to expand...
Click to collapse
OPEN UBUNTU SOFTWARE CENTER[UBUNTU MARKET].
CLICK ON THE SEARCH OPTION N SEARCH FOR JAVA
YOU WILL GET A HELL[SORRY IF U MIND THIS WORD] LOT OF SEARCH RESULTS.
IN THE LIST LOOK FOR "OpenJDK Java Runtime" N CLICK INSTALL.
AFTER THE INSTALLATION FINISHES, OPEN UP TERMINAL WINDOW AGAIN N RUN THE FOLLOWING CODE TO CONFIRM THAT JAVA HAS BEEN INSTALLED SUCCESSFULLY:
java -version
Click to expand...
Click to collapse
SETTING UP ANDROID KITCHEN
DOWNLOAD THE LATEST VERSION OF ANDROID KITCHEN;
EXTRACT THE FOLDER WHEREVER YOU LIKE;
NOTE: GUYS I WILL BE ASSUMING A NEUTRAL FOLDER FOR ALL ANDROID DEVELOPMENT. \home\username\android\kitchen; [PLZ NOTE: kitchen FOLDER NAME SHUD BE IN SMALL LETTERS]
THESE FILES & FOLDERS SHUD BE INSIDE THE kitchen FOLDER
Click to expand...
Click to collapse
CREDITS
the1dynasty FOR THE UBUNTU ENVIRONMENT SETUP VIDEOS.
wddglr FOR THE GUIDE TO SETUP SDK On linux.
who_ohw FOR THE GUIDE TO INSTALL JDK IN A LINUX DISTRO.
dsixda FOR HIS GUIDE TO INSTALL JAVA IN A SYSTEM RUNNING 64BIT UBUNTU
LAST BUT NOT THE LEAST TO ME FOR THE GUIDE ITSELF.
Please press the thanxxx button if this post/thread helped you even a bit. Be generous n donate to help me n to praise my hard work.
App modding & editing : Decompile, edit, recompile.
WELCOME TO APP MODIFICATION GUIDE POST-1.
FOR WINDOWS.
WHAT YOU WILL GET HERE :angel::
TUTORIAL TO EASILY DECOMPILE N RECOMPILE APPS.
A SIMPLE EXAMPLE MODIFICATION THROUGH DIFFERENT TOOLS.
LINKS TO VARIOUS GUIDES TO MOD DIFFERENT APPS.
WHAT YOU WONT GET HERE :
PRE MODDED APPS
SPOON FED GUIDE TO MOD EACH AND EVERY APP U LIKE.
TOOL NO. 1: APKTOOL
STEPS:
DOWNLOAD N EXTRACT THE REQUIRED FILES TO : "C/APKTOOL/HERE"
OPEN APKTOOL FOLDER IN LOCAL DISK C : "C/APKTOOL"
COPY PASTE YOUR "framework-res.apk" IN THIS FOLDER. [C/APKTOOL/HERE].
NOTE: SAMSUNG USERS YOU ALSO NEED TO COPY PASTE "twframework-res.apk" HERE.
HTC USERS YOU ALSO NEED TO COPY PASTE "com.htc.resources.apk" HERE.
OPEN CMD WINDOW : CLICK ON START/RUN N TYPE "cmd" WITHOUT QUOTES & PRESS ENTER
TYPE : cd C:\apktool N PRESS ENTER
U WILL SEE A NEW LINE STARTING WITH : "C:\APKTOOL>"
THEN TYPE "apktool if framework-res.apk" WITHOUT QUOTES N PRESS ENTER.
NOTE: SAMSUNG USERS YOU NEED TO DO AN EXTRA STEP. AFTER ABOVE STEP AGAIN TYPE : "apktool if twframework-res.apk" WITHOUT QUOTES N PRESS ENTER.
HTC USERS YOU NEED TO DO AN EXTRA STEP. AFTER ABOVE STEP AGAIN TYPE : "apktool if com.htc.resources.apk" WITHOUT QUOTES N PRESS ENTER.
ABOUT THIS STEP: THESE STEPS INSTALLS YOUR FRAMEWORK DEPENDENCIES SO THAT YOU CAN EASILY DECOMPILE AND RECOMPILE APPS.
MINIMIZE THE CMD WINDOW FOR NOW.
COPY PASTE ANY APP THAT YOU WANT TO EDIT TO THE APKTOOL FOLDER : [C/APKTOOL/YourChoice.apk].
MAXIMIZE THE CMD WINDOW N TYPE : "apktool d YourChoice.apk" WITHOUT QUOTES N PRESS ENTER.
ABOUT THIS STEP: THIS STEP DE-COMPILES YOUR APP FOR YOU TO EDIT IT.
MINIMIZE THE CMD WINDOW AGAIN FOR NOW.
AFTER DOING ALL YOUR MODIFICATIONS MAXIMIZE THE CMD WINDOW N TYPE : "apktool b YourChoice" WITHOUT QUOTES N PRESS ENTER.
NOTE: HERE IN THIS CODE "YourChoice" IS THE NAME OF THE APP THAT YOU DECOMPILED BUT WITHOUT THE EXTENSION ".apk", FOR EXAMPLE IF YOU DECOMPILE SystemUi.apk THEN YOU WILL WRITE : "apktool b SystemUI"
YOU WILL GET A "dist" NAMED FOLDER IN C/APKTOOL/YourChoice/here.
OPEN THAT FOLDER. THERE YOU WOULD FIND YOUR RECOMPILED APK.[C/APKTOOL/YourChoice/dist/YourChoice.apk].
NOW SIGN YOUR MODDED APK BY FOLLOWING THE GUIDE IN THE END OF THIS POST.
IF EVERY THING GOES WELL THEN YOUR APP WILL BE RECOMPILED WITHOUT ANY ERRORS.
IF NOT THEN ASK FOR HELP IN THE CONCERNED THREAD OF THE GUIDE THAT YOU USED FOR MODDING.
TOOL NO. 2: APK MULTI TOOL
STEPS:
DOWNLOAD N EXTRACT APK MULTI TOOL AT : "C/APKMULTITOOL/HERE"
YOU WILL GET THESE FILES AND/OR FOLDERS IN THE FOLDER AFTER EXTRACTING THE DOWNLOADED FILE:
docs
other
themer
.gitattributes
.gitignore
APK-Multi-Tool.log
CHANGELOG
README
Script.bat
Setup.bat
setuplog.log
RUN Setup.bat BY DOUBLE CLICKING ON IT.
TYPE 3 N PRESS ENTER.
ABOUT THIS STEP: THIS STEP SETUPS THE TOOL FOR USE. YOU NEED TO DO IT ONLY ONCE.
MINIMIZE THE WINDOW.
COPY PASTE YOUR "framework-res.apk" IN other FOLDER. [C/APKMULTITOOL/other/HERE].
NOTE: SAMSUNG USERS YOU ALSO NEED TO COPY PASTE "twframework-res.apk" HERE.
HTC USERS YOU ALSO NEED TO COPY PASTE "com.htc.resources.apk" HERE.
MAXIMIZE THE setup.bat WINDOW N TYPE 2 N PRESS ENTER
NOW TYPE THE DESIRED OPTION N PRESS ENTER
ABOUT THIS STEP: THIS STEP INSTALL THE FRAMEWORKS. YOU NEED TO DO IT ONLY ONCE.
YOU CAN NOW CLOSE THIS WINDOW.
YOU HAVE NOW SUCCESSFULLY SET UP WORK ENVIRONMENT FOR APK MODDING THROUGH APK MULTI TOOL.
COPY PASTE THE APP YOU WANT TO MOD TO THE FOLDER NAMED : "place-apk-here-for-modding" [C/APKMULTITOOL/place-apk-here-for-modding/YourChoice.apk]
RUN Script.bat BY DOUBLE CLICKING ON IT.
PRESS ENTER TO GET TO THE MENU.
TYPE 25 N PRESS ENTER.
A NEW MENU APPEARS.
TYPE THE DESIRED OPTION N PRESS ENTER.
ABOUT THIS STEP: THIS STEP LETS YOU CHOOSE THE APP YOU WANT TO EDIT.
TYPE 9 N PRESS ENTER TO DECOMPILE YOUR APK. [YOUR DECOMPILED APP WOULD IS AT "projects" FOLDER.[C/APKMULTITOOL/projects/YourChoice.apk]
MINIMIZE THE WINDOW FOR NOW. DO NOT CLOSE IT.
DO ALL THE MODS YOU LIKE TO N SAVE ALL THE FILES.
MAXIMIZE THE script.bat WINDOW N TYPE 12 N PRESS ENTER.
THEN WHEN ASKED TO SELECT THE WAY TO CREATE THE APK TYPE 2 N PRESS ENTER
NOTE: ALWAYS TYPE 12 TO RECOMPILE THE APK. DO NOT TYPE 11 EVEN IF ITS A SYSTEM APP. THAT MAY GIVE FORCE CLOSE. ONCE YOU ARE FLUENT WILL ALL THESE YOU CAN TRY THAT OPTION. BUT FOR NOW IGNORE IT.
ABOUT THIS STEP: THIS STEP RECOMPILES YOUR MODDED APK.
YOU WILL GET AN UNSIGNED APK IN "place-apk-here-for-modding" FOLDER NAMED "unsignedYourChoice.apk"
RENAME IT TO "YourChoice.apk" [YourChoice = THE ORIGINAL NAME OF THE APK, EXAMPLE SystemUI.apk]
NOW SIGN YOUR MODDED APK BY FOLLOWING THE GUIDE IN THE END OF THIS POST.
A SIMPLE GUIDE ON MODDING AN APP:
No Clock: THIS SMALL GUIDE WILL TEACH YOU TO REMOVE THE CLOCK FROM YOUR STATUS-BAR. ITS ONE OF THE SIMPLEST GUIDE IN THE FORUM.
Decompile systemui.apk with apktool or any other app u like.
Go to C\APKTOOL\SystemUI\res\layout\ and open status_bar.xml with notepad++
Search for this line and remove it:-
Code:
<com.android.systemui.statusbar.Clock android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textSize="16.0sp" android:gravity="center_vertical" android:id="@id/clock" android:paddingRight="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
Now compile back apk file, sign it and push back to system/app.
CONGRATULATIONS...!! YOU HAVE JUST SUCCESSFULLY MODDED YOUR FIRST APP. KEEP IT UP.:good:
IF YOU ARE NOT ABLE TO DO SUCH A SIMPLE MODDING... NOT TO WORRY.:angel: TRY N TRY TILL YOU SUCCEED. NO 1'S PERFECT.
FEEL FREE TO ASK IN THIS THREAD OR ELSE HERE.
SIGNING THE MODDED APP[ONE OF THE MOST IMPORTANT THING][SAME FOR EVERY OPERATING SYSTEM].
OPEN THE ORIGINAL APK THROUGH AN ARCHIVE MANAGER [WINDOWS USERS YOU USE 7zip FOR BEST RESULTS]
DO THE SAME WITH THE MODDED APP
NOTE: DO NOT EXTRACT THE APK. JUST OPEN THROUGH THE MANAGER.
NOW MULTI SELECT Meta-inf FOLDER & Android-manifest.xml IN THE ORIGINAL APK N DRAG N DROP TO THE MODDED APK.
CLOSE BOTH THE WINDOWS.
VIOLA... YOUR APP HAS BEEN SIGNED.
LINKS TO VARIOUS GUIDES AROUND XDA:
[GUIDE] [MODS] Collection of mods for all gingerbread[2.3] phones... GUIDE BY lokeshsaini94
[GUIDES COLLECT] Update 24/7/2012 GUIDE BY zcop
[SIMPLE GUIDE + LOCKRINGS] [ALL ANDROID ROMS] Change lockrings on any rom GUIDE BY daveyannihilation
[GUIDE] ICS Style 'Settings.apk' - Make it yourself !! !! GUIDE BY balamu96m
{UPDATE} (Guides)All Guides At one place By hpsgill {10:03:2013} GUIDE BY Hpsgill
CREDITS
TO THE CREATORS OF VARIOUS TOOLS.
TO Master&Slave™ FOR THE DEMO GUIDE MOD Nlokeshsaini94 for the guide itself.
TO lokeshsaini94 ONCE AGAIN FOR TEACHING ME HOW TO DECOMPILE/RECOMPILE APPS N ALSO HOW TO SIGN THEM BACK.
TO
lokeshsaini94
zcop
daveyannihilation
balamu96m
Hpsgill
FOR ALL THE GUIDES
LAST BUT NOT THE LEAST TO ME FOR THE WHOLE GUIDE.
Please press the thanxxx button if this post/thread helped you even a bit. Be generous n donate to help me n to praise my hard work. ALSO THANK ALL THE PERSONS WHOSE NAMES ARE THERE IN THE CREDITS. CUZ WITOUT THEM THIS GUIDE WOULD HAVE BEEN INCOMPLETE.
App modding & editing : Decompile, edit, recompile Cont...
welcome to app modification guide post-2.
For linux distro/ubuntu.
Cooking A Custom Rom Method 1.
Welcome To The Guide For Cooking Custom Roms Method-1.
THIS GUIDE WILL WORK FOR ANY ANDROID DEVICE, NO MATTER GINGERBREAD, ICS OR JELLY BEAN.
WHOM WILL THIS TUTORIAL HELP?
ABSOLUTE BEGINNERS;
PEOPLE WITH LITTLE OR NO DEVELOPING SKILLS;
PEOPLE WHO WANT TO COOK THEIR OWN ROM N WANT TO TRY FEW BASIC MODS;
THUS, THIS TUTORIAL IS FOR ANYONE & EVERYONE.
PLZ NOTE EACH ONE OF YOU READING THIS POST I ASSUME YOU HAVE ALREADY READ ALL THE PREVIOUS POSTS/GUIDES TO SETUP YOUR COMPUTER/LAPTOP N HAVE DONE SAME ALREADY N THAT YOU ARE NOW READY TO COOK YOUR ROM.
BASIC GO-THROUGH WITH THE TOOLS YOU WILL NEED.
WINDOWS USERS:
JAVA;
CYGWIN;
ANDROID KITCHEN;
NOTEPAD++;
PAINT.NET/GIMP IMAGE MANIPULATION PROGRAM/ADOBE PHOTOSHOP;
7-ZIP.
LINUX DISTRO/UBUNTU USERS:
JAVA;
ANDROID KITCHEN;
ANY TEXT EDITOR;
GIMP IMAGE MANIPULATION PROGRAM;
ANY ARCHIVE MANAGER[RECOMMENDED : p7zip]
THE ACTUAL GUIDE STARTS HERE.
WINDOWS USERS FOLLOW THESE STEPS:
STEP 1. START THE ANDROID KITCHEN
PLZ NOTE:
First our folder structure should look like this:
Code:
cygwin folder/home/your user name/kitchen
Inside the kitchen it should look like this:
OPEN THE CYGWIN TERMINAL FROM THE DESKTOP/START MENU SHORTCUT;
TYPE:
Code:
cd kitchen[PRESS ENTER]
./menu[PRESS ENTER]
TRICK-O-TREAT!!
PICTURE TUTORIAL:
LINUX / UBUNTU USERS FOLLOW THESE STEPS:
STEP 1. START THE ANDROID KITCHEN
PLZ NOTE:
First our folder structure should look like this:
Code:
\home\username\android\kitchen;
Inside the kitchen folder it should look like this:
OPEN TERMINAL PROGRAM;
NAVIGATE TO THE FOLDER WHERE YOU HAVE EXTRACTED THE KITCHEN by TYPING:
cd android
Click to expand...
Click to collapse
NOW TYPE THE FOLLOWING CODE TO GET INTO KITCHEN:
cd kitchen
Click to expand...
Click to collapse
NOW TYPE THE FOLLOWING CODE TO BOOT INTO KITCHEN:
./menu
Click to expand...
Click to collapse
NOTE: GUYS IF U GET ERROR LIKE PERMISSION DENIED THEN FIRST TYPE THE FOLLOWING CODE:
chmod +x menu
Click to expand...
Click to collapse
THEN AGAIN TYPE:
./menu
Click to expand...
Click to collapse
TRICK-O-TREAT!!
PICTURE TUTORIAL
PLZ NOTE FROM THIS POINT EVERY STEP IN THIS POST IS COMMON OR ALMOST SAME FOR BOTH WINDOWS & LINUX / UBUNTU USERS. IF YOU DO NOT UNDERSTAND ANY PART FELL FREE TO POST A COMMENT WITH YOUR PROBLEM. BUT BEFORE THAT DO TRY TO UNDERSTAND WHAT IS BENN ASKED TO DO.
STEP 2. Collecting Required Files And Folders :
Main Files/Folders Required :
META-INF
system
/app
/bin
/etc
/fonts
/framework
/lib
/media
/semc[ONLY FOR XPERIA USERS]
/usr
/xbin
build.prop
boot.img[ITS NOT NECESSARY]
HOW TO GET THESE FILES/FOLDERS?
ANSWER: GUYS YOU WILL NEED A FRESHLY FLASHED/FACTORY RESTED MOBILE PHONE TO GET BEST RESULTS.
A USED MOBILE WILL HAVE A LOT OF JUNK FILES WHICH WE DON'T NEED AT ALL.
NOW IF YOU HAVE ROOTED YOUR MOB THEN SKIP THIS STEP OR ELSE FOLLOW THIS TO ROOT YOUR MOBILE :
GUYS GO TO THIS POST BY ME TO ROOT YOUR SAMSUNG GINGERBREAD MOBILE : ROOTING GUIDE BY MEE =)
OTHER GB/ICS/JB USERS PLZ SEARCH XDA FOR ROOTING YOUR MOBILE PHONE.
NOW USERS YOU NEED CLOCKWORK MOD CUSTOM RECOVERY OF YOUR MOBILE. DOWNLOAD IT FROM XDA N MOVE TO THE ROOT OF UR SD CARD.
WHY DO I NEED THIS? ANSWER : IT WILL HELP YOU TO BACKUP UR CURRENT ROM & AS WELL AS GET THE SYSTEM FOLDER REQUIRED FOR COOKING YOUR CUSTOM ROM. =)
BOOT INTO STOCK RECOVERY WITH THE KEY COMBINATIONS OF YOU MOBILE N THEN SELECT INSTALL ZIP FROM SD CARD N SELECT CWM.ZIP[WATEVER THE NAME U HAVE] TO BOOT INTO CWM RECOVERY. CHOOSE THE OPTION TO BACKUP N RESTORE N DO A BACKUP OF YOUR CURRENT ROM.
CONNECT YOUR MOBILE TO PC WITH USB N COPY PASTE[DO NOT DO CUT PASTE] THE BACKUP FOLDER FROM YOUR MOBILE TO YOUR PC WHEREVER YOU LIKE. OPEN IT N EXTRACT THE SYSTEM.TAR/SYSTEM.ZIP ARCHIVE THERE ITSELF. THIS WILL GIVE YOU ALL THE FILE & FOLDERS THAT ARE REQUIRED TO COOK YOUR ROM.
NOW MINIMIZE THIS WINDOW N OPEN A NEW WINDOW.
THEN GOTO :
Code:
cygwin folder/home/your user name/kitchen
IF YOU USE WINDOWS; Or Else
Code:
\home\username\android\kitchen
IF YOU USE LINUX / UBUNTU.
MAKE A NEW FOLDER HERE AND NAME IT AS : "WORKING_YOURROMNAME"[PLZ NOTE,THE WORD "WORKING" SHUD BE ALL IN CAPITAL LETTERS.] [THIS IS CALLED YOUR WORKING FOLDER.]
MAKE A NEW FOLDER IN YOUR WORKING FOLDER & NAME IT "system"[PLZ NOTE, THE WORD "system" SHUD B ALL IN SMALL LETTERS.
NOW AGAIN MAXIMIZE THE WINDOWS WHERE YOU HAD EXTRACTED THE SYSTEM BACKUP IN PREVIOUS STEPS. OPEN THE EXTRACTED SYSTEM FOLDER & COPY PASTE THESE FILES & FOLDERS FROM THERE TO THE system FOLDER IN WORKING FOLDER:
/app
/bin
/etc
/fonts
/framework
/lib
/media
/semc[ONLY FOR XPERIA USERS]
/usr
/xbin
build.prop
IF YOU HAVE A boot.img OF YOUR MOBILE THEN COPY PASTE IT TO YOUR WORKING FOLDER.[WORKING_YOURROMNAME/boot.img]
STEP 3. COOKING YOUR ROM WITH FEW BASIC FEATURES :
START KITCHEN AS STATED BEFORE AS PER YOUR OPERATING SYSTEM N ENTER OPTION 8. THIS WILL SHOW WHAT FEATURES YOU HAVE IN YOUR ROM & WHAT YOU MAY ADD. IT WILL ALSO SHOW THE NAME OF YOUR ROM. THIS ALSO MAKES THE META-INF FOLDER APPEAR IN YOUR WORKING FOLDER.
THIS COMPLETES ALL YOUR REQUIREMENTS FOR COOKING THE ROM.
PRESS ENTER TO GO BACK TO KITCHEN MENU.
ENTER OPTION 0[ZERO]
ENTER DIFFERENT OPTIONS THERE TO ADD THOSE FEATURES IN YOUR ROM.
ENTER OPTION0[ZERO] AGAIN TO GO BACK TO THE STARTING SCREEN OF KITCHEN.
OPTION 2 & 3 ARE ALMOST COMPULSORY AS A CUSTOM ROM WITHOUT ROOT N BUSY-BOX IS NOT LIKELY TO BE LIKED BY USERS.
ONCE YOU FINISH ADDING FEATURES AGAIN PRESS 8 TO SEE THE STATS OF YOUR ROM. PRESS ENTER TO RETURN BACK N PRESS OPTION 99 TO COOK THE ROM.
HERE ENTER OPTION 1.
GO THROUGH THE ONSCREEN INSTRUCTION N THEN COLLECT YOUR ROM FROM:
Code:
C:\cygwin\home\YOUR USER NAME\kitchen\OUTPUT_ZIP
IF YOU ARE WINDOWS USER; Or Else,
Code:
\home\username\android\kitchen\OUTPUT_ZIP
IF YOU ARE LINUX / UBUNTU USER.
CONGRATS YOU HAVE SUCCESSFULLY COOKED YOUR CUSTOM ROM.=)
Cooking A Custom Rom Method 2.
Welcome To The Guide For Cooking Custom Roms Method-2.
Only For Windows Users.
SAMSUNG DEVICES EXPLAINED AS EASILY AS POSSIBLE.
THIS GUIDE WILL WORK FOR ANY ANDROID DEVICE, NO MATTER GINGERBREAD, ICS OR JELLY BEAN IF YOU HAVE ITS STOCK FIRMWARE.TAR FILE AND YOU KNOW TO EXTRACT THAT.
WHOM WILL THIS TUTORIAL HELP?
ABSOLUTE BEGINNERS;
PEOPLE WITH LITTLE OR NO DEVELOPING SKILLS;
PEOPLE WHO WANT TO COOK THEIR OWN ROM N WANT TO TRY FEW BASIC MODS;
THUS, THIS TUTORIAL IS FOR ANYONE & EVERYONE.
PLZ NOTE EACH ONE OF YOU READING THIS POST I ASSUME YOU HAVE ALREADY READ ALL THE PREVIOUS POSTS/GUIDES TO SETUP YOUR COMPUTER/LAPTOP N HAVE DONE SAME ALREADY N THAT YOU ARE NOW READY TO COOK YOUR ROM.
BASIC GO-THROUGH WITH THE TOOLS YOU WILL NEED.
JAVA;
CYGWIN;
ANDROID KITCHEN;
ODINATRIX;[Only For Samsung Devices]
FLASH TOOLS FOR XPERIA DEVICES;
UNYAFFS TOOLS;
Click to expand...
Click to collapse
SAMSUNG STOCK FIRMWARE.tar.md5 FILE;
Xperia ftf SYSTEM FILE;
NOTEPAD++;
PAINT.NET/GIMP IMAGE MANIPULATION PROGRAM/ADOBE PHOTOSHOP;
7-ZIP.
THE ACTUAL GUIDE STARTS HERE.
SAMSUNG USERS FOLLOW THESE STEPS:
DOWNLOAD ODINATRIX FROM THE FIRST POST;
EXTRACT IT ANYWHERE YOU LIKE[SAY c:/ODINATRIX];
DOWNLOAD THE LATEST STOCK FIRMWARE OF YOUR MOBILE FOR YOUR COUNTRY FROM XDA OR ANYWHERE IN THE INTERNET;
EXTRACT THE DOWNLOADED FILE, YOU WILL GET A SINGLE FILE NAMED XXXX_XXXXX_XXXX_HOME.tar.md5;
MOVE THE ABOVE FILE TO ROOT OF ODINATRIX FOLDER;
THUS THE ROOT OF ODINATRIX FOLDER SHOULD HAVE THESE FILES & FOLDERS:
DOUBLE CLICK ON runme TO OPEN ODINATRIX TOOL;
PRESS ENTER TO START THE SEARCH;
WHEN YOU SEE THAT YOUR FILE HAS BEEN FOUND AGAIN PRESS ENTER TO START THE EXTRACTION PROCESS;
WAIT FOR THE EXTRACTION PROCESS TO FINISH. IT MAY TAKE FEW MINUTES TO FINISH DEPENDING UPON YOUR COMPUTER'S SPEED.[MY LATEST HP LAPTOP TOOK NEAR BOT 10-11 MINUTES TO DO THE JOB.]
WHEN THE EXTRACTION IS FINISHED CLOSE THE CMD WINDOW N OPEN THE output FOLDER;
THERE YOU WILL GET 4-6[YOU MAY EVEN GET ONLY 3] .tar FILES ACCORDING TO YOUR MOBILE;
COPY THE ONE NAMED PDA_XXXX_XXXX_XXXX_HOME.tar & PASTE IT TO THE original_update FOLDER IN ANDROID KITCHEN FOLDER:
Code:
cygwin folder/home/your user name/kitchen/original_update
MINIMIZE THE EXPLORER WINDOW N RUN KITCHEN BY FOLLOWING THE STEPS BELOW.
OPEN THE CYGWIN TERMINAL FROM THE DESKTOP/START MENU SHORTCUT;
TYPE:
Code:
cd kitchen[PRESS ENTER] ./menu[PRESS ENTER]
TRICK-O-TREAT!!
PICTURE TUTORIAL:
AFTER THE KITCHEN STARTS PRESS THE OPTION 1;
NOW IGNORE EVERYTHING WRITTEN & SIMPLY PRESS ENTER;
WHEN YOU SEE YOUR PDA FILE SELECTED PRESS ENTER;
NO NEED TO CHANGE THE NAME OF YOUR WORKING FOLDER. JUST PRESS ENTER TO START THE EXTRACTION PROCESS;
NOW FOLLOW THE ONSCREEN GUIDE IN KITCHEN CAREFULLY TO GET SYSTEM FOLDER & ITS FILES.
AFTER DOING THE ABOVE STEP CORRECTLY YOU WILL AGAIN RETURN TO THE HOME OF KITCHEN IN CYGWIN, NOW ENTER OPTION 8;[THIS WILL SHOW WHAT FEATURES YOU HAVE IN YOUR ROM & WHAT YOU MAY ADD. IT WILL ALSO SHOW THE NAME OF YOUR ROM. THIS ALSO MAKES THE META-INF FOLDER APPEAR IN YOUR WORKING FOLDER]
THIS COMPLETES ALL YOUR REQUIREMENTS FOR COOKING THE ROM.
PRESS ENTER TO GO BACK TO KITCHEN MENU.
ENTER OPTION 0[ZERO]
ENTER DIFFERENT OPTIONS THERE TO ADD THOSE FEATURES IN YOUR ROM.
ENTER OPTION 0[ZERO] AGAIN TO GO BACK TO THE STARTING SCREEN OF KITCHEN.
OPTION 2 & 3 ARE ALMOST COMPULSORY AS A CUSTOM ROM WITHOUT ROOT N BUSY-BOX IS NOT LIKELY TO BE LIKED BY USERS.
ONCE YOU FINISH ADDING FEATURES AGAIN PRESS 8 TO SEE THE STATS OF YOUR ROM. PRESS ENTER TO RETURN BACK N PRESS OPTION 99 TO COOK THE ROM.
HERE ENTER OPTION 1.
GO THROUGH THE ONSCREEN INSTRUCTION N THEN COLLECT YOUR ROM FROM:
Code:
C:\cygwin\home\YOUR USER NAME\kitchen\OUTPUT_ZIP
ROM EDITING : Adding &/Or Removing Files As Per Your Liking
EDIT ROM AS YOU WANT IT - ADD OR REMOVE APPS, CHANGE DEFAULT LAUNCHER, CHANGE DEFAULT WEB BROWSER, CHANGE BOOT ANIMATION & SOUND, ETC[END OF THINKING CAPACITY :silly:].
GO TO /system/app to GET THESE APPS.
APPS THAT YOU CAN REMOVE WITHOUT DISTURBING THE SMOOTH FUNCTIONING OF YOUR ROM:
Calculator.apk
ChatON.apk[May Be Only Samsung Users Will have This app.]
DualClock.apk
Email.apk
EmailWidget.apk
FmRadio.apk
LiveWallpapersPickup.apk
Maps.apk
Memo.apk
PlusOne.apk
PolarisViewer.apk/QuickOffice app
Swype.apk
APPS THAT YOU CAN REPLACE WITH DIFFERENT APPS:
Calculator.apk with any other calculator app
MyFiles.apk/File manager app with any other app that has file manager facility
TouchWizxxLauncher.apk[Only For Samsung Users][Or Any Other launcher Application That Is Present in Your Rom] with custom Launchers.
Browser.apk
Gallery3D.apk/or any other gallery app present in your ROM
Camera.apk
Memo.apk
Mms.apk
Music.apk
FmRadio.apk
CUSTOM APPS THAT YOU CAN USE TO REPLACE STOCK APPS IN YOUR ROM:
For Web Browser: Opera Mini, Uc Browser, TT Browser, ETC.
Custom Launchers: Holo Launcher, Nova Launcher[ICS 4.0+ Mobiles], GO Launcher, ETC.
Sms Applications: Go Sms, Pansi Sms, ETC.
Music apps: Google Play Music, Winamp for Android, ETC.
APPS THAT YOU SHOULD REMOVE SO THAT THE SIZE OF THE ROM REDUCES & YET THE ROM FUNCTIONS PROPERLY:
I AM RECOMMENDING TO REMOVE THESE APPS CUZ USERS CAN EASILY DOWNLOAD THEM FROM GOOGLE PLAY AS PER THEIR NEED.
ChatON.apk
Email.apk
Maps.apk
PlusOne.apk
PolarisViewer.apk/QuickOffice app
Swype.apk
APPS THAT YOU SHOULD NOT DELETE EVEN THOUGH THEY ARE NOT OF MUCH IMPORTANCE:
Gmail.apk
Talk.apk
Phonesky.apk[Google Play App]
Calender.apk
CHANGING THE BOOT ANIMATION & SOUND OF YOUR ROM:
SEARCH AROUND XDA FOR BOOT ANIMATION FILES OF YOUR MOBILE'S SCREEN SIZE.
IT MUST BE NAMED bootanimation.zip, IF NOT THEN MANUALLY RENAME IT.
FOR BOOT SOUND TAKE ANY SMALL TUNE YOU LIKE & CONVERT IT TO .ogg FORMAT.
NOW RENAME YOUR TUNE.ogg TO poweron.ogg[PLZ NOTE YOU MAY NEED TO RENAME IT TO PowerOn.ogg, BUT FIRST TRY THE ALL SMALL LETTERS.]
NOW DOWNLOAD bin.zip FROM ATTACHMENT N EXTRACT IT ANYWHERE YOU LIKE.
NOW OPEN THE EXTRACTED FOLDERS N COPY THE TWO FILES IN IT N PASTE TO THE bin FOLDER IN YOUR ROM[/system/bin].
COPY PASTE YOUR CONVERTED N RENAMED poweron.ogg TO THE ETC FOLDER IN YOUR ROM[/system/etc].
COPY PASTE bootanimation.zip TO THE media FOLDER IN YOUR ROM[/system/media].
NOW FLASH YOUR ROM WITH NEW BOOT ANIMATION & SOUND
Rom editing- ui + features
ROM EDITING- UI + FEATURES
THIS POST WON'T TEACH YOU MUCH BUT WILL LINK YOU TO DIFFERENT GUIDES ACROSS XDA SO THAT U CAN MODIFY UR ROM AS PER YOUR LINKING.
GIVING YOUR ROM A NEW NAME : FOLLOW THIS GUIDE TO ADD EXTRA FIELDS IN SETTINGS MENU TO GIVE YOUR ROM A NEW NAME.
BUILD.PROP TWEAKS TO ENHANCE PERFORMANCE : VISIT THESE : 1 || 2 || 3
MOD THE UI OF YOUR ROM : VISIT THESE : ICS STYLE SETTINGS FOR GB ROM || STATUS BAR MODDING GUIDE FOR DUAL SIM MOBILES || STATUS BAR MODDING GUIDE FOR ALL MOBILES
EDITING BUILD.PROP FOR MINOR CHANGES IN ROM INFO :
EDIT THESE IN RED IN COLOR AS PER YOUR ROM :
Code:
ro.build.id=[COLOR=Red]ICICLE AGE[/COLOR]
ro.build.display.id=[COLOR=Red]LUNUX OS™_GT-S5302[/COLOR]
ro.build.version.release=[COLOR=Red]2.3.7[PRE ICS][/COLOR]
THE SECOND LINE WILL CHANGE THE NAME OF YOUR ROM TO WHATEVER YOU RIGHT THERE.
THE THIRD ONE CHANGES THE ANDROID VERSION YOU HAVE IN YOUR ROM.
CREDITS : TO EVERYONE WHOSE GUIDES HAVE BEEN LINKED THERE.
R8
R8
R9
R9
R10
R11
R12
so many reserved posts
can't wait for the full guide
Re: [WIP][TUTORIAL][GUIDE] A COMPLETE ANDROID DEVELOPMENT GUIDE FOR NEWBIES BY SArnab
CrayzyBoy said:
so many reserved posts
can't wait for the full guide
Click to expand...
Click to collapse
All are not gonna be used now.
Kept for future updates...
**************************
SAMSUNG GALAXY GT-S5302 GENERAL DISCUSSION THREAD.
**************************
Visit the Official Lunux Os Website.
Click here
**************************
tutorial/guide updated.
10-03-2013.
Re: [GUIDE][WIN/LINUX] A COMPLETE ANDROID DEVELOPMENT GUIDE FOR NEWBIES-SArnab©®[UPDA
If any one want any specific guide to come up here in tis to b great tuturial then feel free to post here with your request.
Note: Post here. Do not PM me...
Anyone want his/her guide up here then thats all welcomed.
Sent from my GT-S5302 using Tapatalk 2
DO NOT FORGET TO PRESS THANXXX IF MY POST HELPED YOU.
Greta Stuff!
this is brilliant and has helped me alot i am almost ready to release my rom WOOP WOOP!
Thanks (an yes i clicked the thnx button lol):cyclops:
Re: [GUIDE][WIN/LINUX] A COMPLETE ANDROID DEVELOPMENT GUIDE FOR NEWBIES-SArnab©®[UPDA
Inside 4ndroid said:
this is brilliant and has helped me alot i am almost ready to release my rom WOOP WOOP!
Thanks (an yes i clicked the thnx button lol):cyclops:
Click to expand...
Click to collapse
Am happy that my tutorial helped u.
Will update it sooon...
Jus to infrm u ur thanxxx dsnt shows up...
Hope u thank me again.
Don't be lazy.
Lift your hand n press the Thanxxx Button.=)
Guys updated the build environment setup post #2...
How to install java in linux added.
Don't forget to press thanxxx. =)=)
" 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
How to Add Any App in Anywhere in Settings
This Guide will help you to add any application/options to Settings.apk. Well earlier My friend @sandy7 published a guide on how to add various options in Settings. So this extended guide will provide you the necessary knowledge on how to get resources about any app which needed to be added in Settings to include it as an option.
Requirements:
Any Tool that can Decompile & Recompile with it's requirements
Notepad++
1. How to add options/apps in main/general settings :
To add an app in Settings we need some resources of the app. This resources can be found by decompiling the app which we want to add & look for those in AndroidManifest.xml
Now, to add an app we need this resources to be added:
*android:targetPackage - the unique & original package name of the app
*android:action - the On click event of an app & it finds the activity of the app
*android:targetClass - the class which is called on calling Onclick action which opens the app when it is clicked
*android:title - the entry of the app in header & also in strings.xml
*android:icon - the icon which will be displayed for the app entry
Notes: android:targetClass, android:targetPackage & android:action can be found in AndroidManifest of the app. For some apps android:targetClass is not given directly. So it should be searched to find. I will tell you how to do that. android:title & android:icon can be written as per user.
As I explained a bit about the resources I will now move onto the main guide. I will take an app from playstore named "Rom Toolbox" as example & describe the ongoing process
i. 1st we need to decompile the Rom toolbox app & find the resources in AndroidManifest.xml
as we can see from the picture that I marked the android:targetPackage & android:targetClass. The target package is easy to find. Sometimes target class is also given directly. If it's not given directly like this app we will find it by searching for it in the lines which starts with <activity. Now if there's more than one activity search for the activity that matches with the target package to some extent. & one more thing I should make you clear about. In some apps you will find android:targetClass will just be a one word phrase. Like if we take Serajr's SystemUI Preference as example you will see that android:targetClass is ".SystemUIPreferencesActivity". In those cases we need to add the whole android:targetPackage before targetClass. For Serajr's SystemUI preference the android:targetPackage="com.serajr.systemui.preferences". So the android:targetClass="com.serajr.systemui.preferences.SystemUIPreferencesActivity".
So here for Rom Toolbox app we find
Code:
android:targetPackage="com.jrummy.liberty.toolbox"
android:targetClass="com.jrummy.apps.rom.toolbox.RomToolboxActivity"
android:action="android.intent.action.MAIN"
android:action doesn't always needed to be found, you can always use "android.intent.action.MAIN" as the on click event
ii. Now decompile Settings.xml & go to res\xml & open settings_header.xml with notepad++. Now chose a place where you want to make the entry. If we want to add the app under advanced settings then we need to create a header 1st. We also need to create an android:title & android:icon entry for the app. So this will be the entry in settings_header
Code:
</header>
<header android:title="@string/header_category_advanced" />
<header android:icon="@drawable/ic_settings_rom" android:title="@string/rom_toolbox">
<intent android:targetPackage="com.jrummy.liberty.toolbox" android:action="android.intent.action.MAIN" android:targetClass="com.jrummy.apps.rom.toolbox.RomToolboxActivity" />
The 1st header is for the advanced settings header. We need to make an entry of the same name in strings.xml.
The 2nd header is for the app & icon. We need to write the exact entry as title in strings.xml like I wrote "rom_toolbox". You can write anything as title just make sure it matches the app itself so that you can find it easily. So the settings_header will look like this
Now save it
iii. Now go to res\values & open strings.xml. We need to create two strings here. One for the advanced settings & another for the app. We already chose the string name for header as "header_category_advanced" & "rom_toolbox" for the Rom Toolbox app. So the entries in strings.xml will be
Code:
<string name="header_category_advanced">ADVANCED SETTINGS</string>
<string name="rom_toolbox">ROM Toolbox</string>
You can write anything where I wrote "ADVANCED SETTINGS" & "ROM Toolbox" It depends on you what you would like to see in settings as header.
So the strings.xml should be like this
Now save it.
iv. Now we need to place a png for the app in drawable folder with the name "ic_settings_rom" as it is given in the header of android:icon. Depending on your settings you either should have drawable hdpi or drawable mdpi folder. On my case I have drawable hdpi folder. 1st we need to look at the resolutions of the pngs which starts with ic_settings name. Well generally for drawable hdpi it is 48x48 & for drawable mdpi it is 32x32. So we need to resize the png in any of this resolutions depending on our drawable folder. You can take the png from the original app & resize it. In my case I resized it in 48x48 & placed it in drawable-hdpi folder.
v. Now you are ready to recompile again. Then try your newly modified settings. I will post a screenshot of mine
2. How to add options/apps in sub settings for example in display settings :
Here I will take On-screen-buttons app for an example in the ongoing process. We will add it in display_settings. Now, we need an extra resource called android:key when we want to add any app in sub settings. android:key is the keystore when the app is extracted using any app tool when created by the developer. As we cannot find the original android:key of the app, we will enter a value as android:key & give it's reference in the ids.xml
i. 1st decompile the On screen button app & search for resources in AndroidManifest.xml.
So we find android:targetPackage="cn.kyle.gn.NavBar" & as only one line here starts with <activity it is really easy to find android:targetClass="cn.kyle.gn.NavBar.GnNavBarActivity". android:action="com.android.intent.MAIN" even if it is not written in the manifest.
Now we need to make android:title which can be anything,we just need to refer it into strings.xml, android:key can be anything, we need to refer it in ids.xml & another entry is optional here which is android:summary which is the sub-header of the app. I give you my example what I have written as values of those resources
Code:
android:title="navienable_title"
android:key="on_screen"
android:summary="on_screen_summary"
Now as we fixed every resource & their values we will put the entry in res\xml in display_settings.xml. The entry will look like this
Code:
<PreferenceScreen android:title="@string/navienable_title" android:key="on_screen" android:summary="@string/on_screen_summary">
<intent android:targetPackage="cn.kyle.gn.NavBar" android:action="android.intent.action.MAIN" android:targetClass="cn.kyle.gn.NavBar.GnNavBarActivity" />
</PreferenceScreen>
The display_settings will look like this
Now save it
ii. Now go to res/values & open strings.xml. We need to make two entries here. One for the android:title="@string/navienable_title" & another for the android:summary="@string/on_screen_summary". Now we make the entries
Code:
<string name="navienable_title">On-Screen-Buttons</string>
<string name="on_screen_summary">Enable/Disable On-Screen-Buttons</string>
as I said before you can write anything inside >......</string> it depends on you what text you would like to be seen
The screenshot from strings.xml
Now save it.
iii. Now go to res\values\ids.xml & open it. We need to make an entry for the entry we made in display_settings as android:key. So the entry will be with the same value
Code:
<item type="id" name="on_screen">false</item>
So the ids.xml should be like this
Save it & recompile your edited Settings.apk. Here is a screenshot of the Settings I edited
2. How to add headers in Settings/about to display Developer Name & Rom Name :
i. Decompile Settings.apk & go to res\xml & open device_info_settings.xml. Now choose a place where you want to show your Rom Name & Developer name. The entries you need here are similar with the one's that already exist in the xml. So you can copy one line of entry & press enter then paste it & you can edit it to make the new entries. We need android:title & android:summary which will be shown in strings.xml. We need android:key which you can keep same as android:title to eliminate difficulties, but we don't need an entry in ids.xml this time as it is not an app for which we are making the entry for. Last of all we need a style entry which will be the same as others. So I will write my Rom name & developer name under Kernel_version entry here. The entries will be
Code:
<Preference android:title="@string/rom_header" android:key="rom_header" android:summary="@string/rom_name" style="?android:preferenceInformationStyle" />
<Preference android:title="@string/author_header" android:key="author_header" android:summary="@string/author_name" style="?android:preferenceInformationStyle" />
The device_info_settings.xml will look like this
Now save it.
ii. Now go to res\values\strings.xml to make the entries here. We need two entries for the Rom Name, one is for "@string/rom_header" & another for "@string/rom_name". Same we need for Devloper name, one entry for "@string/author_header" & another for "@string/author_name". So the entries will be
Code:
<string name="rom_header">Rom Name</string>
<string name="rom_name">X Rom</string>
<string name="author_header">Developed By</string>
<string name="author_name">Saqib Nazm</string>
I give my Rom name as "X Rom" for example. You can type anything as you like on rom_name & author_name
The strings.xml should look like this
Now save it & recompile. Enjoy your freshly made new Settings.apk. Here is a screenshot about how it looks
.........................................................................................................................................
At the end I want to say, I will try to explain it more by adding more examples so that you can add anything. Kindly give me credits for my work If it helps you in anyway possible. Like I am gonna give credits to those respective people for whom I could share this guide to you.
Credits:
Neroyoung - for always helping me & clearing my ideas
jerrytan93 - for helping me alot whenever I need him
gagan.u20 - for always saving me if I get stuck somewhere
singh_dd93 - for giving me a clear idea on some resources
sandy7 - who doesn't know his thread from where everyone can learn
A guide how to add OSB for your ROM...!!!
Credits:
1. Attitude.SSJ for the DIY of OSB
2. LoneWanderer for the tut for HDPI devices
3.atticus182 for the beautiful icons of OSB
4. Serajr for the superb system UI mod
5. Tickle Fish for TICKLE MY ANDROID
Click to expand...
Click to collapse
Before we begin ask yourselves a question..!!
1.Do we really need OSB for mdpi devices??
Ans: i feel yes, "PREVENTION IS BETTER THAN CURE" its better we use our touch rather than using the soft keys for such along time and eventually get them busted! :silly:
2. Do we really need to follow this guide to make my own OSB??
Ans: Well it depends on your requirements......
3. will it support ICS, JB and even CM???
Ans: Hell yeah..!! it does work!!! sorry GB users
Click to expand...
Click to collapse
Tools Required:
1.framework-res.apk
2.SystemUI.apk
3.Winrar or 7zip
4.Notepad++
5.Apktool or Apkmanager or Apkmultitool
6.JAVA & JDK already installed in your PC
last but not the least required thing is a fully functioning human brain..!!
STEP1:
Framework Part:
1) Take the framework-res.apk and SystemUI.apk from rom and paste it in "place-apk-here-for-modding" folder in Apktool
2) Decompile the framework-res.apk using
Code:
apktool d framework-res.apk
Click to expand...
Click to collapse
3)Once decompiled you'll obtain a folder "framework-res"
4) Open it ..goto 'res\values' folder...find bools and right click to edit with notepad++ and by using ctrl+f search for
Code:
<bool name="config_showNavigationBar">[COLOR="Red"]false[/COLOR]</bool>
Click to expand...
Click to collapse
5)Rename falseto true...save file.
6) Open 'dimens' file in the same folder res\values and using ctrl+f search for navigation bar height and width and change them to whatever dpi you want and save file
7) Thats it!! compile the framework-res using the code
Code:
apktool b framework-res
Click to expand...
Click to collapse
8)Now you will get the new apk file of framwork-res.apk in the dist folder of framework-res folder if you are using the apktool and for other tools it will be in the respective output folder
9) Now we have to sign the framework-res.apk using any apk signing software or simply use TICKLE MY ANDROID by TICKLE FISH to sign your apk by placing it in the out folder of Tickle my android and sign it by pressing button 15 to sign apk file under theming menu(2)
10)thats it now your rom will have OSB
Note: If you dont want OSB in landscape view also..then type 0.0dip like this... in res\values\dimens
Code:
<dimen name="navigation_bar_height_landscape">0.0dip</dimen>
Click to expand...
Click to collapse
STEP2:
System UI part:
1. using 7zip or winrar OPEN the SystemUI.apk and navigate to res>drawable_mdpi (if drawable_mdpi is not present go to drawable_hdpi) and just drag and drop this folder "drawable_mdpi (or) hdpi"where you are working
2. search for these png files in the folder
Code:
ic_sysbar_back
ic_sysbar_back_ime
ic_sysbar_home
ic_sysbar_menu
ic_sysbar_recent
if they are present thats done if they are not present you'll have to add them into the folder with dimensions of your choice
3. Thats it NOW you have OSB in your ROM
WANT TO ASK ANYTHING???
How do i add them man...??
Well that's very simple go to this page http://forum.xda-developers.com/showthread.php?t=1413582 and download the required OSB styles you want to add to your ROM
but hey this brother who is a Recognized contributor @atticus182 should deserve a THANKS for such beautiful icons
Once downloaded you must re-size the pngs as far as i know for mdpi devices in portrait mode the image should be scaled around width:80px and height:48px (80x48) and in landscape mode width:48px and height:80px (40x80) is recommended
after they are re-sized they should be copy pasted to the folder we dragged and dropped from SystemUI.apk
once they are copy pasted again open SystemUI.apk in 7zip or Winrar and open the res folder and now just drag and drop the folder in which we added the png files and save the compression level to store if asked and now decompile SystemUI.apk and check whether the files which we drag and dropped are present in the res folder and even check for the png files the res>drawable mdpi(or)hdpi folder... if they are present then it is well and good if they arenot present then you have done something wrong post your problem i'll help you out or there are lot of devs here in XDA they'll help
Click to expand...
Click to collapse
STEP3:
CREATING A FLASHABLE ZIP
1) Download Sample.zip but dont extract it..just open the sample provided with winrar...you will see 2 folders META-INF and system.
View attachment 2027370
2) In system there will be two folders framework and app...
Drag the new framework-res.apk to framework folder...
and the SystemUI.apk folder to app..
3) META-INF has info about flashing...goto com..google..android and open update-script file with notepad++...you can edit whatever you want in
ui_print (" ") ...it will be displayed while installing...Save file..
Done your flashable zip is also ready to be flashed using CWM recovery
Feel free to ask questions if you have any coz this tutorila/guide is n-o-o-b friendly :victory: :angel:
P.S add me to your credits if you manage to get OSB working in your rom using this GUIDE/TUT
Dont ever forget to Click :good:button
Aneel said:
Amazing guide awesome..... bro :good: :beer: can we also add our guides here so that we all together can make it a sticky??
One more request bro we'll have this thread but all the comments and requests in Q&A. Forum so that all the questions can be handled there and here everyone can refer....
Sent from my Xperia Z using xda premium
Click to expand...
Click to collapse
yeah sure bro why not. but how will you add your guide here I don't know & I don't get what you meant by the request.hehe
I will copy all my contents from my guides and paste here along with the codes.... so that this thread will become a place where you can possibly find any guide irrespective of android version what say??
Regarding the request what I say is post a disclaimer not to comment here with problems or requests in this thread... I will create a thread in Q&A section specially for this thread so that they can question,comment,request,etc there.....
Sent from my Xperia Z using xda premium
Aneel said:
I will copy all my contents from my guides and paste here along with the codes.... so that this thread will become a place where you can possibly find any guide irrespective of android version what say??
Sent from my Xperia Mini Pro using xda premium
Click to expand...
Click to collapse
yeah sure that would be great. But let's do it tomorrow let's just call it a day. I am tired
@saqib nazm Yeah till then I'll edit this message after you see saying not to comment here since the thread is updating
Sent from my Xperia Z using xda premium
Some more tutorials are coming. I will post one more tutorial on how to add any app into anywhere in settings. Meanwhile my friend @Aneel will post some useful tutorials/guides.
reserved for next guide
this thread is open for comments guys
Thanks Gentle Men , 2 of nice Devs are Here
saqib nazm said:
this thread is open for comments guys
Click to expand...
Click to collapse
Add signing and zipaligning to your guide.
XperienceD said:
Add signing and zipaligning to your guide.
Click to expand...
Click to collapse
yeah sure man thanks for the suggestion. Will add it
saqib nazm said:
yeah sure man thanks for the suggestion. Will add it
Click to expand...
Click to collapse
nicely explained guide :good::good:
sandy7 said:
nicely explained guide :good::good:
Click to expand...
Click to collapse
thanks sandy :highfive:
Guys new & very useful guide about settings has been added in the 2nd post :good:
Both of you guys are just aweeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeesome.
Thanks for these gudies.
Exellent work.
:good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good:
Wow great man, awesome guide.
Sent from my Zelly creamWT19i
Mankotialovely said:
Both of you guys are just aweeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeesome.
Thanks for these gudies.
Exellent work.
:good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good: :good:
Click to expand...
Click to collapse
ChhunkaDavid said:
Wow great man, awesome guide.
Sent from my Zelly creamWT19i
Click to expand...
Click to collapse
Thanks to both of you & please let me know whoever followed my guide if it is understandably good or If I need to make it better
I'm looking for guide how add kill back button, can you make it?
godlesplay said:
I'm looking for guide how add kill back button, can you make it?
Click to expand...
Click to collapse
hmm...that would take a lot of time & lots of work but I can try though. Let's see