yashsingh1/xdaforums huggingface dataset:
[Android Head-Units] jhartrva:
USB Host/ Root

Has anyone had success getting a USB OBD II scanner to work?

The OBD scanner apparently has power (a red LED lights up) from the radio, but neither the radio nor Torque recognize the scanner. I loaded USB Host Controller from the Android Market and it shows that I have version 0.44 of the USB Host Controller, that Root hub is present, USB Host mode is active!, but that "S3C USB Host driver NOT found!" I'm curious if I need to root and then load a USB Host driver? Oh, I also tried using the front-panel mini USB input port via a USB to Mini USB cable to no avail (as I thought it might need a USB OTG cable).

I'm new, so I can't post a link to my radio, but I have the one with 2 silver knobs at the bottom L&R, and 4 hard-key buttons down each side.

Thanks for reading!
[Android Head-Units] booba5185:
I run an OBD 2 USB adapter, I had that problem when my OBD2 USB adapter was bad, exact same symptoms. I ordered an Elm Scan 5 and it worked great. I now have an OBDlink SX and it works about the same, actually lol. To me it sounds like you bought a cheap eBay Chinese knock off.
[Android Head-Units] kaween:
O.k

Can you suggest then wich unit should I buy.Any link please.[/QUOTE]

Try this one : http://android-caraudio.com/en/auto...a-pure-android-422-for-audi-a4-2002-2008.html

I think it's a Huifei which at this moment in time has about the most advanced hardware platform in terms of speed and stability.

Ask around at the Huifei part of the forum for confirmation. In any case, this one is far superior compared to the Allwinner solution.
[Android Head-Units] dakoa:
Trying again then for lack of response :crying:

Hey folks im thinkin of buyin the E-257AGNR Android 4.1 capacitive Double DIN Head Unit http://xdaforums.com/attachment.php?attachmentid=2449056&d=1386805493

it had a own thread located http://xdaforums.com/showthread.php?t=2565717

But it have seemed to move here somehow.

Is it same device as the AN-21-U? but just with another faceplate as specs seem to be same.

Want to know if its rootable and uses same root files as the AN-21U or if it are onother files as i cannot find anything exept files on this thread.

i mainly want to root it for getting root access to access to my bt obd adapter.

Thanks for help.
[Android Head-Units] Zittermann:
I have the same faceplate. I think this one is an AN-21U. So everything you need is in the first post or on the wiki.
[Android Head-Units] ionutlup:
New Firmware

New version of firmware 4.1

V4.7.28 https://www.dropbox.com/s/bksocj2uwapgbsx/V2.7.28.rar
[Android Head-Units] Skratchuk:
[/QUOTE]

Try this one : http://android-caraudio.com/en/auto...a-pure-android-422-for-audi-a4-2002-2008.html

I think it's a Huifei which at this moment in time has about the most advanced hardware platform in terms of speed and stability.

Ask around at the Huifei part of the forum for confirmation. In any case, this one is far superior compared to the Allwinner solution.[/QUOTE]

Be good if we could have the system version of this unit looks good.
[Android Head-Units] KID52:
Is this another fake 4.2.2 version?
[Android Head-Units] Skratchuk:
Im gonna wait to see this time haha [emoji12]
[Android Head-Units] scubee:
IM facing the same problem too. just suddenly one fine day stopped working with "SD card access denied" message and stops there... help!!
[Android Head-Units] robmk2:
I got around it by using the swap sd card option I think in the extra settings menu... Just install a micro sd card in the front slot and this then becomes the internal

Of course you lost the internal sd but easier than sending it back to China
[Android Head-Units] balaes:
This version is 4.1.1, have old Launcher. Perhaps this version is not fake like the 4.2.2. It can be roote with Baidu.

Have new MCU, 4.3.2.....
[Android Head-Units] Skratchuk:
Cheers for letting us know.
[Android Head-Units] cool_head:
...and this MCU version is still resetting the radio eq.. tested.
[Android Head-Units] Skratchuk:
I sorted this problem by using a different mcu
[Android Head-Units] balaes:
To me it works perfectly. After you set the equalizer, turn it off and restart it.
[Android Head-Units] Prdie:
which version please ? thanks
[Android Head-Units] sciallo:
Yes, the home menu and back would have to be handled in android, the part of the advanced "123456" menu where we assign buttons to functions is one of the gateways to the underlying firmware (like the bluetooth phone stuff) it sets those values in the firmware, not in android settings. I also would love it if someone with a bit more insight/knowledge would take a look. It would be nice to crack the I2C communications alltogether...
[Android Head-Units] donaldta:
Are you sure that it isn't already mapped from the steering while to a Linux Scancode to a Android Key Event? Most of the head units I've seen do this by assigning the the triggers from the steering wheel controls into Linux Scancodes which in turn trigger the Key Events (/system/usr/keylayout/{filename}.kl file). You can usually edit the file to remap the Key Events (Home, Back etc)

