yashsingh1/xdaforums huggingface dataset:
[Desire HD Android Development] :
pm'd n thats me done for aosp lol
[Desire HD Android Development] mr_cowboy1:
HBO go doesn't work, says it's not supported on this device. google text to speech doesn't work.
[Desire HD Android Development] dlpatter:
After 3 full wipes, still no BT. inspiremod has worked b4, but now, only static after connect. Is there some buildprop mods I need to make, all worked fine before geting camera fixed, using build13. It seems every build prior to 9 worked fine.

even tried one of lord other kernel and still no BT, installed 8.8_b8 because I thought he said build13 was using 8.8_b7, but still no BT. can this be a buildprop setup
[Desire HD Android Development] hungmung:
On lords test 13 on my inspire and I'm having static over Bluetooth too strange thing is it seems to only be from phone any media streamed to Bluetooth was ok.

Sent through the power of	Cthulhu!!!
[Desire HD Android Development] Dinman:
Same here...can't figure it out.
[Desire HD Android Development] LorD ClockaN:
I would like everyone to visit this link: http://xdaforums.com/showthread.php?t=1450962

ispire users need tinyaudio fix
[Desire HD Android Development] mr_cowboy1:
on my inspire, fresh out of the box without mods (with the exception of a few programs) my bt works and paired with my laptop and my headset. headset works phone fine.

edit: portable hotspot works, tethering does not, but think that was already mentioned.
[Desire HD Android Development] nutter076:
Umm? Haha
[Desire HD Android Development] Quinny899:
Known issue. Restart your launcher. Nova launcher has the restart option in the nova settings
[Desire HD Android Development] combustiblemonkey:
Is that on top of the inspiremod .5?
[Desire HD Android Development] zFr3eak:
Closing

how you all saw didnt work on this anymore. lc, twisted and all the other devs do a much better job in it - i will go back to my sense roms lol.

closing this thread now please go on there: http://xdaforums.com/showthread.php?t=1450962

Cheers
[Desire HD Android Development] crowstar:
I'm on g2 how did you guys fix the libaudio error?
[Desire HD Android Development] Doktaphex:
Currently I believe that twistedumbrella is bypassing it by commenting it out. I don't think that anyone has yet successfully fixed it.

Please correct me if I'm wrong though.
[Desire HD Android Development] vicedens2002:
twistedumbrella, you didn't try this ?
[Desire HD Android Development] LorD ClockaN:
if you looked at the link I would say that that guy just removed building of libaudio... I think twistedumbrella did the same or very simillar

edit:

looked at the change again,... maybe I'm wrong
[Desire HD Android Development] Doktaphex:
How can I download device/htc/common again without pulling absolutely everything from cm git. Total noob with repo also. :D
[Desire HD Android Development] killersloth:
from github site can't you download them?
[Desire HD Android Development] Doktaphex:
Unless I'm going blind I can only see device specific files. Maybe I've been staring at this screen to long!
[Desire HD Android Development] vicedens2002:
htc_ace

https://github.com/CyanogenMod/android_device_htc_ace

htc_common

https://github.com/CyanogenMod/android_device_htc_common

htc_msm7x30-common

https://github.com/CyanogenMod/android_device_htc_msm7x30-common
[Desire HD Android Development] Doktaphex:
Seems I am totally blind, thanks dude.
[Desire HD Android Development] twistedumbrella:
Sh error. I just pruned out all the Symlinks so now I should know what I need to fix.

I removed the libaudio from android.mk because every fix was for a different version of it than I use.
[Desire HD Android Development] Doktaphex:
Just thought my build was running nicely till I hit the all_apps3d error that you hit this morning. DOH!
[Desire HD Android Development] twistedumbrella:
You will hit that error every time. It gets generated by the build. I am tracking down the file that generates it to kill that instead of having to comment and make again every time.

device/htc/ace/setup-makefiles.sh has to be edited.

mkdir -p ../../../vendor/htc/$DEVICE/overlay/packages/apps/Launcher2/res/layout
(cat << EOF) | sed s/__DEVICE__/$DEVICE/g > ../../../vendor/htc/$DEVICE/overlay/packages/apps/Launcher2/res/layout/all_apps.xml
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2010 The Android Open Source Project

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

<!-- This file is generated by device/htc/__DEVICE__/setup-makefiles.sh -->

