yashsingh1/xdaforums huggingface dataset:
[Android] triptosyll:
Can anyone in here tell me what the libakm.so is? I don't have it on my phone running aosp 4.1.1, but when I try and build aosp 4.1.1, it complains that that files not there. I just wanna know what it does, and if I need it.

________________________________

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
[Android] dastin1015:
Pull it from CM. It's for rotation.
[Android] triptosyll:
I tried, I couldn't find it.

And why doesn't my fone have it? I don't understand, cuz I'm running aosp...

Can u locate that file?

________________________________

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!

---------- Post added at 10:13 PM ---------- Previous post was at 10:12 PM ----------

As of right now, I just edited out the line that called for it. When I find it, I can just push it to the ROM I built right?

________________________________

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
[Android] dastin1015:
Try a stock ROM. The file has to be specifically from your device.
[Android] triptosyll:
K, I'll look for it.

________________________________

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
[Android] cpwshf:
Thanks dastin,

I tried to do just that with the kitchen, but when I tried to flash the rom, I got the "set_perm: some changes failed" then status 7 and failed message. I also tried to let the kitchen change the updater-script, removed the recovery, zipped and signed, upon trying to flash that time I got a status 6....

Reading through the kitchen thread to see what I can do, I could of sworn I saw a compile option that would allow you to bypass the recovery??

UPDATE: according to the thread for the kitchen, it doesn't support the Galaxy S3,,,,.......
[Android] cpwshf:
Okay, well I feel dumb for not making use of cwm's recovery.log file today, in any event I corrected mutiple errors in the updater-script file. I was able to flash my rom, however it still bootloops, in the recovery.log I now have:

I:Checking for extendedcommand...

I:Skipping execution of extendedcommand, file not found...

I:Can't partition non-vfat: datamedia

I:Can't partition unsafe device: /dev/block/mmcblk1p1

I:Can't format unknown volume: /emmc

I:using /data/media for /sdcard.

I think I may be going back to the drawing board on this one.....
[Android] KainXSS:
So I'm on a tab with 4.0.3 as a base can I use that for JB compiling?
[Android] cpu999:
Can we use a cm device tree building for aokp?
[Android] gangstaboy13:
Where to put the prebuilt kernel? And does it needs to be a boot.img or flashable zip?
[Android] BENETNATH:
Hi,

i successfully managed (thanks for this thread) to build a cm10 for the a510, it seems really fast to install in cwn, and on boot it's stuck on the boot logo

what would be the best way to debug ?

what difference exists between the JB and ICS boot.img ?

thanks to all repliers ;)
[Android] triptosyll:
Alright. I had the ROM building last night. It was building for about 45 mins, before if failed with this error:

Error: frameworks/base/include/media/stagefright/VideoRenderer.h: no such file or directory.

Any idea whether I need that file? If not, what file is it that's calling for it? I don't know which file to edit. My working directory doesn't contain the videorenderer.h file at all, so I want the build to ignore looking for that file. Unless I need it and in that case, I still need to know what file calls on that directory, so I can change the destination.

________________________________

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
[Android] cpu999:
I had no problems until running lunch. Then :

~/cna_jb$ lunch

You're building on Linux

Lunch menu... pick a combo:
1. cm_d2att-eng
2. cna_crespo-userdebug
3. cna_crespo4g-userdebug
4. cna_grouper-userdebug
5. cna_maguro-userdebug
6. cna_stingray-userdebug
7. cna_stingray_cdma-userdebug
8. cna_toro-userdebug
9. cna_toroplus-userdebug
10. cna_umts_everest-userdebug
11. cna_wingray-userdebug

Which would you like? [full-eng] 1
build/core/product_config.mk:205: *** No matches for product "cm_d2att". Stop.
Device d2att not found. Attempting to retrieve device repository from Codename Android Github (http://github.com/CNA).
Repository for d2att not found in the Codename Android Github repository list. If this is in error, you may need to manually add it to your local_manifest.xml.
build/core/product_config.mk:205: *** No matches for product "cm_d2att". Stop.

** Don't have a product spec for: 'cm_d2att'
** Do you have the right repo manifest?

I tried changing full_d2att.mk's PRODUCT_NAME to cm_d2att already...

Anyone have any ideas?
[Android] gangstaboy13:
hmm ive no idea about this error

could anyone help me out?

make: *** [out/target/product/galaxysmtd/obj/SHARED_LIBRARIES/libwebcore_intermediates/LINKED/libwebcore.so] Error 1
make: *** Waiting for unfinished jobs....
[Android] CallMeVentus:
That's not the full error.....
[Android] gangstaboy13:
Hmm ill compile again with a clean out directory
[Android] triptosyll:
The thing he's trying to tell u is that the error could have NOTHING to do with the out directory. I've been fighting errors for a week now, and a lot of them look like that. I haven't had to do anything with the out directory. U gotta get the full error up here for us to see. The problem area is indicated a little further up in the error.

________________________________

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
[Android] onlychevys:
I hope it's ok to ask this here, I've been building cm10 from source and all the suddon I keep getting this same error. I had to re-install ubuntu10.04 and start over due to a bad drive and can't get past this error:

/home/onlychevys/cm10/kernel/samsung/msm8660-common/arch/arm/boot/compressed/piggy.lzo.S:4: Error: file not found: arch/arm/boot/compressed/piggy.lzo

make[4]: *** [arch/arm/boot/compressed/piggy.lzo.o] Error 1

make[3]: *** [arch/arm/boot/compressed/vmlinux] Error 2

make[2]: *** [zImage] Error 2

make[1]: *** [sub-make] Error 2

make[1]: Leaving directory `/home/onlychevys/cm10/kernel/samsung/msm8660-common'

make: *** [TARGET_KERNEL_BINARIES] Error 2

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

onlychevys@main:~/cm10$

The piggy.lzo.S file is there, I'm lost as to how to fix this. The error comes up after about 1/2 hour of building. I was getting this error before I re-installed ubuntu also. Thanks for any help!!
[Android] CallMeVentus:
It's not .lzo.S , it's just .lzo .

Sent from a Samsung Galaxy Ace
[Android] onlychevys:
When I google or search these forums I come up with my own postings lol. Any idea how I would go about fixing this?
[Android] triptosyll:
Fixing what?

________________________________

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
[Android] onlychevys:
post#1322, I can't figure out how to fix that error. I know I'm missing piggy.lzo but where do I get it? Is this a sinc problem, maybe my local_manifest.xml , I can't figure it out.
[Android] triptosyll:
Rename the one u have. U said u had one named piggy.lzo.S didn't u? Rename it. Take the .S off then end. Make clean and, try it again. If it doesn't work, u can always change the name back.

________________________________

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
[Android] onlychevys:
OK gonna give that a shot
[Android] dany547:
any ideeas how i can clean this? i got alot of duplicates http://pastebin.com/jVEmKD5S
[Android] abauer:
bYTrying to compile JB for Dell Streak 5 , I run into this error :

build/core/base_rules.mk:79: *** Module name: gps.streak
build/core/base_rules.mk:80: *** Makefile location: hardware/qcom/gps/loc_api/libloc_api
build/core/base_rules.mk:81: *
build/core/base_rules.mk:82: * Each module must use a LOCAL_MODULE_TAGS in its
build/core/base_rules.mk:83: * Android.mk. Possible tags declared by a module:
build/core/base_rules.mk:84: *
build/core/base_rules.mk:85: * optional, debug, eng, tests, samples
build/core/base_rules.mk:86: *
build/core/base_rules.mk:87: * If the module is expected to be in all builds
build/core/base_rules.mk:88: * of a product, then it should use the
build/core/base_rules.mk:89: * "optional" tag:
build/core/base_rules.mk:90: *
build/core/base_rules.mk:91: * Add "LOCAL_MODULE_TAGS := optional" in the
build/core/base_rules.mk:92: * Android.mk for the affected module, and add
build/core/base_rules.mk:93: * the LOCAL_MODULE value for that component
build/core/base_rules.mk:94: * into the PRODUCT_PACKAGES section of product
build/core/base_rules.mk:95: * makefile(s) where it's necessary, if
build/core/base_rules.mk:96: * appropriate.
build/core/base_rules.mk:97: *
build/core/base_rules.mk:98: * If the component should be in EVERY build of ALL
build/core/base_rules.mk:99: * products, then add its LOCAL_MODULE value to the
build/core/base_rules.mk:100: * PRODUCT_PACKAGES section of
build/core/base_rules.mk:101: * build/target/product/core.mk
build/core/base_rules.mk:102: *
build/core/base_rules.mk:103: *** user tag detected on new module - user tags are only supported on legacy modules. Stop.

It seems self explanatory , but since this is my first time I someone to help me.

I did put the LOCAL_MODULE_TAGS := optional in the Android.mk but then I get this :

No private recovery resources for TARGET_DEVICE streak
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/streak/obj/include/libloc_api-rpc/inc/loc_api_cb.h'. Stop.

Thank you in advance.

edit: seems I was missing the inc-50000 , copied and renamed the inc-1240 that was in same folder but I guess GPS will not work

edit : never mind , found the right sources
[Android] abauer:
Please , someone knows what should be done in this case.

Thank you in advance.

device/dell/streak/overlay/frameworks/base/core/res/res/values/config.xml:28: error: Resource at config_networkLocationProvider appears in overlay but not in the base package; use to add.
device/dell/streak/overlay/frameworks/base/core/res/res/values/config.xml:31: error: Resource at config_geocodeProvider appears in overlay but not in the base package; use to add.
make: *** [out/target/common/obj/APPS/framework-res_intermediates/package-export.apk] Error 1
make: *** Deleting file `out/target/common/obj/APPS/framework-res_intermediates/package-export.apk'
make: *** Waiting for unfinished jobs....

edit :deleted the overlay folder, solved.
[Android] gangstaboy13:
Overlay folder in device tree?
[Android] abauer:
yes , that one, since this is my first attempt to build it, I am not aware of the consequences, btw , it is still compiling as we speak.
[Android] dany547:
suggestions?
[Android] cpwshf:
I'm still running into problems with bootlooping on my GS3, is there any way to get some sort of log, I am not able to use logcat, because it just shows the Samsung logo, vibrates then the screen goes blank, vibrates again and reboots. I haven't found much yet on the forums but I am still looking around.

Anything else I can look for ?
[Android] dastin1015:
Kernel. Samsung devices suck for extracting kernels, but what you can do is take the CM kernel source for your device and compile it separately (there's a thread in this forum for compiling kernels) and then place the zImage where it needs to be and the modules as well.
[Android] cpwshf:
LOL!!, that's what I've been reading in a few different forums. Something else I am looking at, Samsung released kernel source code a while back for this phone, however there were a bunch of complaints about what they released. I looked into it, and pretty much it is useless, not to mention they are stating it's for ICS only.

I even compiled CM10 from source for my device, flashed it and it worked perfectly, tried copying the kernel(from the CM10 /out) over to my aosp build, compiled that and I just ended up in the same place, boot looping....

Thanks again
[Android] dastin1015:
I hate how Samsung does their Android.
[Android] cpwshf:
Okay, so I have a kernel compiled now with the resulting zImage and modules, course I am now reading this part "You will also need to assemble a kernel image containing a initramfs for your device, along with the kernel binary and such. Me thinks I need another drink..... all I can say is thank god I have a decent machine to compile all this!!
[Android] cpwshf:
Okay, I am lost, what I ended up doing was this:

I was able to compile a kernel with resulting zImage and *.ko modules

1. Set CROSS_COMPILE to an appropriate path prefix, e.g.,

export CROSS_COMPILE=../cm/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-

2. Build kernel, for d2spr:

make m2_spr_defconfig && make -j 4

Or, for d2vzw:

make m2_vzw_defconfig && make -j 4

And to merge the kernel into recovery:

3. Pull recovery partition from device:

adb reboot recovery

adb root

adb shell 'dd if=/dev/block/mmcblk0p18 of=/tmp/recovery.img bs=256k'

adb pull /tmp/recovery.img

4. Merge newly-built zImage into recovery.img:

../cm/out/host/linux-x86/bin/unpackbootimg -i recovery.img

cp arch/arm/boot/zImage recovery.img-zImage

../cm/out/host/linux-x86/bin/mkbootimg --kernel recovery.img-zImage \

--ramdisk recovery.img-ramdisk.gz \

--cmdline "console=null androidboot.hardware=qcom user_debug=31" \

--base 0x80200000 --pagesize 2048 --ramdiskaddr 0x81500000 \

-o recovery.img

This completed without any errors, so okay now I have a recovery.img.

I know that @dastin1015 mentioned that "Samsung uses a different method for their recovery, boot and kernels. Recovery and kernel are baked into the boot.img in a non-traditional way."

I wasn't able to find any information on that, and am still looking.
[Android] bieltv3:
Hi, I'm having this issue while trying to build from sources CM10. here it is:

CC net/ipv6/netfilter/nf_conntrack_proto_icmpv6.o

/home/bieltv3/android/CM10_cooper/kernel/samsung/msm7x27/net/ipv6/netfilter/nf_conntrack_proto_icmpv6.c: In function 'icmpv6_error':

/home/bieltv3/android/CM10_cooper/kernel/samsung/msm7x27/net/ipv6/netfilter/nf_conntrack_proto_icmpv6.c:211:16: error: 'nf_conntrack_untracked' undeclared (first use in this function)

/home/bieltv3/android/CM10_cooper/kernel/samsung/msm7x27/net/ipv6/netfilter/nf_conntrack_proto_icmpv6.c:211:16: note: each undeclared identifier is reported only once for each function it appears in

make[5]: *** [net/ipv6/netfilter/nf_conntrack_proto_icmpv6.o] Error 1

make[4]: *** [net/ipv6/netfilter] Error 2

make[3]: *** [net/ipv6] Error 2

make[2]: *** [net] Error 2

make[1]: *** [sub-make] Error 2

make[1]: se sale del directorio «/home/bieltv3/android/CM10_cooper/kernel/samsung/msm7x27»

make: *** [TARGET_KERNEL_BINARIES] Error 2

make: *** Se espera a que terminen otras tareas....

true

bieltv3@biel-PC:~/android/CM10_cooper$

I think is about that it can't found the nf_conntrack_proto_icmpv6.o file, but I've searched some kernels and this file isn't included to the kernel, I don't know if I'm right. What should I do??

Thanks
[Android] dastin1015:
That's the file it is trying to compile and the code in their is wrong somewhere as something wasn't declared. Try using a kernel source from CM or known to work with CM. If you got it from a kernel developer for your device and it doesn't properly compile it means their kernel isn't GPL compliment.
[Android] cpwshf:
@dastin1015 I think I am off the path with trying to get this working, I mean I am using a pre-compiled kernel from CM which should work, and all I am trying to do is get an AOSP build working with it. There's got to be a missing driver or something I missed on the build. On my GNex I can build JB AOSP for it like nothing, but so far not with the S3.
[Android] cpwshf:
UPDATE: umm yeah,, there's QUITE A FEW drivers that I did not have, hopefully I will get this going now with the missing drivers...
[Android] BENETNATH:
Hi,

just a question as currently i'm compiling without trouble CM10, but i wanna improve some things now.

What do yuo think of using linaro toolchain instead of classical one ?

if it useful, what would be the best way, just get the archive and point it through cross compile= ?

THANKS a lot by the way, this topic is really useful
[Android] jd3107:
Dastin,

Sorry to bother you, but are you still able to help me upgrade the device tree I sent to you, to Jelly Bean. Or can you point me in the right direction. Thanks man!
[Android] dastin1015:
Yeah sorry I've been busy and been meaning to get to it.
[Android] dastin1015:
Using the linaro toolchain will involve kernel edits to properly utilize the toolchain and kernel.mk in build/core/tasks.

You can set the toolchain location there.
[Android] dany547:
no one guys?
[Android] abauer:
Building on Ubuntu 12.04, cant pass this error, did increase the swap size , but problem still persist. Any walkarounds on this error ?

No private recovery resources for TARGET_DEVICE streak
RenderScript: Galaxy4 <= packages/wallpapers/Galaxy4/src/com/android/galaxy4/galaxy.rs
target Dex: Gallery2
target Dex: HTMLViewer
RenderScript: HoloSpiralWallpaper <= packages/wallpapers/HoloSpiral/src/com/android/wallpaper/holospiral/holo_spiral.rs
/bin/bash: out/host/linux-x86/bin/llvm-rs-cc: cannot execute binary file
make: *** [out/target/common/obj/APPS/Galaxy4_intermediates/src/RenderScript.stamp] Error 126
make: *** Waiting for unfinished jobs....
/bin/bash: out/host/linux-x86/bin/llvm-rs-cc: cannot execute binary file
make: *** [out/target/common/obj/APPS/HoloSpiralWallpaper_intermediates/src/RenderScript.stamp] Error 126
[Android] CallMeVentus:
Set that file as executable.....

Sent from my AN7G2I using Xparent SkyBlue Tapatalk 2
[Android] jd3107:
No problem, was just wondering. Thanks man
[Android] abauer:
It is already set as executable. same thing happened before with clang, but after swap resizing clang was ok. this one not.
[Android] hackarchive:
when here $ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > i get (7) Failed to connect to 2404:6800:4005:c00::5b: Network is unreachable.What can i do?
[Android] bieltv3:
Again I'm having this error now and I don't know what to do, idf someone can help me:

Thanks
[Android] Mattix724:
I'm trying to build SlimBean for the Epic 4G Touch and I am getting an error with this...

/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/arm-linux-androideabi-gcc: cannot execute binary file

The file does exist, I checked the properties and it does have permission to execute? What can I do to fix this?
[Android] dastin1015:
Check your internet connection.

Somethings wrong with the kernel

You're running 32bit when you should be running 64bit.
[Android] dastin1015:
I personally have no idea for kernel building. I just know how to add cherry-pick commits. Not a kernel developer
[Android] sakindia123:
15 days ago,cm10 booted on my Htc Explorer/Pico on first attempt after getting it to compile(stupid librpc and libqcomui)

I left it back then,wanted to finish ics.

ICs is now fully functional,went back to jellybean,compiled cm10 but it just refuses to boot :\

Here's the logcat ,help will be appreciated!

http://pastebin.com/P0ApR1Ew
[Android] dastin1015:
All of your services seem to be dying so something is wrong with the framework. Try looking at similar devices to yours that have official CM10 commits to get your device in line with them
[Android] BENETNATH:
thanks

any advice on a good source of info, howto or tuto ?
[Android] hackarchive:
my network's working perfectly.Isn't there anyother walkaround?:confused:
[Android] sakindia123:
no tut,try to compile the kernel separately with linaro toolchain,fix the source as errors crop up
[Android] mittalmailbox:
I don't have much experience with ROMs. we have Android 4.0.4 (Qualcomm source based and close to AOSP) with kernel 3.0.8 for Huawei Ideos X5(U8800). I want to know how difficult is it to make JB for it and how to start it
[Android] dastin1015:
Take this and modify it for JB. https://github.com/oguzhanmobile/android_device_huawei_u8800
[Android] gitch101:
Compiling done but status 7 while flashing any hulp?
[Android] abauer:
How to get rid of this error ?

make: *** No rule to make target `frameworks/base/data/etc/android.hardware.camera.front.xml', needed by `out/target/product/streak/system/etc/permissions/android.hardware.camera.front.xml'. Stop.
make: *** Waiting for unfinished jobs....

Nevermind, edited the <device>.mk file
[Android] sakindia123:
Get rid of the line that calls the xml from device make file

Or change to "native "

Sent from my head to your eyes
[Android] abauer:
Already did and compiling continues, but what are the after effects of commenting those lines ?
[Android] dastin1015:
Features don't have proper permissions and don't work
[Android] kevin130:
I had the same thing. Something is off in the updater script. The Rom will probably work fine. It tells you what was the error after status 7. Look for the error on the line it tells you. Please correct me if Im wrong
[Android] Roladriz:
Wondering if anyone has seen this one yet? Looks to me like I need 2 imports added to LockscreenTargets.java?

http://pastebin.com/4krFQ1hR

Here is the java file

http://pastebin.com/FbHHKubH

EDIT: fixed

https://github.com/CyanogenMod/android_packages_apps_Settings/blob/jellybean/src/com/android/settings/cyanogenmod/LockscreenTargets.java
[Android] bahrianabbas:
This is Going to be the Dumbest Question But I don't care If you criticize. I need Help from Helpers rather than Haters.

I just start learning about repos I am asking you I have big problem of electricity in my Country and also My internet is not that fast If I initialize repo (step 6 in OP) and start sync and for some reason I get disconnect and If I start sync again will it start all over again or it will continue from where it got killed?? Please anyone It will clear doubts in my mind.
[Android] abauer:
In this case this cant be the solution, as I need to remove all the lines in order to continue compiling,which would make the system pretty useless, any other ideas ?

# Permissions
PRODUCT_COPY_FILES += \
packages/wallpapers/LivePicker/android.software.live_wallpaper.xml:system/etc/permissions/android.software.live_wallpaper.xml \
frameworks/base/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
frameworks/base/data/etc/android.software.sip.xml:system/etc/permissions/android.software.sip.xml \
frameworks/base/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
frameworks/base/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml \
frameworks/base/data/etc/android.hardware.touchscreen.multitouch.distinct.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.distinct.xml
[Android] dastin1015:
It'll pick up from the repo it got killed at.

私のEVO 3Dから送信される。
[Android] dastin1015:
Bottom of the OP. Change references from frameworks/base to frameworks/native.

私のEVO 3Dから送信される。
[Android] UpGado:
I am trying to build CM10 ( based on a working CM10 build by someone ), i didn't change any thing !, but i need some help ,,here is the errors :

Please Help me in these errors

Here The Github of the build , you can check the files , Thanks
[Android] chinmay_7d:
I am having a problem here...

I am trying to initilialize repo:

repo init -u git://github.com/SlimRoms/platform_manifest.git -b jb

It gives me an error:

bash: /home/chinu/bin/repo: Permission denied

Then i tried to fork the repo first & then tried to initialize it:

repo init -u git://github.com/chinmayjade/platform_manifest.git -b jb

Still i am getting the same error. Anyone can help me out here?

I am new to linux and git...
[Android] cdesai:
Try to read atleast.

People just copy-paste their errors without even trying to read them, wtf.

I know you're new to this, but try to see what's happening, google a bit, read up on linux basics.

And you should make ~/bin/repo executable, aka chmod +x ~/bin/repo
[Android] onlychevys:
Where would I find that? All I can find is 7 and I don't recall having to edit the build main.mk on the last setup I had? I don't have enough hair left to pull anymore out. Sorry if my ?'s are a pain, I will figure it out, its just nice to get a fast answer here on xda.