yashsingh1/xdaforums huggingface dataset:
[Nexus 7 Android Development] J.Edwards(not the killer):
hello guys

i am using usbrom since ~3 month on my nexus 7 3g installed in an audi TT

last week i switched to autodroid

my setup is:

- nexus 7 2012 3g

- usb otg to a usb 5 port hub

- 5V power soldered directly to pogo pins (2A+ charging possible), also reduces noise on headphone jack

- headphone jack soldered to the nexus

- usb to can converter (i can control the whole car)

- GPS powered and directly attached to car antenna (GPS fix in less than 1 sec)

- 5V 5A DCDC converter tuned to 5.3V (charge speed like a boss)

- (USB DAC)

- RTL2832 attached to powered car radio antenna ( reception good but still not as good as original)

- carcam app starts based on gear-can signal

i had several problems with usbrom:

- USB otg randomly not working (this might be because USB plugs are not made for automotive)

- 3g not working after restart, this is because the USB to CAN converter that registers in the system as ttyACM1 which should usually be the 3g modem, solution: repower USB

-

startingDockService

keeps the system awake (wakelock) because i am using pogo pins to charge

- music volume problems with poweramp DVC on my UAC202 (after every sleep volume is reduced, this stacks, 10 sleep + wake cycles = silence mode)

- music cracks under high load, for example starting a app that is not cached -> short crack, it seems like setting niceness of poweramp to -20 reduces the cracking a bit, but per 30 min drive there is at least one crack, very annoying!!! this is also with google music and other players

now i changed to autodroid:

-

new problem:

one of the running apps crashes randomly at wakeup from sleep

- it seems like USB is more stable but still problems from time to time, after a few km of driving it works again

- still 3g not working after restart

- wakelock problem persists (my solution: kill android.settings process after display is off)

- i dont use USB DAC anymore and use the headphone jack instead, this solves 1000 problems and with DVC activated i cant hear any quality difference compared to DAC

- BUT the biggest and most annoying problem is still there: this damn cracking! there must be a solution!!

maybe you can have a look at this problems, especially this cracking

And btw, here is a picture of the installation:
[Nexus 7 Android Development] redeyedjedi:
Lots of issues like this with certain sound cards and usually with poweramp. Id suggest a different music player even tho I know poweramp is expensive. If you ran the rom with no gapps you may have enough resources for consistent poweramp performance.

For the cracking to go away suggests a resource is lacking, most likely RAM. A logcat wont even show anything. Once again, lets hope that google has followed through with stable usb audio support via audiotrack.java, etc. I know you said you dont use a dac, but googles audio setup leaves much to the imagination as it is. Even the changes from jellybean to kitkat has wreaked havoc on nicer, more expensive DACs....but you can find these issues anywhere people use DACs with android....not just this rom, but also on Odroid devices and note 10.1 at least as far as Ive seen.

Try killing or deleting as many gapps and background processes as you can....or use a lighter media player. At this point, kitkat and full gapps can consume 700mb of RAM. Plus 250mb for video ram leaves only 50mb for poweramp plus ALL other background services. If you have no gapps and must use poweramp.....try an older version. Your guess is as good as ours.

---------- Post added at 04:29 PM ---------- Previous post was at 04:19 PM ----------

Video quality has nothing to do with the cable....its all about a lacking software implementation. This is my main focus right now, but i hit one roadblock after another. Basically, we are getting relatively high quality rawvideo captured, but it gets formatted to bitmaps without deinterlacing. So, the two frames you see can move out of alignment during fast motion sequences....causing horizontal lines and other trash. Really what you are seeing is two perfect frame captures that are not refreshing at EXACTLY the same time, so you end up seeing them both slightly misaligned. This doesnt happen on slower sequences.....and it doesnt happen at all with my ffmpeg tests. My current roadblock is that the amount of system resources needed are just not there. I need to capture rawvideo, encode it, apply a deinterlacing filter, and send the output to surfaceview.

This requires much more cpu than just capturing raw frames and sending them directly to surfaceview. Im not giving up, i think i can squeeze it out of our lowly 1.3ghz ARM but i havent figured it out yet.

Are there any ffmpeg gurus who can help with testing????
[Nexus 7 Android Development] redeyedjedi:
ok.....dont freak out its not that bad really. I made a patch that you can use and it applies cleanly. I applied it myself, so you can use my git as a guide if you have problems.

There are two repos for wakelock blocker......packages_apps_settings, and platform_frameworks_base (android_frameworks_base)

