yashsingh1/xdaforums huggingface dataset:
[Android Q&A, Help & Troubleshooting] TheUltimateNoobist:
Elaboration Required

Strange, my source was about 6 gigs :P I have no clue what that means, could you please elaborate? I am a complete noob.

Using this guide : http://xdaforums.com/showthread.php?t=2060017

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

I wanted to build for totoro (SGY) but the breakfast command didnt work, so I decided to build for my Xperia SP. JB cause thats the only source I downloaded.
[Android Q&A, Help & Troubleshooting] dvm84:
FYI, CM doesn't have a jellybean tree for huashan in their sources so breakfast won't work.

Secondly for building for a legacy device as totoro you need to set the sources manually.
[Android Q&A, Help & Troubleshooting] TheUltimateNoobist:
Manual sources

Could you point me to something which explains how to set the sources manually?
[Android Q&A, Help & Troubleshooting] a2441918:
If there's a jb tree for huashan u can. Build it
[Android Q&A, Help & Troubleshooting] TheUltimateNoobist:
How do you see if theres a jb tree for huashan?

EDIT: https://github.com/CyanogenMod/android_device_sony_huashan/branches

Found em, should i use repo init -u git://github.com/CyanogenMod/android.git -b cm-10.2?
[Android Q&A, Help & Troubleshooting] dvm84:
huashan only has working cm-11.0 tree I guess cm-10.2 and 10.1 are borked. So you can clone cm-11.0 sources. :)

also to set up manually you need to clone device tree / common device tree (if any) / vendor tree and kernel tree to specific repos
[Android Q&A, Help & Troubleshooting] a2441918:
Yes dvm84 is correct.
[Android Q&A, Help & Troubleshooting] TheUltimateNoobist:
https://github.com/CyanogenMod/android_device_sony_huashan/tree/cm-10.2

This page looks fine, how do you find out whether its broken or not?

How do I do all of the above? Can you point me to a guide? It would be awesome if you could help me right here :)

The guide I used clearly said "Build from source for any phone" :/

Thanks!

EDIT: This guide solved it for me : http://xdaforums.com/showthread.php?t=1762641

What if there is no working device tree? For eg: INTEX ENVY IT-M709MR?
[Android Q&A, Help & Troubleshooting] dvm84:
I don't think Intel processors are supported in any device that comes with aosp or drivers such as gralloc or hw composer which are opensourced for the same and booting higher android version with blobs from previous android versions is difficult.

Others:

What changes to compile slimkat for qcom device? :)
[Android Q&A, Help & Troubleshooting] a2441918:
Sync caf branch from manifest to build for qcom devices.
[Android Q&A, Help & Troubleshooting] Rycon33:
Hi guys, I'm interested in porting Mahdi ROM for my Xperia SP device. I'm totally new to this. Any link guide that you can point to me mates? Or even the one that you personally follow.

My Google searching is failing me atm. I found one in xda U but it was too vague for me. BTW, we have a device tree for CM, I don't know how it can be of any help or be of reference. TIA.

Edit: I just wanna add that we actually have mahdi ROM in Xperia SP but the developer I think stopped and his device tree is not available(at least I cannot see it in github). Hence I want to take the action to myself and try building one.

Tapatalked from my Xperia
[Android Q&A, Help & Troubleshooting] hashroot:
aokp ics logcat

AOKP ICS Logcat

---------- Post added at 08:47 PM ---------- Previous post was at 08:45 PM ----------

Paranoid Android Flashing Log
[Android Q&A, Help & Troubleshooting] ktempleton:
Hey my man can you load that up to pastebin or pasty or something similar so i don't have to download it

Nvd i had a look and it seems you ran out of space and it couldn't finish installing
[Android Q&A, Help & Troubleshooting] hashroot:
Paranoid Android log is too large...so i uploded it
[Android Q&A, Help & Troubleshooting] yajnab:
Problem

device/samsung/beni/libgralloc/mapper.cpp: In function 'int gralloc_unlock(const gralloc_module_t*, const native_handle_t*)':
device/samsung/beni/libgralloc/mapper.cpp:293: error: aggregate 'pmem_addr pmem_addr' has incomplete type and cannot be defined

