yashsingh1/xdaforums huggingface dataset:
[Motorola Droid RAZR] DROIDRAZ:
Yes but I have not found a way to edit framework-res.apk so what I did is I extracted it from .zip and used apktool to modify it and replaced it in the archive. To update source first

Make clobber

Then

Repo sync

Then . build/envsetup.sh && brunch spyder

Sent from my own CM10 ROM built from source
[Motorola Droid RAZR] DROIDRAZ:
Updated guide because I forgot a step

Sent from my own CM10 ROM built from source
[Motorola Droid RAZR] silentjet:
Can you please describe how to make ZIP image from img files ?

I compiled AOSP and can't find way to flash it.
[Motorola Droid RAZR] DROIDRAZ:
Do you mean like how to combine the whole thing into a .zip file? I'm not quite sure what you mean

Sent from my own CM10 ROM built from source
[Motorola Droid RAZR] motopuk:
This guide is valid to umts_spyder?
[Motorola Droid RAZR] DROIDRAZ:
When compiling try:

. build/envsetup.sh && brunch umts_spyder

I don't have access to my computer so I can't check the name but I think that is it.

Sent from my own CM10 ROM built from source
[Motorola Droid RAZR] silentjet:
Yeah, exactly.
[Motorola Droid RAZR] lechuckthepirate:
I guess then that making:

build/envsetup.sh && brunch umts_spyder

Will compile the GSM version ?
[Motorola Droid RAZR] lechuckthepirate:
Forget it.. I misreaded a post already replying to this... sorry
[Motorola Droid RAZR] DROIDRAZ:
You have to type the "." before build/envsetup.sh or it won't work.

Sent from my own CM10 ROM built from source
[Motorola Droid RAZR] DROIDRAZ:
To compile aosp type:

. build/envsetup.sh

Then type:

lunch

Then look for "full_spyder-userdebug" then type the number that it is and hit enter then:

make -j# otapackage

# is the amount of cores you have + 1

Sent from my own CM10 ROM built from source
[Motorola Droid RAZR] silentjet:
Is this otapackage ready to install as second rom ?
[Motorola Droid RAZR] DROIDRAZ:
Yes it should come out as .zip file

Sent from my own CM10 ROM built from source
[Motorola Droid RAZR] silentjet:
tnx
[Motorola Droid RAZR] DROIDRAZ:
Will be making guide on how to make a flashable zip later also.
[Motorola Droid RAZR] bieltv3:
Delete that
[Motorola Droid RAZR] DROIDRAZ:
Are you trying to build for the RAZR?
[Motorola Droid RAZR] silentjet:
I'm built android but all the time I have issue with graphic subsystem.