<!-- switch to all_apps_3d on devices that support RenderScript -->
<merge xmlns:android="http://schemas.android.com/apk/res/android">
<!-- This feature is currently unsupported by Android 4.0 ICS
<include layout="@layout/all_apps_3d" />
Please remove the surrounding comments to enable this feature-->
</merge>
EOF
[Desire HD Android Development] Shelnutt2:
We fix it compiling by changing the namespace on the heroc.

https://github.com/TeamICS/ICS_Fixes/blob/ics/libaudio.patch

Credit goes to another dev on this form can't remember who but it'd in the heroc form.
[Desire HD Android Development] Doktaphex:
which android.mk have you removed libaudio from, and how to start a fresh build?

Do I have to do make clobber and then run the extract-files.sh again?
[Desire HD Android Development] twistedumbrella:
(You only posted half of the patch here, so I quoted your other post)

That is all well and good for the generic libaudio, but it does not match up to msm7x30 audio, which is what is needed here. Applying those patches, and then changing the board from heroc to ace or mecha will result in the same errors as not using them at all. Plus, being as it was a patch it is tedious to port the changes to the corresponding versions. That is what I plan to try after I verify I can go from fresh to finished without error with audio disabled.

hardware/msm7k/Android.mk, the first set of actual lines under the commented licensing hoopla

common_msm_dirs := libcopybit liblights libopencorehw librpc libstagefrighthw
msm7k_dirs := $(common_msm_dirs) boot libgralloc libaudio
qsd8k_dirs := $(common_msm_dirs) libgralloc-qsd8k libaudio-qsd8k dspcrashd
# msm7x30_dirs := liblights libgralloc-qsd8k librpc libaudio-qdsp5v2
msm7x30_dirs := liblights libgralloc-qsd8k librpc

I do make clobber, the extract-files, then the build environment command, lunch, the number of the version i want, and then make
[Desire HD Android Development] Shelnutt2:
Thanks for correcting my link.

I didn't know if the patches could be adapted, I guess not that easily. If you guys need the actual files I'll push those. Do you mind posting what error you are getting when building libaudio? Or pointing me to a post. I'll take a look and see, but I want to make sure I'm looking at your latest errors and not old errors :).

Also just for clarification is the msm7x30 is the qsd8k or the qdsp5v2 audio?
[Desire HD Android Development] Doktaphex:
Thanks twisted, you're being hugely helpful. I'd buy you a beer or two if I was so skint. :D
[Desire HD Android Development] LorD ClockaN:
we use qdsp5v2 audio
[Desire HD Android Development] :
Anyone with a desire not the desire HD, the normal first desire pm me, thanks
[Desire HD Android Development] Doktaphex:
Well, this is as far as it's ever built for me without error. You never know, maybe I'll get a flashable build from this.
[Desire HD Android Development] Quinny899:
Have you looked at this:

http://xdaforums.com/showthread.php?t=1354267?

The HD2 is quite similar to the DHD, and that has almost everything working
[Desire HD Android Development] LorD ClockaN:
HD2 is completly different phone... also that link is for Nexus ROM port, not build from source
[Desire HD Android Development] crowstar:
at least I can piggy back off of some of your work. The g2 is quite similar to the HD to my knowledge :p
[Desire HD Android Development] Quinny899:
Ah, ok. My mistake
[Desire HD Android Development] twistedumbrella:
No worries, figured you just happened to be on that part at the time you posted and I didn't want someone thinking it was just the one file.

The error is that liba2dp isn't built. It is the same error a lot of you guys fixed by moving the build to the right part of the mk. The error after that is the big one. The audiohardware.cpp error, which is also the same one from the forum I quoted, just a different location for the file. The patch you have is the best way I have found, its just merging it that is tricky.

With how similar the layout is, if it works for you guys, it usually works for me with only a slight tweak. Might as well work for the most benefit. I will just tell everyone my next beer was on you. ;-)
[Desire HD Android Development] Doktaphex:
new error seems I have no recovery.

device/htc/common/updater/recovery_updater.c:29:20: error: mounts.h: No such file or directory
device/htc/common/updater/recovery_updater.c: In function 'UpdateFn':
device/htc/common/updater/recovery_updater.c:66: warning: implicit declaration of function 'scan_mounted_volumes'
device/htc/common/updater/recovery_updater.c:67: error: 'MountedVolume' undeclared (first use in this function)
device/htc/common/updater/recovery_updater.c:67: error: (Each undeclared identifier is reported only once
device/htc/common/updater/recovery_updater.c:67: error: for each function it appears in.)
device/htc/common/updater/recovery_updater.c:67: error: 'vol' undeclared (first use in this function)
device/htc/common/updater/recovery_updater.c:67: warning: implicit declaration of function 'find_mounted_volume_by_mount_point'
device/htc/common/updater/recovery_updater.c:68: warning: implicit declaration of function 'unmount_mounted_volume'
device/htc/common/updater/recovery_updater.c:73: warning: implicit declaration of function 'remount_read_only'
make: *** [out/target/product/ace/obj/STATIC_LIBRARIES/librecovery_updater_htc_intermediates/recovery_updater.o] Error 1