Cause

pmem.h header file is not suitable of the prebuilts

Solution

1. Copy the pmem.h file from the kernel directory from the samsung sources.. THe file is present in kernel/include/linux/pmem.h

This is having the struct pmem_addr

2 .Make a folder named include in your device config

3. make a folder named linux in your device config

4. Paste the pmem.h in the linux folder ...

The final path becomes

android/device/samsung/beni/include/linux/pmem.h

I said for beni.. Its aplicable to Cooper, Tass, Beni and Gio.. Other samsung devices also may be needed.. :)

Happy to contribute.. :)
[Android Q&A, Help & Troubleshooting] TroNit:
Im trying to build XenonHD for supersonic and got this error if someone can help me out thanks! :good:

http://pastebin.com/zVCgaQWR

SOURCE

TeamHorizon Github -b Jellybean

Supersonic Device tree
[Android Q&A, Help & Troubleshooting] speed_bot:
make clean and make clobber then do repo sync and then compile i dont see any problems in the lines above...
[Android Q&A, Help & Troubleshooting] ktempleton:
ramdisk offset error

hey guys im building cm 10.1 and i keep getting an error when it comes to making the boot img i have mad changed to the board common config mk to set the parameters although im not sure if i got the ramdisk offset right i used the same addr as the force ramdisk addr can someone help me with this because im really frustrated thanks for the help

Target boot image: /home/ken/android/cm10_1/out/target/product/i577/boot.img

usage: mkbootimg

--kernel <filename>

--ramdisk <filename>

[ --second <2ndbootloader-filename> ]

[ --cmdline <kernel-commandline> ]

[ --board <boardname> ]

[ --base <address> ]

[ --pagesize <pagesize> ]

[ --ramdisk_offset <address> ]

-o|--output <filename>

make: *** [/home/ken/android/cm10_1/out/target/product/i577/boot.img] Error 1

make: *** Waiting for unfinished jobs....
[Android Q&A, Help & Troubleshooting] mikshepard:
I ended up with this error:

system/core/libmincrypt/sha.c:153:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/root/cm10/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/bin/../lib/gcc/i686-linux/4.6.x-google/../../../../i686-linux/bin/as: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
make: *** [/root/cm10/out/host/linux-x86/obj/STATIC_LIBRARIES/libmincrypt_intermediates/rsa.o] Error 1
make: *** Waiting for unfinished jobs....
/root/cm10/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/bin/../lib/gcc/i686-linux/4.6.x-google/../../../../i686-linux/bin/as: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
make: *** [/root/cm10/out/host/linux-x86/obj/STATIC_LIBRARIES/libmincrypt_intermediates/sha.o] Error 1

Looks like it's a problem with libz.so.1. I did some research and found that I missing a dependency but fixed it with:

apt-get install lib32z1

Now I can get past that error but I keep facing new ones like this:

make: *** No rule to make target `/root/cm10/out/target/product/jewel/obj/lib/libacdbloader.so', needed by `/root/cm10/out/target/product/jewel/obj/SHARED_LIBRARIES/libalsa-intf_intermediates/LINKED/libalsa-intf.so'. Stop.
make: *** Waiting for unfinished jobs....

So far I had to manually copy libacdbloader.so & libmmjpeg.so from a existing CM10 rom to /root/cm10/out/target/product/jewel/obj/ and while that works, I'm wondering why these files aren't being created in the build process. Am I missing something or doing something wrong?? It just seems weird to need those pre-existing files for the compile to work.

Thanks,

Mike

EDIT: Build finished for once but I seem to have two zips created: cm-10-20130102-UNOFFICIAL-jewel.zip (152mb) & cm_jewel-ota-eng.root.zip (167mb). haha, I think I did something wrong here. Why have I compiled two roms at the same time?
[Android Q&A, Help & Troubleshooting] ktempleton:
That's normal it always makes those two
[Android Q&A, Help & Troubleshooting] mikshepard:
But why the difference in size? What is the difference between the two and is one better to flash?

Thanks,

