yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Android Development] v_superuser:
I thought latest would do, but even I have JDK 6! :p
[Galaxy S II Android Development] Myself5:
I personally use oracle jdk 7. It DOES work :p
[Galaxy S II Android Development] Vivek_Neel:
Oh i c but Many people are suffering from jdk7:D:D

Even [MENTION=2822284]matt95[/MENTION] wont recommend jdk7.
[Galaxy S II Android Development] Rachid.Ala:
DELETED
[Galaxy S II Android Development] rr46000:
Repo

hello!

after i repo sync pacman 4.4.2 sources

how should i add my devices repositories

these are my device specific repositories

https://github.com/mateo1111/android_device_lge_p760

And

https://github.com/mateo1111/lge-kernel-omap4

and if anyione can please provide the local manifest code

Thanks!

device-lgp760/p765

building pacman 4.4.2
[Galaxy S II Android Development] Vivek_Neel:
Create local_manifests folder (right click and select "Create new folder" in .repo/

Create local_manifest.xml (right click and select "Create new text document") in .repo/local_manifests folder

Open local_manifest.xml

Type

<?xml version="1.0" encoding="UTF-8"?>

<manifest>

<remote fetch="https://github.com/" name="" />

<project name="/proprietary_vendor_samsung" path="vendor/samsung" remote="github" revision="android-4.4" />

<project name="android_device_samsung_i9100" path="device/samsung/i9100" remote="" revision="" />

<project name="android_device_samsung_galaxys2-common" path="device/samsung/galaxys2-common" remote="" revision="" />[/CODE]

</manifest>

Change accordingly the above code (between manifest) by refering to pac man github
[Galaxy S II Android Development] rr46000:
A bit of misunderstanding

i am asking about the code to add my devices repositories

like all the branches fetch,name

what should i fill
[Galaxy S II Android Development] Vivek_Neel:
Look above I have edited the post.

Sorry. .am having poor internet connection right now.
[Galaxy S II Android Development] rr46000:
Well

last time i messed up in this only and my 20gb got wasted this time i want to be extremely careful

please can u give the exact code

every link is given in the above posts
[Galaxy S II Android Development] v_superuser:
Here's what you have to do(Make folders if they dont exist):

Add Device tree under device/manufacturer/codename

Vendor tree under vendor/manufacturer/codename

Kernel Source depends under the targets set in Boardconfig.mk or omit this if you're using prebuilts.

Manufacturer above is your device's manufacturer and Codename is your device's codename(Name the folders accordingly)!

One more thing you have to do:

Add cm.mk from device tree to vendor/products and rename to device_codename.mk and edit it according to other files present there.

And open up vendor/products/AndroidProducts.mk and add lunch combo for your device.

That's it. Now run the command

. build/envsetup.sh

brunch device_codename

:good:
[Galaxy S II Android Development] Myself5:
"Hit thanks if i helped :D:good::good:"

Same for you, [MENTION=5022494]corruptionfreeindia[/MENTION] really deserves it :p:p:p:p:p:p
[Galaxy S II Android Development] Vivek_Neel:
Haha.

Lol:D

He abides his signature very well.
[Galaxy S II Android Development] rr46000:
Clarification

i have the folders

not using prebuilts

and i dont have any folder like vendor/products

do i have to make this one also

how to add boardconfig.mk and lunch combo

so sorry for any any inconvinience but i'll be greatful to u if u help me:):):)

thanks!

---------- Post added at 09:02 AM ---------- Previous post was at 08:58 AM ----------

That is why the "if" is there
[Galaxy S II Android Development] v_superuser:
You need to create the folders if they are not there. BoardConfig.mk is present in the device tree. :)
[Galaxy S II Android Development] Myself5:
You don't need to create them, they will be created when you repo sync
[Galaxy S II Android Development] v_superuser:
No. Some device specific folders are not there obviously :p ! USer needs to create them.
[Galaxy S II Android Development] edzamber:
Subscribed :)

Great job, your guide is extremly clear and simple to follow !

Posté via Unofficial BeanStalk
[Galaxy S II Android Development] Vivek_Neel:
Thanks.

