When you click on links to various merchants on this site and make a purchase, this can result in this site earning a commission. Affiliate programs and affiliations include, but are not limited to, the eBay Partner Network.
I'm not a coder and am just starting to teach myself Java. I'm looking at various codes from various places and I see this. Can someone tell me what kind of code this is? Not interested in knowing what it says but that would be a bonus. Looking to know what coding language. Thank you
Hey Sean - Do you have some context for the data that you are trying to output as text?
At first I thought you were doing an ASCII dump, but there’s some clearly non-ASCII characters there, so maybe you’re trying to dump it as UTF-8 or UTF-16? In any case, generating output for non-printable characters just clutters the field if you’re just looking for clues. Restrict the output to just the printable characters, and you may find some text strings that give you hints to what you’re looking at.
Then again, if it’s just machine code, it’s like interpreting a digital photo as a text file, you’ll just see meaningless garbage, until you read it with the appropriate disassembler.
Thanks @kj07xk . I have two large APK files for the aftermarket head units on our XK's. I see the code is mostly Java, has some XML and then the code pictured above. I'm using Android studio to just view the code right now as I start to learn Java (big assumption that I'll stick with that:-). In fact I'll have to search again just to find out where the code above was.
Anyway, I think you followed those massive threads on the subject.
One is 190000000_com.syu.canbus.apk and the other is 190000000_com.syu.ms.apk. As I understand it, this is all the code for all units that they make. There are hundreds of car makes, models in the code files.
Ultimately I have two minor goals and two a little larger.
First, I want to get the Temp changed to Fahrenheit. It works on the XF but not the XK so once I learn the code and find where the selection is stored, I can compare the two models and perhaps fix the XK.
Second The A/C works fine, but the light doesn't illuminate. All other buttons selections do so fix that.
Then, I'd like to change the start up launcher. I know it's using Launcher 1, 2, 3 and is locked. There are other car launchers so this one is smaller in my mind.
Last, I'd like to find out if there's a way to add a DTC display/ cancel.
None of this is short term. While scrolling random files, I encountered several like the above snapshot. Maybe I'll find it again and grab a better snapshot that show the source of the data.
FWIW, I was able to finally confirm, the code options do not support heated windshield or cooled seating.
Since I never did Android development during my career, I had to google apk files, to see what you’re dealing with. It will be interesting to see where in the apk hierarchy you’re finding those files with that type of content. You may be looking at obfuscated, and/or encrypted files, meant to discourage reverse engineering, or simply something like an image file that has no executable code.
Thanks again Ken for the help. Turns out it was a corrupted file. The code looked like that every attempt to view an XML. I found a clean version of the code and the files that appear that way all appear to be <?xml version="1.0" encoding="utf-8"?>
So that's done. Now on to learning Java, XML etc... to solve my petty wishlist. Will report back in 6 months :_)
Here's what it looks like now
This does not look like any source code that I have ever seen.
looks more like code that has already been compiled into another form.
It is difficult or maybe impossible to get back to the original source code from this.
Another possibility is that this is ASCII(Text) data or similar that is being displayed with either the wrong font or wrong reader.
For example if you opened a MS word document with notepad it would look equally unreadable.