Mike
[Android Q&A, Help & Troubleshooting] ktempleton:
I honestly have no idea i think it has something to do with the brunch cmd i know they both will flash i flash and post the regular zip not the ota but either is fine
[Android Q&A, Help & Troubleshooting] BMP7777:
Working on an AOKP build for the N7 and came across this:

build/core/tasks/kernel.mk:68: **********************************************************
build/core/tasks/kernel.mk:69: * Kernel source found, but no configuration was defined *
build/core/tasks/kernel.mk:70: * Please add the TARGET_KERNEL_CONFIG variable to your *
build/core/tasks/kernel.mk:71: * BoardConfig.mk file *
build/core/tasks/kernel.mk:72: **********************************************************
build/core/tasks/kernel.mk:73: *** "NO KERNEL CONFIG". Stop.

My local manifest looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project path="kernel/asus/grouper" name="faux123/Nexus-grouper" remote="aokp" revision="jb_mr1_exp" />
<project name="CyanogenMod/android_device_asus_grouper" path="device/asus/grouper" remote="github" revision="jellybean" />
<project name="TheMuppets/proprietary_vendor_asus" path="vendor/asus" remote="github" revision="jellybean" />
</manifest>

The kernel.mk file does have the above code stating no no kernel config. This one is new to me. Typically, when building CM or PAC, once you specify your kernel in the local manifest, you are ready to go. Not here. I haven't build AOKP before, so I'm a little stumped. Does anyone have experience with this and could lend a hand? I'd appreciate it.
[Android Q&A, Help & Troubleshooting] HackitZ:
I have built my first ROM (Xperia T, locked bootloader so no kernel. i have root only.) and was trying to get help on build.prop tweaks and init.d tweaks would this be the place to post?

I'm trying to build for battery life and nothing else. so far my ROM runs ok but i feel i could do more to get better battery life.

great thread by the way.
[Android Q&A, Help & Troubleshooting] ktempleton:
Get the cyanogen mod deconfig file and put the name of it next to target kernel config. Cyanogenmod_i577_deconfig should get you rolling
[Android Q&A, Help & Troubleshooting] HackitZ:
If this was for me, i should have mentioned I have a locked bootloader and have no way to change it until a dev figures out how to. so I only have root.
[Android Q&A, Help & Troubleshooting] mikshepard:
So I finally got my ROM to compile but it won't boot :( Here is my logcat. The important parts that I've seen are:

E/HAL ( 379): load: module=/system/lib/hw/audio.primary.msm8960.so
E/HAL ( 379): Cannot load library: link_image[1916]: 379 could not load needed library 'libacdbloader.so' for 'audio.primary.msm8960.so' (load_library[1118]: Library 'libacdbloader.so' not found)
E/AudioFlinger( 379): int android::load_audio_interface(char const*, audio_hw_device_t**) couldn't load audio hw module audio.primary (Invalid argument)
I/AudioFlinger( 379): loadHwModule() error -22 loading module primary
W/AudioPolicyManagerBase( 379): could not open HW module primary

and:

E/HAL ( 449): load: module=/system/lib/hw/camera.msm8960.so
E/HAL ( 449): Cannot load library: link_image[1916]: 449 could not load needed library 'libmmjpeg.so' for 'camera.msm8960.so' (load_library[1118]: Library 'libmmjpeg.so' not found)
E/CameraService( 449): Could not load camera HAL module
I/AudioPolicyManagerBase( 449): loadAudioPolicyConfig() loaded /system/etc/audio_policy.conf
E/HAL ( 449): load: module=/system/lib/hw/audio.primary.msm8960.so

and:

I/ServiceManager( 130): service 'media.audio_flinger' died
I/ServiceManager( 130): service 'media.player' died
I/ServiceManager( 130): service 'media.camera' died
I/ServiceManager( 130): service 'media.audio_policy' died

It seems the two files (libacdbloader.so & libmmjpeg.so) are causing the problems with boot (from what I can tell). These were the files that wouldn't compile and I had to put manually in root/cm10/out/target/product/jewel/obj/lib/

I'm thinking there is still something I am doing wrong with the compiling, which is why these files are needing to be put there manually. I'm hoping someone can give me some insite on where to go from here. I don't get a bootscreen, only that logcat...