SGX libraries I take from stock ICS, and looks like it works, but I got problem with surfaceflinger(can't dequeue buffer) or(in another conf) problems with resolution(it is more then 540x960). Did you know how to fix this ?
[Motorola Droid RAZR] DROIDRAZ:
Are you trying to build for JB or ICS because I don't think ICS libraries work on JB

Sent from my XT912
[Motorola Droid RAZR] silentjet:
I'm building JB. But GPU specific libraries are available only as binary (/system/vendor/lib/*) So i pick them from stock ICS (they should match kernel) I'm running JB on top of 3.0.8 stock kernel (I do not use kexec)
[Motorola Droid RAZR] DROIDRAZ:
I don't think I know how to fix it. I have never had those problems you listed. I will try and see if those same problems happen to me.

Sent from my XT912
[Motorola Droid RAZR] silentjet:
Actually i'm already fix it. but faces with another problem, display actually do not turnon. But android and UI actually runs successful :) I may even run applications by taping to wellknown places on screen :)
[Motorola Droid RAZR] poboy975:
I have a few questions, since this is in the Droid Razr threads, I'm assuming that this will build a working JB rom for the Droid Razr? Why do you need a 64bit version of Ubuntu when you are forcing the i386 libs? Linux handles larger than 4gbs memory differently than windows, 64bit is not essential unless you're running more than 16gbs of ram thanks to PAE( Physical Address Extension) I cant post a link yet apparently. Will this work on the latest Ubuntu 12.10 32bit? That is what I'm currently running.
[Motorola Droid RAZR] DROIDRAZ:
Yes it will build working JB. 64-bit is the only one I've tested but seems like it might work IDK. Not sure if it'll work on 12.10 32 bit

Sent from my XT912
[Motorola Droid RAZR] silentjet:
This is NOT hw or ubuntu issue. All tools that provided by google as part of android build system is compiled for x86_64. So there is no way to use ANY 32-bit linux. This "update" was provided by google near ICS release. So the very last version that you can build on 32-bit linux is GB(maybe HC).
[Motorola Droid RAZR] DROIDRAZ:
Are you trying to build AOSP

Sent from my XT912
[Motorola Droid RAZR] poboy975:
I'm trying to build the CM, I've followed the instruction in this thread that we are posting in.
[Motorola Droid RAZR] DROIDRAZ:
To build CM do this in root of working directory:

. build/envsetup.sh && brunch spyder

If its a no go try a repo sync again

Sent from my XT912
[Motorola Droid RAZR] DROIDRAZ:
I think it is also I forgot to include step. Before repo sync run:

./vendor/cm/get-prebuilts

Sent from my XT912
[Motorola Droid RAZR] djjonastybe:
you are taking too much steps with your guide.

Ubuntu 12.04 also works fine

Ubuntu 12.10 is untested by me
[Motorola Droid RAZR] poboy975:
Well, I've just tested Ubuntu 12.10 and it works just fine, though you have to repo sync before you do the ./vendor/prebuilt bit, as until you do the repos sync, there IS no vendor dir. I've installed the zip, and it works, mostly, there is no camera, at all. I thought that was fixed in other cm releases?
[Motorola Droid RAZR] DROIDRAZ:
There should have been camera. Look in system/app and should be gallery2 and gallery4 if there is something didn't compile right

Sent from my XT912
[Motorola Droid RAZR] poboy975:
There was no camera app in the app drawer at all, and when I tried to open the camera from say the lock screen, it said device not available. I didn't notice anything wrong when it was compiling, I didn't see any errors. What steps do I need to do to recompile? I'm thinking make clean, then repo sync again to update?

*edit*

Nevermind, I saw the redo on OP. When I run . build/envsetup && brunch spyder -j# I get a "dependancies not met, bailing out" right after, then it continues to build. Is that normal? Or am I missing something?
[Motorola Droid RAZR] DROIDRAZ:
That dependencies not found just means that it is not an official CM device

Sent from my XT912
[Motorola Droid RAZR] DROIDRAZ:
Send me logcat

Sent from my XT912
[Motorola Droid RAZR] DROIDRAZ:
What files are in those scripts?

Sent from my XT912
[Motorola Droid RAZR] poboy975:
Here they are. I ran then both, pulled a bunch of files from my phone.

Now, when I try to . build/envsetup.sh && brunch spyder -j8 i get this:

Export includes file: system/su/Android.mk -- out/target/product/spyder/obj/EXECUTABLES/su_intermediates/export_includes
Notice file: system/su/NOTICE -- out/target/product/spyder/obj/NOTICE_FILES/src//system/xbin/su.txt
Import includes file: out/target/product/spyder/obj/EXECUTABLES/vim_intermediates/import_includes
make: *** No rule to make target `vendor/motorola/spyder/proprietary/Hostapd', needed by `out/target/product/spyder/system/bin/Hostapd'. Stop.
make: *** Waiting for unfinished jobs....
Export includes file: external/vim/src/Android.mk -- out/target/product/spyder/obj/EXECUTABLES/vim_intermediates/export_includes

and it stops compiling
[Motorola Droid RAZR] DROIDRAZ:
That file is not in my directory. Maybe if you look in vendor/motorola/spyder/proprietary/lib and see if there are camera libs in there.

Sent from my XT912
[Motorola Droid RAZR] poboy975:
Yes, in vendor/motorola/spyder/proprietary/lib I have:

libcamera_client.so

libcameraeventlog.so

libcameraservice.so
[Motorola Droid RAZR] DROIDRAZ:
I'll send you the ones in my directory and see if they work

Sent from my XT912
[Motorola Droid RAZR] poboy975:
What about this new error I'm getting when I try to build, the

make: *** No rule to make target `vendor/motorola/spyder/proprietary/Hostapd', needed by `out/target/product/spyder/system/bin/Hostapd'. Stop.

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

*nevermind* I ran it again and it seems to be compiling correctly now. I'll see once it's done and I get it flashed if the camera works.
[Motorola Droid RAZR] poboy975:
Well, after re-running the make over and over it seemed to get further and further, but it finally hit the Hostapd no rule to make target and finally quit. Refused to build any farther. I've looked through the manifest file, and a bunch of .mk files but I cant find the Hostapd to remove it. I'm going to start from scratch, new dir new repo sync etc. Let me ask, you do have a working camera on a droid razr with this build correct? I was looking at some of the other roms based on cm10 and some have working camera's and some don't. And will I need to pull the propriety files from my phone for this to work? Other posts were saying the cm10 uses a new file to pull the files, but I can't find one for spyder.
[Motorola Droid RAZR] DROIDRAZ:
I have built working cm10 ROM using this method. It has camera in it. I didn't have to pull files from my device because the vendor files were already there. When you sync with repo it should already have device files

Sent from my XT912
[Motorola Droid RAZR] poboy975:
Well, it's not working for me. I've followed the instructions to the letter. I get a build, but no camera. There are camera files in the src, but no camera.apk when it's done.
[Motorola Droid RAZR] poboy975:
I'm not sure what else to try at this point. I'm using safestrap, and I've deleted the rom slot, reflashed, re compiled. It doesn't matter, there is a gallery, but no camera. When I logcat the camera it tells me the HAL is not loaded. Is it possible to pull the camera files from ICS and push them into the build?
[Motorola Droid RAZR] DROIDRAZ:
I'm not sure but have you tried 3rd party camera apps?

Sent from my XT912
[Motorola Droid RAZR] Xrunner87:
If I want to put a Chinese Retail Transplan Rom into the CNA or CM10,I still could use this way?I dont know anything about JAVA or Android...
[Motorola Droid RAZR] poboy975:
Yeah, I ried a couple of camera apps from the play store, none of them worked. It seems that for some reason, my phone or computer is not loading the camera drivers needed. Either they aren't building, which I dont see any errors in my compile.log, or they aren't loading in the phone itself. I loaded the Wizzed bean CNiv and the camera works, except for the front facing one. So, it's in my build somewhere I think.

*edit*

Maybe if you could post your build, I could compare the 2 to see what I'm missing, see what the difference is between them.
[Motorola Droid RAZR] DROIDRAZ:
http://db.tt/dWBAvjUn

Sent from my XT912
[Motorola Droid RAZR] DROIDRAZ:
What do you mean?

Sent from my XT912
[Motorola Droid RAZR] poboy975:
Well, not sure if comparing the two is going to work, since you have quite a few more files than I do, zip sizes are quite different. Yours has a lot more folders inside. sigh....

*update*

For what it's worth, I'm not the only one who doesn't have a working camera with this build. I've seen a few posts floating around on Google+ today with links to CM10 for Droid Razr, and it's the exact same file that i'm building, complete with no working camera.

*2nd update*

I flashed the rom you linked, and there is no camera for me there either. Also, found this out, none of the JB roms I've tried, mine, yours, and the Wizzed Bean CNA, the bluetooth does not work on any of those. When I have bluetooth turned on, I hear nothing, and no one can hear me. Even though my headset connects with no problems.
[Motorola Droid RAZR] poboy975:
Ok, I pulled a logcat while trying to make a call with the Bluetooth enabled, and here was the response. I tried googling this, but have only found one post, and they had the same problem, but there were no solutions in the thread.

11-12 13:09:59.982: D/AudioHardwareMot(468): setVoiceVolume(1.000000) Setting in-call volume to 7 (available range is 0 to 7.000000)
11-12 13:09:59.982: D/AudioMgrRIL(468): setting volume, volume = 7
11-12 13:09:59.982: D/AudioHardwareMot(468): Output latency, using cached value = 99
11-12 13:09:59.982: W/AudioPolicyManagerBase(468): setStreamMute() unmuting non muted stream!
11-12 13:09:59.982: W/AudioPolicyManagerBase(468): setStreamMute() unmuting non muted stream!
11-12 13:09:59.982: W/AudioPolicyManagerBase(468): setStreamMute() unmuting non muted stream!
11-12 13:10:00.006: D/AudioHardwareMot(468): Output latency, using cached value = 99
11-12 13:10:00.006: D/AudioHardwareMot(468): AP audio cannot be sent to BT SCO during a call; no BP mixing support
11-12 13:10:00.006: E/AudioHardwareMot(468): Error:write failed; no ALSA stream
11-12 13:10:00.052: D/AudioHardwareMot(468): Output latency, using cached value = 99
11-12 13:10:00.076: D/AudioHardwareMot(468): Output latency, using cached value = 99
11-12 13:10:00.076: D/AudioHardwareMot(468): AP audio cannot be sent to BT SCO during a call; no BP mixing support
11-12 13:10:00.076: E/AudioHardwareMot(468): Error:write failed; no ALSA stream
11-12 13:10:00.131: D/AudioHardwareMot(468): Output latency, using cached value = 99
11-12 13:10:00.154: D/AudioHardwareMot(468): Output latency, using cached value = 99
11-12 13:10:00.154: D/AudioHardwareMot(468): AP audio cannot be sent to BT SCO during a call; no BP mixing support
11-12 13:10:00.154: E/AudioHardwareMot(468): Error:write failed; no ALSA stream
11-12 13:10:00.201: D/AudioHardwareMot(468): Output latency, using cached value = 99
11-12 13:10:00.224: D/AudioHardwareMot(468): AP audio cannot be sent to BT SCO during a call; no BP mixing support
11-12 13:10:00.224: E/AudioHardwareMot(468): Error:write failed; no ALSA stream
11-12 13:10:00.302: D/AudioHardwareMot(468): AP audio cannot be sent to BT SCO during a call; no BP mixing support
11-12 13:10:00.302: E/AudioHardwareMot(468): Error:write failed; no ALSA stream
11-12 13:10:00.373: D/AudioHardwareMot(468): AP audio cannot be sent to BT SCO during a call; no BP mixing support
11-12 13:10:00.373: E/AudioHardwareMot(468): Error:write failed; no ALSA stream
[Motorola Droid RAZR] DROIDRAZ:
Seems it is issue with moto driver

Sent from my XT912
[Motorola Droid RAZR] dtrail1:
All kexec builds are exiting while repo sync du to fetch errors... also tried CNA stock - the same..
[Motorola Droid RAZR] DROIDRAZ:
I just did a repo sync and it worked fine. Do you think it is your internet?
[Motorola Droid RAZR] dtrail1:
I am using a high power ubuntu server. But "repo sync -f" solves it.
[Motorola Droid RAZR] SAJdroid:
A very useful guide guys ... +1 ... cheers..
[Motorola Droid RAZR] DROIDRAZ:
If I get a working CM 10.1 port I will write a guide on how to do that
[Motorola Droid RAZR] feered:
I'm not seeing a brunch. The command doesn't exist apparently. Does anyone have suggestions?

Also.. I noticed CNA doesn't have a "get-prebuilts". However there is a folder in there named prebuilts.
[Motorola Droid RAZR] DROIDRAZ:
I haven't built CNA but there should be brunch command after you do all the steps in the guide leading to that step. What version are you running
[Motorola Droid RAZR] feered:
I get the lunch command, but not brunch.... And I've followed each step carefully - multiple times.
[Motorola Droid RAZR] DROIDRAZ:
What version of Ubuntu
[Motorola Droid RAZR] feered:
10.04 LTS
[Motorola Droid RAZR] DROIDRAZ:
64-bit or 32-bit
[Motorola Droid RAZR] DROIDRAZ:
Do you have 32-bit or 64-bit?

Enviado desde mi XT912
[Motorola Droid RAZR] DarkWebster:
I've got the same problem too, and I'm running 64bit. The packages i've installed are on this thread:

http://xdaforums.com/showthread.php?t=1891046
[Motorola Droid RAZR] Nihar.G:
64-Bit.

Any clue about that error ?
[Motorola Droid RAZR] DROIDRAZ:
Are you trying to build using the files from this guide for your device?

Enviado desde mi XT912
[Motorola Droid RAZR] Nihar.G:
Obviously not.

We have already working Device tree for pico. But I'm getting this error while trying to Compile. So asked here in hope of getting some help :)
[Motorola Droid RAZR] DROIDRAZ:
It is an error compiling kernel. I will check into it with more detail later.

Enviado desde mi XT912
[Motorola Droid RAZR] Nihar.G:
I already managed to fix the error. Thanks for your help though!
[Motorola Droid RAZR] Faekie:
Was reeally excited to try this but received the following error when compiling:

target thumb C++: camera.omap4 <= hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXMetadata.cpp
hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXMetadata.cpp:29:35: fatal error: camera/CameraMetadata.h: No such file or directory
compilation terminated.

Anyone got a clue? There is no "CameraMetadata.h" file anywhere in my working directory but there is a: "vendor/motorola/umts_spyder/proprietary/lib/hw/camera.omap4.so". Should this one be used somehow :confused:

Sorry, I'm a noob but hope that I can contribute somehow! :highfive:

Edit: I am building on 64-bit Ubuntu 11.10
[Motorola Droid RAZR] DROIDRAZ:
I don't have those files in my directory :confused::confused::confused: You may need to try repo sync again

Enviado desde mi XT912
[Motorola Droid RAZR] Faekie:
I have tried running repo sync numerous times and everything seems to be in sync.

Fetching projects: 100% (340/340), done.
Syncing work tree: 100% (340/340), done.

My working directory is now ~16 GB after a make clean, 283 070 files in 39 187 directories.

Perhaps I will resync the repository from scratch and see if that helps.
[Motorola Droid RAZR] kfazz:
comment out the #include <camera/CameraMetadata.h> in OmxMetaData.cpp.

worked for me, ymmv
[Motorola Droid RAZR] Faekie:
Thank you, worked a treat! :good:

ROM NAME = KEXEC-cm-10
ROM OTA ID = KEXEC-JB-cm_umts_spyder
ROM version = 20121212-UNOFFICIAL-umts
OTA date/time = 20121212-2045
8ee7a4ef9989c8e412860903cf3a054c KEXEC-cm-10-20121212-UNOFFICIAL-umts_spyder.zip

I ran "brunch umts_spyder", does it always build the KEXEC ROM? I saw a "cm_umts_spyder-ota-eng.xxx.zip" in the output folder as well and I assume that it is the non-KEXEC version? Altough there is no .md5sum or .ota file accompanying it.
[Motorola Droid RAZR] priddyma:
It builds, but unless I'm missing something it does not compile the camera application. Or even allow ANY camera app to utilize it.
[Motorola Droid RAZR] DROIDRAZ:
Sorry for not being active. I have strep throat and I can only lay in bed. :(:(:mad::mad::thumbdown::thumbdown::thumbdown::thumbdown:

Enviado desde mi XT912
[Motorola Droid RAZR] priddyma:
Quick question... how would you build a non-KEXEC version? The other day when I ran it it pulled a stock CM10 but today it seems to want to compile as KEXEC.
[Motorola Droid RAZR] DROIDRAZ:
In the repo init step, go to that GitHub page and look at the different branches. Instead of -b jellybean replace with -b yourbranchname

Enviado desde mi XT912
[Motorola Droid RAZR] DanceOff:
will this work for other devices like my HTC EXPLORER ?
[Motorola Droid RAZR] dtrail1:
I guess not, but check what "lunch" says.. But STS doesn't work on HTC as I know... So it shouldn't work with that repo.

But HTC phones are unlocked (bl), aren't they? So there should be many roms available in its forums section.

XT910 - D-WiZ 2.0.3
[Motorola Droid RAZR] DanceOff:
We already was stable cm10 ! I was wondering if I use this for cm10.1 will it work ?? I have already downloaded sources can't get where to start !! I referred some guide but my phone didnt boot up ! Logcat also did not work.
[Motorola Droid RAZR] kfazz:
Make sure to download the stock local_manifest.xml, and delete devices/motorola/kexec if it exists, repo sync, and brunch again, and you should get a stock build. I do this to use stock libs for a kexec 3.0.8 kernel.

Edit: this is a reply to priddyma, not sure where the quote went
[Motorola Droid RAZR] studymadara:
query

can i put this in the local manifest.xml??

i m trying to create a build for our umts_spyder

i just want vendor,kernel and device

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

<manifest>

<project path="device_??/" name="??" remote="github" revision="cm-11.0" />

<project path="vendor_??/" name="??" remote="github" revision="master" />

<project path="kernel_??/" name="??" remote="github" revision="cm-11.0" />

</manifest>

what should i put here.??
[Motorola Droid RAZR] d.casper.b:
Lol, 2012. Don't know if you'll actually get help on this.

Sent from my Motorola RAZR Maxx (XT910)
[Motorola Droid RAZR] uwie77:
Maybe you can look general section treat started by tonyt to building rom lolipop

Sent from my XT910
[Motorola Droid RAZR] studymadara:
sorry i dint understand

can u be more specific.. :)

is there any link?? or something like that??
[Motorola Droid RAZR] uwie77:
http://xdaforums.com/showthread.php?t=3040570

Sent from my XT910
[Motorola Droid RAZR] DROIDRAZ:
What are you trying to do
[Motorola Droid RAZR] studymadara:
I just want to knw the device vendor and kernel address so that I can port a new rom for our razr

Sent from my Motorola RAZR XT910
[Motorola Droid RAZR] tejus:
Bro my pc is running 32 bit windows so can i proceed with 32 or i should upgrade window?
[Motorola Droid RAZR] Bobcus Leper:
You can not build Android from source on a x86 (32 bit) system. I have tried before, and have failed miserably. Save yourself time by upgrading to a x64 system.
[HTC Desire S] amrish96:
Hi everyone,

I tried to flash the latest MIUI rom (2.10.12) for my phone, so i booted into recovery and wiped cache+data

I chose the install from zip and just chose my zip

I get:

-- Installing: /sdcard/miuiandroid_saga-2.10.12.zip

Finding update package...

Installing update package...

Formating system...

do not format system

Installing system files...

Creating system links...

Set permission...

Update Boot image...

Install from sdcard complete

But when I reboot, my phone shows the T-Mobile logo and then it just doesnt do anything... I have waited more than 30 minutes, and even flashed the Gappspackage hoping that would fix it but nothing works.

Any idea how to fix this?
[HTC Desire S] SimonTS:
HCTDev unlocked? Flashed boot.img? Right hBoot?
[HTC Desire S] amrish96:
I unlocked my phone with revolutionay, HBOOT version 6.98.1002

I just searched the .zip and installed it via clockworkwod if that's what you meant with the boot.img
[HTC Desire S] teadrinker:
You'll have to upgrade your hboot to 7.00, miui now uses the system/lib partition.
[HTC Desire S] amrish96:
Okay going to update hboot now
[HTC Desire S] amrish96:
upgraded hboot, wiped all it works now.

TNX guys, you're awesome :D
[Samsung Galaxy Nexus] gaga111:
Just recieved OTA update on my stock gnex using the google-framework cache clear/close process method.

I cleared cache of google-framework process and then stopped it, rebooted the device and after reboot was done i got the OTA, installed it and phone booted again. update was installed without any problems.

BUT: when going into settings => location access => and then tapping "access to my location" settings force closes.

i rebooted the phone a few times and tried everything that came into my mind, no solution :(

anybody got the same problem or maybe even a solution?
[Samsung Galaxy Nexus] Inferis:
No problems for me. Ive just got 4.1.2
[Samsung Galaxy Nexus] gaga111:
Anbody else :S

Just to be clear.. i dont mean switching it on and off

edit:

seems like light flow is causing the force close...

as soon as i deactivate lightflow from the accessibility settings this doesnt happen anymore
[Samsung Galaxy Nexus] jobarr:
Same problem here and that fixes it for me too! Happens on my wife's Nexus 7 too, but she has NoLED there so this may be a bug that has to do with anything enabled under accessibility settings (or at least not ONLY Light Flow).

Edit: I wonder if this is related:

http://forum.swype.com/showthread.p...Swype-Issue-Thread&p=35850&posted=1#post35850

"Note: We have found that this issue is related to running apps that have settings in the accessibility menu in Android settings. In the meantime, you should be able to use Swype by disabling any apps that are in Android Settings > Accessibility."

Sounds like 4.1.2 has some kind of Accessibility bug,