Maybe try this file, keytest.apk, to see if pressing something like volume up or down will active a scancode.
[Android Head-Units] KID52:
Hmm, well it appears for the application functions, eg next, forward, previous etc, they have no keycode, that app shows nothing so something else is handling them.

But, for back and menu, they show keycode 4 and 82 respectively.

I'm guessing this is not looking good for getting the controls to work with other applications...

Edit: in fact, the only functions that seem to show anything on that app are back and menu. All other functions (yes, I tried them all, volume ones included) show nothing.

Here is the output of the "menu" function assigned to a button.
[Android Head-Units] donaldta:
Wait are back and menu keys apart of the steering wheel controls? Get a list of the files in the /system/usr/keylayout/ directory and maybe look for one that shows the scancode to keyevent for 4 & 82. Usually that's the same file.

If not, you can always pick up a CarPC Joycon which will map the steering wheel controls to scankey, which in turn can be turned into android keycodes. But, it is a hardware alternative which uses a USB port.
[Android Head-Units] KID52:
You can assign the steering wheel buttons to many things.

I did look there, but didn't find anything that stood out before. I looked again now, none of the files seem to relate 4 to back, and 82 to menu.

There are a few interesting ones in there though, such as ones for an apple wireless keyboard, and a logitech G25 racing wheel...

keylayout.rar
[Android Head-Units] donaldta:
Oh, I see what you did here. Okay, let me see if I can clear this up a little. The "Keycode: 82" correlates to KeyEvent number 82. (See. KeyEvent - KEYCODE_MENU). This allows us to initiate events programmatically without pressing a key. To test it using a terminal app or adb shell with root access, you would type, "input keyevent 82" and it would bring up the KEYCODE_MENU keyevent. The important thing to look at in your response above is "scanCode=0" which is the Linux Scancode. This means that the keyevent was initiated without a corresponding Linux Scancode, and in this case it is being brought up programmatically which is verified by the "device=-1".

Using a USB keyboard via generic.kl for example the line "key 114 VOLUME_DOWN" would facilitate KEYCODE_VOLUME_DOWN (25). Which under keytest.apk would resemble...

Keycode: 25
KeyEvent: KeyEvent { action=ACTION_DOWN, keyCode=KEYCODE_VOLUME_DOWN, scanCode=[COLOR="Red"]114[/COLOR] ...

Unfortunately, there's too many ways that this can be facilitated and without access to the system partition it's pretty difficult to determine thier method. Perhaps, if you're willing to copy the files from an active system partition and post it somewhere. Here's the commands, that I would copy it over a USB drive.

$ [B][COLOR="RoyalBlue"]su[/COLOR] [COLOR="Silver"]#access to root[/COLOR][/B]
# [B][COLOR="RoyalBlue"]mkdir[/COLOR] [COLOR="DimGray"]{path/to/usb}[/COLOR][COLOR="RoyalBlue"]/sysfs[/COLOR][/B] [COLOR="Silver"]#create an empty destination directory[/COLOR]
# [B][COLOR="RoyalBlue"]cp -a /system/*[/COLOR] [COLOR="DimGray"]{path/to/usb}[/COLOR][COLOR="RoyalBlue"]/sysfs[/COLOR][/B] [COLOR="Silver"]# recursively copy all files while preserving symlinks and file attributes[/COLOR]
# [B][COLOR="RoyalBlue"]find /dev -exec ls -l {}\; > [/COLOR][COLOR="DimGray"]{path/to/usb}[/COLOR][COLOR="RoyalBlue"]/sysfs/dev.txt[/COLOR][/B] [COLOR="Silver"]#find all files under /dev directory and output list with long format into a text file.[/COLOR]
# [B][COLOR="RoyalBlue"]find /sys -exec ls -l {}\; > [/COLOR][COLOR="DimGray"]{path/to/usb}[/COLOR][COLOR="RoyalBlue"]/sysfs/sys.txt[/COLOR][/B] [COLOR="Silver"]#find all files under /sys directory and output list with long format into a text file.[/COLOR]

Then you can move the USB drive to computer with an operating system of your choice to archive/compress it and upload it somewhere for dissemination. Otherwise, if you want to archive and compress it within Android then continue...

# [B][COLOR="RoyalBlue"]cd[/COLOR] [COLOR="DimGray"]{path/to/usb}[/COLOR][/B] [COLOR="Silver"]# change (present working) directory to path[/COLOR]
# [B][COLOR="RoyalBlue"]tar -cvf sysfs.tar sysfs[/COLOR][/B] [COLOR="Silver"]# create a tape archive of sysfs directory and output to sysfs.tar file.[/COLOR]
# [B][COLOR="RoyalBlue"]gzip sysfs.tar[/COLOR][/B] [COLOR="Silver"]#compress archive with gzip format, ends up with file called, "sysfs.tar.gz".[/COLOR]
#

Then upload the file somewhere, (size permitting, like Google Drive, Dropbox, Skydrive, etc). Btw, some of these commands may need busybox installed to work if it isn't already.
[Android Head-Units] chris.r.r:
The SBD.apk I talked about is included in the system apps of the 2.3.7 OUKO unit. Since OUKO features completely the same software as the AN21-U, I expected to find the app on the new unit as well.

But actually that's not the case: The equivalent of the SBD.apk on the AN21-U is now com.tw.service_a5a4.apk. I assume that the purpose of both apps is the same (talking to the underlying hardware). Big issue: in contrast to the OUKO unit, the source code of the new unit seems to be obfuscated, which makes it a lot harder (or nearly impossible) to change the source code itself (e.g. the steering wheel button handling), because we won't understand the code. That also fits with their approach to encrypt the ROM itself. Obviously they have much better coders now ;)

