Developers Support Thread

Search This thread

dreamsforgotten

Senior Member
May 4, 2010
5,076
2,522
Louisiana
Developers Support Thread

What does that mean?

Quite literally, this thread is intended to support developers. I intend to help out anyone who needs a hand in an attempt to develop for the Galaxy Nexus, or any other phone but I'm going to reference my website with step by step instructions to get you through the beginning stages and comfortable with development. This will also cut down on the number of "noob questions".


Background:
My private messages and e-mail stay filled with usually the same questions. There are lots of people who have android phones and the excitement of owning them doesn't stop there. They want to learn how these other people are creating custom roms on their phone. Some people want a minimalism rom, pure AOSP with maybe one or two mods, such as reboot and status bar toggles, but otherwise want a stock setup. They browse around all these great roms but they are just too many mods for their taste. What do you do from there? You can request a developer release a version with only those two mods, and then wait for the end of time because it's not coming. Or you can compile your own rom from source code and have whatever mods you choose.

Rules:

1) No trolling. If someone appears to be a troll and everyone agrees they are a troll, leave it at that. NOT responding to a troll is the only way to defeat them so practice that rampid in this thread.

2) Anyone who knows an answer to a question posted, feel free to join in, the entire community including current developers should participate. This will only serve to strengthen the development community.

3) No question is too small. Everyone starts somewhere so if someone post asking what a terminal is, or how to find usb debugging in settings, do not discourage them from continuing to learn. There is no place for that and you will have become a troll. You will know it too because everyone will ignore your comments ;).

Get your start here:

http://source.android.com/source/initializing.html

This is google's own instruction but it's hard for some people just starting off to feel comfortable with. I have elaborated on this guide with an entire website aimed at educating people. Please visit here: http://www.dreamsforgotten.net Understand the site is very new, I have been working on it for a month or so, but it will grow and evolve as does this thread. Any questions that get tackled here that are repeated, and seem to affect many people, I will add the resolution to the website as well.

I do have ad sense on the website in an attempt to cover the hosting fees, there is no option to set up an account @ dreamsforgotten.net. Anyone is free to stop by and view it, and take from it what they need. So far I have enough instruction in place to get anyone who is using a supported development device (as well as sprint and verizon galaxy nexi lol) compiling from source rather quickly.

Please leave me feedback on what you would like to see addressed in the future, and consider this the support thread. Dreamsforgotten.net is for you to get a step by step instruction on setting up an environment, this thread is for you to expand that and get assistance when you hit a snag in the road. Thanks guys and I'll be responding to questions as I get time. Enjoy.
 

ÜBER™

Inactive Recognized Themer
Nov 9, 2011
13,808
8,904
Texas
Okay im planning on Porting Rasbean Jelly to the Toroplus variant as Dreams and others from the Black Bean thread know. Just some questions.. Ubuntu 12.10 was just released and that is what i am planning on installing since it now supports my laptop. Will that be sufficient? I remember hearing some issues with compiling on it. Also how much space should i dedicate to the install? I planned on dedicating around 250GB but all im doing is syncing Rascarlo's git with his permission of course and then adding the necesseties for the toroplus (if thats even what im needing to do). And compiling? Do i honestly need that much space? Also will i need Swap to help my Laptop build? It has 6GB's of RAM and i hear the Minimum for building is around 16GB's otherwise it will take quite a while. Any insight would be great :D
 
Last edited:

dreamsforgotten

Senior Member
May 4, 2010
5,076
2,522
Louisiana
Okay im planning on Porting Rasbean Jelly to the Toroplus variant as Dreams and others from the Black Bean thread know. Just some questions.. Ubuntu 12.10 was just released and that is what i am planning on installing since it now supports my laptop. Will that be sufficient? I remember hearing some issues with compiling on it. Also how much space should i dedicate to the install? I planned on dedicating around 250GB but all im doing is syncing Rascarlo's git with his permission of course and then adding the necesseties for the toroplus (if thats even what im needing to do). And compiling? Do i honestly need that much space? Also will i need Swap to help my Laptop build? It has 6GB's of RAM and i hear the Minimum for building is around 16GB's otherwise it will take quite a while. Any insight would be great :D

