New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
blueowl0708
Old
#11  
Senior Member
Thanks Meter 23
Posts: 100
Join Date: Nov 2010
Quote:
Originally Posted by championswimmer View Post
maybe yes with systemui
@everyone
i won't shoot if you ask dumb questions.

you can ask dumb questions if you wish to.

that's the way we learn

Sent from my X10S using xda premium
Excellent! In which case, can you answer this question?

http://forum.xda-developers.com/show....php?t=1574805
 
championswimmer
Old
#12  
championswimmer's Avatar
Senior Member - OP
Thanks Meter 6576
Posts: 4,593
Join Date: Oct 2011
Location: Delhi College of Engineering (Delhi Technological University)
Quote:
Originally Posted by blueowl0708 View Post
Excellent! In which case, can you answer this question?

http://forum.xda-developers.com/show....php?t=1574805
decompile settings.apk and go through the xml files you get and play around with them a little....

Sent from my X10S using xda premium
If you like my work, you can donate via PayPal or buy some of my apps on Play Store

CONTRIBUTIONS :
KangXperiaProject | TWRP for Xperia | Xperia X10 | Kernel Kitchen

KXP ROM mirrors : Ul.to |or| Goo.IM

My sources on github
List of donators

Phones
Xperia :: tipo : X10 : J : S : V : Z : TabZ
The Following User Says Thank You to championswimmer For This Useful Post: [ Click to Expand ]
 
baz@gmx.co.uk
Old
#13  
baz@gmx.co.uk's Avatar
Senior Member
Thanks Meter 124
Posts: 625
Join Date: Dec 2010
this one
 
championswimmer
Old
#14  
championswimmer's Avatar
Senior Member - OP
Thanks Meter 6576
Posts: 4,593
Join Date: Oct 2011
Location: Delhi College of Engineering (Delhi Technological University)
Ok, so lets get to our stuff fast

Her we begin with some info about how a ROM works

when cooking/porting roms, you are concerned with only a few folders

download any randon ROM zip and unzip it and see what it contains

1. /system/app -> this folder contains all apk files of apps

2. /system/framework -> this folder contains lots of .jar files that defines how the base operating system will run and function

3. /system/lib -> lots of .so files that are like drivers (yep .dll files in windows), these specify how the software communicates with various hardware components

4. /system/etc -> very dangerous folder contains lots of important configurations

5. /system/etc/permissions -> these contain lots of xml files that are required to define how the .jar files in framwork folder will work

Quote:
ok so i'll elaborate point 2 and 5 a little more taking example of the panorama beta app by SE. it requires the com.sonyericsson.android.seee.jar file in framework folder to work but if you just keep the jar file, it'll not work. you need to sort out its permissions too and for that you need to put com.sonyericsson.android.seee.xml file in permissions folder
Quote:
also the etc folder contains two some files called
gps.conf (which defines which gps server the device will use)
hosts (this defines which websites will be blocked .... yes that is your adblocker file )
apns.xml (which defines your apn configuration)

screwing up these files can cause you internet/gps/data traffic problems. also intelligent editing of these fils can give you better gps/data too
If you like my work, you can donate via PayPal or buy some of my apps on Play Store

CONTRIBUTIONS :
KangXperiaProject | TWRP for Xperia | Xperia X10 | Kernel Kitchen

KXP ROM mirrors : Ul.to |or| Goo.IM

My sources on github
List of donators

Phones
Xperia :: tipo : X10 : J : S : V : Z : TabZ
The Following 4 Users Say Thank You to championswimmer For This Useful Post: [ Click to Expand ]
 
mluex
Old
#15  
mluex's Avatar
Junior Member
Thanks Meter 3
Posts: 14
Join Date: Jan 2012
hey champ!

First I'd like to thank you very much for this nice guide and for your kernel. With latter u saved my ass. Was on Doom's with FeraLab and phone reboots sometimes Now it's flying!!!

But I'm fan of good design. And please don't hit me, but I'd like to change the boot-logo of your kernel is there any way? Or do u have any nice guide to change logo? (:

Would be awesome!!!
Device: Galaxy Note II [N7100]
 
NuriJ
Old
#16  
Recognized Themer
Thanks Meter 656
Posts: 991
Join Date: Nov 2011
Default Question

Hi champ,

Does THIS also work for X10?
LT25i | Xperia™ V LTE
..
 
