yashsingh1/xdaforums huggingface dataset:
[Android Head-Units] red13dotnet:
Progress update (Down the rabbit hole)

Good News: So I have been able to build the full system from source and have it working if using the stock kernel.

Bad news: Will not finish boot with the kernel I am compiling from source, either with my built system or the stock system. So I've narrowed down the showstopper to the kernel build configs.

With my built kernel using what appear to be the stock configs, android keeps hanging on an infinite loop culminating in something like this:

service 'media.audio_policy' died

service 'media.audio_flinger' died

service 'media.player' died

service 'media.camera' died

I'll throw up a logcat and dmesg this weekend to see if any of you guys have any ideas.
[Android Head-Units] usafle:
Just an update:

As someone said Xposed Framework works fine, no issues. For those of you that want to try Xposed with Pandora, take a look here.

I've tried to install Viper4Android on the device. The install took, the drivers installed and I was able to select Viper4Android as the default "equalizer" for the H/U. However, playing audio out of Google Play Music or any other Audio source didn't work. Viper4Android showed that it was enabled, but it was not processing any audio. I have this audio mod on my Nexus 10 and my Nexus 5 (and just about every device before that) and I know I am configuring everything correctly as I have experience with it. However, it just won't enable on our device. Which, is damn strange because usually it's a custom ROM or "touchwiz" issue that causes this not to work. Our device is stock Android so I am not sure what the issue is with this. I know this makes one helluva difference in audio quality on my devices so I am anxious to see why it won't work on our device at all. I'm going to try to post in the Viper4Android forum and see if anyone over there knows why this won't work.

I've tried to install Google Now Launcher. It installs fine but I can't get "Launcher3" to clear defaults so I can enable the Google Now Launcher. I've cleared defaults and even went so far as to force stop "Launcher3" and hit the home key hoping that it would ask me what launcher to use but, no use. Launcher3 won't go away. This brings up an issue later if someone wants to use ADW or any other 3rd party launcher. As I can't find a way to stop "Launcher3" from being the default.

That's all the tinkering I've got completed so far. Just chiming in with some information for everyone.
[Android Head-Units] red13dotnet:
I've gotten it to work and it's a pita. Other launchers can become default normally, only google now launcher is the issue. Make sure google now launcher, framework and google search are all updated.

go to settings and click google under your accounts.

Make sure voice search / google now is enabled.

then try setting the default launcher by hitting home.

I think thats what I needed to do to make it work.
[Android Head-Units] Zaphod-Beeblebrox:
Possible UI overhauls:

https://www.youtube.com/watch?v=6E7MKj2xZu0

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

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

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

and this:

https://www.youtube.com/watch?v=XVbuk3jizGM
[Android Head-Units] easyguy:
I've been hotspotting my phone, but just in case I'm out of my cell service area.

Which offline GPS app is the best?
[Android Head-Units] kommando:
Not the big gaps I thought there would be, NU5002 is ordered and hopefully it will arrive next week. Got all of the software downloaded onto the laptop and a 12v power supply ordered to power the android box while I upgrade the MCU and then the ROM.
[Android Head-Units] Zaphod-Beeblebrox:
We continue to chase issues when flashing from a 'factory ROM'. The problem for us in finding this problem is that once you flash another ROM like Tuatara's, the problem goes away. Even flashing back to a 'stock' image doesn't properly duplicate the issue. [MENTION=4173803]Bokomaru[/MENTION] has been investigating these issues. If you are able to get a logcat of the boot process for his review, it would be nice. Post on pastebin.com and post a link here.

*after* you've gotten that logcat, try to flash tuatara's ROM (that ROM sets up the partitions the same way we do, but it does it with the stock RK recovery - and then flashes CWM after first boot. Ours builds and flashes TWRP during the initial flash, and we think the issue is the way TWRP is handling certain partitions and scripts), then flash b4 again.

