yashsingh1/xdaforums huggingface dataset:
[Android] smithchipz:
I'm following this guide to build JB for the HTC Legend. It's an ARMv6 device and I've only got an ICS device tree to go off. What modifications, if any, am I going to have to make to get this to work?
[Android] dastin1015:
Look at my TeamJB github repo for the HTC Hero CDMA (heroc)

私のEVO 3Dから送信される。
[Android] smithchipz:
Alright thanks but how am I meant to know what files to change, modify or keep in the device tree? Sorry for the noobish question.
[Android] saleenman95:
First off, I would like to thank you for this extremley useful post! Now, I have a Samsung GPlayer 3.6 (YP-GS1). I am unable to find anything about it on github, but I have downloaded the platform and kernal from http://opensource.samsung.com (Search YP-GS1 and download the NA_GB version.) Could I use this to successfully compile JB for my device?

Thanks!
[Android] dastin1015:
Each device is different, but you need modify the device make files to have the lines in then to point to frameworks/base to frameworks/native

No. You need a device repo, something I don't know how to build from scratch. Kernel is probably going to have to be modified to get it to boot other versions of Android. I'm not a kernel developer, so I don't know how. Sorry. Maybe check out bitbucket to see if any device repos there.

私のEVO 3Dから送信される。
[Android] CallMeVentus:
Since you don't have a device repo yet , you might want to start out slow by creating a GB device repo then compiling AOSP with it . Just look at some of the similar devices to get a feel on how to make a device repo .

Sent from a Samsung Galaxy Ace
[Android] PrakashGD:
Will it work on ubuntu 10.10
[Android] toxicthunder:
A little help here please. Trying to compile AOKP for n7000. This is what I did -

1. sync aokp source

2. fork device tree from another user (android_device_samsung_n7000 and platform_manifest)

3. Added remote header to fetch from my github ('gh') in platform_manifest/default.xml

But I think I have gone wrong somewhere since I am getting loads of fetch errors. Also I seem to have missed committing these changes to my repository on github and hence am unable to compile/build. My question would be -

Once I have forked something, does it mean that I have a dynamic copy of the repository? As in my repository will change each time the origin changes?

If I make changes to something on local server, how do I add them to my repo? (push, merge, stash - I am confused)

What happens when the origin changes the same files that I have modified to my forked repo? Do they get overwritten?
[Android] mg2195:
I think the problem is that you used someone else's platform manifest...I would wait for an expert to confirm your problem though
[Android] 3 squared:
Two questions, one easy, other one easy for some.

First question is this;

make: *** No rule to make target `vendor/samsung/maguro/proprietary/ducati-m3.bin', needed by `out/target/product/maguro/obj/lib/ducati-m3.bin'. Stop.

