yashsingh1/xdaforums huggingface dataset:
[Nexus 7 Android Development] NetFluke:
Thank you!

Unfortunately it will take more research to deal with DAC volume issue - this build did not work as well (mute/max volume choices only).

I guess I have to start learning Android innards next year.

Many thanks for your help and please accept my apologies for your lost time.

All the best in New Year! :D
[Nexus 7 Android Development] redeyedjedi:
this sucks.....audiopolicymanager didnt really change that much and I was thinking it should've worked. Ill pull the file and try it on a 4.3 rom and see if it works there anymore either.
[Nexus 7 Android Development] NetFluke:
Another potential offender:

In android_frameworks_base/blob/cm-11.0/media/java/android/media/AudioService.java

// Devices for which the volume is fixed and VolumePanel slider should be disabled

final int mFixedVolumeDevices = AudioSystem.DEVICE_OUT_AUX_DIGITAL |

AudioSystem.DEVICE_OUT_DGTL_DOCK_HEADSET |

AudioSystem.DEVICE_OUT_ALL_USB |

AudioSystem.DEVICE_OUT_PROXY; // use fixed volume on proxy device(WiFi display)

Looks like the line in red has to go (Timur removed it).

All the best for XDA!
[Nexus 7 Android Development] Zeljko1234:
New year build with red line above removed :)
[Nexus 7 Android Development] NetFluke:
[MENTION=2559459]Zeljko1234[/MENTION]

Happy New Year!

Thanks a lot for the build, but looks like we are on the long road here...

This change was just one more piece of Timur's puzzle (Now there is some reaction from volume slider but volume still is max/mute only). Please look at attached sources for AudioPolicyManagerBase.cpp from CM11 and Timur (his files can be found at github.com/mehrvarz). Timur added many interesting routines in this file - they can be found by searching for "tmtmtm". I'll try to update CM11 source with these routines, but there's no guarantee that something will not get missed or will not cause compiling errors.

I greatly appreciate your efforts and help. Thanks again!

Files inside third ZIP are named as <path with "_"s>_<file name> - it was the best I could come up with.

New update after another debugging session.

Another PatchedFiles.zip update as of 01/06/2014 - fixed error in .h file.

Another PatchedFiles.zip update as of 01/08/2014 - added alternative WiredAccessoryManager.java for multilanguage ROMs (should work with any ROM now).
[Nexus 7 Android Development] Zeljko1234:
You're welcome and happy new year to you.

If you make changes just send me to compile or you can compile by yourself. I will look into files you send me. Maybe we can figured out how to merge it.
[Nexus 7 Android Development] ZenInsight:
Is this the only GEL and ART plus USB OTG native CM11 ROM available right now?

From what I am reading, it seems to be perfect except for some kind of audio issue that is being worked on. Is that correct?

Does this use the latest Nvidia kernel for Tegra3? The stock ROM has pretty poor frame rates IMO.
[Nexus 7 Android Development] Zeljko1234:
USB OTG is merged into official CM11 few days ago. GEL is part of gapps. ART works. Kernel is 3.1.10. Didn't noticed poor frame rates but I don't know in which apps you have it.

No audio issue with rom. NetFluke wish to have USB DAC support with volume control.
[Nexus 7 Android Development] abuttino:
I just wanted to let you know that we are working on a way to get Google wallet working with NXP NFC chipsets. The thread is over in the NFC forum if anyone cares to chime in on the decompiled jni code.
[Nexus 7 Android Development] numus:
Tried flashing 20140102 and got an error Status 7.
[Nexus 7 Android Development] Zeljko1234:
You found today's build :D It is experimental version for NetFluke but you should be able to flash. AFAIK he flashed it. Which recovery do you have?
[Nexus 7 Android Development] numus:
I updated my recovery and installed 20140101 and it worked fine.
[Nexus 7 Android Development] Erik1805:
can't download the latest rom. Is there a problem?
[Nexus 7 Android Development] superuser.pm:
how to load file music into Apolo ? my nexus can't load song....
[Nexus 7 Android Development] adefxda:
Work fine on me, flash on multirom v19

http://xdaforums.com/showthread.php?t=2011403
[Nexus 7 Android Development] Zeljko1234:
If you use browser, when you see "Sorry an error has occurred, retrying." just click arrow down on right down corner. Google drive tried to open zip but it's too big.

Here is new year build, and yesterday's.