:)

VIVEKROM_OMNI FOR I9100
[Galaxy S II Android Development] Vivek_Neel:
ANOTHER EPIC THREAD TO XDA COMMUNITY WRITTEN BY #@Superuser

[GUIDE] Understanding the android source code
[Galaxy S II Android Development] -Chill:
CFI. Thanks for this..

Patiently Waiting to Understand this. :cool:
[Galaxy S II Android Development] Vivek_Neel:
Lol XD
[Galaxy S II Android Development] -Chill:
Sshh.. Reading it patiently.

Gosh, this "patiently waiting" thingy.
[Galaxy S II Android Development] -Grift-:
Any idea when doing

Repo Sync -j#

what value # can go up to? Recently tried j16 and it works fine sync are much faster so much so that I can seat infront of my PC and do stuff while waiting for it do complete...

The speedtest result in my sig is not accurate as for me to achieve that I must connect via Ethernet directly to my ONT(Optical Network Terminal)(Or AKA Modem) normal usage would be 45-50 Mbits/s
[Galaxy S II Android Development] Vivek_Neel:
AFAIK you can go upto -j32.

No of jobs depends upon your Internet connection

Seems your Internet is good enough to use -j32.

45-50 mb/s:(

Mine is in the range of kb:D
[Galaxy S II Android Development] -Grift-:
Had those speeds not so long ago too :D:good:

Had a chat with my XDA friend from Mumbai and yeah heard from him that internet over at India is a headache and you guys do have fibre optic internet but its a pain to install and such ...
[Galaxy S II Android Development] Sun90:
yeah, sometimes the 'Speed' is like 'Heaven'(in MB's) and @ sometimes (most of the times ;)) its 'Hell' (in KB's) :)
[Galaxy S II Android Development] Vivek_Neel:
Once I had used do(digital ocean) build server ..guess what?

Repo sync completed in just 15min.

Compiled the rom .(with my Internet speed it took 13days..:D:D:D)

My friend has that server (he paid)

Used putty.

But thats only for 1mon..lol:D
[Galaxy S II Android Development] doctor_droid:
great thread my friend :)i think i need to upgrade my net as well get a decent laptop (mine has just 2gb)
[Galaxy S II Android Development] ruicc:
Hi,

I'm building an AOSP rom, but this rom hasn't theme chooser. I want add T-mobile themer. How can i do that?

I have to edit roomservice.xml in local_manifests? Or Just edit manifest.xml?

I suppose the code is this:

<project path="vendor/tmobile/apps/ThemeChooser" name="AOKP/themes-platform-vendor-tmobile-apps-ThemeChooser" remote="gh" revision="jb-mr2" />

<project path="vendor/tmobile/libs/com.tmobile.themes" name="AOKP/vendor_tmobile_libs_com.tmobile.themes" remote="gh" revision="jb-mr2" />

<project path="vendor/tmobile/providers/ThemeManager" name="AOKP/vendor_tmobile_providers_ThemeManager" remote="gh" revision="jb-mr2" />

<project path="vendor/tmobile/products/themes" name="CyanogenMod/android_vendor_tmobile_products_themes" remote="cm" revision="cm-10.1" />

I'm correct?
[Galaxy S II Android Development] Myself5:
You should be. Don't forget to add the app to the common.mk, else it won't get build ;)
[Galaxy S II Android Development] Vivek_Neel:
Don't ever try to edit manifest.xml

As of for now.

Add those repo in local_manifest.xml
[Galaxy S II Android Development] ruicc:
Thanks mysekf5.

I have 12 common.mk. Which one?
[Galaxy S II Android Development] Myself5:
/vendor/carbon/config/common.mk
[Galaxy S II Android Development] ruicc:
Added...compiling now. Let's see if it works
[Galaxy S II Android Development] Myself5:
Is it working ?

BTW: How long does it take for you guys to compile a rom ? I'm just intrested :)

My time is 1hour when using 50GB of CCache. Without it it takes 2hours.

Greetings

Myself5
[Galaxy S II Android Development] Vivek_Neel:
10gb ccache