Nevertheless, I will deep into that once I have my unit (which got shipped finally ;) )
[Android Head-Units] KID52:
Ah okay, that makes sense. I'm just doing a reset and installing the system again, then I will take a copy of the files. I know not much changes the system folder, but I had downloaded a few things like inverted market, so want the copy I upload to be as clean as possible.

Okay, makes sense. Don't you need the framework to decompile it though?

I've uploaded the one from the system the files I've uploaded are from.

framework-res.apk
[Android Head-Units] KID52:
System files uploading, will take around 10 mins.

system-2.6.62.rar

Edit: Upload complete.
[Android Head-Units] :
i have an question regarding the steering wheel control.

my car (merceds c-class) does not have an extra pin for steering wheel control. (See Picture of pins behind the link)

http //img849.imageshack.us/img849/9111/7v87.png

Can the Android unit 'extract' the steering wheel control signal from the can bus?

If not how can i manage to get the steering wheel singals into the unit?
[Android Head-Units] KID52:
You need the CANBUS addon then, if you talk to Peter Chan then he can sort you out. Other than that, I don't think any of the eBay sellers will be wanting to do so as it would mean a bespoke order.
[Android Head-Units] :
is this a software or hardware addon?

do you have further infos about this? i'm hearing it for the first time
[Android Head-Units] KID52:
It's hardware, from what I can tell, the software side is already there.