No patch for settings repo, because of the unique string files, it wont work, but follow this commit, and you will be set,

https://github.com/lostdeveloper/pl...mmit/4881dd0042a2fa9896fb16f4bf4d92a7857c0cb6

oh yea and this one because I am a screwup with github:

https://github.com/lostdeveloper/pl...mmit/605e0279f8081ff73f46f90d0bd20c74a775b8b4

the only remotely difficult thing is that instead of "purity_strings" yours is probably "slim_strings" while all else should be the same. You will, of course, have to decide where to put it in the settings menu too.

OK, still with me?? Now, go to frameworks base repo, and using this commit as a guide, ignore all the dac support files, and look closely at the files changed for wakelock blocker

https://github.com/lostdeveloper/pl...mmit/986ae799689e7189f7c0a1271880b4853f26955e

Now, download this patch and apply it:

https://github.com/lostdeveloper/platform_frameworks_base/blob/kitkat/wakelock.patch

If you get no errors, you are done!! If you have conflicts or issues, then go back and use that previous commit to see where the patch went wrong. Its confusing because there are five files changed for dac, ignore those and you will be good to go.

If you give me contributor status on your git, I can help.....even tho I got slow internet. I can tweak some other stuff for you too, like for webcam support.
[Nexus 7 Android Development] michiil:
building now (: and i will give you contributer status (:

To have easycap and webcam support would be cool (:
[Nexus 7 Android Development] redeyedjedi:
sweet....one more thing. you cant pass this up:

https://github.com/voodik/android_patches/commit/7b307ee8cb0eac3202b77a0bc15320bf1c373233

and your buttons are working, but just in case you are curious:

https://github.com/voodik/android_patches/commit/f02406991a429f65cf8e5979a89d836a987055e9
[Nexus 7 Android Development] michiil:
The icons look cool i will upload a new build including them today (:

I think its better to implemet the buttons in the slim way so you dont need to add them if you dint want to (: the only thing i want to get working is longpress..
[Nexus 7 Android Development] redeyedjedi:
I'd like to know a little more about the ten buttons.....is that in slim or did you add? Is there code you used as a guide I can look at?
[Nexus 7 Android Development] michiil:
Uploading new build as we speak. Changelog see second post (:

EDIT: okay update takes a few more minutes i just noticed that i made a mistake. rebuilding now.

EDIT2: links are up (:

The navbar buttons editor is pure slim. all i did was a simple xml change to increse the number see here: https://github.com/michiil/packages_apps_Settings/commit/dedbfa59a37c100a70ab2e7a554ac23c7a08d44f
[Nexus 7 Android Development] sgt. meow:
So USB hostmode, DAC and stuff are working okay? Glad that's sorted. Plus I wouldn't recommend updating your kernel source against mine before I make releases as I push the crappiest commits to github ☺
[Nexus 7 Android Development] michiil:
yes i don't have any problems (:

not even your release branch?

EDIT: okay i just saw that you push to your rel branch (: i will update it manually from now on, thanks for the warning (:
[Nexus 7 Android Development] redeyedjedi:
Mine is updated for f2fs and 4.4.4 now. I need to upload it and update my op.....but it's there if you need it from source.....I've tested it and it's good.
[Nexus 7 Android Development] Iceman_jkh:
Is it possible to latch the usb audio to the usb device, and NOT return to nexus audio if the device disconnects?

When my car turns off, my usb audio device unpowers a few seconds before my nexus 7. This makes the nexus see the device as unplugged which results in audio transferring back to, and coming out from the nexus. ? not desirable.

I'd much rather the nexus simply went silent / didn't attempt to recapture the audio output steam on usb disconnect.
[Nexus 7 Android Development] michiil:
Use the usb pover manager app from _crue_ linked in the op (:

If you set it to fixed installation mod if will request audio focus and therefore the music stopps playing (:

A other option woulb be to set tasker to pause the music on power loss but i really would recommand crues app.

Peace
[Nexus 7 Android Development] Iceman_jkh:
Thanks michiil.

I do use that app at the moment, but it doesn't seem to prevent audio returning to the nexus. I'll try some different settings perhaps.
[Nexus 7 Android Development] michiil:
hmm wierd it works for me..

here are my settings:

it the settings don't stay you don't have root. to fix this you have wo go in settings/advanced options/superuser/on the three dots in the right upper corner/settings/superuser access and set it to Apps and ADB. even if it is already on apps and adb. i dont know why this is..

peace
[Nexus 7 Android Development] Iceman_jkh:
Cheers. I'll try those settings.

I already pause music on 'non powered' with tasker, but that still doesn't quite catch it in time.
[Nexus 7 Android Development] RoNeReR:
i really want a 3g rom..

can i install it on tilapia.? or its will not work probly
[Nexus 7 Android Development] sidgallup:
should i flash gapps or are they included on this?
[Nexus 7 Android Development] michiil:
A 3g version of the rom is in the works just be patient (:

You need to flash gapps.

Peace
[Nexus 7 Android Development] redeyedjedi:
Go down to the timer settings.....and reduce the amount of time before audio focus request...
[Nexus 7 Android Development] gregthomas129:
Awesome!! Works great! PLEASE don't let this die. The only issue I see is the volume up and volume down buttons are backwards. + takes volume down and - raises it.
[Nexus 7 Android Development] michiil:
Thanks (:

Hmm are you sure you are using the latest build? I fixed this soem time ago (:

Peace
[Nexus 7 Android Development] gregthomas129:
It should be running in your notification panel, there are 2 buttons on the power event manager panel, Turn off and Settings. Hit the settings button, somewhere in the middle of the settings screen is where the shutdown video or picture is selected.
[Nexus 7 Android Development] Dirtylarry11:
Ok...I have it now...I chose one of the videos listed in OP..but when do I see this video?..on power down or???..I cant figure out when the video should play...thank you!
[Nexus 7 Android Development] gregthomas129:
When charging is removed the tablet will shutdown and play the video.
[Nexus 7 Android Development] Dirtylarry11:
Can u give me an example?..like if I plug it into the wall and its charging and I remove the cable it shouldnt shut down right?...I guess im more confused than I thought...lol...thanks Greg!!!
[Nexus 7 Android Development] gregthomas129:
Yes, if you unplug the charging cable from the bottom of the tablet it should shut down. We use this in our cars with a power supply which keeps the tablet charged. When we shut the car off the charger goes off which shuts the tablet down and saves the tablet battery until we start the car again.
[Nexus 7 Android Development] Dirtylarry11:
What if it is plugged into wall outlet?.same thing?
[Nexus 7 Android Development] gregthomas129:
Not sure whether you need an otg cable for this to work. Never tried it that way but I would say yes.
[Nexus 7 Android Development] redeyedjedi:
No.....only with otg y cable. Tablet must be in usbhost mode. Sleeping manually by hitting the power button from the power event manager tab in the notification panel will also trigger the gotosleep video. Its purpose is for car installs.
[Nexus 7 Android Development] Dirtylarry11:
Ok...thank you...so I guess this rom is only for the nexus 7 2012 wifi only?..I jave a 2013 nexus 7 but doesnt boot after install...just sticks on the google text..
[Nexus 7 Android Development] machmanx:
Replies replies

J. Edwards, I have the same issues with Poweramp and I simply switched to a different player: RocketPlayer. No crackling, no decreased or increased volume when turning on car, etc. And this WITH THE DAC.

Dude, I was just about to warn you to double-check your Nexus model cause you sounded like you already got it running. This ROM is only available for the 2012 Nexus 7.
[Nexus 7 Android Development] hugo_bjk:
usb hub

hi all

what kind of usb hubs are you using? need some examples to see then i will buy from ebay.
[Nexus 7 Android Development] papinist:
I'm using the cheap amazon basic non-powered 4-port usb hub

http://www.amazon.it/AmazonBasics-U...e=UTF8&qid=1411029986&sr=8-2&keywords=hub+usb
[Nexus 7 Android Development] hugo_bjk:
i have a nonpowered usb hub too. so i am changing my question. should i use powered usb hub?
[Nexus 7 Android Development] papinist:
My answer is the same :) : my non-powered usb hub works perfect.

Be aware however, the most important component is the power supply. If you use a poor power supply, all hubs won't work properly.
[Nexus 7 Android Development] egren58:
Will this work on 2012 wifi nexus 7?..
[Nexus 7 Android Development] hugo_bjk:
i am using a cigarette lighter car charger for the tablet.:confused:

should i buy a power supply?
[Nexus 7 Android Development] papinist:
95% of probelms arising in this type of installation are caused by power supply that does not have enough A..

Even if they claim 2 or 3 amp, most of the time it is considerably lower than that.

[MENTION=4179306]egren58[/MENTION]: this IS for the 2017 wifi nexus 7. 3G version is linked on first post.
[Nexus 7 Android Development] egren58:
Okay got it installed. Giving it a shot. I have everything set up in the car already so I will start back from scratch
[Nexus 7 Android Development] machmanx:
Amps and hubs

A meaning amps if you didn't know that. Most cigarette lighter adapters supply 1 Amp of power and they're cheaply made. If you have a better lighter adapter that supplies 2A and above then you're good. Example: http://www.amazon.com/Anker-Dual-Po...046370&sr=1-15&keywords=cigarette+lighter+4.2 I use a 12V to 5V buck converter though :)

BTW, this is the hub I use: http://www.amazon.com/Plugable-Adap...d=1411045978&sr=8-7&keywords=plugable+usb+2.0

Called the Plugable USB 2.0 4-port hub, it has something called BC 1.2 which is some charging standard that some apple and android devices can identify as the faster charging port. Of course my Nexus 7 charges through the OTA cable but I'm hoping that when I connect my phone to it that it will charge at a faster rate, but no guarantee because it might require a proper computer as the host OS to support BC 1.2 . Otherwise the blue line indicates that it is on and the power adapter port is a standard size found at Radio Shack since we hook up our own power to these hubs.
[Nexus 7 Android Development] Dirtylarry11:
Stuck on load screen

I just installed this on my 2012 Nexus 7 wifi 32GB, and it installed just fine, but when I went and rebooted it is just showing the red/yellow/green/blue/ google animation...been like 20 minutes now..before install I did a full wipe even..thoughts or ideas? Thanks in advance
[Nexus 7 Android Development] egren58:
Helo quick question I have my tablet installee. I dont use a usb hub cuz I have my 2 din radio with all my music through usb. My problem is that when I lose power the tablet is not auto shutting off. Do I have to set something up since is jot a usb hub?.. or simply not possible.
[Nexus 7 Android Development] MetalMan2:
It sounds like you are not using a USB OTG cable, just a simple power cable going to your Nexus 7.

Just yesterday there was a discussion on this:

http://xdaforums.com/showpost.php?p=55517910&postcount=588

The auto-power-down sequence requires a USB OTG cable (to put the N7 into host mode).
[Nexus 7 Android Development] egren58:
Okay I went to like 15 stores no one seemed to have a usb otg cable. Is only the only option?..
[Nexus 7 Android Development] MetalMan2:
It is currently the only option for auto-power-down. According to the link in my last post you can force a shutdown manually, and from what I've read there is a plugin for Tasker so you can probably automate the shutdown with only a power cable.
[Nexus 7 Android Development] Dirtylarry11:
how to install?

Can someone explain how they installed this rom? I have the 32Gb 2012 version (wifi), do i need talapia or grouper? Is there something special about install? There is nothing in the OP that states this. Ive installed many roms over the years on many devices, but this one just never gets to the "dektop" ...just a boot animation...thanks
[Nexus 7 Android Development] egren58:
Direct me towards the tasker. Cuz I dont have a debit/credit card so I cant purchase online n cant find it local

---------- Post added at 08:43 AM ---------- Previous post was at 08:43 AM ----------

You need grouper
[Nexus 7 Android Development] Dirtylarry11:
ok, I have the grouper version, but just sits at boot animation for over 20 minutes...ideas? Im installing using TWRP
[Nexus 7 Android Development] egren58:
Did you flash the grouper version of the rom?.. and also did you wipe everything correctly?.
[Nexus 7 Android Development] Dirtylarry11:
I did flash the grouper versin, and did a full wipe as well
[Nexus 7 Android Development] J.Edwards(not the killer):
i will give it a try ... but without poweramp dvc i cannot tune the sound how i want it to be :(

my RAM usage is below 500MB ... this cant be the problem
[Nexus 7 Android Development] egren58:
Ugh all day looking for this usb otg cable and no luck.. anyone know where can purchase one
[Nexus 7 Android Development] gregthomas129:
EBay...
[Nexus 7 Android Development] gregthomas129:
EBay is your best bet.
[Nexus 7 Android Development] dreamonn:
Did you install a suitable gapps package as well as flashing the ROM?
[Nexus 7 Android Development] egren58:
But I dont have a valid debit card at the momment. And I cant use ebay :/
[Nexus 7 Android Development] egren58:
But I dont have a debit to purchase on ebay :/

---------- Post added at 12:24 PM ---------- Previous post was at 12:19 PM ----------

I saw someone mentioned it being done with tasker I do have tasker and I was wondering if someone could help me achive this.
[Nexus 7 Android Development] gregthomas129:
http://xdaforums.com/showthread.php?t=1828032
[Nexus 7 Android Development] machmanx:
Wow....

Well the main features of this ROM rely on USB OTG, so if you're not gonna use that then there's no point in you even bothering with this ROM. USB OTG is what allows you to run other devices like storage devices, pointer devices, development boards, cameras, tuners, external audio devices, etc off of your tablet. It's an Android thing, this ROM just tailors the features towards autos. The only feature you'd be using would be the navbar...there probably is a way to install that navbar without relying on this ROM.

Now, there are many online websites where you can get a USB OTG cable. Amazon is one of them. Go to a local store, get a gift card and pay with cash, then use that gift card to buy online. That simple. FYI you don't need a debit card to sign up for Paypal, your bank account would work too (they prefer that method anyway). Now if Amazon is too high profile for you there are probably lesser known websites that won't ask for much info besides a name, address, and payment method. Try one of those. Amazon is the name-brand website that asks the least info anyway, but if you're trying to avoid it then try the other websites.

Finally, if you're willing to take a RISK then you could try soldering your own USB OTG cable. There are online guides on how to modify a standard USB micro cable and get that to work. Besides, if you want to charge AND use as a host you're probably gonna end up cutting the wire anyway unless you buy a ready-made wire that can do just that.

See? So many choices for you to follow. If all the above can't help you then you're out of options. Ask someone else to buy it for you. The OTG cable is a few bucks, not even. I'm sure there's someone out there who can spend like 2-3 bucks for a cable that you know.

Rocketplayer can also tune sounds as it has an equalizer as well. 5-band equalizer is free, 10-band equalizer requires you to buy the app. Up to you in the end. I also prefer this player because it has bigger buttons which are ideal for automobiles.

Dirtylarry11, is yours the one on the left or right of this pic:-
[Nexus 7 Android Development] Dirtylarry11:
Mine is on the left...definitely a 2012...no rear camera...I installed the grouper version after fully wiping...then I cleared dalvik and cache etc..
[Nexus 7 Android Development] machmanx:
Going to stock

Ok. So I think you're familiar with the Nexus Root Toolkit, right? Follow the instructions in the program to flash back to stock. Sometimes you just need to go back to stock ROM before being able to flash a custom ROM on it. Most phones I've worked on have had no issues with custom ROMS but one phone here and there would require a stock flash before working correctly.

So there is a button called "Flash Stock + Unroot" and then choose the Softbrick option since you can't get past the initial screen. Just follow the instructions to get you back with stock. At this point it should normally boot and get you into the OS. (You'll have to change the model type in the main window to Grouper 4.4.4 before continuing, unless it's done automatically). Then Relock it with the "OEM Lock" button. Now it will be back to normal as if Google gave it to you :) If you get this far then at least your tablet is safe.

If the above doesn't work then you might want to try again but before the Relock do "Launch" and "Stock Recovery" option.

Now you can restart the custom ROM flashing process by doing the usual. "Unlock" then "Root" then "Launch" the advanced utilites and "Flash Zip..." files on the computer and choose the AutoDroid ROM. (Don't forget to change the model type to custom ROM KK after flashing the ROM).

If all the above doesn't help you but you're able to run the stock ROM then at least have stock on it and keep the tablet in working condition. We may have to look into additional options to see why you can't flash this ROM.
[Nexus 7 Android Development] redeyedjedi:
I was trying to be nice....its poweramp. Use almost ANY other music player and the issue will cease. Then, write the Devs of poweramp and have them fix it.

Can anyone tell me if they have experienced the crackling WITHOUT having neither power amp nor an HRT microstreamer. All crackling problems I've seen were traced to one of those two things.

It should be noted this is NOT an issue everyone experiences, and no logs of the ROM show any issues redirecting audio out the USB DAC. Sorry.
[Nexus 7 Android Development] J.Edwards(not the killer):
Google Music and n7player same Issue :(
[Nexus 7 Android Development] machmanx:
Uninstall Poweramp

I would say Uninstall PowerAmp. Then give those other audio players a try like RocketPlayer, but you have to uninstall PowerAmp. If that doesn't fix the issue then I'm out of ideas for you.
[Nexus 7 Android Development] egren58:
Id it possible for someone to purt the play and volume to another rom?..
[Nexus 7 Android Development] redeyedjedi:
Yes....its all on git.
[Nexus 7 Android Development] egren58:
Sorry jw what is git