I wish to become a developer for our O1's!

gymfreak7855

Senior Member
Nov 30, 2011
321
167
0
Palmerston North
Hi guys, I would like to ask you what IDE's and other software I need to make and modify android roms. I am particularly looking at helping with ICS production. I know java and some C++ if this helps, I am unsure of what to use whether that be eclipse or some other IDE/SDk. Also there are a few file types I am unfamiliar with and want to know how to edit those such as .so's and other files. Thanks P500 community you guys are awesome :DD
 

alobo

Senior Member
Mar 20, 2012
163
217
0
Waterloo
www.oadigital.ca
If you haven't already, I'd highly reccomend setting up a build environment and trying to sync the cm repos. Once you have the code, you can play around and see what you need from there, in terms of an IDE.

Sent from my LG-P500 using XDA
 

aspee

Senior Member
Aug 7, 2011
806
1,057
0
25
mumbai
www.aspeeration.tk
Hi guys, I would like to ask you what IDE's and other software I need to make and modify android roms. I am particularly looking at helping with ICS production. I know java and some C++ if this helps, I am unsure of what to use whether that be eclipse or some other IDE/SDk. Also there are a few file types I am unfamiliar with and want to know how to edit those such as .so's and other files. Thanks P500 community you guys are awesome :DD
Hi guys, I would like to ask you what IDE's and other software I need to make and modify android roms. I am particularly looking at helping with ICS production. I know java and some C++ if this helps, I am unsure of what to use whether that be eclipse or some other IDE/SDk. Also there are a few file types I am unfamiliar with and want to know how to edit those such as .so's and other files. Thanks P500 community you guys are awesome :DD
Read some android books.you already know c++ and Java so you will become good dev.
For playing with code you need.
Ubuntu.
Notepad.
sdk & adb.

And this "good luck!"
 
  • Like
Reactions: abhi29

rishabh22

Senior Member
Jan 1, 2012
319
145
0
Delhi
Yeah! Actually even i am interested in learning.
I know c/c++. No java yet :(
I'll be finishing my exams on the 3rd of may and would have around 2 months of vacations to learn :D
So guidance would really be appreciated. Do we need a separate sdk for linux based os? I have sdk on windows, isnt that enough?
What is the advantage of using linux for android development? I have backtrack(ubuntu based) on vmware. Will it do?
 

adfad666

Inactive Recognized Developer
Jul 29, 2011
763
4,301
0
Essential Software:
Ubuntu 11.10 (dual boot not virtual machine, it's too slow)
Eclipse IDE with the Android plugins
Meld (for easy directory compares)
Mastery of the terminal especially git / repo commands

Github account
CyanogenMod gerrit account
Google Plus account

I'm assuming you're coming from Windows since you don't know what a .so file is (like I did when starting). .so files are android's versions of .dll files. 'executables' don't have a file extension. Kernel modules use the .ko extension.

(I think .so means shared object, .ko means kernel object. Makes sense to me anyway :))

The worst thing about starting is simply the sheer size of the project, it is a whole operating system we are dealing with here!

Start simple and easy, follow the instructions on how to make your own build and flash it. (and feel proud you have your own build string in about phone!) Then do it again without the instructions. (harder than it sounds ;))

The programming side may not be such a problem for you if you already know it. I didn't know anything. reading library files written in c++ ain't so bad, but getting used to how an android app is written in java was a huge mindf**k for me at first.It still is actually ;)

I'm really just your average code hacker, I just hack based on educated guesses but I have taken copious notes on what I do and how things work. Seriously, I have two A5 notebooks full of lists, commands, file locations, diagrams and other tips I've found over the past 6 months.

Prepare to read a lot, be confused a lot, say WTF?!?!?! a lot, delighted when you make your first changes and they work, a ton of waiting for builds to finish and perhaps a bit nervous when you are ready to submit your first commit to CyanogenMod...
 

rishabh22

Senior Member
Jan 1, 2012
319
145
0
Delhi
Can't we practice on something less taxing than the the whole cyanogenmod, like maybe some prebuilt system apps?
I have allocated 2.9gb of ram and enough cpu to my vm for it to run smoothly :D so speed isn't really an issue here ;)
Will backtrack do or would ubuntu be better(backtrack is a network security related os based on ubuntu only)
And how important is java. I have two months of almost pure vacations(just have to make a project) so time wont be much of an issue and i'll anyway be doing java in a year or two at college so starting now wont be any harm.
BTW just curious why is g+ account an essentiality here? o_O
Edit
Oh and yeah ill be switching from win to linux and that IS going to be a pretty big problem :/
I don't even properly know what a kernel is and what it does.
Edit2
Iv added you to my circles adfad please add me.
 
Last edited:

ZatBaloo

Senior Member
Jul 7, 2011
150
42
0
I'm starting learning too. I already know the android framework and java.
I have some problems when I try to compile for a device.
Code:
[email protected]:~/WORKING_DIRECTORY$ source build/envsetup.sh
including device/moto/wingray/vendorsetup.sh
including device/samsung/maguro/vendorsetup.sh
including device/samsung/toro/vendorsetup.sh
including device/ti/panda/vendorsetup.sh
including vendor/cm/vendorsetup.sh
including sdk/bash_completion/adb.bash
It doesn't include device/cm_device_lge_p500/vendorsetup.sh (I'm using androidmeda's sources) and if I run "lunch":
Code:
[email protected]:~/WORKING_DIRECTORY$ lunch