I followed this (http://anders.com/cms/435/Google.Galaxy.Nexus/Android/AOSP/camera/GPS/driver) tutorial exactly, twice still no luck. I must be making a simple mistake but I cant seem to figure it out any advice?

Second question is I am currently compiling on my home server via ssh as I am on satellite internet and syncing the repo would cost me a few hundred dollars. Is there a way to run a build in terminal via ssh and not need to stay connected to it? If my internet goes down the "broken pipe" message shows up and the build stops. This would not be an issue if my home server was not slow and takes close to 6 hours to build....
[Android] kevin130:
Error :(

IM getting this error after i do make -j2.

http://pastebin.com/sCeK1rD4
[Android] yosterwp:
Have you done :

$ . build/envsetup.sh

$ lunch

$ make -j2

?
[Android] dastin1015:
You're missing your proprietary binaries. Use an extractor script such as this: https://github.com/GeekRom/android_device_samsung_maguro/blob/master/extract-prop.sh

Which version of the Galaxy Nexus are you using?

Add this line in the Android.mk in this directory hardware/qcom/gps/loc_api/libloc_api:

LOCAL_MODULE_TAGS := optional

Make sure it is under:

include $(CLEAR_VARS)
[Android] mo976:
There is a known problem with the realtek 8111/8169 drivers (the NIC on most gigabyte and asus boards as well as others) on UBUNTU where the download speed is in credibly slow, and in windows it works perfectly fine. For example at best I could pull 50kb compared to as high as 1.5mb that I often see while downloading the repo on a 15Mbps line a parallel speedtest on my win7 laptop confirmed that it wasn't my line.

There is a fix that requires compiling new drivers from source and then removing the old ones and installing the new one and then blacklisting the faulty drivers.

Here is the link for the driver from realtek scroll down to linux 3.0x kernel and chose a local server http://www.realtek.com/Downloads/do...d=5&Level=5&Conn=4&DownTypeID=3&GetDown=false

And here is the link for how to go about installing it http://amk1.wordpress.com/2009/06/09/realtek-8168-module-issue/

Hope this helps anyone experiencing problems
[Android] smithchipz:
Followed the guide to the letter, I swear, but everytime I try to type "source build/envsetup.sh" or ". build/envsetup.sh" it always comes back with "bash: build/envsetup.sh: No such file or directory". This is annoying me to no end, anyone got ideas on how to fix it?
[Android] yosterwp:
I see you are now a Recognized Contributor! And as I said before, you should have been one for a long time with this thread!

Thank you for all that you have done!
[Android] mg2195:
So i was finally able to get touchscreen on aosp thanks to the help of Yuma75

He suggested that i replace the input folder located in frameworks/base/services with an input folder from a working source (our cyangenmod10)

so i replaced the input folder from aosp with cyanogenmod10 input folder and i finally have touch!
[Android] kevin130:
Yes

Yes. Thats exactly what i do.

---------- Post added at 01:30 PM ---------- Previous post was at 01:28 PM ----------

Which lunch should i pick?'

Lunch menu... pick a combo:

1. full-eng

2. full_x86-eng

3. vbox_x86-eng

4. full_grouper-userdebug

5. mini_armv7a_neon-userdebug

6. mini_armv7a-userdebug

7. full_wingray-userdebug

8. full_crespo-userdebug

9. full_maguro-userdebug

10. full_panda-userdebug

Which would you like? [full-eng]
[Android] apexofservice:
no build directory under frameworks/base

Hi,

I'm trying to build JB and but I seem to have some issue in my build env.

build/core/product_config.mk:189: *** _nic.PRODUCTS.[[device/*/p5113/cm.mk]]: "frameworks/base/build/tablet-dalvik-heap.mk" does not exist. Stop.

In fact, I can't find any 'build' directory under frameworks/base.

I'm not sure what went wrong, where to gtet the tablet-dalvik-heap.mk file. Any suggestions?
[Android] dastin1015:
I've edited out the option for the shooter for AOSP. You need to go into the device repo, open vendorsetup.sh and uncomment or add this line:

add_lunch_combo htc_shooter-userdebug

私のEVO 3Dから送信される。
[Android] dastin1015:
Look at the bottom on the OP next time please. Change from frameworks/base to frameworks/native

私のEVO 3Dから送信される。
[Android] apexofservice:
Awesome. That certainly seems like it will work (at least, insofar as I see that frameworks/native/tablet-dalivk-head.mk exists). Now my question is how to 'change all references from frameworks/base fo frameworks/native' as it suggests at the bottom of the OP. Should I do something as drastic as this:

~/android/system$cat `grep -r "frameworks/base" ./*` | sed 's/frameworks\/base/frameworks\/native/'

Or is there a something more targeted I should change?

Many thanks!!
[Android] mg2195:
Can anyone explain to me how the build.prop is created? i would like to make changes to it...before i compile, but I cant figure out how its created so I don’t know which files to edit or what to do...

or am i just stuck editing it after compile?
[Android] apexofservice:
Trying to figure out exactly what this means, I tried:

apexofservice@citrus:~/android/system$ cd device/samsung/p5113/
apexofservice@citrus:~/android/system/device/samsung/p5113$ grep -r "frameworks" *
apexofservice@citrus:~/android/system/device/samsung/p5113$

No dice.
[Android] dastin1015:
No no. In your device repo you change the references from frameworks/base to frameworks/native like the one for dalvik.

Look up.

What parts are you trying to edit? The system.prop file in your device repo makes up part of it.

Also you can use these to set values. These go in your device make file. For example:

PRODUCT_NAME := htc_shooter
PRODUCT_DEVICE := shooter
PRODUCT_BRAND := sprint

First one changes the product name, second device name, third brand name.

Also the use of property overrides:

PRODUCT_PROPERTY_OVERRIDES += \
ro.com.google.clientidbase=android-sprint-us \
ro.com.google.locationfeatures=1 \
ro.cdma.home.operator.numeric=310120 \
ro.cdma.home.operator.alpha=Sprint

These are put inside your device make file and create/set these values in your build.prop
[Android] apexofservice:
Sorry if I'm being daft, but could you formulate your reply in terms of linux commands or specific paths or files? I'm new to git, so I'm a little lost.

I've got the repository in ~/android/system. Is the the device repository you're talking about? If so, which files should I edit?

I guess I can grep recursively from that point and try to find references to dalvik, that might give me some idea which files to edit. But you've got any more specific clues I'm all ears.

Thanks for so many replies!
[Android] dastin1015:
Are you at the root of your working directory when you are executing that command?
[Android] mg2195:
Referring to build.prop, I just wanted to add 3 lines for an ota app...

I do have one last question/problem

I've just discovers that my aosp build isn't detecting the imei number, our imei number is tired in /efs/ and when I go there with a root browser everything looks normal...so I'm wondering does aosp look somewhere else for imei? Or do I need to configure aosp to use the efs folder for imei...or am I just missing something (drivers?)
[Android] dastin1015:
Add the lines to your system.prop then. I have no idea for IMEI.
[Android] mg2195:
Alright thanks...I didn't think you would know about the imei...but maybe someone with a Samsung device might...
[Android] kevin130:
AOSP? I want to compile cm10? i dont get it. i added the line and tried to compile. This happened.

Header: out/target/product/shooter/obj/include/libsonivox/eas_types.h

Header: out/target/product/shooter/obj/include/libsonivox/eas_reverb.h

Header: out/target/product/shooter/obj/include/libsonivox/jet.h

Header: out/target/product/shooter/obj/include/libsonivox/ARM_synth_constants_gnu.inc

make: *** No rule to make target `hardware/qcom/gps/loc_api/libloc_api-rpc/inc-50000/loc_api_cb.h', needed by `out/target/product/shooter/obj/include/libloc_api-rpc/inc/loc_api_cb.h'. Stop.

make: *** Waiting for unfinished jobs....

Header: out/target/product/shooter/obj/include/libwpa_client/wpa_ctrl.h
[Android] mg2195:
Did you do the repo init step from this op? If you did then that's your problem...you gotta repo sync cyanogenmod repo not aosp...
[Android] dastin1015:
You should have made that clear then because this is an AOSP thread. Are you sure you're using CM10 source? Because CM10 has those files that are missing. Make sure to do a repo sync before every compile to get new updates.
[Android] mg2195:
Do this:

repo init -u git://github.com/CyanogenMod/android.git -b jellybean

repo sync

Then:

./vendor/cm/get-prebuilts

Then build...you may have to start with a fresh working directory...
[Android] kevin130:
Sorry

I AM SO SORRY. I cant believe i didnt realize i was compiling AOSP. I can work with that too. I just want to start developing. Im gonna start fresh and make a new directory.

Can i still use the device repo files you used to get it to compile? Or would i have to get it to compile myself?
[Android] dastin1015:
If you do choose to compile CM10 make sure to add the shooter to the jenkins-build-targets in vendor/cm. Yes you can, but some things may need to be changed such as the overlay's as well as changing the BoardConfig.mk to comment out the GPS for now.

I recommend this for you: https://github.com/jmztaylor/android_device_htc_shooter_vm
[Android] kevin130:
Thanks!

Thanks so much! does that already have all teh changes necessary to get it to compile?
[Android] dastin1015:
Not for AOSP. Most device repos are configured for CM.
[Android] evol4g:
I keep getting this error when trying to use this command

"./extract-files.sh"

./extract-files.sh: 59: ./extract-files.sh: adb: not found

yes my phone is connected and yes adb is enabled
[Android] dastin1015:
Do you have your android sdk configured to execute from anywhere?
[Android] evol4g:
no, how do i do that? I have to navigate to the platform-tools folder to have adb work

thanks for the quick response!
[Android] dastin1015:
In the OP under setting up adb
[Android] kevin130:
CM10

Okay. IM going to compile cm10. im gonna use that device repo you gave me to get it to compile and ill be good to go. Would i still need that msm8660-common file or is it not necassary?
[Android] dastin1015:
Necessary. It'll compile, but no guarantee for booting though.
[Android] kevin130:
Thanks

One final question. Should i just compile it or make a flashable zip?
[Android] dastin1015:
If you're going to test it or flash it you're going to have to make a flashable zip.
[Android] evol4g:
are you talkin about the edits to the bash.rc and .profile?

because there isn't anything that says setting up adb
[Android] dastin1015:
Yes
[Android] evol4g:
well i did make those edits, and when i simply type android into the command prompt it doesn't check for updates so i know it's not working, but i did follow the instructions a second time and it still didn't work.. prolly user error
[Android] dastin1015:
What happens when you type in android?
[Android] kevin130:
This is what i get when i try to compile cm10. i used the device repo you gave me.

Which would you like? [full-eng] 6

build/core/product_config.mk:196: *** _nic.PRODUCTS.[[device/htc/shooter/shooter.mk]]: "frameworks/base/build/phone-xhdpi-1024-dalvik-heap.mk" does not exist. Stop.

Device shooter not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).

Found repository: android_device_htc_shooter

CyanogenMod/android_device_htc_shooter already exists

Syncing repository to retrieve project.

error: revision jellybean in CyanogenMod/android_device_htc_shooter not found

Repository synced!

Looking for dependencies

Done

build/core/product_config.mk:196: *** _nic.PRODUCTS.[[device/htc/shooter/shooter.mk]]: "frameworks/base/build/phone-xhdpi-1024-dalvik-heap.mk" does not exist. Stop.

** Don't have a product spec for: 'htc_shooter'

** Do you have the right repo manifest?
[Android] dastin1015:
You didn't git clone the jellybean branch. When you were git cloning you were supposed to specify a branch like this:

git clone git://github.com/TeamJB/android_device_htc_shooter.git -b jellybean shooter

Edit: Also please read the OP and the thread. Questions like these have been repeatedly asked and answered.
[Android] kevin130:
Alright. Sorry. I got it to finally compile. Is it possible for there to be a error in the middle of it compiling cause ima leave my laptop on overnight cause i have a dual core laptop so it might take a while as u can tell.
[Android] dastin1015:
Yes there is.
[Android] evol4g:
android: command not found

just this. i'll try my best to figure it out and report back.. thanks for the help bud
[Android] dastin1015:
Hmm. Make sure that the lines you put in .bashrc and .profile match up to the location of your sdk folder and name as well.
[Android] toxicthunder:
try typing

./android
[Android] dastin1015:
The ./ is not necessary if you have properly set up the SDK. ./ is needed if you are executing a script or program that isn't set up to be executed from anywhere.

私のEVO 3Dから送信される。
[Android] kevin130:
when i try to get the proprietary files from my phone i get this in teh middle of it. remote object '/system/lib/libacdbloader.so' does not exist

It finishes gathering the files but when i try compiling it gives me an error having to do with this missing object. It happens with both AOSP and CM10.

Does it have to do with the fact im on hboot 1.58.5858?
[Android] mg2195:
Hboot should have nothing to do with gathering proprietary files...maybe with flashing
[Android] kevin130:
What ROM do you suggest i use to gather the files?
[Android] dastin1015:
You're trying to pull the files from a stock ROM. The files need to be pulled from an AOSP or CM ROM. In your case pull from a CM ROM.
[Android] kevin130:
Okay. SO i switched over to a CM ROM. I am now mising this object but this file is in the stock ROM. Can i move this object into the propriretary files is just got from teh CM ROM?

\

remote object '/system/lib/libmmjps.so' does not exist
[Android] 3 squared:
Standard north american GSM version, should I just run that script in the root folder? I extracted the 4 scripts from the google driver page, and none of them have the "ducati" files.

Thanks for your reply!
[Android] dastin1015:
Yes.

https://github.com/TheMuppets/proprietary_vendor_samsung/tree/jellybean
[Android] 3 squared:
So just make sure all of those files are identical and in the correct locations and its fixed? Seems to easy! Thanks!
[Android] dastin1015:
Pretty much. You're going to need the Nexus binaries as well.
[Android] 3 squared:
Yup those I have already downloaded from https://developers.google.com/android/nexus/drivers#magurojro03h checked the md5 and run the scripts to extract the files as necessary.

Thanks for your help!
[Android] CallMeVentus:
Hey there dastin ! In my builds I've always had a problem with the proximity sensor , but then I checked my sources and saw no sensors at all :eek:

How should I add support for a sensor ? Mine's the TAOS TMD27711 Proximity and Light sensor

Sent from a Samsung Galaxy Ace
[Android] kevin130:
@dastin i put it in AOSP/device/htc/shooter/prebuilt correct? Or where?
[Android] dastin1015:
Can I see your device repo?

AOSP/vendor/htc/shooter/proprietary

The folder layout after proprietary depends on how the script is written. My script extracts to a directory where it was pulled from device. For example if I'm pulling system/lib/libdll.so it'll put it in vendor/htc/shooter/proprietary/system/lib
[Android] kevin130:
Thanks so much for the help. Now to see if i can finally get it to compile. Sorry for the many questions.

---------- Post added at 09:55 PM ---------- Previous post was at 09:19 PM ----------

Just when i thought i was gonna get it to compile this happens. You told me that these files are missing from CM last time but im still getting this and it doesnt finish compiling.

http://pastebin.com/JkH7QiRx

I used the device repo you gave me and i followed the guide step-by-step. I have no idea what im doing wrong. By the way, this only gets it to compile like you said but have you tried to get it to boot already? Or did you not try cause your no longer developing for the EVO 3D?
[Android] dastin1015:
Questions are always good. :)

Apply this patch. Just do it manually. Red is removed lines and green is added. https://github.com/CyanogenMod/andr...mmit/c8b97210aa31c9b80b5fd136d8617ebe4e731e09
[Android] kevin130:
once again, thanks so much. What about my other question lol have you tried to get it to boot already? Or did you not try cause your no longer developing for the EVO 3D?
[Android] dastin1015:
So far no go on boot yet. Currently troubleshooting it. I'm also busy with the Epic 4G Touch. I'm trying to get the device to properly match internal and sdcard. Currently it is mounting the sdcard as internal and internal as sdcard.
[Android] kevin130:
im going to continue trying tommorow. I keep getting errors. I dont understand why i keep getting errors if im using your device repo and i followed everything step-by-step.

Lastest Error:

No private recovery resources for TARGET_DEVICE shooter

make: *** No rule to make target `hardware/qcom/gps/loc_api/libloc_api-rpc/inc-50000/loc_api_cb.h', needed by `out/target/product/shooter/obj/include/libloc_api-rpc/inc/loc_api_cb.h'. Stop.

make: *** Waiting for unfinished jobs....

Export includes file: system/core/libmincrypt/Android.mk -- out/host/linux-x86/obj/STATIC_LIBRARIES/libmincrypt_intermediates/export_includes
[Android] dastin1015:
That's because it's configured for CM. Comment out this line in the msm8660-common repo BoardConfigCommon.mk:

BOARD_VENDOR_QCOM_GPS_LOC_API_AMSS_VERSION := 50000
[Android] kevin130:
Continue to get same error:

....

PRODUCT_COPY_FILES frameworks/base/data/sounds/ringtones/ogg/UrsaMinor.ogg:system/media/audio/ringtones/UrsaMinor.ogg ignored.

PRODUCT_COPY_FILES frameworks/base/data/sounds/ringtones/ogg/Zeta.ogg:system/media/audio/ringtones/Zeta.ogg ignored.

PRODUCT_COPY_FILES frameworks/base/data/keyboards/AVRCP.kl:system/usr/keylayout/AVRCP.kl ignored.

PRODUCT_COPY_FILES frameworks/base/data/keyboards/qwerty.kl:system/usr/keylayout/qwerty.kl ignored.

PRODUCT_COPY_FILES frameworks/base/data/keyboards/qwerty.kcm:system/usr/keychars/qwerty.kcm ignored.

PRODUCT_COPY_FILES frameworks/base/data/keyboards/qwerty2.kcm:system/usr/keychars/qwerty2.kcm ignored.

No private recovery resources for TARGET_DEVICE shooter

make: *** No rule to make target `hardware/qcom/gps/loc_api/libloc_api-rpc/inc-/loc_api_cb.h', needed by `out/target/product/shooter/obj/include/libloc_api-rpc/inc/loc_api_cb.h'. Stop.

make: *** Waiting for unfinished jobs....

host Java: guavalib (out/host/common/obj/JAVA_LIBRARIES/guavalib_intermediates/classes)

Note: Some input files use or override a deprecated API.

Note: Recompile with -Xlint:deprecation for details.
[Android] dastin1015:
Uncomment the line and change 50000 to 3200 for now then
[Android] CallMeVentus:
He didn't try CM's hardware/qcom ?

Sent from a Samsung Galaxy Ace
[Android] dastin1015:
That causes some more problems possibly down the road due to possible dependencies.
[Android] CallMeVentus:
I see.....

Sent from a Samsung Galaxy Ace
[Android] jd3107:
Dastin,

Whenever I try to issue the command extract-files.sh, it say's permission denied. Not sure what I did wrong. Also, I tried the command as a super user as well and same thing. Thanks any help would be appreciated. Great guide also
[Android] dastin1015:
Make sure that your USB is properly configured and that USB debugging is enabled on your device.
[Android] jd3107:
Thanks for your reply. I checked the USB settings and when I type adb devices, it shows my device id.,so I'm assuming it is working. Also USB debugging is enabled.
[Android] dastin1015:
Interesting. Should be working then.
[Android] jd3107:
Yeah, thats what I was thinking. Is there any other way to extract the files?
[Android] dastin1015:
Manually pull them from a ROM and then create the vendor make files on how the setup-makefiles.sh has them set up. Make sure the syntax is proper. Look at other vendor make files for examples.
[Android] jd3107:
Thanks, I will give it a go. Will this work even though I'm on a stock rom? I was thinking I might need to do adb pull for all the files individually.
[Android] dastin1015:
Normally best to pull from a CM ROM.
[Android] jd3107:
What CM ROM would you suggest for what I need to do? Thanks again Dastin
[Android] Mattix724:
Hmm, I'm having a little trouble getting my build started

Here is what is happening... http://pastebin.com/NxE8d8EP

EDIT: Looks like I just needed to make bacon

EDIT: I lied... make bacon did not do the trick. http://pastebin.com/mKcTWzUs