championswimmer
Old
#17  
championswimmer's Avatar
Senior Member - OP
Thanks Meter 6576
Posts: 4,593
Join Date: Oct 2011
Location: Delhi College of Engineering (Delhi Technological University)
Quote:
Originally Posted by LzVebz View Post
Hi champ,

Does THIS also work for X10?
not precisely.

for the perfect repacking script, see www.github.com/championswimmer/kCernel-goro


inside build-bootimg folder
Sent from my X10S using xda premium
If you like my work, you can donate via PayPal or buy some of my apps on Play Store

CONTRIBUTIONS :
KangXperiaProject | TWRP for Xperia | Xperia X10 | Kernel Kitchen

KXP ROM mirrors : Ul.to |or| Goo.IM

My sources on github
List of donators

Phones
Xperia :: tipo : X10 : J : S : V : Z : TabZ
The Following User Says Thank You to championswimmer For This Useful Post: [ Click to Expand ]
 
NuriJ
Old
#18  
Recognized Themer
Thanks Meter 656
Posts: 991
Join Date: Nov 2011
Quote:
Originally Posted by championswimmer View Post
not precisely.

for the perfect repacking script, see www.github.com/championswimmer/kCernel-goro


inside build-bootimg folder
Sent from my X10S using xda premium
Thanks!

I've one question left I think

I'm currently on Windows 7 ultimate, and I have 1 TB left on drive D (which is empty) My question is.. Is there a way to Dual-boot Windows & ubuntu without wubi?

Thank u very much again
LT25i | Xperia™ V LTE
..
 
championswimmer
Old
(Last edited by championswimmer; 15th April 2012 at 07:15 PM.)
#19  
championswimmer's Avatar
Senior Member - OP
Thanks Meter 6576
Posts: 4,593
Join Date: Oct 2011
Location: Delhi College of Engineering (Delhi Technological University)
Default Compiling kernel

So letme tell you how a kernel for x10 can be compiled

1. install ubuntu (through wubi or in vmware will also do) but i prefer on a separate partition.

2. Install the following packages
git-core gnupg sun-java6-jdk flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev

here's how you go about doing it