What to do here?

EDIT: After looking around, it is true I do have no 'mounts.h' should I just comment that out as, obviously it'll be a custom recovery anywho, or do I need to grab some other files from somewhere?
[Desire HD Android Development] twistedumbrella:
Have we tried forcing the audio to use the default with the edits and seeing if it worked? At least it would be a temporary fix to get it to build something. I should be closer tonight after I start tearing it apart.
[Desire HD Android Development] twistedumbrella:
You have to comment out a bunch of redundant junk in the ace device folder.

https://github.com/TwistedUmbrella/android_device_htc_mecha/blob/ics/recovery_ui.c
[Desire HD Android Development] Doktaphex:
Slap me or something, I don't even have a recovery_ui.c in device/htc/ace :P

Where should I be looking?

Thanks again for all the help
[Desire HD Android Development] twistedumbrella:
Oh I just looked at the error again and its the one in your htc_common. Try my common folder and and see if that does anything

https://github.com/TwistedUmbrella/android_device_htc_common
[Desire HD Android Development] Doktaphex:
seems to be identical!

I'm very confused
[Desire HD Android Development] wildchild048:
here is a link for touch screen drivers/synaptics and atmel not sure if it will help. http://code.tiamat-dev.com/7x30/htc...drivers/input/touchscreen/synaptics_i2c_rmi.c and here is a link to a driver someone modded to get touch screen working on a different device.https://gist.github.com/1328331/57956230c967d55742bc195faa5d2ec41f469b7d
[Desire HD Android Development] twistedumbrella:
Alright, where did you get your device and vendor folders? I'll look them over and try to pick out where it is going wrong. It sounds like your build is trying to find the file in the wrong place.
[Desire HD Android Development] Doktaphex:
I pulled them from cyanogen github.

I just slapped a 'mounts.h' from cyangen_android_recovery but I'm somewhat concerned that the build has carried on, even though in that 'mounts.h' file it mentions MTD and we have eMMC

EDIT: Probably nothing to worry about, I think in this case MTD is just short for mounted.

EDIT 2: Another new error:

device/htc/common/overlay/frameworks/base/core/res/res/values/Android.mk:1: error: Error parsing XML: syntax error
device/htc/common/overlay/frameworks/base/core/res/res/values/CleanSpec.mk:1: error: Error parsing XML: not well-formed (invalid token)
device/htc/common/overlay/frameworks/base/core/res/res/values/README.ecclist_for_mcc.conf:1: error: Error parsing XML: syntax error
device/htc/common/overlay/frameworks/base/core/res/res/values/common.mk:1: error: Error parsing XML: not well-formed (invalid token)
device/htc/common/overlay/frameworks/base/core/res/res/values/common_small.mk:1: error: Error parsing XML: not well-formed (invalid token)
device/htc/common/overlay/frameworks/base/core/res/res/values/ecclist_for_mcc.conf:1: error: Error parsing XML: syntax error
device/htc/common/overlay/frameworks/base/core/res/res/values/releasetools.py:1: error: Error parsing XML: not well-formed (invalid token)
host C++: libLLVMCore <= external/llvm/lib/VMCore/PrintModulePass.cpp
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....
[Desire HD Android Development] LorD ClockaN:
first link is from tiamat git, you could have ooked in mine git.. BTW we don't use that file but synaptics 3K

second link is not even for our device I think...
[Desire HD Android Development] twistedumbrella:
Have you done a repo sync recently? I'll try getting the device files and see if I get the same errors.
[Desire HD Android Development] Doktaphex:
did one, right before starting out earlier this evening.

EDIT: Removed some bits and pieces and 'clobbered' again. See you in about an hour when I'm back at more fresh errors.
[Desire HD Android Development] wildchild048:
the second link is just what changes were made to get touch screen working on a different device but the changes should be the same for us.I think
[Desire HD Android Development] Shelnutt2:
I've attached the actual files. The key edit that I think you need is in libhardware_legacy/audio/Android.mk . The change is to change the name of the linked file. liba2dp isn't built because its built under a new name. I'm not sure what the *proper* name of the library should be. However I don't know if anything is looking for the new name, so the easiest thing is to just change the one make file and it should compile :).

