General Tech Help Good at troubleshooting? Have a non specific issue? Discuss general tech topics here.

A little Code question please?

Thread Tools
 
Search this Thread
 
Old Oct 29, 2021 | 03:26 PM
  #1  
Sean W's Avatar
Thread Starter
|
Veteran Member
10 Year Member
Liked
Loved
Community Favorite
Joined: Jun 2013
Posts: 8,926
Likes: 4,736
From: USA
Default A little Code question please?

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


 
Reply
Old Oct 29, 2021 | 03:28 PM
  #2  
Sean W's Avatar
Thread Starter
|
Veteran Member
10 Year Member
Liked
Loved
Community Favorite
Joined: Jun 2013
Posts: 8,926
Likes: 4,736
From: USA
Default

Oops - @GGG can you move this th=o the general or general tech section please? It's not specific to the X150
 
Reply
Old Oct 29, 2021 | 05:52 PM
  #3  
GGG's Avatar
GGG
10 Year Member
Liked
Loved
Community Favorite
Joined: Dec 2011
Posts: 120,439
Likes: 17,004
From: Durham, UK
Default

Originally Posted by Sean W
Oops - @GGG can you move this th=o the general or general tech section please? It's not specific to the X150
DONE

Graham
 
Reply
Old Oct 30, 2021 | 01:14 AM
  #4  
kj07xk's Avatar
Veteran Member
10 Year Member
Liked
Loved
Community Favorite
Joined: Jan 2015
Posts: 5,300
Likes: 2,570
From: Naperville, Illinois USA
Default

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.
 
Reply
Old Oct 30, 2021 | 06:14 PM
  #5  
Sean W's Avatar
Thread Starter
|
Veteran Member
10 Year Member
Liked
Loved
Community Favorite
Joined: Jun 2013
Posts: 8,926
Likes: 4,736
From: USA
Default

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.
 
Reply
Old Oct 31, 2021 | 03:41 AM
  #6  
kj07xk's Avatar
Veteran Member
10 Year Member
Liked
Loved
Community Favorite
Joined: Jan 2015
Posts: 5,300
Likes: 2,570
From: Naperville, Illinois USA
Default

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.
 
Reply
Old Nov 2, 2021 | 04:07 PM
  #7  
Sean W's Avatar
Thread Starter
|
Veteran Member
10 Year Member
Liked
Loved
Community Favorite
Joined: Jun 2013
Posts: 8,926
Likes: 4,736
From: USA
Default

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



 

Last edited by Sean W; Nov 2, 2021 at 04:10 PM.
Reply
Old Nov 3, 2021 | 08:54 AM
  #8  
kj07xk's Avatar
Veteran Member
10 Year Member
Liked
Loved
Community Favorite
Joined: Jan 2015
Posts: 5,300
Likes: 2,570
From: Naperville, Illinois USA
Default

Cool. Best of luck on your quest!
 
Reply
Old Nov 3, 2021 | 12:39 PM
  #9  
IBHydrogen's Avatar
Junior Member
Joined: Nov 2021
Posts: 3
Likes: 2
From: Leicester
Default

Hi

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.

Regards
 
Reply
Old Nov 3, 2021 | 01:37 PM
  #10  
Sean W's Avatar
Thread Starter
|
Veteran Member
10 Year Member
Liked
Loved
Community Favorite
Joined: Jun 2013
Posts: 8,926
Likes: 4,736
From: USA
Default

@IBHydrogen are you referring to post 1 or post 7?
 
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
devo357
S-Type / S type R Supercharged V8 ( X200 )
28
Dec 23, 2012 11:20 AM
JagtechOhio
General Tech Help
6
Sep 14, 2009 08:20 PM
Jaguar6286
X-Type ( X400 )
14
Dec 9, 2008 12:13 AM
Jaguar XJ8 2000
XJ XJ8 / XJR ( X308 )
13
Jun 26, 2008 09:35 PM

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 



All times are GMT -5. The time now is 09:35 AM.