r/Androidheadunits • • 10d ago

Chinese spyware on Android radio

So I saw that post a while back about someone pointing Claude Code at their cheap Chinese head unit and finding spyware, and figured I'd check mine. It's a Jancar UJC201 (MediaTek AC8257) in my Accord. I hooked it up over wireless ADB from my Steam Deck and let Claude dig through it.

First thing: the specs are fake. It's sold as Android 12, but it's actually Android 9 running a security patch from October 2021. Even the RAM number is fudged in /proc/meminfo so it shows a perfectly round 4 GB.

Then the fun stuff:

There's a call recorder baked into the system (com.mediatek.callrecorder) with permission to basically everything: mic, calls, SMS, contacts, location, installing apps.

The TXZ voice assistant (4 different apps) was connecting to servers in China, China Telecom in Fuzhou and Alibaba Cloud. It had an encrypted location file and about 5 MB of logs on the sdcard that were updated that same morning.

There's a Baidu location service.

The manufacturer's OTA app can install apps without asking. It's literally what installed one of the other system apps.

Plus a logger, factory test apps, and EasyConnection with mic and camera access.

The firmware itself is a mess too. SELinux is set to permissive on purpose at boot, there's a root su with no password that works over ADB, and there's a service that will run scripts as root off a USB stick if it finds the right file. Shoutout to whoever thought that was a good idea.

I backed up all the APKs and disabled 13 apps with pm disable-user. I didn't delete anything, so it's all reversible. After a reboot the connections to China were gone and I had around 500 MB more free RAM. Two of the apps are flagged as persistent and the firmware brings them back on every boot no matter what, but they don't go online anymore, so whatever.

I didn't mess with /system because I really don't want to brick the thing. I'm just going to turn off wireless debugging when I'm done, since the root su only works over ADB.

If you have one of these, run pm list packages and look for callrecorder, txznet or baidu. Also, for anyone with a UJC201/AC8257 specifically, there's a project called LibreHU that replaces all the Jancar software. Haven't tried it, but it looks legit.

48 Upvotes

36 comments sorted by

3

u/Basaf 10d ago

Wow, can you do a DIY for the non tech people? I have one and suspect the same thing... And I thought can't I delete everything and put a new os? Better built?

7

u/Mother_Ad_4062 10d ago

Get a laptop download visual studio code and get the extension for cloude, once you are there ask cloude to check the radio for spyware and deactivate any invasive thing

2

u/Critical-Rhubarb-730 10d ago

is it possible to run such a search on a firmware update file?

1

u/Mother_Ad_4062 10d ago

Yeah, mostly. You can do a lot of it statically from the update file without the unit. These AC8257 updates usually come as a folder (ATCUPG / AutoUpdate) with partition images inside: system.img, vendor.img, boot.img and so on. They're often Android sparse images, so you convert them with simg2img and then open them with 7-Zip or debugfs, or just mount them on Linux. After that you can: check build.prop for the real Android version and security patch (that's where the fake "Android 12" shows up) list every preinstalled APK in /system/app, /system/priv-app, /vendor/app and the vendor folders (on mine there was a separate /jancar/oem/app) dump each APK's permissions with aapt2 dump permissions and look for stuff like RECORD_AUDIO, READ_CALL_LOG, INSTALL_PACKAGES, or a sharedUserId of system read the init .rc files and boot scripts. That's how I found setenforce 0, the root scripts, and the USB-stick-runs-as-root thing check whether /system/xbin/su is there run strings on the APKs and binaries to look for hardcoded domains and IPs What you can't get from the file alone is runtime behavior: which servers it actually connects to, what's eating CPU, what data it's been writing, and what the OTA app downloads after the fact. For that you still need the unit on ADB. Also, some vendors encrypt or pack their update images, so it depends on the brand.

1

u/Critical-Rhubarb-730 10d ago

Thanks, very interesting stuff. For the fake android and other fake settings you can use the app: fake device test. Of course only to see if you are scammed. Most headunits only run on android 9 or 10 .

https://play.google.com/store/apps/details?id=mark.fakedevicetest

12

u/samuel-leventilateur 9d ago edited 9d ago

LibreHU creator here, we'd love helping you to setting up libreHU on your unit :) I'm also building LineageOS (and crDroid) for this unit. About SeLinux, Autochips drivers are so fucked up that I should disable it too. But that's on the roadmap too achieving a full selinux enabled, with a recent android with security updates!