Once you've succesfully booted, you can start using the .zip files and TWRP to flash without having to wipe your data. The trick is just getting that first initial good boot.

---------- Post added at 07:21 AM ---------- Previous post was at 07:19 AM ----------

Yea, I think the NU5002 will look better in there too, but I think it's going to take a little more work, depending on your level of OCD/perfection. You might still need to get the install kit that Spoks used, and then cut/trim to fill in any gaps. Hopefully the gaps will be small enough (or nonexistent) that you won't have to do any of that.
[Android Head-Units] agonzalezch:
I´m going to try it this weekend. Thanks.
[Android Head-Units] Bokomaru:
Like Zaphod said, there have been some issues but you are the first one I've seen mention it with 1.1.6b4. How long did you let it go for? On the first boot it can take a couple minutes
[Android Head-Units] blacklistedcard:
Bokomaru, I'm working on using the GPS to determine the location of the radio. Then it will automatically select the right ITU region with the standard radio frequencies.
[Android Head-Units] ElfinJNoty:
I am yet to really dig in to the radio app. Glad I have it working finally with the latest b4 xdauto linaro ROM that was posted(was my own fault changing DPI previously)

I haven't been able to let it auto-seek. Can I get a quick suggestion how to do that?
[Android Head-Units] toologic:
[MENTION=6472486]leonkernan[/MENTION]

Nice app. Today I tested it. Apollo resumes after call also.

But (i think) button "Stop call" must be already one place. On first screen it is on left side, on second screen it is on right side. From the point of view of the user interface is not correct.
[Android Head-Units] guap:
officially on board :good:

just ordered my HU from ECA, model NU5261 for my scirocco since my in-dash tablet died a few days ago :(

Can you point me to a specific 3g dongle or chipset?

Today I tried an "Onda TM201" (don't know the chipset), lsusb stated "Bus 001 Device 002: ID lee8:0063 ONDA COMMUNICATION S.p.a." but no luck on stock unit from my friend (on a vw golf6... Onboard sensors, steerwheel commands... Everything on CANbus works great!)
[Android Head-Units] Bokomaru:
Make sure you test it with internet disabled. I suspect finding the country with just GPS coordinates won't be the easiest thing to do.
[Android Head-Units] Zaphod-Beeblebrox:
I think the google api's for that are pretty simple. I think you can ask for a coarse location, and Google decides where to get it (GPS/Internet, etc) , but you should get back something more than just coordinates.

Basically, I think interacting with the location API means coordinates don't mean squat to us :) let google do the work :)

https://developers.google.com/android/reference/com/google/android/gms/location/package-summary

Ok. I'm wrong. it returns coordinates. But there's this:

http://stackoverflow.com/questions/11082681/get-country-from-coordinates
[Android Head-Units] Bokomaru:
I'm pretty certain that the useful part of the location API is going to require some kind of data service. GPS alone won't tell you what country you are in without some a priori information. I've not tested it, but I've never seen a XML file in the android that has country boundaries by coordinates.

If my assumption above is correct, then the best way to do this is going to be to add a country configuration option somewhere that can be manually set or use Auto. If Auto is selected then whenever there is some kind of data service it can be queried and set.
[Android Head-Units] leonkernan:
Thanks, the button position has been fixed in the version that will be in the next xdAudo version. I also included [MENTION=1089542]nestortoledo[/MENTION]'s button graphics.

---------- Post added at 08:18 AM ---------- Previous post was at 08:06 AM ----------

If you wanted to go all out, there is the Spatialite extension for SQLite Android version. With that you could load a shapefile into a local SQLite database and be able to query it offline.

They can hold just about any detail you want, from basic country polygons to a complete countries OpenStreetMap data.
[Android Head-Units] guap:
a stupid question: why do we need to power up the android box with a wall charger? Today I hooked up my friend's AB to my pc with usb3 connected on the mini-usb port and worked flawlessy.
[Android Head-Units] blacklistedcard:
Looking today at some examples of code. Looks like if the data connection is not available then it will go to the GPS. I'm still trying to think of a good way to get country. There is a list of countries with their region setup:

List of ITU member countries by Regions, maybe list each one with their lon and lat. Get the lon and lat from the gps and see which country is closest?

Country Region

ALBANIA 1

ALGERIA 1

ANDORRA 1

ANGOLA 1

ARMENIA 1

AUSTRIA 1

AZERBAIJAN 1

BAHRAIN 1

BELARUS 1

BELGIUM 1

BENIN 1

BOSNIA 1

BOTSWANA 1

BULGARIA 1

BURKINA FASO 1

BURUNDI 1

CAMEROON 1

CAPE VERDE 1

CENTRAL AFRICAN REP. 1

CHAD 1

COMOROS 1

CONGO 1

COTE D'IVOIRE 1

CROATIA 1

CYPRUS 1

CZECH REP. 1

DENMARK 1

DJIBOUTI 1

EGYPT 1

EQUATORIAL GUINEA 1

ERITREA 1

ESTONIA 1

ETHIOPIA 1

FINLAND 1

FRANCE 1

GABON 1

GAMBIA 1

GEORGIA 1

GERMANY 1

GHANA 1

GREECE 1

GUINEA 1

GUINEA-BISSAU 1

HUNGARY 1

ICELAND 1

IRAQ 1

IRELAND 1

ISRAEL 1

ITALY 1

JORDAN 1

KAZAKSTAN 1

KENYA 1

KUWAIT 1

KYRGYZSTAN 1

LATVIA 1

LEBANON 1

LESOTHO 1

LIBERIA 1

LIBYA 1

LIECHTENSTEIN 1

LITHUANIA 1

LUXEMBOURG 1

MADAGASCAR 1

MALAWI 1

MALI 1

MALTA 1

MAURITANIA 1

MAURITIUS 1

MOLDOVA 1

MONACO 1

MONGOLIA 1

MOROCCO 1

MOZAMBIQUE 1

NAMIBIA 1

NETHERLANDS 1

NIGER 1

NIGERIA 1

NORWAY 1

OMAN 1

POLAND 1

PORTUGAL 1

QATAR 1

ROMANIA 1

RUSSIA 1

RWANDA 1

SAN MARINO 1

SAO TOME AND PRINCIPE 1

SAUDI ARABIA 1

SENEGAL 1

SIERRA LEONE 1

SLOVAKIA 1

SLOVENIA 1

SOMALIA 1

SOUTH AFRICA 1

SPAIN 1

SUDAN 1

SWAZILAND 1

SWEDEN 1

SWITZERLAND 1

SYRIA 1

TAJIKISTAN 1

TANZANIA 1

THE FORMER YUGOSLAV REP. OF MACEDONIA 1

TOGO 1

TUNISIA 1

TURKEY 1

TURKMENISTAN 1

UGANDA 1

UKRAINE 1

UNITED ARAB EMIRATES 1

UNITED KINGDOM 1

UZBEKISTAN 1

VATICAN 1

YEMEN 1

YUGOSLAVIA 1

ZAIRE 1

ZAMBIA 1

ZIMBABWE 1

ANTIGUA AND BARBUDA 2

ARGENTINA 2

BAHAMAS 2

BARBADOS 2

BELIZE 2

BOLIVIA 2

BRAZIL 2

CANADA 2

CHILE 2

COLOMBIA 2

COMMONWEALTH OF DOMINICA 2

COSTA RICA 2

CUBA 2

DOMINICAN REP. 2

ECUADOR 2

EL SALVADOR 2

GRENADA 2

GUATEMALA 2

GUYANA 2

HAITI 2

HONDURAS 2

JAMAICA 2

MEXICO 2

NICARAGUA 2

PANAMA 2

PARAGUAY 2

PERU 2

ST VINCENT AND THE GRENADINES 2

SURINAME 2

TRINIDAD AND TOBAGO 2

UNITED STATES of AMERICA 2

URUGUAY 2

VENEZUELA 2

AFGHANISTAN 3

AUSTRALIA 3

BANGLADESH 3

BHUTAN 3

BRUNEI DARUSSALAM 3

CAMBODIA 3

CHINA 3

DEM. PEOPLE'S REP. OF KOREA 3

FIJI 3

INDIA 3

INDONESIA 3

IRAN 3

JAPAN 3

KIRIBATI 3

KOREA (REP. OF) 3

LAO P.D.R. 3

MALAYSIA 3

MALDIVES 3

MARSHALL ISLANDS 3

MICRONESIA 3

MYANMAR 3

NAURU 3

NEPAL 3

NEW ZEALAND 3

PAKISTAN 3

PAPUA NEW GUINEA 3

PHILIPPINES 3

SINGAPORE 3

SOLOMON 3

SRI LANKA 3

THAILAND 3

TONGA 3

TUVALU 3

VANUATU 3

VIET NAM 3

WESTERN SAMOA 3
[Android Head-Units] Bokomaru:
You only need the power supply if you aren't supplying power with the head unit or via the mini-usb port. Some people are hooking up the android box to a TV with HDMI and USB keyboard and mouse and in that case you would need the power supply.

---------- Post added at 05:29 PM ---------- Previous post was at 05:26 PM ----------

That's a bit more than we need. Realistically I doubt many people are taking their device from region to region, so all that needs to happen is have data access one time and/or just have a configurable option to select the country.

---------- Post added at 05:36 PM ---------- Previous post was at 05:29 PM ----------

I think the best thing to do is to have a configurable setting somewhere (not in radio) for country. Initially just have a spinner or something to select. Later on if someone is motivated add in the auto setting.

I say do it not in the radio in case there is another use for this. Not sure if there will be or not.
[Android Head-Units] leonkernan:
If you're going for the quick (but possibly inaccurate) option. You could make a list of countries and make a guess based on their language selection.

You would have to offer the opportunity for the user to override it though.

Locale.getDefault().getCountry();

---------- Post added at 11:21 AM ---------- Previous post was at 11:11 AM ----------

The concern is if you plug usb devices into the Android box while doing that, you might end up trying to draw more power than the host's usb port can provide.
[Android Head-Units] nestortoledo:
Yes, i think is good idea, may be can rename the "user & interface" section in settings, used by de navbar settings. And call it XDAuto Settings, and place here all new settings needed on the future
[Android Head-Units] usafle:
I agree with the above. That's a lot of coding and such with GPS just to get a country/location. Just have them select where they are and be done with it. I can't remember the last time I turned on my radio APP anyway. Damn thing is fugly and I can't stand looking at it. LoL
[Android Head-Units] Zaphod-Beeblebrox:
Fixes

I just pushed a merge which I'm pretty sure will finally fix Immersive mode to work the way it should.

I also broke up the StatusBar & Navbar settings options in Settings.
[Android Head-Units] ElfinJNoty:
I know there are some apps which have aided in getting better/faster GPS locks on other devices in development. Off the top of my head, FasterGPS is a free one available in the play store. It let's you select a region and country, and then edits the GPS.config file to tell the GPS module where to look for satellites rather than a device having a much wider variety to scan for. Also an app called GPS Status & Toolbox(I have paid version) does something similar, and allows to update agps data on the same level.

Should be able to inspect what these apps are changing, and have the radio app point to the value to determine a country code/region.

I know both the above apps I have used on my phone and my hu/android box. And GPS locks much quicker. Have used GPS status app for a few years, and always helps.

......GPS.config file has to be of some use in this stuff with the radio :) hope this is useful
[Android Head-Units] Bokomaru:
All of the GPS hacks are really useful for mobile devices with batteries. Here the GPS is on all the time when the ignition is on so they won't be as useful.

We don't even have a gps.conf setup by default. It's something I was going to do just to eliminate one extra error I see being logged all the time.

---------- Post added at 08:53 AM ---------- Previous post was at 08:50 AM ----------

It's actually only a couple of lines of code to get the country, Android provides the framework/api to make this all easy to do.

The radio app is pretty ugly, hopefully eventually someone will show it some love. I rarely listen to the radio myself.
[Android Head-Units] guap:
thank you. Maybe I'll use a Y cable to avoid this issue, I was cancerned about flashing-related reason :) No plan with tv for now
[Android Head-Units] Zaphod-Beeblebrox:
It's on my todo list. I had started tinkering with some layouts a few months ago and got busy with other things. I'll get back to it eventually. I do use the radio fairly often, so I'd like to see a more Material Design based layout
[Android Head-Units] nestortoledo:
Thats nice.

One question.

Can you add a option on setting menu to enable / disable the navbar?

So we can disable it without messing the build.prop

basicaly the setting should add or delete the proper line on build.prop (may be restart needed after that to apply change)
[Android Head-Units] Zaphod-Beeblebrox:
Not Necessary. That's in effect what Immersive Mode does. You can hide the Navbar and/or the statusbar with immersive mode. But they are still there for use with a swipe up or down from top or bottom. They auto hide after a few seconds when not in use.

Its basically like forcing all apps to go full screen all the time :)
[Android Head-Units] Zaphod-Beeblebrox:
So I decide to mount the Fusion volume control, and while I was at it, I added a USB port and an Aux input.

Yea, I know the screws are tacky, but this truck is pretty old, and has already been hacked up a bunch of times for my various installs. It actually looks better than it did before :)
[Android Head-Units] usafle:
Fusion volume control? I missed something apparently....
[Android Head-Units] Zaphod-Beeblebrox:
http://store.fusioncontrolcentre.com/index.php?route=product/product&path=62&product_id=61
[Android Head-Units] usafle:
Ah. Thought it was something for your subwoofer. That was you right?
[Android Head-Units] Zaphod-Beeblebrox:
Oh, yea. I bought an inline lowpass filter for the wife's truck. Worked like a charm. Sounds much better now!
[Android Head-Units] leonkernan:
I only just got to testing this (damn this thread moves fast!)

I like the general idea but would it be possible to filter which apps cause popups vs just appearing in the notifications normally?

I don't really need a popup telling me my radio is tuned to whatever. I do like it for email and calendar popups though for example.
[Android Head-Units] Zaphod-Beeblebrox:
I don't really want to build a complicated interface for white-listing or black-listing. That's available in several Xposed packages if people want that type of control.

however, I did just realize that I did not filter out 'ongoing' notifications. Those should definitely not show in HeadsUp. Filtering out those should take care of the majority of the 'problem' notifications.
[Android Head-Units] leonkernan:
Fair enough

Sounds like that will fix the ones I've been seeing.
[Android Head-Units] Zaphod-Beeblebrox:
My next addition

I think this is ready to merge ...

[YOUTUBE]67ZuVUxzoPo[/YOUTUBE]

I will probably push a test/new version tonight
[Android Head-Units] supremekizzle:
Finally got everything installed and added two buttons to my factory bezel for volume up and down as steering wheel controls. Sorry, I could use a good vacuuming. One thing is weird though, sometimes the play and next track buttons won't work until I open the Bluetooth app. Is there a tasker profile that could open it in the background on boot so I don't have to open it every time? Thanks
[Android Head-Units] leonkernan:
That's looking pretty good.
[Android Head-Units] ElfinJNoty:
Before you push!

I noticed a small bug in the clock/home button. All the other icons will color dynamically when using gravity box, or my preference "flat style colored bars" exposed modules. However, the clock/home button does not change color the same way the rest of the icons being used do.

I use the above module to "auto-tint" the status and or nav nar according to the native colors of the action bar from the app you have open. This changes the bars to match the app open and looks really good. I mostly used dark themed apps as opposed to the bright white background. But the few that aren't themed, this really makes it look like a more stock type setup. Maybe just personal preference, but I'll attatch an example from using the same on my phone so you can get an idea.

But like I said, clock and 3 dots don't change the same as the other icons. Is there a change that could be made to the drawables for the clock so that it doesn't just stay white and a lot of the time get washed out? For example, when using Google maps, cannot also see the clock once this module changes the background to a light color.

Just for the record, the closed module does let you set colors on a per app basis rather than autotinting. Which I may very well do for several apps with a native white background and change the bars to something more black(my car interior is black leather so would be okay appearance size).

I guess I'm just being picky here :D just wondering if there could be something preventing the color change, as its different from the rest of the icons
[Android Head-Units] ElfinJNoty:
Like this for example
[Android Head-Units] Zaphod-Beeblebrox:
Post a picture of what our navbar looks like when tinted. There could be a couple of reasons. Most Xposed modules are looking for standard button ID's. We have all new button ID's and classes that they would not likely be able to account for (possibly - not sure). They might be doing a filter on all children of the layout (which would be smart, catch any custom style buttons), and there could be some image layer problems on our graphics. I suck at graphics and won't pretend to know how to deal with that...

but github is your friend :) They are all posted there. Pull em down, edit em, build & test.
[Android Head-Units] ElfinJNoty:
Here's another example
[Android Head-Units] Zaphod-Beeblebrox:
xdAuto-1.1.6c(beta)

I've posted builds for 1.1.6c(beta) at :

http://xfer.aokp.co/?developer=zaphod&folder=nu3001

I'm calling it beta only because I haven't driven around with it for a while yet. It should be a solid release. Once we've all put it through it's paces, if I don't hear of any issues, we'll rename to a regular release.

Media Metadata in Statusbar option
Change default layout of Navbar buttons.
Fix Immersive Mode (statusbar & navbar)
Overhaul of Bluetooth phone app
Cause music apps to pause during sleep
Update strings in Radio
Realign Settings options (Separate Statusbar & Navbar options)
Option to Enable HeadsUp notifications (Settings -> Statusbar)
Switch RK image path to be compatible with RK Factory Tool

Thanks to [MENTION=6472486]leonkernan[/MENTION] for working on the bluetooth and music pause issues. I think there's also a few commits from [MENTION=3411362]blacklistedcard[/MENTION] in here. This really is becoming a community driven project.

I like it.
[Android Head-Units] ElfinJNoty:
Here is Google maps as an example:
[Android Head-Units] Juel-DK:
Questions to the VW version. NU5261

Will the firmwares xdauto 1.1.6 Work on my NU5261? the VW version have canbus and fyscical buttons.

Another thing, do any of you know how to control the Canbus options, I hate when my radio turns off when im in reverse, or a Picture pops up when a door is open :/

Is there a SDK or something for the CANBUS integration?

And another question, the radio starts when I turn on the car, but dont turn off when I shuts Down the car?! Where is the settings for this?

Kind regards

Morten
[Android Head-Units] supremekizzle:
After the initial flash of a rom can you flash subsequent versions as a zip through recovery? Also, any way you can fix the media buttons not working when streaming from another device to the head unit? They only work after opening the Bluetooth app from a fresh boot. Thanks
[Android Head-Units] Zaphod-Beeblebrox:
Ok, so all the images are tinting properly, it's just the clock that isn't? Probably nothing I can do about that. The clock/home button is a frame layout with the Clock overlayed on the button image. You can't tint text, it has to have it's color set explicitly. Unlikely that xposed module is expecting text in the Navbar :)
[Android Head-Units] leonkernan:
Yes, That's how I do all my development builds now.

That will probably still be the same in the latest version. I've got a bunch more Bluetooth related things still to work on so i'll keep it in mind.