yashsingh1/xdaforums huggingface dataset:
[Galaxy S II I9100G Android Development] fuss132:
Welcome to fuss132 dev basic´s​

So you want to become a developer for android? You dont know where to start? Well, I will try to give you some point you can start with.

"There are many tutorials on compiling source code?", you may ask "So no need of this?". No, youre not right. Of course there are many how tos that explain you how to compile something... but to do the magic there is more needed than just "Execude this commands and ready". You need to know the things behind, you need to get the flair of android.

What I want:

First of all, I know that there are many people that see how devs are failing; or some that need help and those people cant help them. They have the time to learn something, but they dont know how. You can expect a point to start with, some welcome drink of android development. Expect the falir of android! Join the android open source project! I posted this in the I9100G section, because I use my kernel (called horsepower) as an example, but it can be used for every device! And please if I helped you thank me in whatever post I helped you :) I´m doing this in my spare free time to help you!

What I dont want:

I cant give you everything! You will need some time, it took me one and a half years to get to know a big part of how android works and stuff. You will not be a "full" developer after this! Furthermore, I dont teach you for 10 variants of my kernel coming up at the forum or of cm roms what ever! Android is an opensource project. This means creating something new - but together. If you did something you think its worth to publish make a git push request and your work will be included to my kernel f.e. Every dev that notice your work will let you post in his thread and your work will be thanked!

Also required for this howto:

A computer running ubuntu 12

Some basic ubuntu terminal knowledge

Time and more time

Also a good internet connection could be usefull

How it will work:

So you think you can manage this? Good luck, I will help you whereever I can. But please understand, that my work on kernels and roms will come first ;) I will try to post every day a new tutorial. We will start with setting up your computer and will end up in some weeks with compiling your own aosp rom. Ready? So lets go to the second post here and start with Day 1: Introduction

PS: Well we only have one forum so, besides this fact that this is about learning developing, I posted it here...
[Galaxy S II I9100G Android Development] fuss132:
Day one: Introduction and downloading source code

This is all for jellybean!

So no longer talking about developement, let´s do some of itselfe.

We first need the source code. For completeness we will download both - kernel source and main rom source. If you dont know what kernel is for please stop reading here... you will fail 99,9999%. (Maybe you just forgot which files this is for: Kernel is the boot.img in your update.zip´s and the rest located in /system is the compiled main rom.)

1. Creating your working directory and stuff

You should know the commands, just use the same folder names and structure for a better chance that I can help you if something goes wrong.

2. Downloading the source and required software

At this part we use a very useful build script made by teamhacksung, thanks to them!

Staying at your /cyanogenmod folder do the following (What this git command mean ~ well dont think about it we will learn it afterwards):

This script will now do some very useful things for you :D Select the specifics of your system and wait for finishing till the point "Download sources?" Tipe a "y" and select "cm-10.1". (When it asks for your folder you want the source in only tipe "sources" and hit enter). This will download the main uncompiled canogenmod sources for you (including some kernel and device specific stuff). It will take looong :D Depeding on your net connection. Some hours usually

3. Downlading kernel sources and recovery stuff

Everything went well? So this means we need to go further. In /cyanogenmod/sources should now be some folders and files... And now we should download a kernel source for our device (choose one for your device, I will use I9100G ones).

Navigate to your source and execute

Hah, you now have latest greenblobkernel source on your computer.

But to finally build the kernel and rom we will also need some device specific files for our I9100G. For other devices you will find these files when you search on gitbub. Or google device xy ics device tree.

As it finished you have all the sources you need

Thats enough for day one, I think. See you soon :)
[Galaxy S II I9100G Android Development] fuss132:
Day 2: Github basics part 1

So we successfully downloaded all sources. Brilliant, now let´s go on. In future time you may work on kernels of even the main rom, and of course you should upload the changes you made to contribute to the community. You will need github for this. For some basic info go here I will only focus on how to use it.

The script from above post should already installed git, if not do the following:

And you should also register an account for free at github.com -> here

As you did this we will also need to set up your github account on your computer, so use the following commands and replace it with the email adress and username you chose before:

If you now upload some changes you have to enter your password every time. To make the things easier we will use an ssh key and will add it to our github account. Its not important to know what all these commands are doing just do them :D

Now go to https://github.com/settings/ssh, login and click "add ssh key". Choose a name (doesnt matter which one) and paste your key from your clipboard into the field below. Thats it github is now set up