+ LOCAL_SHARED_LIBRARIES += audio.a2dp.default
-# LOCAL_SHARED_LIBRARIES += liba2dp
[Desire HD Android Development] twistedumbrella:
I also started a portion of github to try to get this thing to build for the ace. I am currently updating what I need to change from the mecha setup I have. Currently, the setup is https://github.com/TwistedUmbrella/android_device_htc_ace/tree/ics and it is asking me for a kernel in msm7x30_common, which is odd because mine is in the device, but I get what they were trying to do.
[Desire HD Android Development] daedric:
MTD is not simply "Mounted" : http://www.linux-mtd.infradead.org/
[Desire HD Android Development] twistedumbrella:
https://github.com/TwistedUmbrella/android_hardware_msm7k/tree/ics/libaudio-qdsp5v2 is the one I use, so I will try to port the changes to it and see if it works. Thanks.
[Desire HD Android Development] Doktaphex:
Seems that my build has completed. I have various images in my out folder. What's the best way to flash the relevant partitons. Fastboot, or is that too risky?

EDIT: I'm just gonna stick the system folder into another update.zip and try that.

EDIT 2:

- waiting for device -
- exec '/system/bin/sh' failed: Exec format error (8) -

There do seem to be a horrendous amount of symlinks in the system folder. For example, system/bin/sh is linking to system/bin/mksh

Haven't even begun to look at where all the others go.
[Desire HD Android Development] Shelnutt2:
Just sent a pull request with the updated liba2dp name. I didn't change anything else. Might be worth seeing if that fixes it or if you'll have to port all the changes and the namespace fixes too.

How long does it take you to compile? I can pull the tree and try if you want? I can finish a compile in about 20-25 minutes for the heroc. It use to error out after about 8-10 with the libaudio issues.
[Desire HD Android Development] vicedens2002:
Can you upload the build ? I will have a look... Btw it passed the splash screen and shows the android logo ?
[Desire HD Android Development] vicedens2002:
So no ones build passes the splash screen ? Actually my build passes through the splash screen but nothing in logcat just says waiting for device. By the way I have a custom splash screen "not evil just hungry" :D :D
[Desire HD Android Development] Doktaphex:
I have the exact same splash screen.
[Desire HD Android Development] twistedumbrella:
I am not familiar with pull requests and stuff. I just used git for the first time about 2 weeks ago haha. It takes me about 40 minutes to compile.

I will take a look at it once I finish moving to a bigger disk image. On Mac I am stuck with that case-sensitive image crap. 40GB sounds like a lot, but they really should add "unless you plan to mirror a backup, then you better make it 80"
[Desire HD Android Development] Doktaphex:
I'm using an actual spare 160GB HDD that I had just put into my machine. :D

That's enough for me today. Off to bed.
[Desire HD Android Development] twistedumbrella:
Thanks. Get some sleep. Big day tomorrow :-)

I would use a drive, but my tb is my backup and too big to carry around and my 250 is just my minimal "can't lose this" backup that is in a safe and besides, the internal is 750 of which I use about 40.
[Desire HD Android Development] Shelnutt2:
I believe you can merge it right from the github website .

I've also ported all the patches, https://github.com/Shelnutt2/android_hardware_msm7k/tree/ics/libaudio-qdsp5v2
[Desire HD Android Development] twistedumbrella:
I finally got set back up and I did merge it. Now its time to re-enable the audio and attempt a build... Thanks again.
[Desire HD Android Development] arikyeo:
Oh.. While my build is still building.. Just wanna ask: Is there any way to clone the ICS source from Google's git to my github? I find github easier to work with.
[Desire HD Android Development] Phoenix-Lead:
I have the 1100 T Black Edition. Great processor! Paired with 16 GB DDR 3, 2TB HD, 500 MB external drive for whatever. I really should jump back in the game!
[Desire HD Android Development] twistedumbrella:
The way it is set up, not really. Even with CM, you would more or less be going through each of the folders and forking or cloning them simply because of the way they are laid out without using repo.

