yashsingh1/xdaforums huggingface dataset:
[Nexus 5 Android Development] Deoy:
EDIT: SORRY I messed up, it's not tge sounds, it's the sensors that were fixed. Sorry!!!

Downloading... A few ppl i know are trying to fix things and we're gonna start now, we had some success with fixing sound. More on that later if we think it's completely done =]

It's [MENTION=5317983]alexanderi96[/MENTION]

The one who had sucvess with aound is - (I'm not sure about his user will put it in after making sure in a few :P)
[Nexus 5 Android Development] trh1341:
Aicp with faux kernel on internal Nd sense and ubuntu as seconddaries
[Nexus 5 Android Development] GalaxyUser:
Hey,

You have mic working on this Sense port for our Nexus 5 ??
[Nexus 5 Android Development] Deoy:
Yes, Gabriele ( sorri i forgot his @ user) made a flashable zip to fix sensors, and it also fixed the mic. But it got bugged after some time again.. Will upload the flashable asap.
[Nexus 5 Android Development] mchj:
my notes, maybe they can help

Log

Some code AudioPolicyManager.cpp:

Android Cross Reference:

http://osxr.org/android/ident?_i=mAvailableOutputDevices
[Nexus 5 Android Development] _Infamous_:
Post and asked questions here http://xdaforums.com/showthread.php?t=2719207

this is for Dev only please read
[Nexus 5 Android Development] djmark:
Guys use this code ( *#*#3424#*#* ) to be inserted in the dialing sequence, we will come out of the various tests from the sensors , sounds ,screen etc... ;)

I tried it and it works ;) Perhaps it could be used to develop this fantastic ROM

P.s Sorry form my english i'm italian user.. I use google translate :(
[Nexus 5 Android Development] _Infamous_:
Any one have any more luck with sound because im stuck
[Nexus 5 Android Development] El Daddy:
Just a reminder to everyone. This thread is for development related discussion only. Any general discussing should be posted here as directed in the OP.

Thread Cleaned

Thanks,

El Daddy

Forum Moderator
[Nexus 5 Android Development] iTzGavin96:
Anybody figured out how to install the patch while using this as your secondary rom? not a big fan of using multi rom and switching this to my primary to install the patch zip and being unable to switch it back
[Nexus 5 Android Development] Plays2:
Go into recovery and choose advanced>multirom>list roms and choose sense and choose flash zip. But wrong thread.
[Nexus 5 Android Development] David_Vaz:
I need the file "config.gz" of someone who has the HTC One M8

To get, need run in adb mode:

adb pull /proc/config.gz

Thanks ;)
[Nexus 5 Android Development] mchj:
maybe u can get this from

Port_base rom> http://xdaforums.com/showpost.php?p=51401201&postcount=1
[Nexus 5 Android Development] Zyxxeil:
I think that its on a different partition :/
[Nexus 5 Android Development] David_Vaz:
The file is not in /system or /data partition.. I need pull file from one M8 device, obligatory.
[Nexus 5 Android Development] Gumby63:
I can get that to you around 22:00 if no one else does by then.
[Nexus 5 Android Development] David_Vaz:
http://forums.androidcentral.com/optimus-v-rooting-roms-hacks/168686-guide-how-port.html

/system/lib:

the entire egl folder

the entire hw folder

the entire modules folder

all the libOmx* .so files → To get the camcorder working

all the libaudio* .so files → To get the audio working (if you don't change them, it won't boot)
[Nexus 5 Android Development] munchy_cool:
Its uploading guys ...gimme a few. ..had to hit up a buddy of mine ...
[Nexus 5 Android Development] CB620:
What file and what directory?

Tried getting the file from the directory posted and it's not there when running the command.
[Nexus 5 Android Development] munchy_cool:
Mentioning my buddy here so he can post the file as he is getting an error when pulling the file via adb [MENTION=1468652]charlieb620[/MENTION]
[Nexus 5 Android Development] jabza:
Try "adb shell" followed by "ls /proc" to see if it's perhaps under a different file extension.