I already spoke with you but i recommend two hundred gigs really two fifty minimum hdd. I roll with 8 gigs but compile time is horrendous since jelly bean. I'm sure almost all distributions can be set up to develop debian arch mint ubuntu etc but each have to be done so desperately. I'll work on write ups for each java 6 being the biggest hurdle for most new developers.

Sent from my Galaxy Nexus using Tapatalk 2
 
Last edited:

ÜBER™

Inactive Recognized Themer
Nov 9, 2011
13,808
8,904
Texas
I already spoke with you but i recommend two hundred gigs really two fifty minimum hdd. I roll with 8 gigs but compile time is horrendous since jelly bean. I'm sure almost all distributions can be set up to develop debian arch mint ubuntu etc but each have to be done so desperately. I'll work on write ups for each java 6 being the biggest hurdle for most new developers.

Sent from my Galaxy Nexus using Tapatalk 2

How long do you think it'll take? Using 6GB of RAM. And I have a quad core amd at 2.0ghz?

Sent From My N7 via Tapatalk
 

ÜBER™

Inactive Recognized Themer
Nov 9, 2011
13,808
8,904
Texas
8 gig 1.2 gig quad core 8 hours. Use ccache when you build I would go 50 gigs

Sent from my Galaxy Nexus using Tapatalk 2

You'll have to explain that. :confused:
That's quite ridiculous... now in doubting it... :( I don't think it'll handle that stress... it is a laptop I have a fan for it and it has a pretty good exhaust fan but that's still ass long as time.

Sent From My Toro+ via Tapatalk
 
Last edited:

dreamsforgotten

Senior Member
May 4, 2010
5,076
2,522
Louisiana
You'll have to explain that. :confused:

Sent From My Toro+ via Tapatalk

Yeah on the build android page there are directions for setting up ccache you have to add a line to your bash rc and run a command before you build. When I head home, I'll add a page in tutorials explaining that further, it was next on the list.

Sent from my Galaxy Nexus using Tapatalk 2
 

ÜBER™

Inactive Recognized Themer
Nov 9, 2011
13,808
8,904
Texas
Talking to motcher he says he uses ccache and with his dualcore 1.7ghz and 2 GB of RAM it takes him 3hrs and 1.5 after he builds ccache.

Sent From My Toro+ via Tapatalk
 

sendhiloo7

Senior Member
Sep 28, 2008
1,297
387
Chennai
OnePlus 9 Pro
Great idea man.

I want to add status bar toggle and navigator key re–map in Stock ROM.

I have tried system ui.apk & framework.apk decompile, but somewhere struck.

Can you please help to achieve the goal

Sent from my Galaxy Nexus
 

dreamsforgotten

Senior Member
May 4, 2010
5,076
2,522
Louisiana
Talking to motcher he says he uses ccache and with his dualcore 1.7ghz and 2 GB of RAM it takes him 3hrs and 1.5 after he builds ccache.

Sent From My Toro+ via Tapatalk

Instructions added here http://dreamsforgotten.net/ccahce.html Note the actual ccache folder difference in the command? Changed in JB.

Great idea man.

I want to add status bar toggle and navigator key re–map in Stock ROM.

I have tried system ui.apk & framework.apk decompile, but somewhere struck.

Can you please help to achieve the goal

Sent from my Galaxy Nexus

