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
 
  #1  
Old 10-29-2021, 03:26 PM
Sean W's Avatar
Veteran Member
Thread Starter
Join Date: Jun 2013
Location: USA
Posts: 8,384
Received 4,227 Likes on 2,370 Posts
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


 
  #2  
Old 10-29-2021, 03:28 PM
Sean W's Avatar
Veteran Member
Thread Starter
Join Date: Jun 2013
Location: USA
Posts: 8,384
Received 4,227 Likes on 2,370 Posts
Default

Oops - @GGG can you move this th=o the general or general tech section please? It's not specific to the X150
 
  #3  
Old 10-29-2021, 05:52 PM
GGG's Avatar
GGG
GGG is offline
Join Date: Dec 2011
Location: Durham, UK
Posts: 120,461
Received 16,852 Likes on 12,186 Posts
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
 
The following users liked this post:
Sean W (10-29-2021)
  #4  
Old 10-30-2021, 01:14 AM
kj07xk's Avatar
Veteran Member
Join Date: Jan 2015
Location: Naperville, Illinois USA
Posts: 4,657
Received 1,990 Likes on 1,332 Posts
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.
 
The following users liked this post:
Sean W (10-30-2021)
  #5  
Old 10-30-2021, 06:14 PM
Sean W's Avatar
Veteran Member
Thread Starter
Join Date: Jun 2013
Location: USA
Posts: 8,384
Received 4,227 Likes on 2,370 Posts
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.
 
  #6  
Old 10-31-2021, 03:41 AM
kj07xk's Avatar
Veteran Member
Join Date: Jan 2015
Location: Naperville, Illinois USA
Posts: 4,657
Received 1,990 Likes on 1,332 Posts
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.
 
  #7  
Old 11-02-2021, 04:07 PM
Sean W's Avatar
Veteran Member
Thread Starter
Join Date: Jun 2013
Location: USA
Posts: 8,384
Received 4,227 Likes on 2,370 Posts
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; 11-02-2021 at 04:10 PM.
The following users liked this post:
kj07xk (11-03-2021)
  #8  
Old 11-03-2021, 08:54 AM
kj07xk's Avatar
Veteran Member
Join Date: Jan 2015
Location: Naperville, Illinois USA
Posts: 4,657
Received 1,990 Likes on 1,332 Posts
Default

Cool. Best of luck on your quest!
 
  #9  
Old 11-03-2021, 12:39 PM
IBHydrogen's Avatar
Junior Member
Join Date: Nov 2021
Location: Leicester
Posts: 3
Likes: 0
Received 2 Likes on 2 Posts
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
 
  #10  
Old 11-03-2021, 01:37 PM
Sean W's Avatar
Veteran Member
Thread Starter
Join Date: Jun 2013
Location: USA
Posts: 8,384
Received 4,227 Likes on 2,370 Posts
Default

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

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


Quick Reply: A little Code question please?



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