1. Some basics commmands

There are some basic commands you should know. Firstly, some explanations for you. The source you downloaded is stored on www.github.com.

With git clone git@github.com/pathtsource you can download new files and sources from existing repositorys.

When you change some files in your local repository (all files from one source path f.e. cd /cyanogenmod/sources/kernel/samsung/t1 and then execute and then) use git status to display the changes you made.

You made some changes? Then pack these changes into a commit by typing git add -A and also add a commit message that will appear later like git commit -m "Camera freeze fix" and finally upload it: git push. We will make some practical examples tomorrow, so dont worry about this now. Just keep that in mind.

Thanks for reading and see you tomorrow! :)

As usuall, if you like this thread and stuff please submit it as news tip! ;)
[Galaxy S II I9100G Android Development] fuss132:
Day 4: Compiling your first things and looking into the source code

It´s been a long time since we met the last time, I hope you didnt forgot everything. If you did - you know - just go to through the first posts and learn again. Sorry that it took so long for you to wait, but I´m writing this in my spare free time and I´m involved into many many projects at this time that are more important that this one. But I didnt forget you! :) So lets go in again and start coding!

1. Going through the source code

I know, I turned things around in the title of this thread, but compiling will take a very long time so lets go through the source code first.

Open a file explorer and navigate to your root forlders. You will see there many folders. As you all know, Cyanogenmod is a Custom Rom and adds much features to your devices, thats why they are using custom product configs. One for each phone and one for all phones.

Let´s go into the folder vendor/cm. You will see a file called "vendorsetup.sh" in which all available devices are written in.

Ok, you will wonder why theres only something like this in your folder if you downloaded the sourcecode for Cyanogenmod 10:

Because since cm10 they´re doing things a bit different. In the next few days we will download the aokp source code and start porting aokp to a new device, because aokp is using the old building system like in cm9 and previous version - and I want that you know all of them. So back to our cm10 thing: All product specific files are now directly in the source code of the device, the device tree. Its the one we downloaded and stored in /device/samsung/i9100g.

But to build a fully working Cyanogenmod Rom we need more that only te device tree, we need some proprietary files from your device. In short, they are files that are very device specific like camera.t1.so (a camera module only for our device) that is pre generated and could not be build by our system. (Thats also the reason why developers cant edit it. We are not able to edit it, too). To pull all those files from your device, please connect it and be sure that you are already running a cyanogenmod 10 rom, otherwise some files might be different and not be copyed - your rom will not be successfully build.

Open our terminal and execute:

sudo bash
cd cyanogenmod/sources/device/samsung/i9100g
chmod 777 proprietary-files.sh
./proprietary-files.sh

Using adb all the files are now being pulled from your device and stored in the right directory of your system. If you successfully did this (and I didnt forget something) we should be now able to compile our own cyanogenmod rom.

2. Compiling your rom

So let´s go! (We will update the sourcecode before again, maybe some cool things changed). We will not use the build script for this, we´re doing things "oldschool". If you want to make things as easy as possible do ./build.sh i9100g and everything will be done for you.

And now we have to wait some hours depending on your computer. I´ll catch you guys in the next tutorial!

Please press thanks and submit this thread as newsworthy one! Thank you and have a good time :)
[Galaxy S II I9100G Android Development] fuss132:
First page of the thread!
[Galaxy S II I9100G Android Development] fuss132:
This post also...
[Galaxy S II I9100G Android Development] fuss132:
3 left if my math education not failed
[Galaxy S II I9100G Android Development] fuss132:
Oh no, it was just one... hmm thats why I want to became a computer scientist not a mathematician ^^
[Galaxy S II I9100G Android Development] rcade2005:
newsworthy thread

@fuss

Submitted as newsworthy thread :). Guys pls do the same if its useful to u guys :cowboy:. First to comment n ur thread :D
[Galaxy S II I9100G Android Development] wan_6142:
+1 will wait time after time..:cool:
[Galaxy S II I9100G Android Development] superatmos:
Good one Fuss :) Should be recommended to make this sticky once you complete the tutorial. :)
[Galaxy S II I9100G Android Development] Kingspp:
This happens when fuss is in playful mood...lol.. hoping to see more of it..... I have already built a rom...its a modified stock rom...but I am failing to compile and decompile systemui Apk...using apktool..I tried installing framework-res apk...but eventually found out that apktool won't work for ics...so any help from your side is appreciated... :)
[Galaxy S II I9100G Android Development] xGeekyKiidx:
Wow very useful ty fuss :)
[Galaxy S II I9100G Android Development] H15@M:
seriously long thread..