Galaxy Nexus, I'd say don't do that. If you have a machine even remotely capable put you a linux partition, through VM if you must :(, and compile you a version from source. With step by step instructions those too mods wouldn't be that hard. First off, by decompiling you have to decompile both stock rom and a rom with the features you want. Then you have to put those changes in your file in smali which is bytecode aka machine readable. If you know my history, you know I have done this before with the Nexus S because the mod I wanted to copy was samsung proprietary code but in no other circumstance would I want to do that. You need to sync google source, add in the files for your phone, and then do some searching on github to find the two mods your wanting. You copy that code into your source and compile. It's more difficult than that and I just hit you with a lot so start at it, and when you reach a snag come back for help. But...if you must do this in smali...this is what you missing based on what you say you already started. decompile systemui.apk decompile frameworks/base decompile settings.apk. Find (whatever rom you find source for your mod) their version of the file rom control.apk. Copy that in your zip (obviously last step). Diff merge your stock decompiled 3 files against the rom's smali files. Same way as source, use github to find the affected lines of code. Copy over all code, all images, all xml files that are missing. Fix what's there and altered. Settings.apk is going to have a file in src/com/android/settings/foo/foo/ called settings.smali. This file is where your mods in rom control are going to be able to speak to mods you just did to the frameworks/base.
 
Last edited:

ÜBER™

Inactive Recognized Themer
Nov 9, 2011
13,808
8,904
Texas
Thanks a ton dreams adrenaline is pumping hope I can get some sleep super excited for tomorrow.

Sent From My N7 via Tapatalk
 

sendhiloo7

Senior Member
Sep 28, 2008
1,297
387
Chennai
OnePlus 9 Pro
Instructions added here http://dreamsforgotten.net/ccahce.html Note the actual ccache folder difference in the command? Changed in JB.



Galaxy Nexus, I'd say don't do that. If you have a machine even remotely capable put you a linux partition, through VM if you must :(, and compile you a version from source. With step by step instructions those too mods wouldn't be that hard. First off, by decompiling you have to decompile both stock rom and a rom with the features you want. Then you have to put those changes in your file in smali which is bytecode aka machine readable. If you know my history, you know I have done this before with the Nexus S because the mod I wanted to copy was samsung proprietary code but in no other circumstance would I want to do that. You need to sync google source, add in the files for your phone, and then do some searching on github to find the two mods your wanting. You copy that code into your source and compile. It's more difficult than that and I just hit you with a lot so start at it, and when you reach a snag come back for help. But...if you must do this in smali...this is what you missing based on what you say you already started. decompile systemui.apk decompile frameworks/base decompile settings.apk. Find (whatever rom you find source for your mod) their version of the file rom control.apk. Copy that in your zip (obviously last step). Diff merge your stock decompiled 3 files against the rom's smali files. Same way as source, use github to find the affected lines of code. Copy over all code, all images, all xml files that are missing. Fix what's there and altered. Settings.apk is going to have a file in src/com/android/settings/foo/foo/ called settings.smali. This file is where your mods in rom control are going to be able to speak to mods you just did to the frameworks/base.

Ok. its little bit hard to understand :crying: . Ok first i will build the VM & compile from sourece.. Then let you know
 

dreamsforgotten

Senior Member
May 4, 2010
5,076
2,522
Louisiana
Ok. its little bit hard to understand :crying: . Ok first i will build the VM & compile from sourece.. Then let you know

No problem, you start the work and I'll help where needed. Goto my website and use google for the VM. That should get you to where you are ready to build. Once you get there I'll help you with the options to both find the source code changes for your mods, and incorporate them into your source code.
 
  • Like
Reactions: sendhiloo7

ÜBER™

Inactive Recognized Themer
Nov 9, 2011
13,808
8,904
Texas
Anybody have experience with Ubuntu 12.x and building android? Ran into an issue with repo. Trying to init the repo i want to sync it spits out the error 23: error : Python not found. Or something similar I forget exactly. The only thing Google brought up was the fact that I either have the wrong Python version or it is not in my shell path. :confused:

Sent From My Toro+ via Tapatalk
 

molesarecoming

Inactive Recognized Developer
Feb 12, 2012
7,532
27,173
Berlin
ubuntu 12.04 64bit: http://xdaforums.com/showthread.php?t=1863547

its all you need. just replace the repo down there with rasbean's or whatever you want to compile. 12.04 has been a terrible pain in the ass for me, at some point i had to revert back to 11. but back then i couldnt find a nice and compact manual, so this one should guide you through.
 
Last edited:

ÜBER™

Inactive Recognized Themer
Nov 9, 2011
13,808
8,904
Texas
ubuntu 12.04 64bit: http://xdaforums.com/showthread.php?t=1863547

its all you need. just replace the repo down there with rasbean's or whatever you want to compile. 12.04 has been a terrible pain in the ass for me, at some point i had to revert back to 11. but back then i couldnt find a nice and compact manual, so this one should guide you through.

Yeah that's what I feared... didn't feel like having to reinstall... I've been using 12.10 not .04 I know motcher uses 12.04 just fine. Going to get a bootable for it hopefully it likes my laptop.

Sent From My Toro+ via Tapatalk
 

dreamsforgotten

Senior Member
May 4, 2010
5,076
2,522
Louisiana
I prefer debian over ubuntu now, with any distro that don't work with you pc out the box you probably need a proprietary kernel version. If you have a lap top that sound doesn't work you'll def need one. Additional files may need to be loaded for Wi-Fi support as well. All of these have pretty easy guides to get the job done. Be sure to set Linux up completely before establishing the build environment.

Sent from my Galaxy Nexus using Tapatalk 2
 

Top Liked Posts

  • There are no posts matching your filters.
  • 42
    Developers Support Thread

    What does that mean?

    Quite literally, this thread is intended to support developers. I intend to help out anyone who needs a hand in an attempt to develop for the Galaxy Nexus, or any other phone but I'm going to reference my website with step by step instructions to get you through the beginning stages and comfortable with development. This will also cut down on the number of "noob questions".


    Background:
    My private messages and e-mail stay filled with usually the same questions. There are lots of people who have android phones and the excitement of owning them doesn't stop there. They want to learn how these other people are creating custom roms on their phone. Some people want a minimalism rom, pure AOSP with maybe one or two mods, such as reboot and status bar toggles, but otherwise want a stock setup. They browse around all these great roms but they are just too many mods for their taste. What do you do from there? You can request a developer release a version with only those two mods, and then wait for the end of time because it's not coming. Or you can compile your own rom from source code and have whatever mods you choose.

    Rules:

    1) No trolling. If someone appears to be a troll and everyone agrees they are a troll, leave it at that. NOT responding to a troll is the only way to defeat them so practice that rampid in this thread.

    2) Anyone who knows an answer to a question posted, feel free to join in, the entire community including current developers should participate. This will only serve to strengthen the development community.

    3) No question is too small. Everyone starts somewhere so if someone post asking what a terminal is, or how to find usb debugging in settings, do not discourage them from continuing to learn. There is no place for that and you will have become a troll. You will know it too because everyone will ignore your comments ;).

    Get your start here:

    http://source.android.com/source/initializing.html

    This is google's own instruction but it's hard for some people just starting off to feel comfortable with. I have elaborated on this guide with an entire website aimed at educating people. Please visit here: http://www.dreamsforgotten.net Understand the site is very new, I have been working on it for a month or so, but it will grow and evolve as does this thread. Any questions that get tackled here that are repeated, and seem to affect many people, I will add the resolution to the website as well.

    I do have ad sense on the website in an attempt to cover the hosting fees, there is no option to set up an account @ dreamsforgotten.net. Anyone is free to stop by and view it, and take from it what they need. So far I have enough instruction in place to get anyone who is using a supported development device (as well as sprint and verizon galaxy nexi lol) compiling from source rather quickly.

    Please leave me feedback on what you would like to see addressed in the future, and consider this the support thread. Dreamsforgotten.net is for you to get a step by step instruction on setting up an environment, this thread is for you to expand that and get assistance when you hit a snag in the road. Thanks guys and I'll be responding to questions as I get time. Enjoy.
    6
    I will shoot you a pm later to hash out the info. I have a shared hosting plan going to waste right now. I can get you access to it for you to upload your site.

    Sent from my Galaxy Nexus
    4
    git remote add aosp GIT_REPO
    git fetch aosp
    git merge aosp jb-mr1-release
    4
    I'm guessing if you remove the binaries from this tar http://www.sxtpdevelopers.com/showthread.php?t=107, you shouldn't need to do the edits to source for the ril to function. I don't have toroplus anymore to test this so let everyone know.

    yes this is true. from 4.1 to 4.2 the telephony files were moved from frameworks/base to frameworks/opt/telephony. this is the reason why we needed the fix for data. the old binaries from 4.1 pointed to frameworks/base but with the new binaries they have been updated to point to the right direction wich is frameworks/opt/telephony. ypu can grab the new binaries from any new rom im sure has been updated with new binaries by now. im sure there is a deodex version of stock 4.2.1 sprint ota update somewhere or you can just use my vendor for toroplus which i have updated with new binaries already HERE.
    4
    Hosting cost, I'm not really making up for it so I must cut it.

    Sent from my SGH-M919 using Tapatalk 2

    You need hosting? I can help out there

    Sent from my Galaxy Nexus