It was mentioned a few posts back, where someone had purchased a unit for a VW car that has CANBUS, and as standard, that unit came with the CANBUS hardware module. So from what I understand, Peter Chan will be able to order this module separately from the factory, along with a generic unit - he was able to order me the Bluetooth module and OBD scanner for me to solder into my unit myself (I didn't got for it at $75 though), so an external CANBUS module should be no issue.

If on the other hand you are not wanting a generic unit, and there is a Mercedes specific one, you may want to check with the seller as to whether it already comes with CANBUS support or not.
[Android Head-Units] chris.r.r:
Not necessarily, the standard framework is included into the APKtool - so it has already worked to decompile it. I tried it with your framework though, but actually it makes no difference.
[Android Head-Units] KID52:
That's a shame.

I wonder what method they are using to "hide" the code. They really have gone all out with security measures on this unit.
[Android Head-Units] patrickoneal:
My stereo just showed up at my office. It looks the same as the one the OP has, but no tv tuner, and is listed as 1.2ghz. The model number on the box is TH8683GN.

When I get home, I'm going to power it up and check it out. Other than confirming the CPU clock speed, are there any other questions? I'll also confirm if the root exploit works.
[Android Head-Units] KID52:
CPU speed would be the most interesting bit of info.

Other than that, you could post the MCU, System, and DVD version - these are shown in the settings menu under about device.

Also, for completeness, a log from the System Info app if you can (need to download from market, it is free). You can do that by clicking on System, menu, then export system info.

On top of that, if it's not too much trouble, a photo/screenshot of the default homescreen. I am curious to know if different sellers customize this at all. Roadmaster claim to do so, but so far I have only seen two different styles of homescreens. One that has four large buttons per page, which is present in the older system versions, and the newer one that is a bit more standard having four app icons at the bottom (which cannot be changed), and the rest of the screen left for your own widgets and icons.
[Android Head-Units] patrickoneal:
Ok, I've got it set up on my dining room table running off on of the molex connectors on an old PC.

CPU: Cortex A9 dual core

RAM: DDR3 1GB

Android version: 4.1.1

MCU: 4.1.0-1-10-2101

System version: 2.6.62

DVD Version: 2.13.11-12xh

I've attached the system info export file as well. I haven't been able to determine the clock speed in ghz as of yet, any suggestions?

I'd like to give a screenshot, but I'm a bit clueless on how to accomplish it. The default wallpaper on mine is a live wallpaper of a park bench, and a tree branch in a flowering tree of some sort with a birds nest in it, and a bird that occasionally decides to fly by and check it out.

I have noticed that certain apps look terrible on the screen. Like the play store, youtube, and gmail. Pretty much anything with gray/black text on a white background. It's almost like the DPI is set wrong and the text just isn't bold enough to easily read. Have you encountered this?
[Android Head-Units] KID52:
Hmm, that sounds like ADW launcher is already installed, Peter Chan sent the unit to me like that too.

For CPU speed, see quote below.
[Android Head-Units] donaldta:
It looks like you have a 1.8(ish)Ghz dual core processor from what it says from the report of System Info.

CPU
Processor ARMv7 Processor rev 0 (v7l)
processor 0
BogoMIPS [COLOR="Red"][B]1777.66[/B][/COLOR]
processor 1
BogoMIPS [COLOR="Red"][B]1784.21[/B][/COLOR]
Features swp half thumb fastmult vfp edsp neon vfpv3 tls
CPU implementer 0x41
CPU architecture 7
CPU variant 0x3
CPU part 0xc09
CPU revision 0
Hardware cedric
Revision 0000
Serial 0000000000000000
Frequency Stats (time):

Could be overclocked or the processor is reporting embellished values.

You can use an external camera from a smartphone or a literal camera to take a picture of the screen. Or, you can install Android Developer Toolkit which has software that allows you to take a screenshot using /sdk/tools/monitor program.
[Android Head-Units] cool_head:
Already did that with no success.. I moved back to 4.2.13-1-10-2101 that is working great.
[Android Head-Units] KID52:
I've added all of the latest firmware files to the main post, including the fake 4.2.2 versions which I have separated from the rest.
[Android Head-Units] Zittermann:
AF RDS function still not working with 2.7.26 and 4.3.1 MCU...
[Android Head-Units] Black6spdZ:
I've been pretty satisfied with my AN-21U clone for the past 6 months, besides the issue with it never remembering radio stations.. not to concerned with that problem. The hardware is a little on the low end side.. My two year old Nexus 7 tablet would run circles around this radio. Running torque, music, and gps all at once is just about the limit of multi-tasking this dual-core 1ghz processor can handle. I'd like to upgrade soon to hopefully a full 7" DVDless unit with 1280x800 and quad core. I wish they'd ditch the problematic MCU / video switch and just let the native processor access and control the hardware. The RK3066 radio isn't a leap over the AN21U hardware wise but its a much more common cpu used in the older android TV sticks and they have a custom recovery for it.
[Android Head-Units] PsychoMcSatan:
Just got a chance to install the latest 2.7.28 firmware and noticed that there are a few new 'Extra Settings' having to do with the external sdcard(s). There was a mode as well as speed setting which could be helpful to those having access issues.

There's a new MCU version, 4.3.2, but still no 4.2.3-7-10-2501 which a few of us are waiting for.

Also, this is the first firmware in a while that didn't cause that "UI Unauthorized" message.
[Android Head-Units] Skratchuk:
Does it have the old or new launcher on it?
[Android Head-Units] PsychoMcSatan:
I don't know since I have Nova Launcher installed as default, though a few messages ago someone mentioned old launcher.

http://xdaforums.com/showpost.php?p=53597578&postcount=4174
[Android Head-Units] Skratchuk:
I am using MCU 4.3.1-10-10-2501
[Android Head-Units] Black6spdZ:
where is the update file located? Its not here http://androidstereo.mobile.eu.org/?dir=mcu
[Android Head-Units] cool_head:
normally the MCU files are located in /system/etc/mcu folder in your device
[Android Head-Units] Skratchuk:
Did you mean 2.7.26 not 28 or am I missing something?
[Android Head-Units] PsychoMcSatan:
28 came out a few days ago and Kid52 already put it up on the first page. It seems like the first "official" release in a while since they stopped that fake 4.2.2 nonsense and it doesn't have the unauthorized UI message. There do seem to be a few new options under "extra settings", but I haven't played with them much.

Also, the seek works properly on the radio again.
[Android Head-Units] Skratchuk:
Thanks for the info can anyone confirm what launcher it has on it please.
[Android Head-Units] dizz74:
Hello, can you help me, I have problem with AN-21 U (Ford focus).

If device wake from sleep mode - its OK, turning on quickly.

But if device not in sleep mode - fully turned off - when i turn it on - it loading loading - then appeare CALIBRATION screen and its freeze. (my display is capacitive). Help me.
[Android Head-Units] Skratchuk:
Just updated and it has the new style apps but the launcher with all the widgets that can't be removed. Rooted fine and working with no problems so far.
[Android Head-Units] Black6spdZ:
so you have to pull the appropriate MCU file from that folder, put in the root of the SD then do MCU update?
[Android Head-Units] cool_head:
No, you have to put the appropriate MCU file in the mcu folder and then run MCU update or change model.
[Android Head-Units] Skratchuk:
Its different on mine I put the file from the MCU folder in the root directory of my SD card then run MCU update.
[Android Head-Units] slc71:
So where do you get the MCU update? I could not find it. My /system/etc/mcu is empty.
[Android Head-Units] Skratchuk:
Info found on this thread

"copy file with the same version number from /system/etc/mcu/

- save on ext sdcard - extract zip to root of sd card

- go to settings->general->update MCU"

Remember you must be rooted.

---------- Post added at 11:21 PM ---------- Previous post was at 11:17 PM ----------

Are you rooted?
[Android Head-Units] slc71:
The root was not working, I am reapplying it now.
[Android Head-Units] Skratchuk:
Try Baidu Root works like a charm. I also found deleting already allowed apps from su user helped especially on es explorer
[Android Head-Units] slc71:
I got it to go after Baidu Root. Thanks for the help.
[Android Head-Units] digitaldr:
I finally got my k3520 3G dongle working with ppp widget but I all my streaming apps eg stitcher, spotify, tunein radio pro say no connection! Chrome works fine. The play store allows me to browse but I can't download any apps. Similarily youtube allows me to browse videos but not play them. Everything works fine over wifi. The dongle works ok with my laptop - no problem viewing youtube videos etc. Any help greatly appreciated!
[Android Head-Units] tito_borba7:
Factory reset

Who can help me ?

i reseted factory my device and i lost any app

i lost play store , google play services and others

please !:crying:
[Android Head-Units] gpmg762:
By any chance you have Twilight installed?

http://xdaforums.com/showpost.php?p=40763129&postcount=30
[Android Head-Units] farley1981:
Where in the uk can I buy this head unit? Or some where that ships to the uk?

I've been looking for one like this for ages.
[Android Head-Units] Cavalier Condorelli:
Yes I had it when I discovered this problem, but now I have uninstall it.

This issue does not occurs anymore... :)
[Android Head-Units] digitaldr:
Anyone?????
[Android Head-Units] Black6spdZ:
That's what I thought the procedure was.. just thought someone would be keeping up the "file repository" but guess not
[Android Head-Units] edustsbr:
youtu.be/cFOjxVjlleM

Can anyone tell me if this version which put the link also serves to this firmware update? Are the same systems and configuration, just change the design of the multimidia center.
[Android Head-Units] KID52:
I try to keep the repository updated as much as I can, focussing on the firmware.

It's just not practical for me to install, root, and extract files from every single firmware update since the unit is in my car. If I had another test unit to use then I could update it a lot easier, but I don't have a spare $300 laying around.
[Android Head-Units] Black6spdZ:
That's understandable. What I do and could also help you is set the delayed shutdown and install something like wifi file transfer so when you park your car you can connect it to your wifi and then start the file transfer app before killing your ignition power, go inside and move files back and forth from the unit until it powers off from the delay.
[Android Head-Units] KID52:
That's all well and good, but I prefer to have fresh installs and a factory reset each time I take a copy of the system. I also don't fancy having to set up the unit again to my preference if something goes wrong since I need it for navigation etc.
[Android Head-Units] Uanagana:
I agree
[Android Head-Units] walterb02:
can anyone tell me what unit this is http://www.ebay.com/itm/261347142405?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1439.l2649

It has the following specs:

MCU: 4.2.15-1-10-2101

Sys: 2.7.9

The only thing I want to do is change the boot animation and logo, but I'm assuming root is required for that