Thanks for any ideas or help,

-Mike
[Android Q&A, Help & Troubleshooting] speed_bot:
well its normal one is a userdebug version and another one is engineering build... flash either of them...

for that libs part

you config hasnt been defined to compile those libs or they may have been included in vendors but havent got extracted properly...btw you extracted vendors or downloaded them?>?
[Android Q&A, Help & Troubleshooting] speed_bot:
its clearly saying that kernel hasnt been defined...

there are two ways of getting around it

1)put your kernel sources in kernel/manufacturer/device

then point its defconfig in the make file

2) write a few lines in the config and include a kernel is prebuilt ie one which is already compiled..

tell which one you want i will type out further instructions ...
[Android Q&A, Help & Troubleshooting] speed_bot:
unlock your bootlader first refer device specific forum for details
[Android Q&A, Help & Troubleshooting] speed_bot:
take a close look at that image...

PRODUCT_PACKAGES += \

this defines what packages need to be compiled...

so look in your makefiles if

camera.msm8960

and

audio.primary.msm8960

is defined are not

...

theres nothing wrong in compiling its just like the compiler hasnt been told to compile these libs..
[Android Q&A, Help & Troubleshooting] a2441918:
Sync mahdi rom sources first. Add ur device and dependancies to roomservice.xml. as for editing the tree for mahdi u can take a reference of any device tree prrsent in mahdi git. Only things to be changed are change cm.mk to mahdi.mk and cm.dependancies to mahdi.dependancies.. also u need to change the words cm to mahdi in mahdi.mk file. Thats all.. good to go with the build.
[Android Q&A, Help & Troubleshooting] TheUltimateNoobist:
Thanks for replying :)

Here are the devices specs : http://www.bdstall.com/listingDetail/index/13790/

It doesnt have an intel processor and neither an aosp.

For the no working device tree part, i found this guide which boosted my morale a bit : http://wiki.cyanogenmod.org/w/Doc:_porting_intro#Some_tips_on_porting_CyanogenMod_to_your_own_device

So as of now, im cool :D

Blobs? Are blobs and opaque binary blobs the same thing?
[Android Q&A, Help & Troubleshooting] a2441918:
Blobs are the necessary system files needed from stock for proper functioning of ur phone.
[Android Q&A, Help & Troubleshooting] TheUltimateNoobist:
The mkvendor script only works with devices that use a standard boot.img file. In my case Xperia devices(E) uses a .elf file.

How do you repack a kernel from .elf to .img? I managed to extract the kernel and obtain the ramdisk and all of it's other contents.

Thank you!
[Android Q&A, Help & Troubleshooting] a2441918:
Did u add device/sony/common deoendancy?
[Android Q&A, Help & Troubleshooting] dvm84:
That looks more as if of a missing commit in hardware/ril.

https://github.com/CyanogenMod/android_device_sony_qcom-common/commits/cm-11.0/libril

Revert all commits until https://github.com/CyanogenMod/andr...mmit/d879b51ff0afeba661eb2650936c5dfd37b257c7.

I don't think any of such commits are in hardware/ril of Mahdi Caf. :)
[Android Q&A, Help & Troubleshooting] a2441918:
I am not sure abt sony but samsung has ril libs in hardware/samsung.. so its better to give a try adding that dep..
[Android Q&A, Help & Troubleshooting] Rycon33:
so am I doing the right command here:

git reset <commit number>

for all the commits until that? or is there any sequence, the latest commit first until that mentioned commit?
[Android Q&A, Help & Troubleshooting] a2441918:
Git revert commitnumber
[Android Q&A, Help & Troubleshooting] dvm84:
Sony devices use hardware/ril so hardware/samsung won't work. :)

yes

and down as [MENTION=3422045]a2441918[/MENTION] says
[Android Q&A, Help & Troubleshooting] Rycon33:
^^thanks for all the help guys, I was able to successfully compile Mahdi from sorce(for my Xperia SP):highfive:
[Android Q&A, Help & Troubleshooting] a2441918:
Great man. Good job.
[Android Q&A, Help & Troubleshooting] TheUltimateNoobist:
Help me : http://xdaforums.com/android/help/1000-failures-trying-to-compile-cm-t2815987/post54145700