I don't user Apollo (removed completely from my system) but worked last time when I tried. Do you have .nomedia maybe in your music folder?
[Nexus 7 Android Development] Erik1805:
Thanks. How is the batterylife of this rom?
[Nexus 7 Android Development] Zeljko1234:
Really depends of usage (games, music, browsing, reading...). Friend sent me his battery status running this rom.
[Nexus 7 Android Development] Erik1805:
That looks really promissing. Will flash it tonight and let you know.
[Nexus 7 Android Development] redeyedjedi:
if you pulled Apollo from another ROM, use also the "media provider.apk" from the same ROM. otherwise make sure media scanning is not disabled via trickstermod, etc.
[Nexus 7 Android Development] Zeljko1234:
I didn't remove Apollo or anything else from latest builds, just from my running system.

P.S.

Actually I uploaded once customized rom. It's recognizable by size and it's quite old.
[Nexus 7 Android Development] Erik1805:
Just installed your Rom. Looking good. Is it wise to flash a custom kernel, like m kernel or just keep stock?
[Nexus 7 Android Development] Zeljko1234:
AFAIK, M kernel should work but I don't like tap to wake, overclocking, etc. Because it drains battery. I know that can be disabled but anyway.

You can experiment with different kernels and find the best one for you.
[Nexus 7 Android Development] Erik1805:
Thanks. I will run stock for a while. Rom is very good.
[Nexus 7 Android Development] adefxda:
Try franco kernel, hope you will like it..
[Nexus 7 Android Development] Erik1805:
Thanks. Do you have a link? Which version are you using?

Which settings do you use?
[Nexus 7 Android Development] adefxda:
r77

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

[KERNEL][GPL][N7]franco.Kernel - r77
[Nexus 7 Android Development] numus:
Does anyone else get a problem sometimes where it wont wake up? Or that it randomly wakes up and drains the battery? I always seem to have this issue with every rom.
[Nexus 7 Android Development] Zeljko1234:
Last sentence makes me thing that you have problem with your device. Cannot be that you have the same problem with every rom.

Btw, just uploaded new build :)
[Nexus 7 Android Development] numus:
Well it also is very laggy.. IDK if it is my device or just the kernel setup....

What settings for the kernel do you recommend.
[Nexus 7 Android Development] Zeljko1234:
I just left default settings but you can check in settings, performance, processor governor to be interactive, min 100 MHz, max 1300 MHz. I/O scheduler cfq.

Btw, recently I use minimal gapps (playstore, syncing apks and libs, AOSP calendar sync) from here. I don't really need face unlock, Google now, search, etc. But you should be fine with full gapps. You can find two flashable gapps which I here.
[Nexus 7 Android Development] maslinar:
Odličan! Prvi ROM s kojim mi DAC radi! Hvala Željko
[Nexus 7 Android Development] Ja_som:
Only English language...
[Nexus 7 Android Development] redeyedjedi:
basically, he is thanking the OP for having a ROM with DAC.

its Croatian. first word means "awesome!"
[Nexus 7 Android Development] cepsisx:
Thanks for the great rom

www.sonsuztekno.com
[Nexus 7 Android Development] Ja_som:
I understand him a bit, his language is not so different from my. But he (we) should use English, the forum rules ;)
[Nexus 7 Android Development] maslinar:
Please stay on topic and stop trying to be forum police. Next time you think someone is braking forum rules there is a report button so try to use that and let the moderators handle it. Thank you.
[Nexus 7 Android Development] Zeljko1234:
Again this conversation reminds me to good old forum joke :D

How Many Forum Members Does it Take to Change a Light Bulb?

1 to change the light bulb then post about it

14 to share similar experiences of changing light bulbs and how the light bulb could've been changed differently

1 to move it to the Lighting folder

2 to argue and then move it to the Electrical folder

7 to point out grammar/spelling errors in post about changing light bulbs

5 to flame the spell checkers

3 to correct spelling/grammar flames

6 to argue whether it's a light bulb or lightbulb

2 industry professionals to inform the group that the proper tern is Lamp

15 know it all who claim they were in the industry, and that "light bulb is perfectly correct

19 to post that this forum is not about light bulbs and to please take the discussion to the lightbulb forum

11 to defend the posting to this forum saying that we all use light bulbs and therefore the posts are relevant to this forum

36 to discuss the dangers of changing light bulbs without a professional opinion

5 to post a disclaimer that they are not light bulb experts, nor do they play one on TV and that anyone planning on changing their own light bulb should consult a professional

7 to post URLs where one can see examples of different light bulbs

4 to post that the URLs were posted incorrectly and then to post the correct URLs

3 to post about links they found from the URLs that are relevant to this group which makes light bulbs relevant to this group

13 to link all posts to date, quote them in their entirety including all headers and signatures, and add, "Me too."