Sent from my Nexus 5
[Nexus 5 Android Development] chjema:
Cant you get that file from a stock img using a extract-ikconfig script?
[Nexus 5 Android Development] jamal2367:
/system/bin:

netd → To fix the wifi hotspot

I have nothing tested ...i have Google it !!
[Nexus 5 Android Development] GalaxyUser:
Already tried for both :/

For WiFi Hotspot it needs some framework changes and some binaries/libs too.

I will not work on this for the week-end because i can't. Monday i will continue to work.

Please man i need your help. With [MENTION=4947573]OptimusRs[/MENTION] we ported Sense on LG G2. However it have a problem on storage encryption. Is there someone who have fast internet speed who can upload a backup from Philz recovery and share it with us please ? Just send me it in PM, don't share the link in this thread.
[Nexus 5 Android Development] Vicpdx18:
I have a Comcast 57 down 12 up connection?
[Nexus 5 Android Development] GalaxyUser:
Yes awesome, we need full backup (system, data, etc..). Thanks anyways
[Nexus 5 Android Development] Vicpdx18:
do you need the recovery itsself? or just a backup?

---------- Post added at 02:54 AM ---------- Previous post was at 02:52 AM ----------

Sorry did not see your post up above but what full backup do you need? from nexsense or from a LG G2 Edit**

---------- Post added at 03:06 AM ---------- Previous post was at 02:54 AM ----------

Hey can someone take over for me my internet is acting up so ill do network maintenance in the morning but any dev or help want to take over?

---------- Post added at 03:19 AM ---------- Previous post was at 03:06 AM ----------

if you see my post my internet is acting up so I asked if someone else could take over
[Nexus 5 Android Development] raynan:
I don't have this issue...I'm on AT&T.
[Nexus 5 Android Development] GalaxyUser:
I found why LED and Flashlight are not working.

It ask for some files that does not exist in our kernel:

D/CSD_DLL ( 3465): /sys/class/leds/flashlight/brightness

D/CSD_DLL ( 3465): write /sys/class/leds/button-backlight/brightness failed!

D/CSD_DLL ( 3465): write /sys/class/leds/amber/brightness failed!

So i "greped" these things and i found some files:

ramdisk: init.rc (boot.img from Sense)

/lib/libhardware_legacy.so

/lib/libawd_calibration.so

/lib/hw/lights.msm8974.so (but we can delete this one, we need to use lights.hammerhead.so)

/bin/charging

/bin/shutdown

Perhaps we need to hex edit those files.

If anyone want to try. I can't i've not the time this week-end
[Nexus 5 Android Development] Paradoxxx:
Belongs to General Discussion thread.

Same.

GalaxyUser and I are beeing really fed up by all the non development related post that are clogging this thread.

There's a General discussion thread that has been created, and we're still having users that can't read the opening post and go post the useless post there.

I don't believe users do understand how frustating it is to see some answer on a DEVELOPMENT related topic, with an answer totally out of the topic, people reporting bugs (ORLY? It's an alpha version, it's another OS ported to a phone with a totally different hardware, what do you expect?).

A lot of developers left XDA for this reason. People are complaining about unfinished stuff, unreleased stuff. That's why. End users. Anoying users, that can't take time to read first post.
[Nexus 5 Android Development] jxr94:
1. This is the place for these questions.

The developers need this space to actually discuss progress on this, not to help troubleshoot installation problems.

2. Make sure you wiped System, as well as Data, and Cache.
[Nexus 5 Android Development] _Infamous_:
Here please read http://xdaforums.com/showthread.php?t=2719207
[Nexus 5 Android Development] iTzGavin96:
Video

This took alot longer than i would have liked to get uploaded but its finally done! How to install the Sense 6.0 Rom on your nexus 5 With Multi Rom! (Step by Step tutorial with a first look towards the end)

https://www.youtube.com/watch?v=eCSPej21MGU

