[REQ] Apply patch(diff) with resources & Compile - Android Q&A, Help & Troubleshooting

Hello everyone,
I am really have difficulties with this one, I have been trying over and over and I just haven't succeeded yet, so I came looking and hoping for some help around here .
Like the title say, I need to:
1) Apply patch(diff) with resources.
2) Compile.
The files:
Diff
Resources
I really hope there are someone out there who can take a few minutes or so to help me out, because I am stuck at this myself, I really need some help!
Thanks in advance.

Goto the root of your source code folder (e.g. cd ~/android/system)
apply patch by using:
- "patch -p1 < "
after ">" has to be a "blank space" (press spacebar),
- now drop your patch file in to the terminal window, (this will add the path to the patch file),
- run the created command
- place recources files to:
/<root of your source code folder>/system/core/res/res/drawable-hdpi

i think this require the ROM source code and Programming tools or Linux OS to run.
it not like windows got GUI to let you click in 1 buttom.

more datails please ??
i really like to port iy to my devcice
hope someone can help-me
:crying::crying:

Related

Google Android Development

TIME TO MOVE ON
i wil be on xperia section
i am happy that i could help this section
Best Regards, Happy Cookling and Programing!
Hy all
I started this tread because the interest to android is growing
I invite all people with linux knowledge or C programing skills to join
If you know some hardware programing is better
We need
- developpers
- testers
i will not post an guide how to setup the compiler and set variables
if you dont know this stuff please stick to Google Android thread and dont post here stupid questions as IT IS READY / WHEN WILL IT BE READY
WE DO THIS IN OUR SPARE TIME AND WE HAVE FAMILY AND LIFE
So shell we invite the penguin to our phones?
WIKI Page
(Thanks Bikor_gj)
http://wiki.xda-developers.com/index.php?pagename=Niki_Android
GIT Trees
Vogue
http://git.linuxtogo.org/?p=groups/mobile-linux/kernel.git;a=shortlog;h=refs/heads/htc-vogue
MSM
http://git.linuxtogo.org/?p=groups/mobile-linux/kernel.git;a=shortlog;h=refs/heads/htc-msm-2.6.25
Reserved For Messages
Build Instructions for the ones that want to help
- Create working dir:
Code:
mkdir ~/android-kernel
- Go to the dir:
Code:
cd ~/android-kernel
- Clone the Linuxtogo GIT:
Code:
git clone git://git.linuxtogo.org/home/groups/mobile-linux/kernel.git
- Go into newly created dir:
Code:
cd ~/android-kernel/kernel
- Create a new branch, call it htc-msm and link it to the official htc-msm development branch:
Code:
- Descend into the "main" android dir:
Code:
cd ~/android-kernel
- Get toolchain:
Code:
wget http://www.codesourcery.com/gnu_too...-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2
- maybe you need to rename the just downloaded file (because after .tar.bz2 wget has added ?lite=arm). (HINT FOR LINUX-NEWBIES: USE TAB TO COMPLETE KNOWN FILENAMES!! - In this case type: mv arm(TAB) arm(TAB) -> backspace till 'bz2' is the last word)
Code:
mv arm-2008q1-126-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2\?lite\=arm arm-2008q1-126-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2
- unpack the toolchain:
Code:
tar -xjf arm-2008q1-126-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2
- ascend again into the 'kernel' directory:
Code:
cd ~/android-kernel/kernel
- make the kernel:
Code:
git checkout -b htc-vogue origin/htc-vogue
You also have to use
Code:
make vogue_defconfig ARCH=arm
- export path so the newly downloaded toolchain will be used instead of your default compiler (which would compile for your computer instead of your phone):
Code:
export PATH=~/android-kernel/arm-2008q1/bin:$PATH
- make the zImage-file:
Code:
make zImage ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-
Now the zImage file is created inside the directory kernel/arch/arm/boot.
When uploading this to your phone, remember that you only have to replace the zImage after each kernel build - the Linux environment on top of the kernel can just stay the same, so initrd (which is the ramdisk filesystem) can stay the same.
BR
Reserved For Kernel Status
Kernel status
no more power button //thanks biktor_gj
nike mtype added
audio working
call working
data working
sms unknown //due to keyboard and ts
keyboard screwed // somethings not right needs investigation
OnSreenKeyboard working
Touch screwed // SOLVED
when this kernel probelms will be solved i will release the new kernel
I have knowledge of both C and linux so I vollunteer
hi,
i can be a tester... also i have some little linux knowledge...
I have limited knowledge of both c and linux, so I possibly could help.
It seems useful however to setup an SVN or something, so even 'non-registered' developers can write patches and submit them for review. You can set up such an SVN for free at assembla.com, together with a wiki, TRAC and more. They even say you can ask for more storage space and stuff if your project is an open-source project.
If you have such an SVN developers like me can help without making any false promises of some sort.
I hope you know what I mean, it sounded better in my head
i know linux and i can do beta tester. i'm studying engineering too.
i also know linux and a bit of C...i can do testing too.
as you already know, I'm in too for development...
i will try the new kernel asap...
I tried this kernel and indeed, the keypad works on mine!
(touched the TS though, just because you said I wasn't allowed ) It froze, so reboot...
awesome! keys work all good! numbers work and also dpad and enter works!
(by the way: how will you make it possible to enter text? android is coded to enter numbers...
the_fish said:
awesome! keys work all good! numbers work and also dpad and enter works!
(by the way: how will you make it possible to enter text? android is coded to enter numbers...
Click to expand...
Click to collapse
I believe by the end of this year or somewhere in the beginning of 2009 Google is making a system for creating software input methods, which would theoretically allow us to write an application that would reroute direct hardware input. I think. We'll have to see what the future will (or the talented developers here) bring.
man, awesome!!! good job, jerpelea. keys work great!!
graey said:
I believe by the end of this year or somewhere in the beginning of 2009 Google is making a system for creating software input methods, which would theoretically allow us to write an application that would reroute direct hardware input. I think. We'll have to see what the future will (or the talented developers here) bring.
Click to expand...
Click to collapse
ok... the onscreen keyboard would be ok for the time we have to wait
Jerpelea: Why do you want Ubuntu as dev os? I'm using OpenSuSE and am able to build the kernel.
I am thinking (since 2 weeks) to try Ubuntu again (used to use it), but may take while before I get to it...
Boylen said:
Jerpelea: Why do you want Ubuntu as dev os? I'm using OpenSuSE and am able to build the kernel.
I am thinking (since 2 weeks) to try Ubuntu again (used to use it), but may take while before I get to it...
Click to expand...
Click to collapse
I think he is just saying that because it's easier for people to use??
works fine for me on vanilla debian
new kernel works fine screen still too responsive keys work calls work
it works! but after few minutes my nike is auto-turned off :O
garsim said:
it works! but after few minutes my nike is auto-turned off :O
Click to expand...
Click to collapse
i guess we have turn the auto turn off in wm to unlimited or run it on usb plug...

[Tutorial] Building Your First Kernel

Preface
OK a lot of people have been asking about building kernels, so here is my best shot at a tutorial. I want to preface this all by saying I AM NOT A DEVELOPER. I am a hacker and modder at best, I like doing my own thing, fiddling, and learning what I can, but I don't claim to know/understand everything about the process of building a kernel. You guys shouldn't expect my little walk through here plus another person’s source to make you a "developer", all it will prove is that you can copy/paste. Also if you follow this guide, I am not responsible for anything that you may do that results in destruction, death, or other negative side-affects. You really shouldn't be messing with this stuff unless you know what you are doing, or doing a LOT of research along the way.
However please use this guide as a springboard for knowledge, to give you some key terms to google, to turn on those lightbulbs in your head and get those gears churning.
Note: This is not a newbie's guide to Linux. Before you post your question please look at it. If it involves the syntax of the command/what a command does you need to do your own research elsewhere before attempting to continue with this guide.
​Step 1. Build Environment
A. Install Ubuntu 12.04(Not holding your hand here, if you can't do this you shouldn't be messing with kernels)
B. Required packages: git-core, gnupg, flex, bison, gperf, libsdl-dev, libesd0-dev, libwxgtk2.6-dev, build-essential, zip, curl, libncurses5-dev, zlib1g-dev, ia32-libs, lib32z1-dev, lib32ncurses5-dev, gcc-multilib, g++-multilib, and Adb.
C. Open a terminal
D. Type "mkdir android"
E. Type "cd android"
G.Type "mkdir kernel"
The above steps explained:
A. Installing a linux distro. You could really install any Linux distro(Arch = epicness ) however Ubuntu in my eyes is the easy to use and install, and widely supported.
B. Installing needed packages. I believe are these are needed(I'm sure someone will correct if they aren't), these are just the one's I was told I needed the first time I built CyanogenMod. No I can't tell you what every single package does, it is your job to research and figure that out.
C. Ummm...duh?
D-G. Building a directory structure that will help keep us organized. The "mkdir" command creates a directory, and the "cd" command moves you into that directory. You could also combine these steps using the command "mkdir -p android/kernel", however I left it broken apart up there to enforce the typing bit of this. The more you type these commands the more familiar you will become with them.
​Step 2. Your Source
A. Open your Terminal Prompt
B. Type "cd android/kernel"
C. Type "git clone git://github.com/DooMLoRD/android_prebuilt_toolchains.git toolchains"
D. Now comes the tricky part, you need to have some-type of source for your kernel. Check the following two sites for your device as appropriate. Once you have it download it is extracted/cloned into a folder in your kernel directory.
http://www.htcdev.com/
http://opensource.samsung.com/
http://developer.sonymobile.com/wportal/devworld/search-downloads/opensource
http://www.lg.com/global/support/opensource/opensource.jsp
The above steps explained: Ok all we are doing here is grabbing some tool chains and the kernel source.
A. Ok...you got this one!
B. Moving into our working directory
C. Grabbing DooMLoRD's very handy pre-built toolchains. What is a toolchain? Check this out http://en.wikipedia.org/wiki/GNU_toolchain. These toolchains are unstable, and as such they aren't completely endorsed yet. They are the versions I use though, and if you would like to use the stable version(4.5.3 as of 07/06/12) you can find links with Google.
D. I typically put my kernel in a directory like "~/android/kernel/<devicename>_<androidversion>_kernel" but that's just me.​
Step 3. Modifications
This is the part people are curious about, they want to make modifications to the kernel to make it "special". Start all these from the root directory of your kernel source.
Mod 1. Applying a patch
A. Download the patch you wish to apply, in this case this one should work.
B. Save that file as "kernelPatch" in your kernel directory.
C. Open a Terminal
D. Move into the root directory of the kernel you wish to patch.
E. Type "patch -p1 < ../kernelPatch"
The above steps explained:
A. Pretty simple, I mean we need a patch. The patch itself is quite simply a diff between the original kernel source tree and the source tree containing the changes. I'll post a quick tutorial on how to create a patch in the third post. The patch above contains multiple governors to be added to your kernel.
B. Self-explanatory
C. Self-explanatory
D. Self-explanatory
E. Basically we run the patch command on our source using the patch we downloaded previously. The "patch" portion is the binary itself, the "-p1" option allows you to control the number of forward slashes to remove from file paths(You'll need to look at this option more if you are using weird directory structures or applying the patches from a odd location). The "<" operator directs the content of our "../kernelPatch" file into the command.​ Mod 2. Adding a Governor Alone
A. Open "drivers/cpufreq/Kconfig"
B. Add the following lines in appropriate spot amongst the other govenor's
Code:
config CPU_FREQ_DEFAULT_GOV_SMARTASS
bool "smartass"
select CPU_FREQ_GOV_SMARTASS
select CPU_FREQ_GOV_PERFORMANCE
help
Use the CPUFreq governor 'smartass' as default.
Code:
config CPU_FREQ_GOV_SMARTASS
tristate "'smartass' cpufreq governor"
depends on CPU_FREQ
help
smartass' - a "smart" optimized governor!
If in doubt, say N.
C. Open "drivers/cpufreq/Makefile"
D. Add the following line in the appropriate spot.
Code:
obj-$(CONFIG_CPU_FREQ_GOV_SMARTASS) += cpufreq_smartass.o
E. Create a file called "drivers/cpufreq/cpufreq_smartass.c"
F. Put the following code in that file.
http://pastebin.com/f0Bk9kVZ
G. open "include/linux/cpufreq.h"
H. Under the "Cpufreq Default" section add
Code:
#elif defined(CONFIG_CPU_FREQ_DEFAULT_GOV_SMARTASS)
extern struct cpufreq_governor cpufreq_gov_smartass;
#define CPUFREQ_DEFAULT_GOVERNOR (&cpufreq_gov_smartass)
Ok there is a governor added, do the exact same steps for any other one's you would like to add.
The above steps explained:
A. Just opening a file, you guys have this. The Kconfig ties into our "make menuconfig" command later, making our mod a selectable option.
B. Adding the appropriate code for our governor to get it in our .config file. The first chunk would allow us to set our governor as the default one for our kernel, the other allows us to totally remove or add it to the build as we wish.
C-D. This step tells the linker to tie our module in with the rest of the code.
E-F. Creating the actually governor itself, don't skip this step. I would suggest reading through this and trying to understand how it works, it's some pretty awesome stuff.
G-H. Open a file and add the code needed to tie our module into the rest of the source. Without this we would not be able to compile due to the rest of the source not knowing our module exists.​
Step 4. Getting a Config file
Option A. Pulling a config file from a kernel.
A. Hook up a device that is using a kernel similar to one you are using as your base.
B. Open a terminal
C. Change to your root kernel directory
D. Type "adb pull /proc/config.gz"
E. Type "gunzip config.gz"
F. Type "mv config arch/arm/configs/<your_config_name>_defconfig"
The above steps explained:
A. This will allow us to pull a base configuration file from a known working kernel. It makes it a lot easier to start out and let's us take baby steps through the whole process. As a note though not all kernel's support this, so you may have to try a few different one's to get it working. If that doesn't work, see option B.
B. Hehe, you are getting good at this step
C. Navigate to the uppermost directory of your kernel source.
D. Use adb to pull a copy of a working config file to use as your source.
E. Unzipping the config file.
F. Moving the configuration file you pulled to the config directory so we can reference it later. ​Option B. Using the manufacturers config.
Unfortunately as stated above, not all kernels support the "/proc/config.gz" method. You can typically find a manufacturer's configuration file in "arch/arm/configs". I believe the one for my HTC Flyer was called "flyer_hc_defconfig", so look for a layout similar to that one. Also read the README to get a better idea of how to modify it. I would personally make a copy of it called "<your_config_name>_defconfig" and use that as my base.​Step 5. Building
Time to start the real "build" section of this tutorial.
Part A. Pre-build Steps
A. Open terminal and change to the root of your kernel directory
B. Type "export ARCH=arm"
C. Type "export CROSS_COMPILE=~/android/kernel/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-"
Part B. The First Build
A. Type "make <your_config_name>_defconfig"
B. Type "make menuconfig" and make the required changes to use any modules you added or similar changes.
C. Type "make -j<maximum number of jobs>"
Part C. Re-Builds
A. Type "make clean"
B. Type "make oldconfig"
C. Type "make -j<maximum number of jobs>"
Part D. Building Modules
You have two options:
A. Type "make modules"
B. Type "make path/to/your/module.ko"​
The above steps explained:Part A.(These steps are required every time you close your terminal and re-open it to build again.)
A. Ok shouldn’t need to explain this.
B. This command sets your target architecture.
C. Defines the path to the toolchain we are going to use to compile our kernel. You can change this to point towards whatever toolchain you have downloaded or feel like using, the way it is currently configured it will use the Linaro toolchain that we downloaded above.
Part B.(These only need to be run the first time you build a kernel.)
A. Load's your configuration file from earlier.
B. Open up a menu to configure your kernel. It will use the config file you loaded in the previous step as a base.
C. Viola start the build. I typically allow 1 job per core, so on my quad core machine I put "make -j4". Just raising that number will not make your build faster, your processor needs to be able to support the number of jobs you are assigning it.
Part C. (Use the command's when you are building any-time outside of the first)
A. This command gets rid of any old/outdated binaries or modules you compiled before, and let's start fresh. I like to run it every I build unless my changes are really small and localized.
B. A very awesome command, it parses through what has changed and only prompts you about new options.
C. See the explanation for the above "Part C.".
Part D.(Use these for just building kernel modules.)
A. This will re-build all modules.
B. Will rebuild just the module you need. Very useful when you need to rebuild a WiFi module.​
Step 6. Now what
Ok we have now started our build and we are waiting for it to finish, so there are two possible outcomes:
Outcome A. Build Succeds
W00t!! You have a kernel built by your self from source. There are a couple things you need in-order to use this kernel on your device any ".ko" modules and the zImage binary. If you pay attention to the output of your compiler then you will see the location of those objects. However the following commands will make your life a bit easier(Thanks Recognized Developer Hacre):
A. Open a terminal
B. Change to your root kernel directory
C. Type "mkdir ../<your_kernel>_output"
D. Type "cp arch/arm/boot/zImage ../<your_kernel>_output/zImage"
E. Type "find . -name "*.ko" -exec cp {} ../<your_kernel>_output \;"
The above steps explained:
A-C. Self-Explanatory
D. Move our kernel binary into our output folder
E. This handy bit of magic finds all ".ko" modules and also copies them into your output file.
You will also need to assemble a kernel image containing a initramfs for your device, along with the kernel binary and such. That however is beyond the scope of this tutorial. To get started though try searching the following phrases.
Code:
building android kernel image
xda build kernel image
xda unpack boot.img
Outcome B. Build Fails
Oh dear. It failed. Well guess what...this is going to happen..a LOT. Get used to it, and get used to googling and experimenting with different solutions. The following are some tips that will help you with debugging your issues.
Running a "Clean" build
A. Backup your config file(Type "cp .config ../backupConfig")
B. Re-run the build process using just your defconfig from earlier.
Limiting Output(Thanks Hacre.)
A. Another good tip is to run "make -j1" to get the error, as it will limit the amount of text you need to scroll through.​Credits
Hacre-Feedback
cdesai-Feedback
Leedroid-Being willing to answer a noob's question's
Doomlord- Having such handy Git repo's ​
Enjoy. That's all it takes to build a kernel, it's actually rather simple. I will try to answer what questions I can in this thread, and continue to add to it.
Please Read. The GPL is VERY important.
The Rules as they apply on XDA
As XDA has no legal power to uphold the GPL (and frankly we want to stay as far away from doing so as possible), we can’t force any of our users to abide by the GPL. However it is in XDA’s interests as well as the interests of our developer-base to ensure all GPL-derived materials hosted or linked on XDA comply fully with the GPL.
GPL-derived materials that do not come with the complete sources used to compile the GPL components are considered warez, and will be treated as such under forum rule 6 and 9.
If you use GPL components, but do not make any modifications to them whatsoever, you should provide a link to the original source of your GPL code.
Sources accompanying a release should be complete, and contain all the necessary source code for any modules, scripts or definition files. Complete sources will be defined as those which compile correctly and completely against the platform for which the software is distributed, and which contain any and all modifications made to the released General Public Licenced code. The source code supplied should be the exact version for which the source code is being requested, complete with all modifications.
EXAMPLE: Here’s a bit of code that could be used as a template to post your releases
<Kernel Or Author Name> <Kernel Nr>:
<Source>|<ReadMe>|<Credits>|<Other>
The Very Quick Summary of General Public License (GPL)
The text of the GPL Licence itself will be used to reach any final conclusion regarding any disputes over GPL Licenced materials. The above is a summary of what XDA expects of members using GPL code, and the complete text can be read at the GNU website.
The GPL states that anyone who modifies GPL licenced code is required to make available the sources used to compile it. This is to further improve and encourage collaborative work, as well as to ensure that the best code possible is produced, and to encourage peer-review of all work. This benefits both developers and end users in numerous ways, including:
Allowing anyone to verify the code they are trusting with their data, and its authenticity
Encouraging community collaboration to produce faster fixes and updates, and better code
Helping bring new developments from other devices and fields to your own, letting you benefit from new code that wouldn’t have been available without this sharing.
The GPL imparts great freedom for GPL end users. It ensures innovation is never stifled and no project is dependent upon any single developer.
It is in everyone’s interest for the GPL to be adhered to, as it gives us all better ROMs, better transparency, and a better atmosphere for developers to work together to make great code.
Click to expand...
Click to collapse
Grabbing this on the off chance that this thread takes off.
Tutorial coming on how to make a patch when I have time.(Hopefully later tonight.)
Would you mind if I use this tut to automate Build Kernel in the future for use in my tool StudioAndroid?
Credits will be given!
Sent from my Galaxy Nexus using Tapatalk 2
Go for it, let me know if you have any problems with it.
Sent from my SCH-R760 using Tapatalk 2
Would there be any interest in a tutorial on common Linux CLI tools?
thewadegeek said:
Would there be any interest in a tutorial on common Linux CLI tools?
Click to expand...
Click to collapse
Like what/
Sent from my Galaxy Nexus using Tapatalk 2
Oh find, grep, and sed are all one's I use on a regular basis, we could add a quick walk through on repo/git, maybe vi. And come to think of it talking about shell scripting would probably help out as well, it's pretty commonly used for tweaking around here.
thewadegeek said:
Oh find, grep, and sed are all one's I use on a regular basis, we could add a quick walk through on repo/git, maybe vi. And come to think of it talking about shell scripting would probably help out as well, it's pretty commonly used for tweaking around here.
Click to expand...
Click to collapse
A while ago I wanted to add a BASH guide. I think that it will be greatly appreciated if you create a guide for it.
If you need any help, just PM me
Remember to post 8 "reserved" posts if you create a guide for feature expanding
Sent from my Galaxy Nexus using Tapatalk 2
Hmm I'll start rolling with that then. And as to the 8 posts, I prefer to keep them separated by topic so that I can assume the questions in each thread can pertain to the topic at hand.
definatly want to do this!
one question though how can i get source from lets say FXP's github? i keep getting stuck there
like what directory do i need? staright to the kernel file the have or what/? if thats a yes what directory is it?
this is the git hub https://github.com/freexperia
ur help would be greatly appreciated
Well what type of device do you have? He has multiple kernels there so we need to make sure we grab the right one.
sorry it was arc or "anzu"
it is cm9 kernel im looking to make
or i could use the one from cyanogen mod if thats easier since it has the RC1 kernel
Either would work, just make sure it's for your device. Do you have a ready link to the CM9 one?
thewadegeek said:
Either would work, just make sure it's for your device. Do you have a ready link to the CM9 one?
Click to expand...
Click to collapse
i cant tell which it is cause none of them have arc or anzu in them so i dont know which its for
https://github.com/freexperia/semc-kernel-msm7x30-ics.git maybe
idk cause the have all sony devices on this github..... is it just a couple of files that wil be replaced that are device specific?
Ok...I do not see a kernel in there with Qualcomm MSM8255 support. Is this http://www.gsmarena.com/sony_ericsson_xperia_arc-3619.php your phone?
thewadegeek said:
Ok...I do not see a kernel in there with Qualcomm MSM8255 support. Is this http://www.gsmarena.com/sony_ericsson_xperia_arc-3619.php your phone?
Click to expand...
Click to collapse
yes but its ok i got everything workin i just dont understand step 3 part c....
Open that file, and then add that line. However I'm guessing this kernel has all the Govenor's you'll need for this. Also pay attention to the bit about the GPL, and make sure you ask the original creator's permission.
thewadegeek said:
Open that file, and then add that line. However I'm guessing this kernel has all the Govenor's you'll need for this. Also pay attention to the bit about the GPL, and make sure you ask the original creator's permission.
Click to expand...
Click to collapse
oh sorry i meamnt the next part 3 (seems u have 2) about im talking about getting config file part C
Ah good catch, updated. Ok so you know you created a "android/kernel" folder? In your terminal type "cd ~/android/kernel" and press enter. Then type "ls" and press enter again. Tell me what it says.

Open CM10.1 Source in Eclipse

Hello peeps,
I can't build CM10.1 (maguro) in Eclipse, I got an error from packages/apps/apollo/src/com.andew.utils/RefreshableFragment.java. It's about Fragment class.
Here is the error :
The type android.view.View$OnCreateContextMenuListener cannot be resolved. It is indirectly referenced from required .class files.
And naturally project can't be built :
The project was not built since its build path is incomplete. Cannot find the class file for android.view.View$OnCreateContextMenuListener. Fix the build path then try building this project
However, I can build in command line via brunch, mm, mmm, etc.
I have to fix these issues, because anytime I add something in a string.xml file, R.java is not updated as the project can't be built.
u will have to add all the missing .jar files... else you have an option to just build an app after you compiled the whole rom with
Code:
mmm "project"
command
frapeti said:
u will have to add all the missing .jar files... else you have an option to just build an app after you compiled the whole rom with
Code:
mmm "project"
command
Click to expand...
Click to collapse
Thanks for your answer. Well yes I currently use mm or mmm commands to rebuild the package I am working on.
I wanted to know if there was a more comfortable option. Adding all the jar files is the way to go as you said.
I'll see if I can deal with that, otherwise I'll stay with mm and mmm command lines.

[PATCH CENTRAL] The How-To and Help Thread for kernel patches

Hi guys, a couple days ago, i spent hours sifting through pages of google searches to find the EASIEST stuff about kernel patches. This guide will be updated slowly, be patient! I welcome the help and input from the community, please feel free to pm me (to make sure i get the message ). Let me start off by saying that I will not be able to fix all the problems that you get from patching, but i have no doubt that someone in this awesome community can. So enjoy!
Patching your linux kernel!
Alright guys, i am gonna cover INCREMENTAL patches, these are fairly easy and won't take much of your time. If you plan on doing a more major update, i.e. 2.x --> 3.x, i suggest you go elsewhere because this guide WILL NOT help you.
Another important note, all 3.x updates are incrimental, you cannot skip a patch. Meaning, if i want to patch a 3.0.58 kernel to 3.0.60, i have to patch .58->.59 and then .59->.60. That took me a while to figure out which is why i brought it up early .
LETS GET STARTED!
First, get a nice kernel, one that you know compiles correctly and works, for the most part. Check the makefile, it should be in the root of the directory. Open up the makefile, in my kernel, i see this:
Code:
VERSION = 3
PATCHLEVEL = 0
SUBLEVEL = 63
Ok, it looks like we have a kernel source that's on 3.0.63. Awesome, this should be simple enough. We need 2 patches, one to go up to .64 and the next to .65.
Go HERE and download the .bz2 of what you need. In this case, i am going to download patch-3.0.63-64.bz2 and patch-3.0.64-65.bz2. You'll need to "save link as" to download the files or you can you the lftp command in terminal if you know how to use that. Anyway.
Here is where the terminal fun starts, lets unpack those files so we have the patches. CD into wherever you downloaded the files and run
Code:
bzip2 -dv insertpatchname.bz2
Obviously, you change insertpatchname to your file name. You run that for as many patches you need to do.
Good, now we have the patches. Linux loves us and made it really simple to apply those patches. All you have to do is
Code:
patch -p1 > ~/path/to/the/patch
If you did it right, give you a wall of text telling you that its patching files. NICELY DONE. If you want to confirm that the patch was sucessful, go back to you makefile, you should see that your sublevel is higher. For each additional patch, just repeat the last two steps!
As always, i can't guarantee that these patches won't break compatibility but thats when the fun starts, right?
Wow, nice, you just patched your very own kernel! In the next post, we'll learn how to do the same thing, but instead, we'll cherry-pick those commits from github. PM and Post for any comments, questions, blah, blah. As always, donations are not required but they'll be paying for a new processor to replace my 1.6ghz single core crap. Thanks are appreciated!
Reserved for Github Stuff
I want this one!
Nice, just what I was looking for! Tnx
wantowan2 said:
Nice, just what I was looking for! Tnx
Click to expand...
Click to collapse
No problem, i am happy it was helpful!
Ques:
Say I put the patch in the top of the kernel dir and I cd to the kernel dir, should this work?
Code:
patch -p1 > ~/patch-3.0.49-50
That will work as long as the patch is in ~/

[GUIDE][WIN/LINUX] A COMPLETE ANDROID DEVELOPMENT GUIDE FOR NEWBIES-SArnab©®

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. =)=)

Categories

Resources