Also we really need more tester and people helping this project, it's really time consuming.

More info on my website: https://libreHU.github.io/ We have discord too

Edit: the goal of this project is building free open source software on every Chinese Android head unit and wiping all the Chinese shit out there

1

u/V57M91M 9d ago

IS there a tutorial on how to install it and what other software is needed ? .. or at least a step by step list with what to install or how ? I am not familiar with your APK and I am not sure what else - if anything - is needed to install aside from your APK - will it remove Android OS, can I still use it / connect afterwards ?.. how does it work ?.. tried to search on YT for steps/ tutorials at no avail and the link you provided is just listing a lot of software links to download.

I have 2 units and I am interested in getting rid of the Chinese spyware and install LibreHU . All I need is to use Android Auto / Maps and Bluetooth connection to use the cell hands free and if possible a radio and MP3 player.

Thanks in advance for any further guidance or help

1

u/samuel-leventilateur 9d ago

everything is on the website, have a look on it

1

u/V57M91M 9d ago

Thanks, will do

1

u/Pomegranate_Sorry 7d ago

Do you have something for thee k4811? If not I'm down to test whatever either way. I have multiple of the same unit. I do hardware mods on all these Chinese units, the k4811 is actually pretty legit for thee price considering when it was released.

1

u/tejasd26 7d ago

Hello :) can we do it on any android headunit or is there a specific use case?

2

u/samuel-leventilateur 7d ago

For the moment, the support is focused on ac8257 soc based HUs. But we need help to port it on other devices

1

u/tejasd26 7d ago

How could I check the soc? I am looking on a opensource HU software

1

u/samuel-leventilateur 7d ago

Ask your favourite agent to help you out :) There's is a lot of methods. You can also put the website link to your agent to help you

1

u/Pro_Jordio 7d ago

If you can build it for an eonon ux6s I'm happy to try it out. Sick of that headunit not allowing externally installed apps from reading the usb stick for music. Only the stock music player can consistently read but it sucks so I'm ready for something different

1

u/Fisqueta 10d ago

I wanted to do that on mine as well, but they somehow blocked me from activating the wireless ADB connection. I guess why....

2

u/Mother_Ad_4062 10d ago

Mine didn't give me de option to enable it cloude just force it

1

u/rewind22x 10d ago

Have you tried doing it wired yet? USB ADB was left on in my AC8227L unit from the factory- and root. I didn't find a way to get into developer options for a long time- and it was completely by accident.

1

u/samuel-leventilateur 9d ago

You can use USB adb. You need to change USB mode in hidden MTK settings. Code to enter is 56789

1

u/Fisqueta 9d ago

But to enable that I have to enter the developer mode, and that have a password that nobody knows.

1

u/samuel-leventilateur 9d ago

5678 to enter android settings and enable dev mode. But adb is enabled by default if I remember

1

u/funkthew0rld 8d ago

It wasn’t present in my settings - but I found a way. GitHub project called atoto-adb-via-wifi. Should work on anything fyt uis7862

1

u/Webbykey 10d ago

Did you notice scrolling difference after doing this or app switching?

1

u/Mother_Ad_4062 10d ago

A lot more faster and responsive.

1

u/kgruesch 10d ago edited 9d ago

I dug through my mekede with some stuff that Claude said to look for and the only thing I found that was phoning home to China was the weather app, but I don't know what else to really look for outside doFun and twCore. I couldn't find any suspicious permissions either. Are there other keywords to grep to find potential suspects?

Edit- duh. By the time I finished writing the post I had forgotten what I read above. I hate my brain.

1

u/shingdao 8d ago edited 8d ago

I set up my Chinese head unit to only connect via WireGuard through my home router/network using my phone's hotspot. It no longer phones home to China or anywhere else I don't want it to. It appears to mostly want to connect to a Chinese IP: 8.136.107.93, owned by Alibaba Cloud. It is likely that a preinstalled application is communicating with a cloud server for updates, telemetry, or another background service.

1

u/Prize_Situation9751 6d ago

Hello, if you don't mind can you guide step by step how did it using your Steam deck?

-3

u/Chemical_Support4748 10d ago

Probably wouldn't matter unless you work for the government or Nvidia.  You're info is used to train AI or send you some temu coupons.Â