5 to post to the group that they will no longer post because they cannot handle the light bulb controversy

4 to say, "Didn't we go through this already a short time ago?"

13 to say, "Do a Google search on light bulbs before posting questions about light bulbs."

1 forum lurker to respond to the original post 6 months from now and start it all over again
[Nexus 7 Android Development] maslinar:
:D

Anyway,I am using Hifimediy SABRE DAC.Hotplug and volume slider works,sometimes I will get DSP Manager FC on DAC disconnect.Only thing I am missing from this ROM is tablet interface.:good:
[Nexus 7 Android Development] redeyedjedi:
unfortunately you won't be seeing tablet Ui ever on kitkat. the Google "geniuses" removed all the tabletui framework. they want a unified interface so they can be just like apple.

HEY OP, so how do YOU think the best way to change a lightbulb is?
[Nexus 7 Android Development] Zeljko1234:
Just change it and don't post about it :D
[Nexus 7 Android Development] Vladimir2k9:
where to find changelog of new builds? Or what changed?
[Nexus 7 Android Development] Zeljko1234:
After about one week of trying, compiling, testing... success! NetFluke managed to implement Timur Merhvarz patches for DAC hotplug and volume adjustment.

I know that for most of users (including me) who don't have DAC this patch doesn't mean a lot. Still is nice to have such feature if doesn't interfere with anything else. May I ask you to test this build and report in case that causing any problem related to this patch. If not, it's going to be part of every new build.

Link to test build, even is public available all the time :D
[Nexus 7 Android Development] redeyedjedi:
thanks to netfluke and OP....lot of people asking for this.
[Nexus 7 Android Development] Zeljko1234:
Really? If no one can't find any interference with this mod I suppose that every next build can have DAC hotplug with volume support.

Let's start with today's build :)
[Nexus 7 Android Development] layt:
What about boot time? on KitKat i cant make working DAC at boot time, only after 1 sleep, or replug. Also what about USBROM FI features?

Im using now USBROM on my N7 car installation.
[Nexus 7 Android Development] Erik1805:
Can I just dirty flash over your version I am running now?

Verstuurd vanaf mijn Nexus 7 met Tapatalk
[Nexus 7 Android Development] jasmineloveflower:
thank you soooo much!!!!

hi everyone and happy new year i came by to say that after trying so many roms looking for otg usb support on kikkat i finally came across this forum and i must say that this rom is so far working excellent for me and i want to say thank you to whomever originally created this rom please pm me i would like to donate to help with improving this rom even further if possible thank you once again jasmine.

---------- Post added at 02:06 AM ---------- Previous post was at 01:59 AM ----------

The difference is that this one finally gots USB otg working again finally!!! Tried other cm11 and without any success.
[Nexus 7 Android Development] Zeljko1234:
As I said, I don't have DAC so I can not test it. If you wish you can look into USBROM code and try adjust to kk.

You should be fine, if not, you can always make clean install.

You're welcome. I will be happy if you donate to someone else who needs money more than me or to charity.
[Nexus 7 Android Development] NetFluke:
Detection on boot works with CM11 stock kernel but no OTG charging. It does not work with Kang-aroo or Oxydo due to the nature of Timur's OTG charging patches. More work is needed for this one...
[Nexus 7 Android Development] adefxda:
I cant upload picture from browser..

Opera, aosp and chrome same problem..

Anyone?
[Nexus 7 Android Development] Zeljko1234:
Which version do you use? Just tried with one image hosting site and works. Maybe problem is with fb.
[Nexus 7 Android Development] andrew9292:
Thanked for the DAC patches! Good rom!

Tested a few kernels and (incase anyone is kernel hunting)...

DAC on boot works with leankernel v3.1, hotpluging works too

DAC hotplugging only, works with kangaroo 1.2

Cant get any output on Oxydo v15, anyone has better luck?

Performance wise, try them! No issues on rom so far..
[Nexus 7 Android Development] NetFluke:
[MENTION=5189726]andrew9292[/MENTION],

With Oxydo - no DAC on boot (looks like general Timur's kernel issue), hotpluging works, but my USB Ethernet card stopped working.

Sometimes Oxydo showed "charging" even after charger was disconnected.

M-Kernel - OTG charging does not work, no matter how parameters were adjusted.

Faux123 kernel - causes reboot after OTG cable disconnect (100% repeatable) so was discarded right there.

Pretty much it's either OTG charging or DAC on boot using currently available kernels.
[Nexus 7 Android Development] andrew9292:
Eh? Hotplug works on V15 (with selinux)? Okok, i'll give it another try! Thanks for everything!
[Nexus 7 Android Development] redeyedjedi:
leankernel works on boot AND hotplug? time to go check out imoseyon guthub.....this is solveable and it will be figured out.
[Nexus 7 Android Development] adefxda:
08/01 build..

Idont know, but on my 4.3 rom, its fine..
[Nexus 7 Android Development] Zeljko1234:
New build, synced with latest CM changes and then merged with DAC support plus one nice cherry pick which I let you to find if you can :)