2hr for me.
[Galaxy S II Android Development] -Grift-:
No ccache clean build CM11, 1 ~ 1.5 Hrs.

Never really timed it so no exact time just a estimate :p
[Galaxy S II Android Development] ruicc:
Hi, Myself5

Unfortunately, doesn't worked....compilation crashed. It would be nice if i could implement theme chooser in a AOSP rom, like Omni Rom.

If you wish, i can detail what i've done in order to try to make it work.

P.S. About compiling, took me about 3-3,5 hours...first compilation...then took me about-5-10 min...
[Galaxy S II Android Development] Brute.Force:
Sorry if its a noob question but do I need to change something if using linux mint?
[Galaxy S II Android Development] Myself5:
To add theme manager to a rom the must be a modified framework and lot's of other things, it's not that easy to add it.. Sorry, I may should have metioned that earlier..

No, since Linux Mint also uses APT as Package Manager.

@ all: with the buildtime I meant when deleting the complete out folder before else it would be around 5-10 minutes....

Greetings

Myself5
[Galaxy S II Android Development] Vivek_Neel:
Yes.

After make clean

It takes around 2hr I think:(
[Galaxy S II Android Development] ruicc:
I suspected about that, mate. Since i read that it has to do with framework, system settings, and jar services...

Well, i need to learn more, and start with something more simple. Like add SuperSU :)

Do you know how to?
[Galaxy S II Android Development] Myself5:
Thats a prebuild app, most easy thing would be to start with something you compile.. I'm not at home at the moment, I'll edit this post later to tell you what app you could use for example.

EDIT: Use CMFileManager for testing purpose :P

https://github.com/CyanogenMod/android_packages_apps_CMFileManager
[Galaxy S II Android Development] Biftor:
Hi my friend,

how are you?

if you can tell me how can i open eclipse of my source and compile apps and framework work jars!

i mean compile one app for example SystemUI with eclipse!i know how can i compile one app from terminal but i want do it from source eclipse and sdk!

i saw some things in Google search but my English is not good i didnt know how can i do it!if you can explain to us easy!

i added my android source in my eclipse but after i import systemui or others have some pb and ... cant compile!!!

we should start eclipse and skd are there in android source from terminal and use whole android source for compile ROM app!

i need eclipse because that's very good for debugging!

and say to us how to compile one app from terminal say all methods

one of them is

mmm root_of _your_sources/frameworks/base/packages/SystemUI

for SystemUI and you will find that in out/your out put system files

thanks to HardCorePawn he said me this method first time

sorry for bad English .

thanks!
[Galaxy S II Android Development] Vivek_Neel:
Am very good m8.:)

Hope you are fine too.

Btw am not familiar with eclipse in Ubuntu.

Have used eclipse for creating basic apps But not in Ubuntu.

Anyways you can check this and this
[Galaxy S II Android Development] andrewwright:
Nice thread. Great info :thumbup:

sent from my themed xda premium 4 app
[Galaxy S II Android Development] koolkunz:
edit : nvm fixed it myself
[Galaxy S II Android Development] Galaxy S2G:
[MENTION=5022494]Vivek_Neel[/MENTION] and all other guys i want to try this way but i dont want to delete any file from my hard and i get this

and should i have to check the two boxes in the second photo

please help
[Galaxy S II Android Development] Vivek_Neel:
-You can choose first option in the first screenshot.. (I assume you are installing Ubuntu through virtual box)

-For the second screenshot.. Uncheck "install third party app software"
[Galaxy S II Android Development] Galaxy S2G:
yes my friend through virtual box but are you sure that will not erase my hard

because i dont want to lose any file
[Galaxy S II Android Development] Vivek_Neel:
It won't mate.

Only the disk of virtual box gets affected.

Go ahead
[Galaxy S II Android Development] Galaxy S2G:
thanks for your reply i will try it now and if i need any help i will ask you:D

---------- Post added at 06:52 PM ---------- Previous post was at 06:01 PM ----------

@Vivek_Neel after i press restart now the it give me that VM is not responding .close now :crying:
[Galaxy S II Android Development] Vivek_Neel:
Don't restart after the installation when it's asked you to restart.