You're building on Linux

Lunch menu... pick a combo:
     1. full-eng
     2. full_x86-eng
     3. vbox_x86-eng
     4. full_maguro-userdebug
     5. full_toro-userdebug
     6. full_panda-eng
     7. cm_anzu-userdebug
     8. cm_captivatemtd-userdebug
     9. cm_coconut-userdebug
     10. cm_crespo-userdebug
     11. cm_crespo4g-userdebug
     12. cm_epicmtd-userdebug
     13. cm_galaxysbmtd-userdebug
     14. cm_galaxysmtd-userdebug
     15. cm_galaxys2-userdebug
     16. cm_haida-userdebug
     17. cm_hallon-userdebug
     18. cm_i777-userdebug
     19. cm_iyokan-userdebug
     20. cm_mango-userdebug
     21. cm_maguro-userdebug
     22. cm_p1-userdebug
     23. cm_p1c-userdebug
     24. cm_p3-userdebug
     25. cm_p4-userdebug
     26. cm_p4tmo-userdebug
     27. cm_p4vzw-userdebug
     28. cm_p4wifi-userdebug
     29. cm_p5-userdebug
     30. cm_p5wifi-userdebug
     31. cm_p920-userdebug
     32. cm_p970-userdebug
     33. cm_p990-userdebug
     34. cm_p999-userdebug
     35. cm_pyramid-userdebug
     36. cm_satsuma-userdebug
     37. cm_shooter-userdebug
     38. cm_shooteru-userdebug
     39. cm_smb_a1011-userdebug
     40. cm_smultron-userdebug
     41. cm_tenderloin-userdebug
     42. cm_tf101-userdebug
     43. cm_tf201-userdebug
     44. cm_toro-userdebug
     45. cm_urushi-userdebug
     46. cm_vibrantmtd-userdebug
     47. cm_wingray-userdebug
     48. cm_zeus-userdebug

Which would you like? [full-eng]
There isn't our phone.
I think it can't know I've added another device. Does anybody know how to solve this problem? I'm sure it's something pretty stupid...

P.S. I'm using Ubuntu 11.10

EDIT: Ok, I think I've done something wrong syncing androidmeda sources.
What I've done is:
Code:
[email protected]:~$ cd WORKING_DIRECTORY
[email protected]:~/WORKING_DIRECTORY$ repo init -u git://github.com/androidmeda/cm_device_lge_p500.git

repo initialized in /home/francesco/WORKING_DIRECTORY
[email protected]:~/WORKING_DIRECTORY$ repo sync
Fetching projects: 100% (248/248), done.  
Syncing work tree: 100% (248/248), done.
I've done this for git://github.com/androidmeda/cm_vendor_lge_p500.git and git://github.com/androidmeda/lge-kernel-msm7x27.git too. I can't see them though.

Solved the problem. Cloned androidmeda's device folder into device/lge/p500

EDIT2: FINALLY COMPILING!

EDIT3:
Code:
make: ***  Nessuna regola per generare l'obiettivo "device/lge/p500/init.p500.usb.rc
It's 'No rule to make target'. I don't know what to do, I can't even find that file, but I've got a file called init.thunderg.usb.rc
Solved renaming init.thunderg.usb.rc to init.p500.usb.rc. It's compiling now
 
Last edited:

gymfreak7855

Senior Member
Nov 30, 2011
321
167
0
Palmerston North
Essential Software:
Ubuntu 11.10 (dual boot not virtual machine, it's too slow)
Eclipse IDE with the Android plugins
Meld (for easy directory compares)
Mastery of the terminal especially git / repo commands

Github account
CyanogenMod gerrit account
Google Plus account

I'm assuming you're coming from Windows since you don't know what a .so file is (like I did when starting). .so files are android's versions of .dll files. 'executables' don't have a file extension. Kernel modules use the .ko extension.

(I think .so means shared object, .ko means kernel object. Makes sense to me anyway :))

The worst thing about starting is simply the sheer size of the project, it is a whole operating system we are dealing with here!

Start simple and easy, follow the instructions on how to make your own build and flash it. (and feel proud you have your own build string in about phone!) Then do it again without the instructions. (harder than it sounds ;))

The programming side may not be such a problem for you if you already know it. I didn't know anything. reading library files written in c++ ain't so bad, but getting used to how an android app is written in java was a huge mindf**k for me at first.It still is actually ;)

I'm really just your average code hacker, I just hack based on educated guesses but I have taken copious notes on what I do and how things work. Seriously, I have two A5 notebooks full of lists, commands, file locations, diagrams and other tips I've found over the past 6 months.