Probably you know that if you update from CM or flash CM nightly that some changes will be overwritten (like DAC support). For this reason and because I don't use some apps I removed them from my system. List is: Apollo,CellBroadcastReceiver, CMWallpapers, DSPManager, Galaxy4, HoloSpiralWallpaper, LiveWallpapers, LiveWallpapersPicker, MagicSmokeWallpapers, TelephonyProvider, VisualizationWallpapers, VoicePlus, CMS, CMUpdater, VoiceDialer). Also, as I mentioned already I use just minimum of gapps, core and calendar sync.

This build has all mentioned apps but I recommend to remove at least CMUpdater. If you don't mind, next time I may upload reduced version which I use.

I'm still open for suggestions, if you find something what can be cherry picked, merged or you developed, adjusted, etc.
[Nexus 7 Android Development] bhu1:
Google backup restore isn't working. Does that depend on the gapps I installed?
[Nexus 7 Android Development] Zeljko1234:
I don't think so, doesn't work for me also. Probably rom related and will be sorted soon.
[Nexus 7 Android Development] baldwyn:
Everything seems to work just fine, even some things that wouldn't work on a 4.3 ROM I was using. About to try out ART now. It's taking so long to do initial boot, optimizing, though.
[Nexus 7 Android Development] Zeljko1234:
That's why I switch to ART right after flashing rom and gaps. Even before sign in to Google account.

What doesn't work on a 4.3?
[Nexus 7 Android Development] baldwyn:
Final Fantasy V would never load for some strange reason and games through a GameStop promo app wouldn't install due to the "download may be corrupt" error. No problems now.

ART almost done upgrading. We'll see...

---------- Post added at 10:11 AM ---------- Previous post was at 10:08 AM ----------

Nope. The process com.Google.process.gapps has stopped. I downloaded a 10/31 version of 4.4 gapps. It was a much smaller file and none of the mirrors in the OP were working for me.

---------- Post added at 10:15 AM ---------- Previous post was at 10:11 AM ----------

Resetting back to dalvik. I think I'll give it time to get fully ironed out, any way.
[Nexus 7 Android Development] Zeljko1234:
Gapps must be PA. Linked in first post work for me with ART and link is correct

gapps-kk-20131119.zip - 123.71 MB

I'll upload to mega but will take some time...
[Nexus 7 Android Development] baldwyn:
I'll grab that one. Should I even mess with ART now? Is it worth it?
[Nexus 7 Android Development] Zeljko1234:
Depends of application. Some benchmarks show almost double result, some apps seam to work smoother but of course you're not going to receive email faster. The best is to test by yourself.

Finally art compatible gapps are uploaded.

gapps-kk-20131119.zip
[Nexus 7 Android Development] Kilroy.:
Do you think it light be possible to upload a mirror? Mega never works for me... ?
[Nexus 7 Android Development] Zeljko1234:
I did already for bhu1 but he successfully downloaded from mega so I forgot to post dropbox link.

https://dl.dropboxusercontent.com/u/71169234/cm-11-20131130-zeljko-UNOFFICIAL-grouper.zip
[Nexus 7 Android Development] blakeatl:
I've found that Mega doesn't work on firefox for me but works fine with chrome.

---------- Post added at 05:42 PM ---------- Previous post was at 05:38 PM ----------

Can someone tell me if I can flash this latest rom over 11/15 without issue (clearing cache and dalvik only)?
[Nexus 7 Android Development] bhu1:
Open the link in chrome and request desktop site, mega should work then. And believe me, once mega works properly it will suck all the speed that is available from any other task or from any other WiFi user providing very high download speeds compared tl other sites and its downloads are resumable as well.
[Nexus 7 Android Development] baldwyn:
Yup. Tap the icon, blank screen and then home screen. Thing is, I never had xposed installed. Now I do, though. I should check it out.

---------- Post added at 06:25 PM ---------- Previous post was at 06:05 PM ----------