pergh....
[Galaxy S II I9100G Android Development] rskyline:
Will wait for this guide! Very usefull!!!
[Galaxy S II I9100G Android Development] superatmos:
Use apk-manager or the latest smali and baksmali binaries.
[Galaxy S II I9100G Android Development] fuss132:
Added Day 2: Github basics part 1 to todays agenda :)
[Galaxy S II I9100G Android Development] Kingspp:
Thanks for the reply.... I will try and use smali and baksmali...since apk manager did not work...:(
[Galaxy S II I9100G Android Development] alexsc13:
Awesome guide you are doing here! Cannot wait to see how it continues today. Big thumbs up for this mate!
[Sony Ericsson Xperia Neo, Pro] motorazrv3:
Hi neo phone users. I just changed from lww to neo v.

Now I am looking for roms that are flashable on my phone with a still locked bootloader.

So would somebody be so gentle to give me some names and probably the link to the rom.

Thx.
[Sony Ericsson Xperia Neo, Pro] Pandemic:
Search before posting !!

Look in the Neo V android development and take a look to emannexperia and thilinac and some more;)

I report this thread to get closed because you can ask it in general chat in Q/A topic its a sticky right above in the topic.

sent from my Xperia Neo V Supercharged ICS 4.0.4
[Sony Ericsson Xperia Neo, Pro] tofumachine:
http://xdaforums.com/showthread.php?t=1673489 jj's hybrid on my locked neo v

sent from jj's hybrid neo v
[Sony Ericsson Xperia Neo, Pro] motorazrv3:
Why not move to Q/A?

I did a search. :rolleyes: Maybe i didn't put good words in the search field. :rolleyes:

Do you know how boring it is too look at every rom and see that it is for unlocked bootloaders at the moment when you search for locked bootloader roms?

Anyway thanx for all the answers i got. :cowboy:
[Sony Ericsson Xperia Neo, Pro] Pandemic:
hy not move to Q/A??

you can ask this in general chat, the one that ask this question is only you, because the rest of the peeps search and ask it in general chat ;)
[Sony Ericsson Xperia Neo, Pro] motorazrv3:
Wow. Looks really amazing this rom. Since I found some time to root my mt11i and installed cwm I think trying this rom is my next step.
[Sony Ericsson Xperia Neo, Pro] tofumachine:
Well if u need any help in will be here ;)

sent from jj's hybrid neo v
[Sony Ericsson Xperia Neo, Pro] motorazrv3:
Thx for offering support.

I have managed to set up my neo.

Rom is installed. With the perfect describtion all went fine.

Is there a new version of trebuchet that I can install? The installed seams a bit laggy!

And hopefully the at the moment not working rom controls will become useable in the near future.

This rom is f..... amazing. Nice to use.

Gesendet von meinem MT11i mit Tapatalk 2
[Sony Ericsson Xperia Neo, Pro] tofumachine:
You can try supercharge or kill some programmes with autostart

sent from supercharged jj's hybrid neo v
[Nexus 7 General] akhobbes:
So far these don't work for me on 4.1.1:

HBOgo

WatchESPN

TWC TV

SiriusXM Internet

For a device that's supposedly optimized for Google Play, these are pretty major apps to not have working. Although, I'm sure it's just a matter of time before they do, but I'd like to have them working before I upgrade to the next nextgen tablet.

Any others?
[Nexus 7 General] kangxi:
Has nothing to do with Google or your purchase. The makers of the apps need to update them. Contact them to make sure they are aware.
[Nexus 7 General] big samm:
When they say optimized for Google play I think they're talking about their content, not ESPN HBO etc...

Sent from my Galaxy Nexus
[Nexus 7 General] rocchioo:
The magazine app for People magazine doesn't work.It's called Next Issue.
[Nexus 7 General] Nexcellent:
Stuff like this should go to:

http://xdaforums.com/forumdisplay.php?f=1678
[Nexus 7 General] phantasybm:
CNN
[Nexus 7 General] kapurcell:
Yammer Client
[Eee Pad Transformer Q&A, Help & Troubleshooting] tbonestl:
I am thinking about sending in my transformer for RMA. My warranty ends in a couple months and I have had some obvious light bleeding from the bottom, and a little on the side if my screen. My question is, has anyone sent in their tablet to Asus for this problem? If so, did they actually fix it? Or did they replace it? Also how long was the turnaround from sending it to getting it back? Thanks in advance.
[HTC Inspire 4G] XBlackChaosX:
My HTC Inspire 4G reboots too damn much, it's been like this for weeks and am only writing this now because i have been patient but now i'm at the point of throwing this thing out of the window. I've tried many roms but no matter what it reboots, the rebooting is not constant like on a loop or something like that but i'll be either browsing, listening to music, playing games, etc and it'll reboot, it reboots more than 5-8 times a day sometimes more. As i said before i've tried many roms from Android Revolution HD, aospX 1.0.0-BR2 - 4, Unofficial Cyanogenmod 9 by PipelinerArd, Smartdroid Reloaded, and IceSense V Beta 3 and no matter what it reboots. Is there anyone that can please help me?

As i was typing this i was watching netflix on the inspire 4g and it rebooted on me again for no reason.......i swear i wanna slam this ish on the damn floor .
[HTC Inspire 4G] Teichopsia:
Try a stable Gb rom after a full wipe.

Wipe data, wipe dalvik, wipe all partitions (except sd card).

If you get a reboot, then try it without the sd card.

Sent from a dream.
[HTC Inspire 4G] XBlackChaosX:
I did try a stable GB rom, i tried Android Revolution HD 7.0.4. Is there a stock 2.3.3 rom for inspire 4g that i can try? I've also removed the sd card but it still rebooted. I'm currently using aospX 1.0.0 BR4.
[HTC Inspire 4G] Reinaldo33897:
With so many roms and still have reboots its a sign of a dying battery. Its a known symptom of a battery about to go.
[HTC Inspire 4G] XBlackChaosX:
Where can i buy a new reliable battery preferably with more mah?
[HTC Inspire 4G] Reinaldo33897:
EBay just make sure its a reputable dealer. Or the carrier.
[HTC Inspire 4G] chaotic646:
My gf's has the same exact problem, and she has replaced her battery but it didnt help at all. Ive tried multiple kernels/roms but nothing helps. Im thinking it has something to do with her wifi because she says it happens almost always when she is at work or home (connected to wifi). Could flashing a different radio help this or are they strictly for data/voice/text?
[HTC Inspire 4G] GuestK007:
I would be more willing to blame hardware for this, maybe the phone has taken water damage or been dropped. Check and clean all connections on the device (sdcard, simcard, battery, usb, wifi antenna, radio antenna). Flashing different radios is not the first route to take for fixing this problem. But if you want to do this, first start with re-flashing the current radio (obviously doing an md5 check on it while it's on the phone before doing so) and start from there.
[HTC Inspire 4G] chaotic646:
I read a reply in another thread about this saying the sim card was the culprit and after replacing it he didnt have anymore reboots...I had her go get a new one, I'll report back if this fixes the problem or not.
[HTC Inspire 4G] Rizakun:
Just saw this thread I have also been having reboot issues diff roms seem to help on cm9 now and it only does it a couple times a day now instead of the 7 or more like before. I have replaced the battery, flashed many diff kernels. I would love to find out the culprit next step is to tear apart the phone and check connections
[HTC Inspire 4G] zhichaoh:
Happened to me 10 times a day. Flashed arhd 6.3.3 and not even one reboot in 2 weeks. Shame on att that recommended new battery which did not help at all!!!
[HTC Inspire 4G] chaotic646:
Just wanted to update everyone with this problem, after my gf put her new sim card yesterday morning she hasnt had a single reboot yet...normally she would have had 10+ by now so I'm pretty confidant that was the problem.
[HTC Inspire 4G] XBlackChaosX:
Well i currently don't have a sim card in the phone so i only use it for everything else but a phone. what are radios for?

Oh and also i've noticed that the phone doesn't reboot while in recovery (i'm using 4ext) i've left my phone in recovery for a while because i needed to transfer a big file (over 10gb) to my micro sd and it never reboots and now everytime i need to transfer a big file to the phone i go to recovery, the reason i say this is because if it was a hardware issue wouldn't it do it anywhere including recovery. Also doesn't the phone creates a log that perhaps can help find out what the problem is?
[HTC Inspire 4G] Rizakun:
So your phone is having reboot problems, but your not using it as a phone (not on a network, no SIM card)

Have you replaced the battery yet?
[HTC Inspire 4G] XBlackChaosX:
Nope not yet, have to buy one but at the moment i have no money but when i do i'm gonna buy a new battery and see. But i truly hope that the problem is not hardware and that it's just the battery.
[HTC Inspire 4G] Rizakun:
I would recommend buying a battery from Amazon or somewhere else online. At&t tends to rip people off. I had a friend who bought two batteries and a charger for them for 25 on Amazon
[HTC Inspire 4G] Rizakun:
Okay, New update. Switched out my SIM card for a new one and it seems to reboot less. Key word is less; so it did not fix the reboot so I will downgrade to a more stable gingerbread Rom. Hopefully that will fix it. Just 9 months till I can get a new phone!
[HTC Inspire 4G] XBlackChaosX:
Glad to hear that your inspire 4g reboots less, Mine is still rebooting but it has been rebooting less ever since i installed Cyanogenmod 7.2.0. What i don't get is doesn't android creates a log file right before a crash (reboot) and shouldn't that log tell us what the problem could be?
[HTC Inspire 4G] Rizakun:
Downloaded app so I can check the logs easier. Next restart I catch I will make sure to check the log. Can't be sure which log is the restart at this moment, but most of my close logs look to be a problem with java
[HTC Inspire 4G] Rizakun:
Log Files

Do me a favor and download from the play store and app called "Android System Info" it is free, and will give you easy access to the log files.

If you can catch your phone rebooting, try and look up the log right after it and copy and paste the info you find here.

I am still waiting for mine to reboot :) I put the app on mine so I could look at the log from the reboot, and since then my phone hasn't rebooted.

It's like it knows its being watched.
[HTC Inspire 4G] XBlackChaosX:
Downloading and installing app now, hopefully this will finally be let me know what it is that is causing my phone to reboot your so damn much. Thanks for helping me Rizakun, i appreciate it :). I find it funny and weird that your phone no longer reboots ever since you installed the app. Once my phone reboots (which should be happening any minute now) ill be sure to post the log here.
[HTC Inspire 4G] gregsarg:
the wifes phone is doing the same thing.....sigh