Post reply on that thread!

Thanks!
[Android Q&A, Help & Troubleshooting] letmedanz:
Wondering if anyone has come across this error-

All the repos seem to be mentioned in the manifest

receiving this message when i try to init any repo
[Android Q&A, Help & Troubleshooting] rodman01:
It seems that the remote with name: cr is missing....you have github, aosp, du and omnirom, but cr is missing.
[Android Q&A, Help & Troubleshooting] letmedanz:
Thanks :)

sorry, but i've never come across a refernce to a 'cr' remote...

don't seem to find out what the needs to be either...

and this error has started appearing for every repo init, not just for DU

even roms that have previously worked fine...without me adding any cr reference

would you know what this needs to be?
[Android Q&A, Help & Troubleshooting] rodman01:
I would suggest to search in your manifest, roomservice etc....for: remote="cr" or only for cr.

Perhaps somewhere in the paths that remote has hidden :).
[Android Q&A, Help & Troubleshooting] Rycon33:
guys, quick question, how can I exclude kernel building when I only want the ROM to be built?
[Android Q&A, Help & Troubleshooting] Unjustified Dev:
You can try TARGET_NO_KERNEL := true

I don't know how far you can get with this.

If your device is Qualcomm it's not possible many things require kernel headers.
[Android Q&A, Help & Troubleshooting] HTCDreamOn:
It's probably also worth adding TARGET_PREBUILT_KERNEL := device/vendor-name/model/prebuilt-kernel

Obviously swapping out the path for the path of your zImage/uImage/whatever.
[Android Q&A, Help & Troubleshooting] Gamersab:
I'm getting following error during compilation of cm 11 for HTC pico.

Please HELP.

Kindly check attached screenshot.
[Android Q&A, Help & Troubleshooting] codingninja62001:
Build error

[/COLOR]

can i see more in code tags the terminal is cutting off most and i havent heard of the pico

---------- Post added at 10:44 PM ---------- Previous post was at 10:34 PM ----------

hey the error is those undeclared variables you could be missing a header file gedit ril.cpp and look through the included files for declartions and find how to declare each but i havent seen that many errors like that it could possibly be a unclosed comment and always try a repo sync first

---------- Post added at 10:49 PM ---------- Previous post was at 10:44 PM ----------

do you have a 32 bit computer or in a vm
[Android Q&A, Help & Troubleshooting] Gamersab:
Here's another screenshot

I'm also curling local manifest from my github to add device tree and vendor.

Check my github for local_manifest.xml

Github.com/gamersab.

I'm on phone so can't post link.

Thanks
[Android Q&A, Help & Troubleshooting] codingninja62001:
Reply

From the looks of it you are missing aapt in out/host/linux-x86/bin check there for it if not then try a repo sync and if that doesent work try finding or downloading aapt from github it might also be in the android sdk so find aapt and copy it to out/host/linux-x86/bin

and the perfered way to post is in code tags if you can
[Android Q&A, Help & Troubleshooting] Gamersab:
THANKS, will try it out
[Android Q&A, Help & Troubleshooting] codingninja62001:
Yet Another Error

Okey I seem to get all the errors that nobody else have had this one seems quite unique please help I want to get this first build built to troubleshoot

running: imgdiff /tmp/tmpzFMlG6 /tmp/tmpuQqWEE /tmp/tmpgRgvTg
Traceback (most recent call last):
File "./build/tools/releasetools/ota_from_target_files", line 1131, in <module>
main(sys.argv[1:])
File "./build/tools/releasetools/ota_from_target_files", line 1099, in main
WriteFullOTAPackage(input_zip, output_zip)
File "./build/tools/releasetools/ota_from_target_files", line 543, in WriteFullOTAPackage
MakeRecoveryPatch(OPTIONS.input_tmp, output_zip, recovery_img, boot_img)
File "./build/tools/releasetools/ota_from_target_files", line 409, in MakeRecoveryPatch
boot_type, boot_device = common.GetTypeAndDevice("/boot", OPTIONS.info_dict)
TypeError: 'NoneType' object is not iterable
make: *** [/home/ryan/android/system/out/target/product/f6mt/f6-ota-836860bd27.zip] Error 1
ryan@ryan-Desktop:~/android/system$
[Android Q&A, Help & Troubleshooting] sooorajjj:
hi guys