All credit given to op + devs in the video
[Nexus 5 Android Development] androidfilesharing:
I don't see that being a viable option. I just believe XDA should lock this thread down to developers only or maybe on an invite basis if possible.
[Nexus 5 Android Development] Jishnu Sur™:
Thank you Sir ! :D

On topic: What so ever I do, the camera always says main camera not supported. Instead of this, i found the things which are maybe required to fix the notification lights. [MENTION=3068641]jamal2367[/MENTION] pointed me to page 113 where GalaxyUser found the same errors and has discissed about it. Lets see how it goes, its already 2 am here lol. But this project is very interesting, but tough as well. :good: :good:
[Nexus 5 Android Development] mchj:
HTC One m8 Kenel Source - One M8 - HTC - WWE - zip

3.4.0 v4.4.2	91.3 MB

1.12.422.19

Here: http://dl4.htc.com/RomCode/Source_and_Binaries/m8-3.4.0-g278eae8.zip

One M8 HTC Framework Support Files

3.4.0 v4.4.2	47,6 MB

HTC One M8 all

Here: http://dl4.htc.com/RomCode/Source_and_Binaries/m8-cl358414-framework-support-files.tar.gz

maybe can help with anything kernel related?
[Nexus 5 Android Development] Gumby63:
Yes I was about to suggest digging through the kernel source. I know you can find the deconfig in there but I dont think HTC built the kernel with config.gz.
[Nexus 5 Android Development] Saqib Nazm:
Moved almost 10 pages of off-topic into the General Section of This Thread : HERE

Please stay on topic lads, don't make this development thread a Q&A, off-topic section as it really makes it difficult for the dev to track useful messages.

If you really want to help and say thanks as appreciation please post it HERE, Also do not post the same Bugs which are already enlisted in the 1st post.

If this continues like this, I would have to lock this thread down to help you to make an habit to post off-topic the general discussion thread, any user fails to comply will be addressed via PM personally.

Thanks, Have a good day to you all.
[Nexus 5 Android Development] Shaky156:
Someone created an IRC on freenode channel #nexus5sense, if all serious developers come to that channel would be easier
[Nexus 5 Android Development] Vekhez:
This is a development forum furthermore in a development subcategory. I think people just need to read.
[Nexus 5 Android Development] LorD ClockaN:
Last few kernel sources from HTS were borked.. with missing stuff in it, I hope this one has it all so you guys can maybe figure it out
[Nexus 5 Android Development] md1008:
I have a suggestion maybe put this in the developers only thread. I would assume that section keeps many of the non devs out. I suggest because I follow this page religiously. I don't comment because I am not a deb. If it is locked I cant follow this page. I am rooting for you guys and would like to test(not as in look for bugs or anything like that just for personal) if it becomes more of a DD before I sell my Nexus
[Nexus 5 Android Development] jamiethemorris:
The m8 elementalx kernel is using a defconfig. That would probably be a good starting point. For what it's worth, it's not a whole lot different from the regular m8 defconfig. I'm guessing htc built the kernel with that defconfig and just chose not to put it into config.gz.
[Nexus 5 Android Development] -DarkKnight-:
Any progress guys? Nothing on my end
[Nexus 5 Android Development] Vicpdx18:
possibly nothing yet, this thread has gotten pretty quiet lately.
[Nexus 5 Android Development] xXminiWHOOPERxX:
Doesn't mean anything :P

Sent from my HTC Droid DNA running Insertcoin 2.3.0
[Nexus 5 Android Development] Vicpdx18:
oh lol no I didn't mean it in a bad way, I meant it as in everyone's hard at work!
[Nexus 5 Android Development] Vekhez:
Is that the inference that you have made a lot of progress? :D

I've been looking at a camera fix. Cannot find anything at all.
[Nexus 5 Android Development] xXminiWHOOPERxX:
Well I haven't talked to [MENTION=2623456]GalaxyUser[/MENTION] for awhile. But then again he hasn't messaged me asking for anything.. could mean good thing or it could mean bad things.