Choose device/Remove disk from virtual device

Then restart computer
[Galaxy S II Android Development] Galaxy S2G:
it's done :victory: thank you very much :angel:

but one thing i cant see the dancing box that you talked about for update :confused:
[Galaxy S II Android Development] ammarsg:
me too also try this method now .... i hope work good with me also ......for all device the same steps ? yes as i think :D
[Galaxy S II Android Development] Vivek_Neel:
Did u click the update tab and followed screenshot?

If yes, then

I think you have already downloaded update packages while installing Ubuntu.

You checked "Download all the update packages"
[Galaxy S II Android Development] Galaxy S2G:
yes i think that too
[Galaxy S II Android Development] Galaxy S2G:
[MENTION=5022494]Vivek_Neel[/MENTION] how can i copy files from my win7 to ubuntu
[Galaxy S II Android Development] Myself5:
Create a shared folder in Virtual Box.

No offense, but if you dont you how to set up Virtual Box you should not try to compile a custom rom because when it crashes for some reason, and i promise it will some day you have no clue how to solve it.
[Galaxy S II Android Development] ammarsg:
:eek::eek::eek: is it too hard to make rom !!!! you mean get soft or hard brike to the phone
[Galaxy S II Android Development] Hopper8:
Hi [MENTION=5022494]Vivek_Neel[/MENTION] :) thanks for your handy guide :good:

I've got my build environment going, but I'm dualbooting ubuntu 13.10 as it will be truckloads faster than a virtual box ;) ...but I'm stuck on step 18 when trying to get the local_manifest. (I'm trying to build Slimkat for i9100 :D ) but I don't know how to set up the local manifest for i1900. Is it something to do with the device dependencies, as they are on SlimRom github for i9100??

See here, in 'slim.dependencies'

[

{

"repository": "SlimRoms/device_samsung_galaxys2-common",

"target_path": "device/samsung/galaxys2-common",

"branch": "kk4.4"

},

{

"repository": "SlimRoms/kernel_samsung_smdk4412",

"target_path": "kernel/samsung/smdk4412",

"branch": "kk4.4"

},

{

"repository": "SlimRoms/hardware_samsung",

"target_path": "hardware/samsung",

"branch": "kk4.4"

},

{

"repository": "SlimRoms/proprietary_vendor_samsung",

"target_path": "vendor/samsung",

"branch": "kk4.4"

}

]

But your step 18:

I don't see how to change that to what I need for SlimKat instead of omnirom :confused:

Or is it something to do with what v_superuser posted,

Thanks in advance :)
[Galaxy S II Android Development] Vivek_Neel:
create local_manifest.xml in .repo/local_manifest folder and add the below code

<remote fetch="https://github.com/SlimRoms" name="Sllim" />
<project name="SlimRoms/device_samsung_galaxys2-common" path="device/samsung/galaxys2-common" remote="SlimRoms" revision="kk4.4" />
<project name="SlimRoms/kernel_samsung_smdk4412" path="kernel/samsung/smdk4412" remote="SlimRoms" revision="kk4.4" />
<project name="SlimRoms/hardware_samsung" path="hardware/samsung" remote="SlimRoms" revision="kk4.4" />
<project name="SlimRoms/proprietary_vendor_samsung" path="vendor/samsung" remote="SlimRoms" revision="kk4.4" />

save and repo sync
[Galaxy S II Android Development] Hopper8:
Awesome, thanks :)

How did you know that?

And also... This will sound bad, but I can't see the repo folder. I assume it should be in /android? I have a repo file outside of /android, but not a repo folder. Unless I'm looking completely the wrong spot? [emoji31] I'm not at my pc right now so can't have a proper look.

Sent from a galaxy far, far away
[Galaxy S II Android Development] Vivek_Neel:
Hmm.

Go into the source folder and Press ctrl+H

U will see

.repo

folder
[Galaxy S II Android Development] Myself5:
The folder is called .repo so make sure you enabled "Show hidden Files"