What I have been doing is cloning each folder as I edit something in it. That way I didn't go through the hassle until I had to. There may be an easier way, I just couldn't find it when I was looking to do that.
[Desire HD Android Development] twistedumbrella:
Currently building the source for the ace. If and when it finishes, what images and/or folders should I pack up to post here in addition to what will be uploaded on github?
[Desire HD Android Development] kuklux:
Hope there is no errors
[Desire HD Android Development] crowstar:
So that patch before https://github.com/Shelnutt2/android_hardware_msm7k/commits/ics

that works for the desire HD? I might steal it for the g2 if it works...

lol
[Desire HD Android Development] xT4Z1N4TRx:
So will I ;)
[Desire HD Android Development] Thekn:
Mike1982 is joining us, take a look at his Twitter account

Couple of minutes later:
[Desire HD Android Development] spaco22:
for which device, he currently own a sensation
[Desire HD Android Development] Thekn:
He makes ROMs for a lot of devices, so I hope to see a DHD port also.

At least he has a lot of experience :)
[Desire HD Android Development] Pure Energy:
It is a great news indeed. But is he AOSP developer or a porting specialist? AFAIK these things are different.

Anyway, I am the fan of our guys, who have been struggling for days. So let them win the race, and then Mike may create anything he wants. )))

P.S. To various Captains Hindsights: porting a ROM might not be exactly the same as crafting a build from scratch using Open Source.

(someone, please explain to me in PM how to make a plural form from Cap-n H-t correctly. Thanks.)
[Desire HD Android Development] arikyeo:
He's the dev for the lovely Android Revolution HD ROMS, for bollocks' sake..
[Desire HD Android Development] substancer:
Xperia X10 ICS is out!

wouldn't it be easier to use this port?

i mean, it uses the same chipset if iam not wrong...?
[Desire HD Android Development] wbbigdave:
You win at A knowing who he is and B best use of the word bollocks'
[Desire HD Android Development] babijoee:
Nope, that device is no where near similar to ours. Its more identical to the n1 and desire
[Desire HD Android Development] substancer:
ah damn, i've confused it with the Xperia Play
[Desire HD Android Development] JoKeR_FaCe:
Mike1986+ICS would be greatful!
[Desire HD Android Development] Thekn:
But at least they have fixed the touchscreendriver in the kernel, and it's backward-compatibile with Gingerbread.

We should take a look at there fixing process in the kernel*, maybe we can learn from there process.. ;)

*EDIT
[Desire HD Android Development] arikyeo:
No, its different. For one, their touchscreens are from different brands and thus they use different drivers.
[Desire HD Android Development] Thekn:
yeah ofcourse, the drivers and brand are difference, but we could learn from there process..
[Desire HD Android Development] LorD ClockaN:
Find their fixed kernel source with commit for touch fix :-)

Sent from my Desire HD with BlackIce ROM
[Desire HD Android Development] Repsys7:
So how far along are yous to getting an alpha build? Is it booting? With a fixed touchscreen?

Well done on all the hard work so far guys!
[Desire HD Android Development] Doktaphex:
Morning peeps. That audio fix from a couple pages back seems to work nicely, re-enabled audio and the build process behaves itself.

LordclockaN: Have you had a look at the way the build process creates the new /system/bin folder and the strange symlinks and such-like? Could this be what is needed to be changed in the kernel? I have no idea about that sort of stuff also, so I'm just clutching at straws there.
[Desire HD Android Development] Scottymeuk:
I think it was booting but the changes are making it not boot. Have a read through last few pages.
[Desire HD Android Development] arikyeo:
I think almost all builds didn't make it past the splash screen. Just like mine.
[Desire HD Android Development] Doktaphex:
If all builds are sticking at the same point with the 'sh' error then surely it would stand to reason that this is definitely a kernel issue right?

After all the build uses the kernel from /device/htc/msm7x30-common/msm7230/kernel. If someone were to compare this to the samsung kernel, would that be any use. Again, I'm clutching at straws here.
[Desire HD Android Development] Shelnutt2:
Let me know if you guys get

E/AudioFlinger( 90): createTrack_l() Bad parameter: sampleRate 44100 format 1, channelMask 0x00000001 "for output 0xff28 with mformat 1, msample 44100 and mChannelMast 0x00000003

We are getting that on the hero and the N1 guys were getting it to. It seems the channel is set to mono but then set to stereo so it errors out. I'm compiling a workaround by changing the default to mono when no output is set.

I'm curious if you guys get it or not because you are using a different version of libaudio.
[Desire HD Android Development] arikyeo:
Yeah, could be. Unfortunately, I was and is never a kernel guru so have to rely on others to help..