Prepare to read a lot, be confused a lot, say WTF?!?!?! a lot, delighted when you make your first changes and they work, a ton of waiting for builds to finish and perhaps a bit nervous when you are ready to submit your first commit to CyanogenMod...
Thanks man :) Your work has really inspired me and yes haha I am moving from windows all though I have had some experience with ubuntu before. It makes sense about the extensions. Thanks for your advice :) Will ask questions if I need to :D
 

ZatBaloo

Senior Member
Jul 7, 2011
150
42
0
I'm having problems compiling using make -j4
Code:
make -C kernel/lge/p500 O=/home/francesco/WORKING_DIRECTORY/out/target/product/p500/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=/home/francesco/WORKING_DIRECTORY/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi- cyanogenmod_p500_defconfig
make[1]: ingresso nella directory "/home/francesco/WORKING_DIRECTORY/kernel/lge/p500"
make[1]: ***  Nessuna regola per generare l'obiettivo "cyanogenmod_p500_defconfig".  Arresto.
make[1]: uscita dalla directory "/home/francesco/WORKING_DIRECTORY/kernel/lge/p500"
make: *** [/home/francesco/WORKING_DIRECTORY/out/target/product/p500/obj/KERNEL_OBJ/.config] Errore 2
make: *** Attesa per i processi non terminati....
'No rule to make target "cyanogenmod_p500_defconfig". Stop'
Any idea?
When I've used make -i I haven't had this problem
EDIT: Solved moving cyanogenmod_p500_defconfig in p500 folder


Ok, I'm trying to tidy up everything a bit. I've noticed there is a new github. I've seen this:
Code:
LG P500 ICS Setup

Copy/paste it WORKING_DIR/.repo/local_manifest.xml

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
  <project path="device/lge/p500" name="p500/cm_device_lge_p500" remote="github" revision="master" />
  <project path="vendor/lge/p500" name="p500/cm_vendor_lge_p500" remote="github" revision="master" />
  <project path="kernel/lge/p500" name="p500/lge-kernel-msm7x27" remote="github" revision="android-ics-msm-2.6.35" />
</manifest>
I have no local_manifest.xml. Do I have to create it? Or do I have to add these three lines to manifest.xml (which is in .repo folder)? And do I have to add toolchain too?
 
Last edited:

vlt96

Senior Member
Oct 9, 2011
3,592
915
0
Question: if installing Ubuntu with wubi on Windows XP, will it show the dual-boot screen on every boot?(or else what shortcut?)
And does it need to defragment, or is it safe just like that?:)
 

rishabh22

Senior Member
Jan 1, 2012
319
145
0
Delhi
Question: if installing Ubuntu with wubi on Windows XP, will it show the dual-boot screen on every boot?(or else what shortcut?)
And does it need to defragment, or is it safe just like that?:)
No idea, never tried.
If you understand anything: :p
http://en.wikipedia.org/wiki/Wubi_(Ubuntu)
Why dont you use vmware instead?

Now someone help me with this:
Whenever i try to recompile the framework-res.apk(pasquale test)(even without editing) i get this error:

What can i do about it?
 

vlt96

Senior Member
Oct 9, 2011
3,592
915
0
No idea, never tried.
If you understand anything: :p
http://en.wikipedia.org/wiki/Wubi_(Ubuntu)
Why dont you use vmware instead?

Now someone help me with this:
Whenever i try to recompile the framework-res.apk(pasquale test)(even without editing) i get this error:

What can i do about it?
VM got me an error when installing saying it is incompatible with win xp (I could install, but didn't wanna risk, windows is harder to recover than Android)
 

ZatBaloo

Senior Member
Jul 7, 2011
150
42
0
I don't think it's good to install ubuntu to compile android in a virtual machine, I think the compilation would be too slow. I'm sorry I can't help you, I've installed ubuntu from a Live CD and I didn't have many problems with the installation process.

BTW, added the three lines to manifest.xml synced repo. It's compiling well using make -j4 :rolleyes:
 

rishabh22

Senior Member
Jan 1, 2012
319
145
0
Delhi
yea I did that... but did anyone try it on XP, it says it failed incompatibility tests or something (same error I got when trying to install windows 7 video drivers on xp) and I don't wanna risk, anyone?
huh? both vmware and virtual box arn't compatible with xp o_O
why the heck were u trying to install win7 video drivers on xp :D
And why dont you dual boot?

---------- Post added at 08:37 PM ---------- Previous post was at 08:34 PM ----------

I don't think it's good to install ubuntu to compile android in a virtual machine, I think the compilation would be too slow. I'm sorry I can't help you, I've installed ubuntu from a Live CD and I didn't have many problems with the installation process.

BTW, added the three lines to manifest.xml synced repo. It's compiling well using make -j4 :rolleyes:
if you have enough ram and a good enough processor there shouldnt be any problem in using a virtual machine. i use backtrack with 2.9/4gb ram and am able to use both windows7 and backtrack simultaneously without any problems/lag :D
I have an i5 2.3-2.9GHz
 

ZatBaloo

Senior Member
Jul 7, 2011
150
42
0
Sure it depends on what you want to compile. It was just a suggestion to compile faster. You probably won't notice lag, but it will take more to compile everything.
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone