yashsingh1/xdaforums huggingface dataset:
[MTCD  Android Head Units Q&A] rumburake:
Thanks for your interest guys, I managed to get the data by examining the "Vehicle" app (MTCControlInfo.apk). :victory:

There's a broadcast "com.microntek.sync" which contains a byte[] extra called "syncdata". The array has 20 byte values of which I decoded the speed, revs, voltage, temperature and total mileage. When data[2] == 2, the data is:

// RPM
int rpm = (0xFF & data[3]) * 256 + (0xFF & data[4]);

// SPEED
double speed = ((0xFF & data[5]) * 256 + (0xFF & data[6])) * 0.01d;

// BATTERY
double battery = ((0xFF & data[7]) * 256 + (0xFF & data[8])) * 0.01d;

// TEMP
double temp = (0xFF & data[9]) * 256 + (0xFF & data[10]);
if (temp >= 32768) {
temp -= 65536;
}
temp /= 10;

// DISTANCE
int distance = (0xFF & data[11]) * 65536 + (0xFF & data[12]) * 256 + (0xFF & data[13]);

The problem is the Broadcast doesn't come unless the "Vehicle" app is started. They seem to either:

flip a switch like this:

Settings.System.putInt(this.getContentResolver(), "com.microntek.controlinfo.door", 1); // in onCreate() and onStart()

and

Settings.System.putInt(this.getContentResolver(), "com.microntek.controlinfo.door", 0); // in onStop()

I couldn't get my app to do this, you're not allowed to do this unless you're a system app.