It's my old phone as of two months ago, and it didnt reboot once with me. but sure enough, we set her up and presto....2 reboots a day averaged.

I've tried pure stock, re-rooted, every other rom she will tolerate, and new battery and sim card...

Nada...still reboots....heres an interesting observation...it reboots when she changes apps to facebook....the most..

I'm leaning toward an app issue at this point. And I'm gonna watch here closely for other info or reports to come through.....g
[HTC Inspire 4G] Rizakun:
From your log and mine I see the app we are using for the log only post what happens when the phone starts back up. That is what I quoted there.

I will look into finding a better option for the log. I will post again when I either have a better option or find the problem.

Sorry about that but I will check in when I can. Been busy.
[HTC Inspire 4G] XBlackChaosX:
Not a problem Rizakun, i'm a man of patience. So take your time. I appreciate your help very much ;)
[HTC Inspire 4G] gregsarg:
I'd love to be able to logcat this failure, but my gosh !!...I'd be months sifting through logcat reports looking for an error in the 1000's of pages...

I'm scratching my head pretty hard here....and i appreciate you gents looking into this, because I'm not smart enough on this to even know what i'm looking for....g
[HTC Inspire 4G] psal217050:
I had an HTC Aria doing the same thing when I went to CM7. I reflashed, took off all the apps and it still rebooted. I thought I read somewhere that HTC had a problem with this but couldn't find it again. HTC, themselves, were no help. Probably why I using Samsung now and testing HTC.
[HTC Inspire 4G] gregsarg:
Ditto....

I sent back 2 Arias last fall for the same reboot issues, as I was told by several people that those devices suffered from a hardware issue.

They both re-booted non-stop for weeks before I sent them away.

I'm afraid that the inspire 4g may suffer from the same issue....g
[HTC Inspire 4G] psal217050:
Reading google it doesn't seem to be limited to these two devices.
[HTC Inspire 4G] XBlackChaosX:
Great, i really hope it's not a hardware issue because i can't afford another phone atm.