Damn. So happy after upgrading to this ROM that FFV worked and then I got greedy, installed xposed and now it doesn't work again. Is there a workaround or just uninstall xposed?
[Nexus 7 Android Development] baldwyn:
That's it. I was basically just using xposed for a battery icon mod. Found another one that'll work okay. Uninstalled xposed and FFV fires right up. Basically it was a $15 game taking precedence over a free app and mod.
[Nexus 7 Android Development] Zeljko1234:
Strange, root access works for me as you can see on screenshot in the first post. Did you flash anything else?

Actually I didn't have problem with root on any of my builds.
[Nexus 7 Android Development] Zeljko1234:
Something what you use broke you root access. With latest build and gapps in the first post root works all day for me. Even with ART.

Will check tomorrow... Now is 3:20 in the morning.

Could you post links what you use?
[Nexus 7 Android Development] jakelights:
I'm using the latest build all working like a charm. ART and root also working. Good job. I just missed the aosp wallpaper :) thanks
[Nexus 7 Android Development] Zeljko1234:
I got email today in the morning:

"For Free accounts, the total amount of traffic that all of your links together can generate without getting banned is 20 GB per day."

This rom is the only file I share with this dropbox account. Nice to see that is downloaded enough to generate 20 GB in one day :) I hope that rom works fine for all of you.

If you can, please use mega link.

BrianXP7, I will look into it but I'm not sure how many users actually wish to have pure CM11 and how many with addons. You should first find out what breaks your root access.
[Nexus 7 Android Development] bhu1:
Mega is good but u can also upload to Google drive. That's very fast as well.
[Nexus 7 Android Development] gk1984:
I'd like pure cm and maybe an option to add mods over it. I don't always like all of the extras but choice is always welcome.

Btw, I commend you for trying something new and better but I could only get mega to work from a PC, even after requesting desktop website. I went through the entire download process and the file was nowhere to be found. My USB port isn't working well so transferring from pc always makes me nervous... If there's a sure way for mega to work, I'm sure we'd appreciate the info on the OP.
[Nexus 7 Android Development] redeyedjedi:
I just flashed kangaroo kernel onto usbrom and did a few tests:

As long as there is power applied to the otg y cable, then DAC works on boot AND hotplug...identical to timur kernel. No otg y cable, then no DAC on boot. I then tested with this ROM, and no DAC on boot. I am confident the kernel has everything it needs....there is just a little more on the ROM side for DAC on boot.

I tried to test leankernel on this ROM but just got bootloop, so I guess it doesn't support multirom or my version. leankernel uses pure stock audio code from Google. It would be no problem to add that code to any kernel......but I wanna know if it really works on boot AND hotplug. did anyone else try leankernel to see if they too got the same results?
[Nexus 7 Android Development] andrew9292:
Oh... I didnt use a otg-y only direct otg to dac...

Idk man, netfluke mentioned he got oxydo v15 i supposed to work with this rom...couldnt get any output at all, the heck.

Err i am using Multirom latest with Purity and franco r77 as primary + art, if that makes a difference.

Secondary, this rom plus your kernel currently also on art. LK managed to flash n worked fine... So i really dont know whats going on... Will try to get a dmesg for each kernel soon since last_kmsg only shows the multiroom boot process with primary kernel. Hopefully that dmesg will help! Thanks for the great work!

In fact, im really scared to share information and my experience nowadays with all this different results for diff people. I feel like i would mislead instead of being informative... maybe i should just shut up.lol.
[Nexus 7 Android Development] redeyedjedi:
it would be awesome if stock audio drivers did hotplug too.... I just always thought the lack of hotplug was the problem. I'm having issues too in the sense that I can't even boot leankernel on multirom.... oh well, its part of the fun.
[Nexus 7 Android Development] NetFluke:
My 2 cents:

Just did test with stock CM11 kernel and latest ROM.

Regular, not Y-cable was used.

DAC is detected on boot but (a very important "but") the sound will not switch to headphones and will not switch to speakers if DAC is unplugged.

This makes me think that DAC becomes a primary sound card and all hotplug logic gets corrupted. Reboot without DAC is needed to restore hotplug, but it works with CM11 stock kernel if DAC is connected after boot.

Test with LeanKernel v3.1 produced same results as stock CM11. Note: LK v3.1 has SELinux in Permissive mode, while CM11 is in Enforced mode.

Now for kernels with Timur's patches:

If you look at https://github.com/mehrvarz/android_kernel_asus_grouper/commit/7267ace2c665296db36951abc9bc8d4e9bd9bdd0 this line should be in the log:

##### sound/usb/card.c delayed call to driver_attach initiated

But it's not there (possibly because snd_usb_audio_probe failed).

This routine requires usbhost_hotplug_on_boot flag to be set.

I guess more kernel work is needed - will try to help.