Code:
sudo apt-get install git-core gnupg flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev
sun-java6-sdk is no more officially available through ubuntu repositories
so you will need a workaround.... so here are some helpful articles
http://www.gaggl.com/2011/10/install...-ubuntu-11-10/
http://superuser.com/questions/35398...u-11-10-oneric
http://softwareinabottle.wordpress.c...-ubuntu-11-10/
In case you are on a 64-bit version of ubuntu, (btw i strongly recommend using a 32 bit version for android development as you'll face various problems with 64-bit at various stages) you'll need these packages too

ia32-libs lib32z1-dev lib32ncurses5-dev gcc-multilib g++-multilib
3. Next you'll need a cross-compiler.
 
a cross compiler is used to compile for a different architecture than from the one you are currently working on. in this case you are either on a i686 or amd64 pc while the kernel you are compiling is for an ARMv7 processor.


for ubuntu, getting the Linaro GCC cross compiler for arm is getting as easy as
Code:
sudo apt-get install gcc-arm-linux-gnueabi
4. Now you are pretty much set up to compile kernels. Next we need sources.
So let me link you up to the most common available ones

5. So the source you have downloaded will be either a tar or zip archive. Using archiver, extract it into a directory of your liking.

6. Open terminal and 'cd' into the kernel directory. The kernel directory is the one which contains the folders arch, block, crypto, firmware, drivers .....
for compiling kernel you need to be in the root of this direcrory.

7. So here are a few codes that will get your kernel compiled

To clean source directory : -
Code:
ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- make clean
ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- make distclean
To get default configuration
Code:
ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- make semc_es209ra_defconfig
 
if you are compiling FXP kernel then instead of semc_es209ra_defconfig you need to write fxp_es209ra_defconfig , and likewise for DoomKernel you need to use doom_x10_defconfig

To configure the kernel
Code:
ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- make menuconfig
 
inside general setup you can name your kernel
and inside power management setup you can setup which CPU governors will be present and which will be default
do not mess to much with the driver setups or with "kernel hacking" area....
do not touch things that you have no idea about

Finally... to compile the kernel
Code:
ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- make
If all goes well, you'll get this message
Kernel: arch/arm/boot/Image is ready
Kernel: arch/arm/boot/zImage is ready


If you get stuck in between, nothing to fret about. Just post here what problem you faced, amd me or some other helpful soul will help you out

8. I know you are thinking "whew!! are we done??"... ha ha ha!! no buddy!! not yet... much more work to do.
Firstly from you kernel directory go to arch/arm/boot (using a file explorer, not a terminal) and inside you'll find a 2~3 MB sized file called zImage. Copy that file into a separate folder where you'll stach all your finished works.

9. Now we need to compile the wifi modules.

Quote:
It is imperative to note here that wifi modules should be compiled immediately after kernel has been compiled. DO NOT run "make clean" or "make distclean" commands in the kernel folder before wifi modules have been compiled
 
For compiling wifi, you'll need the "vendor" folder (which is there in official sony kernel sources but not present in Doom's or FXP's repo). So if you need just the vendor folder, you'll HAVE TO download the official kernel sources too.


in terminal 'cd' to vendor/atheros/wlan/host/ folder
edit the localmake.linux.inc file using a text editor
Code:
sudo gedit localmake.linux.inc
edit the line ATH_CROSS_COMPILE_TYPE := arm-eabi- to ATH_CROSS_COMPILE_TYPE := arm-linux-gnueabi-

also in the line
# ATH_LINUXPATH := < kernel source path >
remove the # (uncomment it) and insert the appropriate kernel source path (the folder that contains arch, crypto, firmware, drivers etc folders.

now to compile wifi modules, run this code
Code:
ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- KERNEL_DIR=/path/to/kernel make
of course, in place of "/path/to/kernel" type the actual path to kernel on your pc

this will get your wifi module compiled


go to the folder
vendor/atheros/wlan/host/.output/QUALCOMM_ARM_NATIVEMMC_BSP_REV=3240-SDIO/image/
and you'll find a file ar6000.ko
transfer that file to the place where you kept your zImage safely earlier.


10. PHew!! done?? ha ha .. no dude.. still not...more work left

now to pack things up, you'll need a ramdisk.
so lets steal a ramdisk from a already working kernel (for stock kernel take stock ramdisk, for cm7/cm9 take respective ramdisk)

take any kernel and unpack it using instructions given here
the file ending with xyz.cpio.gz is the ramdisk. rename the file into "ramdisk" (without any extension) and put this file into the folder where you kept your zImage and wifi module.

Now transfer all these three files into a folder which is accessible from your Windows partition (oops... yeah... without windows you cannot finish this job)

Rest of the steps that follow are to be done on Windows (i have not tried on WINE)


rename zImage to "image"
now using this tool (courtesy DoomLord) pack your ramdisk and image into a flashable .ftf file

also make a copy of the file ar6000.ko and name it wifi.ko
both these ar6000.ko and wifi.ko files are supposed to be in the folder /system/lib/module of your mobile (please create appropriate flashable zip for the same)

================================================== ================================================== ===========
If you found this Guide helpful, please remember to press the thanks button ;P
================================================== ================================================== ============
If you like my work, you can donate via PayPal or buy some of my apps on Play Store

CONTRIBUTIONS :
KangXperiaProject | TWRP for Xperia | Xperia X10 | Kernel Kitchen

KXP ROM mirrors : Ul.to |or| Goo.IM

My sources on github
List of donators

Phones
Xperia :: tipo : X10 : J : S : V : Z : TabZ
The Following 12 Users Say Thank You to championswimmer For This Useful Post: [ Click to Expand ]
 
championswimmer
Old
#20  
championswimmer's Avatar
Senior Member - OP
Thanks Meter 6576
Posts: 4,593
Join Date: Oct 2011
Location: Delhi College of Engineering (Delhi Technological University)
Quote:
Originally Posted by LzVebz View Post
Thanks!

I've one question left I think

I'm currently on Windows 7 ultimate, and I have 1 TB left on drive D (which is empty) My question is.. Is there a way to Dual-boot Windows & ubuntu without wubi?

Thank u very much again
send me a screenshot of you disk manager (start->computer management -> disk management)

then i'll tell you how you can set it up easily
If you like my work, you can donate via PayPal or buy some of my apps on Play Store

CONTRIBUTIONS :
KangXperiaProject | TWRP for Xperia | Xperia X10 | Kernel Kitchen

KXP ROM mirrors : Ul.to |or| Goo.IM

My sources on github
List of donators

Phones
Xperia :: tipo : X10 : J : S : V : Z : TabZ

The Following User Says Thank You to championswimmer For This Useful Post: [ Click to Expand ]