today i just finished my first slimkat build

and it doesn't wanna boot to homescreen after bootanimation it show a screen which says "Type password to decrypt storage "

and when i type some thing it says try again :(

here is my logcat from beganning of boot http://paste.ubuntu.com/7831298/

and ported 3.4 kernel it boots here is my dmesg http://paste.ubuntu.com/7831312/

from logcat

I/ActivityManager( 1129): Start proc com.android.incallui for added application com.android.incallui: pid=1312 uid=10003 gids={50003, 3003, 1028, 1015, 1023}
I/ActivityManager( 1129): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10000000 cmp=com.android.settings/.CryptKeeper} from pid 0
I/SystemServer( 1129): Enabled StrictMode for system server main thread.

D/CryptKeeper( 1291): Validating encryption state.

W/InputAttributes( 1274): No editor info for this field. Bug?
E/Cryptfs ( 132): not running with encryption, aborting

W/CryptKeeper( 1291): Unexpectedly in CryptKeeper even though there is no encryption.

D/CryptKeeper( 1291): Encryption state validated. Proceeding to configure UI

D/CryptKeeper( 1291): Acquiring wakelock.

W/WindowManager( 1129): Window freeze timeout expired.
W/WindowManager( 1129): Force clearing orientation change: Window{41b02250 u0 com.android.settings/com.android.settings.CryptKeeper}
E/ActivityThread( 1305): Failed to find provider info for call_log
D/Atlas ( 1129): Found best atlas configuration in 9.15s
D/Atlas ( 1129): Loaded configuration: SliceMinArea (768x768) flags=0x2 count=249

D/BluetoothManagerService( 1129): Message: 30
I/ActivityManager( 1129): Displayed com.android.settings/.CryptKeeper: +8s807ms
I/ActivityManager( 1129): Timeline: Activity_windows_visible id: ActivityRecord{41b19c00 u0 com.android.settings/.CryptKeeper t1} time:166109
[Android Q&A, Help & Troubleshooting] a2441918:
Do a resync and build again
[Android Q&A, Help & Troubleshooting] Gamersab:
I synced once again and almost 99% packages have been downloaded but another thing popped up.

'Sync exited due to gc error'

Any help ?
[Android Q&A, Help & Troubleshooting] sooorajjj:
use

repo sync -j1
[Android Q&A, Help & Troubleshooting] Gamersab:
I had already tried but still no luck

Repo sync -f -j1

Any help ?
[Android Q&A, Help & Troubleshooting] Gamersab:
I'm fed up of this error kindly check attached screenshot

Error: Exited sync due to gc errors

P.S I've tried repo sync -f -j1 but still no luck
[Android Q&A, Help & Troubleshooting] rodman01:
this is what I found on an other thread maybe this helps you too? http://xdaforums.com/showpost.php?p=38249731&postcount=14
[Android Q&A, Help & Troubleshooting] Gnome:
Take a shot and try re-installing git and re sync again.

sudo apt-get install git
[Android Q&A, Help & Troubleshooting] Gamersab:
I did.

But still it is stucking on gc error

---------- Post added at 11:30 PM ---------- Previous post was at 11:29 PM ----------

I'll try this out.

Hope it fixes

---------- Post added 23rd July 2014 at 12:22 AM ---------- Previous post was 22nd July 2014 at 11:30 PM ----------

I tried, didn't worked
[Android Q&A, Help & Troubleshooting] dvm84:
Cherry-picked commits not compatible with smdk4412 platform?
[Android Q&A, Help & Troubleshooting] F-L-Y-E-R:
Will there be any difference when building AOSPA if I sync the source from 'AOSPA' and 'AOSPA-Legacy' or it's completely same?
[Android Q&A, Help & Troubleshooting] ##W4TCH0UT##:
I think aospa is only for JB 4.3 and aospa-legacy is for 4.4..