Sent from my HTC Droid DNA running Insertcoin 2.3.0
[Nexus 5 Android Development] FuMMoD:
He's on to something, cause I go into full hermit mode when working on something. This whole project took me by surprise. I'm trying to debug the tethering even though I have such noob knowledge when it comes to roms.
[Nexus 5 Android Development] eric1357a:
[MENTION=2623456]GalaxyUser[/MENTION] said he is not able till next Monday
[Nexus 5 Android Development] FuMMoD:
I was just about to edit my post too. I just remembered that lol. Ninjad me.

He posted for the Hotspot (tethering) we need some libs which I'm going to assume is from the M8.
[Nexus 5 Android Development] Custom40:
Interesting, here's an idea or two of my own I hope you can make use of (I am no N5 owner)

Try to pull and replace these files from a N5 ROM and see if anything happens to sound:

system/etc/media_codecs

system/bin/mdnsd

system/lib/libaricentomxplugin.so
system/lib/libbcc.so
system/lib/libbcinfo.so
system/lib/libc.so
system/lib/libchromium_net.so
system/lib/libmdnssd.so
system/lib/libskia.so
system/lib/libsrscorehtc.so
system/lib/libstagefright_soft_aacdec.so
system/lib/libstagefright_soft_aacenc.so
system/lib/libwebrtc_audio_preprocessing.so

Try to pull and replace these files from a N5 ROM and see if anything happens to NFC:

/system/app/Nfc.apk
/system/lib/libnfc.so
/system/bin/pcscd

Wish you the best of luck.
[Nexus 5 Android Development] Quinny899:
In terms of the NFC, we don't have a stock "Nfc.apk"
[Nexus 5 Android Development] djmark:
in the miui rom port, there is a file NFC.apk?
[Nexus 5 Android Development] sendhiloo7:
I have attached NFC apk from MIUI
[Nexus 5 Android Development] Quinny899:
That's not the same, it's not Nfc.apk
[Nexus 5 Android Development] sendhiloo7:
But I don't another this apk in app and priv-app folders
[Nexus 5 Android Development] sykomaniac:
For what its worth im still convinced the issue with audio is because the rom is still using the audio_policy.default.so file from the m8 and not the nexus 5 lib file
[Nexus 5 Android Development] bharaththeunique:
Two of the libs are htc specific. First lib from system/lib doesnt exist in pa rom.
[Nexus 5 Android Development] Quinny899:
That's because it's HTC specific, we don't have one
[Nexus 5 Android Development] GalaxyUser:
Hey everyone,

Thanks for trying to fix bugs. I will work again on this tomorrow, and i will try to fix bugs but it's more and more difficult.

By
[Nexus 5 Android Development] Smith7018:
I've been trying to get audio to work but nothing so far :(
[Nexus 5 Android Development] -DarkKnight-:
What have you tried?
[Nexus 5 Android Development] slv96:
Maybe because with audio_policy.default.so from nexus 5 rom doesn't boot :-\

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Nexus 5 Android Development] sykomaniac:
I know but that's the file I think needs hex editing to get audio working
[Nexus 5 Android Development] slv96:
I've tried to open it but it is crypted... Do you know how to open and edit it?

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Nexus 5 Android Development] Smith7018:
Just moving various libs into place and editing configs in etc. I've gotten the phone to boot with the N5's audio_policy library but it still doesn't work/is unstable.
[Nexus 5 Android Development] grim489:
A hex editor maybe, toward the end there is some legible stuff. Idk anything about this though. 0000f290 is where it starts I guess?
[Nexus 5 Android Development] Smith7018:
Yeah, it definitely needs a hex editor. To debug this, you should attach a debugger to the process that launches the library. Once attached, the debugger should be able to tell you what memory address/line/command throws the error and you can walk back from there. I'm not 100% sure if gdb comes with Android but I know that's what you need to use.

EDIT: Here ya go
[Nexus 5 Android Development] xXminiWHOOPERxX:
Just dropping in on all the threads I help or develop in to say Happy Easter, and have a great day with your families :)