or get the CarManager (which is in another app which I didn't get yet to examine), to do some command, perhaps another Broadcast.

I can get continuous data Broadcasts if I start the "Vehicle" app, then go to home screen, then start my app. Since onStop() would be called I believe it's the second method of switch that really happens.

As soon as you explicitely exit the "Vehicle" app the Broadcasts stop coming.

I'm using Bytecode Viewer, but it has quite a few errors translating to Java. A better disassembler would come in handy.

TBC... :D
[MTCD  Android Head Units Q&A] f1x:
Use this decompiler:

http://www.javadecompilers.com/apk

According to CarManager - it is located inside framework.jar. You can see example usage in my app here:

https://github.com/f1xpl/MtcdTools

To use it in your project, simply copy source code loated at app/src/main/java/android/microntek/ except f1x dir to your project directory.
[MTCD  Android Head Units Q&A] iwl:
Cool you've got something.

But it looks like some processed data and not the raw can you will need for full controll so you have to mine deeper.
[MTCD  Android Head Units Q&A] rumburake:
As said in the original post what I want is this data. Don't put your hopes into me digging into the canbus as it's not my purpose.
[MTCD  Android Head Units Q&A] KlausBJ:
I have been looking into this also.

My unit is an MTCD PX5 MX, currently using Malaysk rom 5.0 and MX mcu 2.59. The car is a Peugeot 407.

I get air condition data: temperature readings from both sides of the car, air flow direction only from the driver's side, and the temperatures are off by 4 degrees (ie. showing 17C when the temp is set at 21C).

Steering wheel keys: Volume up/down always work, the other keys, Next, Prev, Source, and the "clicky wheel button" (which should change radio preset, change folder in music player etc.) only work if they are the very first button pressed after a reboot - it seems like something crashes on the first press, and after that only the volume buttons work.

I tried going into setup, factory settings, and using 'logcan' as password, the can logger starts, showing me that it does receive data on all the steering wheel keys, even if they no longer perform any action on the head unit after the first press.

The keys send data like the following:

Source: 2e 02 11 ...

Next: 2e 02 12 ...

Prev: 2e 02 13 ...

Volume up: 2e 02 14 ...

Volume down: 2e 02 15 ...

Volume up+down (should do Mute): 2e 02 16 ...

Clicky wheel button: 2e 02 03 ... or 2e 02 04 ... depending on the direction.

I want to modify the can bus apk, making it add 4 to air con temperature readings before showing, and I would also like to figure out, what happens when I press a steering wheel key for the first time, since everything works initially and then stops after the first press.
[MTCD  Android Head Units Q&A] rumburake:
Where did you get this MCU? AFAIK 2.55 is the latest MCU available for MX (according to: https://xdaforums.com/android-auto/...opment/mtcd-px5-headunits-repository-t3619906)

MCUs from different models (HA etc) present minor incompatibilities such as different key setups / fascias between models. It may well be your problem with the buttons!
[MTCD  Android Head Units Q&A] rumburake:
OK I got it now to work properly. :victory:

To get messages you need to send a request using CarManager. I have used the CarManager code from MTCDTools (thank you [MENTION=7621504]f1x[/MENTION] !)

In the case of a canbus adapter config 1 (VW/Skoda) you can send this message periodically to receive a data response (including the speed, rpm etc):

canbus_rsp=46,144,2,65,2,42

These numbers are made by functions specific to the canbus adapter type which you can find in the "Vehicle" app. I could obviously test this only on my car.

For this canbus config there are 2 other sequences, that return other data too:

canbus_rsp=46,144,2,65,3,41
canbus_rsp=46,144,2,65,1,43

To send a message you can call:

CarManager.setParameters(String par);

I hope this helps other people.... I will post again when I build something useful on this.
[MTCD  Android Head Units Q&A] Hervidero:
Interesting thread, would be nice to see the speed data applied to other apps (like Graser's Dasaita or F1x' sound to speed adjust, or Malaysk's screensaver), without the need to get GPS data.

But I guess not all MTCx units will have the speed data, so using GPS will be more generic. I do think the speed data from canbus will be more reliable when the unit supports it.
[MTCD  Android Head Units Q&A] iwl:
Does this altogether mean : ?

CarManager.setParameters("canbus_rsp=46,144,2,65,2,42");

logcan as factory settings password is such valuable information....

---------- Post added at 01:48 ---------- Previous post was at 01:31 ----------

if code logcan starts the canlog app, may be this app is to find, smaller and more easy to decompile / hack.
[MTCD  Android Head Units Q&A] iwl:
logcan Can Bus Logger How To ?

I'm just playing around with the factory settings pw logcan Can-Logger, but get nothing shown.

I've tried to send with 125000 Baud and 500000 Baud.

What number do you have choosen in the upper right corner there is No, 01, ..., FF ?

How have you used the bottom Buttons, I pressend Start, changing to stop then, what is TX RX for?
[MTCD  Android Head Units Q&A] Y0da1:
I'm also confused.

What's supposed to be inside the String when

CarManager.setParameters()

is called?

With this method is it possible to write to the CanBus or just read from it?

I'm asking because I'm trying to find a way to control the fade on my factory amp and this seems like the perfect way to do it if writes are possible.
[MTCD  Android Head Units Q&A] rumburake:
I am now working on a volume setting app using the car speed and rpm. The volume is relative to the one set by user. I got promising results so far.

But I'm stuck at setting the HU volume, it does not sync with the manual controls: suppose volume is 5, then I set it programmatically to 10, then the user turns the knob up it becomes 6 (because it starts from 5)!
[MENTION=7621504]f1x[/MENTION] you do have experience with this, could you please advise? I have tried all of the following:

This is for setting the real volume in the hardware (a volume value mapped from 0% to 100%):

carManager.setParameters("av_volume="+mtcLevel);

This is temporary and the Android OS doesn't know the volume was changed.

This setting seems to be used for saving the system known volume (0-30):

android.provider.Settings.System.putInt(ctx.getContentResolver(),"av_volume=",level);

But doesn't seem to have effect and I get this warning: You shouldn't keep your settings in the secure settings. This will soon become an error.

The same volume used to send a broadcast (also 0-30):

Intent intent = new Intent("com.microntek.VOLUME_CHANGED");
intent.putExtra("volume",level);
ctx.sendBroadcast(intent);

This probably it's just for notifying other apps (it's also how I get the volume changes in my app).

Anyhow what I mean is to set the volume to 10 and when I turn the knob up to find it at 11. Thanks!
[MTCD  Android Head Units Q&A] f1x:
Take a look at this remark:

https://developer.android.com/refer...System.html#canWrite(android.content.Context)
[AT&T Samsung Galaxy S6] h best:
Hi i have s6 g920f after downgrad 7.0 to 6.0.1

2 problèmes

1 screen look type not work

2 wifi password no save

A try flash phone smart switch same problem
[AT&T Samsung Galaxy S6] johnny.goldy:
After you flash 6.0.1 firmware make wipe data/factory reset from recovery, then all functions should work well
[AT&T Samsung Galaxy S6] h best:
Yes wip data everything same
[Xiaomi Redmi Note 4 [Mediatek] ROMs, Kernels, Reco] dromaczek:
MIUI 9 Global Beta ROM 7.9.7 Released: Full Changelog and Download Links!：http://en.miui.com/thread-809159-1-1.html
[Xiaomi Redmi Note 4 [Mediatek] ROMs, Kernels, Reco] sirsandrone:
It doesn't work for me. Phone doesn't find sim card
[Xiaomi Redmi Note 4 [Mediatek] ROMs, Kernels, Reco] ruewar:
Nougat or MM?
[Xiaomi Redmi Note 4 [Mediatek] ROMs, Kernels, Reco] yasars:
MM .. :(

Xiaomi , globe rom, miuipro delayed.... Only miui original is rls
[Xiaomi Redmi Note 4 [Mediatek] ROMs, Kernels, Reco] manolomoro:
MM
[Xiaomi Redmi Note 4 [Mediatek] ROMs, Kernels, Reco] gsunil:
button option is missing in the update

how to enable it
[Xiaomi Redmi Note 4 [Mediatek] ROMs, Kernels, Reco] ropavlenko1977@gmail.ru:
MiuiPro firmware requires Chinese firmware
[Xiaomi Redmi Note 4 [Mediatek] ROMs, Kernels, Reco] dromaczek:
Works like a charm. Good rom
[Xiaomi Redmi Note 4 [Mediatek] ROMs, Kernels, Reco] yasars:
On me com.android.phone force closed every time.... Chine r is delayed with fix sim card issue ...
[Xiaomi Redmi Note 4 [Mediatek] ROMs, Kernels, Reco] dromaczek:
Use fastboot rom, he has no problem
[Xiaomi Redmi Note 4 [Mediatek] ROMs, Kernels, Reco] MrFoxNos:
Guys how did you get it to work? I wiped everything through TWRP and the flashed the .zip file but I get stuck at boot, I can't get the MI logo to go away. Any suggestions?
[Xiaomi Redmi Note 4 [Mediatek] ROMs, Kernels, Reco] dromaczek:
Don't flash zip, use fastboot image!
[Xiaomi Redmi Note 4 [Mediatek] ROMs, Kernels, Reco] dromaczek:
Antutu good result, (not clear system, standard aps in background etc)
[Xiaomi Redmi Note 4 [Mediatek] ROMs, Kernels, Reco] Achygarden:
Miui 8 or miui 9? Redmi note 4 MTK
[Xiaomi Redmi Note 4 [Mediatek] ROMs, Kernels, Reco] dromaczek:
Miui 9 mtk (after upgrade you have new logo). Better use fastboot rom
[Xiaomi Redmi Note 4 [Mediatek] ROMs, Kernels, Reco] Antonioys:
is very very low, with the same phone i scored 90000 with miui.it 7.6.5 and spectrum kernel
[Xiaomi Redmi Note 4 [Mediatek] ROMs, Kernels, Reco] xlinkprince:
Waiting on miuipro...
[Xiaomi Redmi Note 4 [Mediatek] ROMs, Kernels, Reco] dromaczek:
9 mui
[Xiaomi Redmi Note 4 [Mediatek] ROMs, Kernels, Reco] its_cobi:
What is the difference between this version and 7.8.28?
[Xiaomi Redmi Note 4 [Mediatek] ROMs, Kernels, Reco] dromaczek:
full multilanuage, less bugs, google apps included
[Xiaomi Redmi Note 4 [Mediatek] ROMs, Kernels, Reco] spr33:
So, does this have all the new optimisations and performance improvements that they're publicising everywhere? Or is this more of a 'version bump' with new graphics and bug fixes?
[Xiaomi Redmi Note 4 [Mediatek] ROMs, Kernels, Reco] alamjit_singh:
ROM for Redmi note 4 & 4x Nikel( MTK) is same here is download link of new MIUI9 beta release : http://en.miui.com/forum.php?mod=viewthread&tid=817141&highlight=Redmi+note+4x
[Xiaomi Redmi Note 4 [Mediatek] ROMs, Kernels, Reco] EduardoES22:
I tried to install this rom from the fastboot mode and I always have the same issue. Everytime that the rom tries to connect with the sim card and error appears. Com.android.... has stopped

Please help me solve this problem. I also have it in many others miui based roms
[Xiaomi Redmi Note 4 [Mediatek] ROMs, Kernels, Reco] alamjit_singh:
It is the first beta version so you guys have to post bugs at MIUI forum in category General-bugs in order to fix them soon. They will ignore all duplicate threads so search before posting any new thread at there. However, if you guys will find, any bug which is already reported but not properly explained then explain it in the reply to that thread. :)
[Xiaomi Redmi Note 4 [Mediatek] ROMs, Kernels, Reco] painterKDM:
Cofface

. I used cofface twrp .Did wipe and flashed zip without any problems. Just remember to wipe cache/Dalvic and disable stock recovery when prompted unless you want to lose twrp
[Xiaomi Redmi Note 4 [Mediatek] ROMs, Kernels, Reco] dromaczek:
IMO optimized
[Xiaomi Redmi Note 4 [Mediatek] ROMs, Kernels, Reco] spr33:
Any proof? I honestly believe they've just repackage their old build with new graphics and themes without doing anything extra like they have done with Android 7 builds.
[Xiaomi Redmi Note 4 [Mediatek] ROMs, Kernels, Reco] dromaczek:
Better antutu circa 15% with the same apps installed and the same on background
[Xiaomi Redmi Note 4 [Mediatek] ROMs, Kernels, Reco] spr33:
AnTuTu isn't really a valid test for the optimisations they've done (my device gets 89k on AnTuTu to your 78k on this build).
[Xiaomi Redmi Note 4 [Mediatek] ROMs, Kernels, Reco] dromaczek:
Then I font know, phone works good
[Xiaomi Redmi Note 4 [Mediatek] ROMs, Kernels, Reco] spr33:
I'll wait for xiaomi.eu.
[Xiaomi Redmi Note 4 [Mediatek] ROMs, Kernels, Reco] silvercar1:
My benchmarks (antutu >88500, pcmark >4700) are the same if not very slightly better. Battery life seems to have improved a bit too.
[Xiaomi Redmi Note 4 [Mediatek] ROMs, Kernels, Reco] adrxano:
This is jus the same old miui with new graphics and features. The battery life hasn't improved at all
[Xiaomi Redmi Note 4 [Mediatek] ROMs, Kernels, Reco] spr33:
That is what I was thinking, thanks for clarification.
[Xiaomi Redmi Note 4 [Mediatek] ROMs, Kernels, Reco] adrxano:
This is miui 8 with a few ui changes but nothing under the hood has really changed. Battery life should've been the target for them to work on
[Xiaomi Redmi Note 4 [Mediatek] ROMs, Kernels, Reco] bihslk:
Better to fix battery on miui8 than nougat. Battery is ****
[Xiaomi Redmi Note 4 [Mediatek] ROMs, Kernels, Reco] dackota:
Airplane

Just press airplane mod in status par.. make it on & after 1sec. Press it again off
[Samsung Galaxy Note 8 Questions and Answers] stas333:
Hi everyone,

I am not sure what i did, but i am unable to remove icons from touchwiz home screen. When i was setting everything up, i was able to do so by holding down on the icon and a menu would popup, but not anymore. Any suggestions?

Thanks
[Samsung Galaxy Note 8 Questions and Answers] stas333:
Figured it out. I disabled the animations via developers menu which somehow caused the pop-up for removal of icons not to appear.
[Samsung Galaxy Note 8 Questions and Answers] ultimateman:
Had the same thing on my S8 - I suspected that the developer settings were at fault - but I didn't want to believe it. Thanks for the tip. :)
[Samsung Galaxy Note 8 Questions and Answers] sbeans:
Turning off Animator Duration Scale in Developer Options will cause this issue. Set it to 0.5x and it will work again.
[Samsung Galaxy Note 8 Questions and Answers] Marc2594:
Go to Settings>>Display>>Home Screen>>Home Screen and layout>> Choose the first option.
[Samsung Galaxy Note 8 Questions and Answers] androidwrap:
Home Screen Icon Removal

Go to Settings.

Go To Display,

Go To Home Screen,

Go To Home Screen,

Go To Lock Home Screen Layout - Disable

---------- Post added at 11:19 AM ---------- Previous post was at 10:58 AM ----------

Note 8 - Home Screen - Icon Removal

Go to Settings.

Go To Display,

Go To Home Screen,

Go To Home Screen,

Go To Lock Home Screen Layout - Disable

10/14/2019
[Google Pixel Questions & Answers] FooFighter312:
I have run into the dreaded headphone jack problem. The phone won't play audio through the speakers and doesn't use the microphone because it thinks that headphones are connected. I've tried resetting it to factory settings and it didn't fix anything which is why I think it's not a software problem.

After some Googling I found that I'm not the only one to have this problem and that Google is replacing the units with this hardware fault. Unfortunately I didn't buy the phone via play store so I can't return it directly to google.

I'd like to try and fix it myself. If anyone knows where I could buy a headphone jack for the 5" pixel I'd be very grateful. Before I buy the replacement part I was thinking of removing the headphone jack and trying to start the phone like without it. My reasoning is that the phone would then default to playing the sound through speakers and I would be sure that it's a headphone jack problem. Would that work at all or the phone won't even start?

I need your advice and opinions, thanks :)
[Google Pixel Questions & Answers] Alaadragonfire:
Please keep us updated as I'm facing the same issue:/
[Google Pixel Questions & Answers] FooFighter312:
I ordered a replacement headphone jack and as soon as it arrives, within the next 2 weeks I hope, I'll replace it and see if that gets it fixed.

A couple of more details:

-problems started about 3 days after updating to Oreo

-at the beginning the volume would first turn itself gradually down to zero and I had to fight it with the volume up (I would always lose eventually xD)

-there was usually a loud pop heard through the headphones after that 'battle' and then the audio and mic would completely cut off

-restarting the phone would enable the audio and mic again but the problems returned as soon as I plugged in the headphones again (tried with several different headphones)

-factory reset didn't fix it and after a couple of days of problems I'm now stuck with no audio at all and no mic input

-my phone can't recognize the headphones anymore
[Google Pixel Questions & Answers] Alaadragonfire:
I have the exact struggle, restart will work for a while and then problem return, when I contacted google they offered a replacement but since I'm not in Canada at the moment, they will not be able to process my replacement request, but google representative told me that I can try and replace the mic with the charging port(as it all comes together) and it should fix the issue, but I also think that it might be the headphones jack, also this happened after I tried Android O beta.
[Google Pixel Questions & Answers] malstroms:
please update the progress, i'm having the same problem. I hope it get fixed after you replace the headphone jack
[Google Pixel Questions & Answers] FooFighter312:
I'm still waiting on the part to arrive. I'm expecting it within the next two weeks. I'll try to document the replacement with photos and/or video so others can do it if it turns out successful :)
[Google Pixel Questions & Answers] FooFighter312:
Okay guys, here's the update with some good news and some bad news.

The replacement headphone jack arrived yesterday and the good news is that I replaced it and it seems to have fixed the problem! Yay!

But the bad news is that in the process I damaged the LCD screen so now I'm waiting on a replacement LCD. I guess I should've expected that because the screen and LCD itself are extremely sensitive and the damage is not even visible, but it's simply not working anymore.

So how do I know it actually works? Well since the phone used to be paired to my PC via bluetooth, whenever I turn on my PC a notification sounds on my phone if I want to pair or not.

Minor bad news - I tried to record the whole process as a tutorial for anyone who'll try to fix this themselves but my camera's battery died halfway and I lost everything I recorded.

Here are the 2 teardown videos I used for guidance: First and Second. I highly recommend you watch them entirely before attempting anything.

I got the headphone jack on eBay from here. It is totally overpriced but it's the only place I was able to find it.

I'm getting my replacement LCD and adhesive for it from Replace Base
[Google Pixel Questions & Answers] Alaadragonfire:
Thanks for the updated! Are you sure problem is fixed by changing the headphone jack ? It's not temporary fixed like before ? BTW the link for eBay headphone jack is already sold out :(
[Google Pixel Questions & Answers] FooFighter312:
Well I'll know for sure as soon as I replace the LCD. I'm hoping it will arrive during the next week and then I'll update this thread again
[Google Pixel Questions & Answers] Mattish13:
I definitely recommend others try to get Google to replace it. I got mine from Swappa second hand and they still respected the warranty. Much easier and cheaper than replacing it yourself.
[Google Pixel Questions & Answers] malstroms:
wow its nice to hear that it work, but some say that its the charging port board that has a problem(the location of the microphone). should i buy headphone jack replacement or charging port board?

yesterday i put i my pixel into freezer for 2 hour(i tried this because it help my previous phone which is nexus 5x come back to life for a while haha) and rebooted to safe mode and tried to record and microphone work, rebooted to normal and until now it still work, but im hoping that your replace method would be a permanent fix and i will do that too.

please update this thread again as soon as you replace your lcd

thank you :)
[Google Pixel Questions & Answers] FooFighter312:
Another update. I got the replacement screen today but the problem hasn't been fixed. Well, partly it has been. The speaker now finally works when nothing is plugged in but the phone can't recognize any headphones. So, like Mattish13, if you can get it replaced by Google do so. Fixing things on my own is my hobby and was logical since I couldn't get mine replaced by Google, but this fix is not worth your time or money, trust me. I'm guessing the next thing to get replaced would be the daughterboard, maybe that would fix the problem finally, but in my opinion it's not worth it.

Ironic how so many problems with the headphone jack appeared for so many people and at the same time Google decided to ditch the jack for Pixel 2 :laugh:

Edit: just to be clear, since I already invested in a new screen and new jack, I will drop in another 25$ for the new daughterboard. If that doesn't fix it, nothing can
[Google Pixel Questions & Answers] Alaadragonfire:
As strange as it sounds the freezer trick works! I think the issue appears when the phone heats or it's heat related
[Google Pixel Questions & Answers] Alaadragonfire:
Any updates ?
[Google Pixel Questions & Answers] FooFighter312:
Yes, sorry for forgetting to post earlier. I changed the daughterboard and it appeared to be working perfectly. But about 30 minutes later the microphone again wasn't working and there was no audio. I was back at the beginning.

Then I did a factory reset and again it worked. But every time, after about 30 minutes it stops working. At this point I have no idea what the exact problem is.

I've definitely fixed it partly somehow because before I couldn't get the microphone and speaker to work at all. Now I can, but it fails after some time eventually. The headphones jack works normally until the failure happens.

I've tried the freezer trick after that and had no noticeable improvement. My theory now is that the problem probably was on the daughterboard but the replacement one I got (which is actually a refurbished part) might have had the same problem but not as serious as my original part.
[Google Pixel Questions & Answers] Alaadragonfire:
Thanks for the update, interesting... Maybe the daughterboard is faulty as well, but didn't Google response was that there is a crack line in the audio codec, as far as I know the audio codec is on the motherboard, I guess this problem won't be fixed after all, it is really annoying!! I wanted to get another pixel maybe XL this time, I found some offers with used ones, but now I am really afraid to buy one and this problem appears with the second phone.