Edit: [MENTION=5022494]Vivek_Neel[/MENTION] where the heck does your post come from it wasnt there 1sec ago....
[Galaxy S II Android Development] Vivek_Neel:
Yeah exactly the same thing happened to me this morning on other thread. :D
[Galaxy S II Android Development] Hopper8:
Legendary, many thanks to both of you for your help :) :) I won't get to try that until tomorrow now, the suspense is killing me! [emoji12] if I have any other questions I'll be sure to post up here, you guys are fantastic :)

Vivek_Neel, were you previously CFI (user name) on XDA? Because he disappeared about the same time you appeared and you have the same approximate post count :)

Edit: and to make it work, I had to change the

remote="SlimRoms"

to

remote="github"

I'm not sure why though... any idea why?

Edit#2: And just to confirm, although I am reasonably sure already.... each time I run 'repo sync' after I initially run that command, it will only download the projects which have changed since the previous 'repo sync'. It won't re-download any projects which have remained the same, correct?

Sent from a galaxy far, far away
[Galaxy S II Android Development] Vivek_Neel:
Who disappeared? :confused:

U thinking me ?

Am CFI old user. ..Changed user name:D
[Galaxy S II Android Development] Hopper8:
Ahh that'll do it :) I think you sent me a friend request but I didn't accept because I didn't realise you were CFI :silly: I will fix that ;)

Please re-read my previous post, I had edited it with questions but obviously was too late and you replied before I'd written them :p
[Galaxy S II Android Development] Myself5:
Anwser Edit1: The name and location of a remote is defined in the manifest.xml and lots of custom roms has differrent remotes.

Answer Edit2: Correct. If you want to redownload a project cause you made local changes or something just delete the projects folder (the nearest one top of the folder you want to delete containing a .github/.git (cant remember the correct one ATM) folder) and then repo sync as normal so it redownloads the project you delete (but never the whole source).
[Galaxy S II Android Development] Bashar Jarad:
[MENTION=5022494]Vivek_Neel[/MENTION] i have this problem when i try to make a sharing folder :crying:

please help i cant continue without making the sharing folder :crying:
[Galaxy S II Android Development] Vivek_Neel:
May be you can try

create directory

and type

sudo mount.vboxsf (write the name of share folder) /path to the share folder

Make sure u have installed already guest additions.
[Galaxy S II Android Development] Vivek_Neel:
Next time don't edit the existing post as we could not able to notice that.

Quote it:D
[Galaxy S II Android Development] Bashar Jarad:
now this

what should i do ?
[Galaxy S II Android Development] Vivek_Neel:
Is there a space between mount and .vboxsf?
[Galaxy S II Android Development] Bashar Jarad:
no i tried both with space and without space
[Galaxy S II Android Development] Myself5:
Your fault is the folder you want to mount it at. You mount it at the root directory but created a folder in your home directory. Correct command is

sudo mount .vboxsf myshare ~/myshare

(See the space between mount and .vboxsf ;) )
[Galaxy S II Android Development] Bashar Jarad:
[MENTION=5022494]Vivek_Neel[/MENTION] now i have this
[Galaxy S II Android Development] Myself5:
Try with /dev/myshare instead of myshare
[Galaxy S II Android Development] Bashar Jarad:
[MENTION=5022494]Vivek_Neel[/MENTION] [MENTION=3816568]Myself5[/MENTION] just one point my folder in win7 named share and the folder that i make in ubuntu by this command :sudo mkdir myshare

is myshare and it is in Home now

so what command should i put i termenal to activate the sharing folder (named share in my win7 ) inside myshare folder in ubuntu ?

thank you for you replies and you interest :angel:
[Galaxy S II Android Development] Vivek_Neel:
Name must be some to avoid protocol errors.

Now mount it by typing

sudo mount -t vboxsf -o uid=1000, gid=1000 (name of the shared folder) ~/ (name of the shared folder)

Typed using Iphone kb and sent from my GT-I9100 using Tapatalk 2
[Galaxy S II Android Development] Bashar Jarad:
now i make them as the same name and have the same
[Galaxy S II Android Development] Bashar Jarad:
[MENTION=5022494]Vivek_Neel[/MENTION] can i build acip rom with this guide for my device :confused:

and where is acip source in the first page ?
[Galaxy S II Android Development] Vivek_Neel:
Yes you can

You have to Modify device tree

Typed using Iphone kb and sent from my GT-I9100 using Tapatalk 2
[Galaxy S II Android Development] Bashar Jarad:
[MENTION=5022494]Vivek_Neel[/MENTION] now it is done i dont need to shareing folder i activate drad'n'drop in vm :victory:

now i can continue :D
[Galaxy S II Android Development] Bashar Jarad:
[MENTION=5022494]Vivek_Neel[/MENTION] now i have this problem :crying:

it is in : 5.Now copy paste the below code in terminal to install build packages

Code:

sudo add-apt-repository ppa:ubuntu-toolchain-r/test

Code:

sudo apt-get update

Code:

apt-get install g++-4.7 gcc-4.7
[Galaxy S II Android Development] Vivek_Neel:
Use sudo before

Typed using Iphone kb and sent from my GT-I9100 using Tapatalk 2
[Galaxy S II Android Development] Bashar Jarad:
OK thank you
[Galaxy S II Android Development] Bashar Jarad:
[MENTION=5022494]Vivek_Neel[/MENTION] sorry for the questions but i dont know what should i do

now i got this i tried with sudo and without

please accept my apologies
[Galaxy S II Android Development] Myself5:
You need to do sudo apt-get install ****all the packages names****
[Galaxy S II Android Development] Bashar Jarad:
thank you it worked i didn't see the sudo apt-get install before them .

at all i hope that i won't have another problem
[Galaxy S II Android Development] Bashar Jarad:
[MENTION=5022494]Vivek_Neel[/MENTION] what command should i type to have acip source and what should i replace with those

18.After repo sync is done u have to fetch some additional repoistory using local_manifest.xml

Code:

<remote fetch="https://github.com/DonkeyCoyote" name="donkey" />

<project name="DonkeyCoyote/proprietary_vendor_samsung" path="vendor/samsung" remote="github" revision="android-4.4" />

<project name="android_device_samsung_i9100" path="device/samsung/i9100" remote="omnirom" revision="android-4.4" />

<project name="android_device_samsung_galaxys2-common" path="device/samsung/galaxys2-common" remote="omnirom" revision="android-4.4" />
[Galaxy S II Android Development] Bashar Jarad:
[MENTION=5022494]Vivek_Neel[/MENTION] i have this with step 8
[Galaxy S II Android Development] Myself5:
Execute the command as root (sudo ***command***)

You can try this always in case you have a permissions denied error.
[Galaxy S II Android Development] Bashar Jarad:
how should i do this ?
[Galaxy S II Android Development] Myself5:
As stated in the brackets: write in terminal

sudo ***command you want to execute as root***
[Galaxy S II Android Development] Bashar Jarad:
i tried this
[Galaxy S II Android Development] Bashar Jarad:
[MENTION=5022494]Vivek_Neel[/MENTION] i am still stuck at this problem :crying:
[Galaxy S II Android Development] Vivek_Neel:
Close the terminal and execute that command with sudo in new terminal

Typed using Iphone kb and sent from my GT-I9100 using Tapatalk 2
[Galaxy S II Android Development] Bashar Jarad:
like this ?

the same thing it gave me bash: /home/bashar/bin/repo: Permission denied
[Galaxy S II Android Development] Bashar Jarad:
i see a lock icon on the bin folder is this why i cant install repo inside bin folder :confused:

and how i can fix the Permission denied

note: i tried sudo ' suod Su ' sudo bash -c ' before the command
[Galaxy S II Android Development] Vivek_Neel:
May be try adding

sudo bash

Before curl and see
[Galaxy S II Android Development] Bashar Jarad:
same think :(
[Galaxy S II Android Development] Bashar Jarad:
[MENTION=5022494]Vivek_Neel[/MENTION] if i add bin folder manually it will be without the lock icon will this work or not

because when i open bin folder properties and go permissions i see root and i cant change any think
[Galaxy S II Android Development] Vivek_Neel:
You can try and see