Sent from my HTC Droid DNA running Insertcoin 2.3.0
[Nexus 5 Android Development] mihovil13:
Hi! I'm just curious what's the base of this ROM?

CM11 or built from AOSP?
[Nexus 5 Android Development] ZacksBuilds:
Sigh..... Reading is so rare nowadays.

Sent from my PARANOID Nexus 5 with Franco r39 powered by ART.
[Nexus 5 Android Development] seaskyways:
You gotta be kiddin me man ! From when does a sense ROM get based over AOSP or CM11 ... Plus , the title is pretty self-explanatory where it says PORT , which means the a Sense ROM has been ported from the M8 , which in this case is Maximus ...
[Nexus 5 Android Development] psp9000333:
I lol'ed

Sent from my Nexus 5
[Nexus 5 Android Development] trh1341:
Ahhh, my sides... Seriously. I'm not even mad. I'm impressed! I never knew that this question could ever pop up in a thread like this... Good job
[Nexus 5 Android Development] mihovil13:
It says in OP it's AOSP. I found it now.

What was I wrong about?
[Nexus 5 Android Development] Yamahar6riding:
Binaries..... But I guess there are plenty who wouldn't understand this. But then there is the question of the title of the forum. Flashing ROMs and being on XDA for any period of time, well you learn quickly about touchwiz, sense, optimus ui, and then there is the opposite of these like AOSP based or CM based. But again, the title. But hey if you are pretty fresh to flashing ROMs and what they are all about and based off, no big deal. It's funny to those who have been around and been doing this a while.
[Nexus 5 Android Development] trjlive:
The title of this thread should be self-explanatory. And then there's this in the OP:

This means it's using the Maximus M8 base (Sense 6) for the port, and using AOSP source for binaries. If you don't understand what this means, then you definitely shouldn't be flashing this. Also, your questions belong in the general thread, this thread is for development purposes only.
[Nexus 5 Android Development] Vekhez:
Still working on camera, nothing has come up at all. Sooooo frustrating.

[MENTION=2623456]GalaxyUser[/MENTION]

what are you focusing on?
[Nexus 5 Android Development] GalaxyUser:
For the time being i am recovering from three days of party haha
[Nexus 5 Android Development] -Grift-:
[MENTION=476135]mihovil[/MENTION] Come on mate you are a

RC

RECOGNIZED CONTRIBUTOR

You should have know better...

Anyways the Mod has already been here and warned us all. If its not related to the ROMs development itself leave it out of the thread.
[Nexus 5 Android Development] Vicpdx18:
That must have been an awesome party you had!
[Nexus 5 Android Development] hackahero:
Sound is still broken as well correct? Does some sound work?

---------- Post added at 03:03 PM ---------- Previous post was at 03:02 PM ----------

Oops sorry wrong thread
[Nexus 5 Android Development] -DarkKnight-:
Nope
[Nexus 5 Android Development] trh1341:
Has anyone tried hex editing? I am planning on trying tonight after school and work.
[Nexus 5 Android Development] seaskyways:
Camera will probably be the hardest part, sound should be easier, keep it up lads.
[Nexus 5 Android Development] trh1341:
Why do you say that?
[Nexus 5 Android Development] :
Because the cameras aren't even similar. 2 different pieces of software targeting 2 different pieces of hardware..

I'm gonna take a whack at the camera tonight and see if I can help in any way
[Nexus 5 Android Development] sykomaniac:
I've looked at hex editing not my speciality though I've found the file where the error comes from and can see method definitions and log statements no idea so far how to tweak the contents of a method though

Anyone any pointers?
[Nexus 5 Android Development] -DarkKnight-:
Which File? I'll take a look
[Nexus 5 Android Development] sykomaniac:
The error that appears when you try to play sound is as follows:

E/HtcAudPMB( 910): getDeviceForStrategy() speaker device not found for STRATEGY_SONIFICATION
W/HtcAudPMB( 910): getOutput() could not find output for stream 2, samplingRate 0,format 0, channels 3, flags 0
E/MediaPlayer(26225): error (-19, 0)
D/MediaPlayer(26225): Mediaplayer receives message, message type: 100
E/MediaPlayer(26225): Error (-19,0)
E/SoundPicker(26225): SoundPickerAdapter [startMediaPlayer] generic audio playback error
E/SoundPicker(26225): SoundPickerAdapter [startMediaPlayer] unknown playback error

This is because the ROM is using the M8 audio_policy.default.so file instead of the AOSP one.

The error originates from the AudioPolicyManager.

The code for the AOSP version is available here (CM version): https://github.com/CyanogenMod/andr...lob/cm-11.0/policy_hal/AudioPolicyManager.cpp (specifically around line 835)

When you hex edit the audio_policy.default.so file from the phone you can see the method definition and error message that is displayed in the log. Like I said I've no idea how to change the content of the method (yet).

Good luck :)
[Nexus 5 Android Development] JunDavis:
I think it helps if you know assembly. Not exactly sure but I've had to hack some .so files before and think this is what I did. Its been a while.
[Nexus 5 Android Development] DanielMod:
The problem could also be hw acceleration support.

There is none hw support on that rom and on my older motorola razr xt910 that was the problem with some costum roms, which also did not had any sound
[Nexus 5 Android Development] GalaxyUser:
Yeah when i try to push libstagefright.so from Nexus 5 AOSP the phone is not responding.

Envoyé de mon Nexus 5 en utilisant Tapatalk
[Nexus 5 Android Development] -DarkKnight-:
Could the lack of hardware video decoding be linked to this as well?
[Nexus 5 Android Development] GalaxyUser:
It is for sure ;)

Envoyé de mon Nexus 5 en utilisant Tapatalk
[Nexus 5 Android Development] sykomaniac:
Am I being silly (probably) but if you enable the developer option "force GPU rendering" everything works OK. So why do you guys say there is no HW acceleration?
[Nexus 5 Android Development] Sparx639:
You guys should work on any acceleration and encoding/decoding issues before you work on the camera and sound. The camera and sound often rely on other parts which should be fixed first
[Nexus 5 Android Development] GalaxyUser:
Can you read a video when you enable "force GPU rendering" (i'm not on sense acctualy)

Yeah, can you help us for that ? :)
[Nexus 5 Android Development] -DarkKnight-:
Well sound is necessary for a daily driver so I would consider that more important
[Nexus 5 Android Development] Sultanxda:
You could probably fix hardware video decoding by copying vidc drivers from the M8 kernel.
[Nexus 5 Android Development] Sparx639:
I would kill to help but I'm don't know how to code, but I know from other devices that non aosp Roms often need the encoding/decoding and accelerations working properly before sound and camera start working
[Nexus 5 Android Development] FuMMoD:
Can anyone try out these sound libs? They're from viper4android.

https://copy.com/kYNzqNR0fHuHgdu
[Nexus 5 Android Development] raymond4:
Do we flash it ?
[Nexus 5 Android Development] FuMMoD:
It's flashable for Nexus 5 roms. It's for the devs to take the libs out and place them where they need to be and figure out if it works. Just putting these out there just in case. I don't suggest flashing it on this PORT.
[Nexus 5 Android Development] raynan:
No good...nothing changed at all for me
[Nexus 5 Android Development] raymond4:
He said it's not recommended to flash only for devs to look at.
[Nexus 5 Android Development] raynan:
Understood. Just figured I'd replace the libs and see what happens. Last time I tried that from other places, it didn't even boot. Might be a fair place to start.
[Nexus 5 Android Development] sellers86:
For the people that have tried replacing the AudioManager .so file, if you tried using CM's, it may not work due to it being CAF instead of AOSP. On the other hand, if you tried to use AOSP, try replacing it with the CM11 CAF .so file. Its possible that HTC used CAF for sound.