yashsingh1/xdaforums huggingface dataset:
[Android Head-Units] biggy238:
I will read into that, thank you. I had several years ago.

I understand the need to reboot, and I did when I first replaced the file, but I had left the renamed Apk in the folder with the new one. After relocating the backup, I failed to reboot.

Simple enough.
[Android Head-Units] mdis89:
is it possible to use Prev/Next buttons on Steering Wheel to prev/skip tracks in Spotify while its playing in the background (while using google maps for example?)

Looking at buying a 5.1 Joying unit, and want to ensure its possible before purchasing.
[Android Head-Units] dyabolikarl:
I don't use spotify but I would say YES as it does that exact thing with every other music app.
[Android Head-Units] surfer63:
Those of you with a (useless) DVD button on their units: What does that actually start by default? The JY DVD-player app (would also be useless) or the JY Video player?

Or has it become a "dead" button? So indeed entirely useless?
[Android Head-Units] Logicsystem360:
Totaly useless but the mod you can assign anything you want in launcher.sh
[Android Head-Units] surfer63:
Yeah, I know that very well :laugh:

But the question was whether the button still had a function, and the answer is No.

Thank you.

I'm looking into another way of modding buttons outside the SofiaServer apk. Hence the question.

I have no idea whether I will be successful or not. (And as I currently have a dead unit for more than 2 weeks now awaiting a new motherboard, I can't test either.)
[Android Head-Units] ste2002:
I seem to be lucky with my particular HU model: both ex-DVD buttons (left and right) are factory-assigned functions: left one toggles screen brightness in 3-step loop and it is labelled with sun/moon symbols. The right side one is marked "EQ" and it invokes factory equilizer.
[Android Head-Units] surfer63:
Yes, same for my JY-VL130N2 (when it still worked). It has the same buttons on either side of the sealed DVD slit.

But mine has also BAND/NAVI/MEDIA hardware buttons on the right side.

Some units have BAND/NAVI/DVD buttons on the right side. That DVD button was the one I meant.
[Android Head-Units] ste2002:
OK, got it.

By the way (just a thought): have anybody tried to use Joying wheel button teach utility to remap that HU buttons?
[Android Head-Units] realzoulou:
Joying's 20171025 update is out for quite some time now, but I am unable to find a [MENTION=3076686]gustden[/MENTION]'s No-kill mod for that version. Is there really none?

(I went back 3-4 pages in this thread and used the search, too. Forgive me if it was mentioned somewhere already)
[Android Head-Units] edit:
[MENTION=3076686]gustden[/MENTION] did not show up in a very long time... Last time I've seen him it was in around September. He did not make any patch for the latest firmware and my guess is he will skip this one completely... It happened before.
[Android Head-Units] surfer63:
No. [MENTION=3917592]DBestman[/MENTION] who also made the 07 July version is working on it, but from what I heared he has little time.

My unit was bricked. Now, after 3½ weeks I have a replacment board. I'm currently on the November ROM as well. I had the unit on the table today on a 12V source and allmost the entire day I had the 01 September version running and I experienced nothing weird.

I already added the Gustden 6.4 September versions to my apk to be installed on the November version. I guess I will release that version of my apk tomorrow.

Of course you can always push the 6.4 version yourself onto the ROM.
[Android Head-Units] realzoulou:
No-Kill mod on 2017-10-25 version of Sofia-1-C9-Server-V1.0.apk

Oh, I hope he is ok.

I have done the "NO-KILL" modification of the 2017-10-25 version of Sofia-1-C9-Server-V1.0.apk myself.

I tested it successfully on a JY-VL130N2 running the 2017-10-25 software from Joying.

Please note that I only applied the "NO-KILL" mod. No other additional changes, which [MENTION=3076686]gustden[/MENTION] had maintained.

Find the detailled changes, which I did, in the readme.txt in the attached zip.

Edit: Thanks [MENTION=2550900]surfer63[/MENTION]. So I could have applied gustden's v6.4 on 2017-10-25. Damn! Spent half of the afternoon on that mod.
[Android Head-Units] surfer63:
I just had a look at your NoKill version. I also looked the past days myself in the Gustden 6.4 NoKill and did a diff with the original apk for September. He applied his Nokill patches at multiple locations in the smali's.

Has that changed again for the November version?
[Android Head-Units] ggotrek:
Hi Guys,

I was wondering if you know how to change the wake up interval for a longer period. Now it is 2-3 seconds. I need around 10.

It is winter here and I need to put the key into ignition and wait for my Diesel to heat up in order to start engine. When I do my car stereo reboots as it already woke up. Any one knows? Much appreciated.

PS: Joying says the car battery is too weak and there is not enough power to sustain the radio, but i find it hard to believe.
[Android Head-Units] edit:
You can't modify the wake up...or delay it.
[Android Head-Units] realzoulou:
Same did I already quite a while ago. And I wondered why he did several changes, although only one was needed.

I did not check if the 10/25 Server apk is even different to the September one. Maybe his v6.4 still applies to the 10/25 ROM...
[Android Head-Units] Astur_Torque:
How can I use launcher.sh to autostart automatically an application when I turn on the radio/engine?

Cold boot and standby boot

---------- Post added at 03:23 ---------- Previous post was at 03:13 ----------

With canbus is not posible to map keys, isn't it?
[Android Head-Units] swanie2000:
You could always use a delay relay to power up the ACC wire. Something like this thing on eBay.

https://www.ebay.com/itm/DC-5V-9V-1...on-Delay-Turn-off-Switch-Module-/122078937183
[Android Head-Units] jimware:
Hello to all.

I have an Erisin ES6041U but it's very annoying every time that you close and open acc you must start gps software (IGO) from the beggining. Does anyone knows how to make in my unit the same no kill function?

Thank you.
[Android Head-Units] Shiwantha:
Steering wheel key customization

First of all thanks hvdwolf and Dbestman for the new files. You make this an easy task. :good:

This is my custom key mod launcher.sh file for my use. All the time I wanted to go to home screen as I have set Nova launcher with custom Icons to go to anything I want. Double and triple presses used for 2 mostly used apps.

SCR/SOURCE Key

One press – Back

Two presses – Open Poweramp

Three presses – Open google maps

ACC_ON - Go to home screen

ACC_OFF - Force stop few apps I want.

RESUME - Go to home screen

#!/system/bin/sh
# V1.0 - SJ script for Joying 2GB Sofia
# USEFUL LAUNCH COMMDANDS defined as variables
#
# Goto Home screen
home="input keyevent 3"

# Back
back="input keyevent 4"

# pause
pause="input keyevent 127"

# Play
play="input keyevent 126"

# Recent Task list
recent="input keyevent KEYCODE_APP_SWITCH"

# Google Voice Command
gvc="am start com.google.android.googlequicksearchbox/com.google.android.googlequicksearchbox.VoiceSearchActivity"

# Google maps
maps="am start com.google.android.apps.maps/com.google.android.maps.MapsActivity"

# Radio
radio="am start com.syu.radio/com.syu.radio.Launch"

# SYU Music ( stock music player )
music="am start com.syu.music/com.syu.media.act.Act_Music"

# Poweramp
poweramp="am start com.maxmpz.audioplayer/.PlayerUIActivity"
poweramp_press=$play

# Torque
torque="am start org.prowl.torque/org.prowl.torque.landing.FrontPage"

# key is the only arguemnt recieved and actions are based on the key number
key=$1

case $key in
37) # SOURCE/MODE - 1x press for BACK , 2x for Poweramp , 3x for Google Maps
#
# This section will execute three different commands based on
# if one, two or three presses were recieved. Command(s) are
# put in background for 0.6 second and then checked to see
# if subsequent presses was recieved before execution.
#
last=`cat /data/$key.cnt`
last=$((last+1))
case $last in
1)
echo $last > /data/$key.cnt
(sleep .5 && [ `cat /data/$key.cnt` = $last ] && echo 0 > /data/$key.cnt && $back ) &
;;
2)
echo $last > /data/$key.cnt
(sleep .4 && [ `cat /data/$key.cnt` = $last ] && echo 0 > /data/$key.cnt && $poweramp ) &
;;
3)
echo 0 > /data/$key.cnt
$maps
;;
*)
echo 0 > /data/$key.cnt
$home
;;
esac
;;
97) # ACC_ON - execute on key on
$home
;;
98) # ACC_OFF - executes on key off
$pause;
am force-stop org.prowl.torque;
am force-stop com.google.android.apps.maps;
am force-stop com.maxmpz.audioplayer;
;;
99) # RESUME - executes on resume of system
sleep 2; $home
;;
*) # Pass any other keys pressed as keyevent
# 3-Home, 4-Back, 85-PlayPause, 88-Prev, 86-Stop, 89-FB
# 90-FF, 87-Next, 126-Play, 127-Pause
input keyevent $key
;;
esac # End $key cases

exit 0
[Android Head-Units] floris7401:
Hi. Thanks. I want to try yours (and thank you for your dab radio app!!!) the original v3 did not work for me and messed things up. Maybe becouse I have a different Hu. I have this one, without fysical buttons, in a old vw multivan without canbus ; JY-UMS01N2.

How can I edit the apk myself so I can remove the kill function ?

Edit

I dont need to do it by myself! Your apk seems to worked for me! Thanks a lot!

Thanks, Floris

Verstuurd vanaf mijn SM-G950F met Tapatalk
[Android Head-Units] kiltym:
Soft Keys

My unit,	JY-UMS03N2D, only has soft keys along the left side.

I have installed the custom keys mod, and a custom launcher.sh.

However, the mapping for key "Navi" (9) must not be the same on a unit with a hard button, vs the touch screen buttons I have.

Is there a way to capture that in launcher.sh? And if so, what is the # I must use in launcher.sh?

Sorry if I missed this, there are a lot of posts to weed through.

Also, what is the difference between ACC_ON and RESUME? What does RESUME get called, after a re-boot?

Coming out of sleep would trigger ACC_ON, so is RESUME redundant?
[Android Head-Units] st.trophey:
Hi guys!

Is there command for phone app to make a call to last number?
[Android Head-Units] ste2002:
For me steering wheel control pressed twice redials last number if it was previosly dialled on HU (Skoda-2010).
[Android Head-Units] bogdi1988:
[MENTION=3076686]gustden[/MENTION] do you have this SourceGVS mod compiled for the GTX rom?
[Android Head-Units] edit:
I am sorry to say but I haven't seen [MENTION=3076686]gustden[/MENTION] around here in a very very long time.
[Android Head-Units] gtxaspec:
Surfer63 should have it working in Xposed soon... No need for launcher.sh soon. Instant key response, no lag. Stay tuned.
[Android Head-Units] kiltym:
Anyone on here able to create a version of the KeyMod SophiaServer without the NoKill mod, just by itself. Specifically for the Dec. firmware?

I realize surfer63 is working on an Xposed module, but as of now, the KeyMod mod works and is stable, and would like to have something I can use without updating every week to a new version, and installing Xposed on Joying firmware is not something that can be done without risk apparently. Everyone recommends using the GTX ROM, but am hesitant to change so much on the head unit. But, if that is the only option, I will wait patiently until stable versions are available.
[Android Head-Units] Quiksmage:
Hi,

I noticed that after installing the 6.4 key mod, some of my mapped keys are no longer doing anything.

How do I map the pick up call button in launcher.sh?

The only buttons that are working for me specifically are previous track, next track, volume up, volume down.

I assume I need to configure this as I'm guessing it's intercepting the key instead of passing it on as normal.
[Android Head-Units] micdesa:
Hi Guys,

I'm trying to use this mod for my Citroen C5....There is no way to find the keycode. The only keycode that I'm able to capture is "4" for "back" steering wheel button. The other keys don't send any keycode. Someone can help me or have the keycode for C5 steering wheel controls?

thanks.
[Android Head-Units] jumper3:
Hi all,

Plese help me ASAP. I'm sitting in my car and try install

- V6.4-Sofia-1-C9-Server_NOKILL_GVS.zip - Task killer removed, Google Voice Search on 'SRC' key

What i do wrong? What i did

root

ofc download apk

open zip on my MP

backup original Sofia-1-C9-Server-V1.0

copy new Sofia-1-C9-Server-V1.0 to my unit system/app/sofia-1-c9-server-v1.0

I don't see file launcher.sh in zip. Is should be? What permision i should settings?

I want only change source buttom on GVS.

root

HELP Please

regards
[Android Head-Units] etmilosk:
Hello everyone!

First of all, Gustden, thanks for all the work you've done for us!

I have a Joying JY-UMS03N2D HU with Android 6, the MCU information says:

Overall I am satisfied with my HU, I was just annoyed by the process killing side of the Joying software, mostly because of Poweramp not resuming the play after car startup.

I tried to update the Sofia Server apk with the one from this thread, but now my HU is behaving worse than before.

Before I did the update of the apk, the HU would wake up almost immediately after turning on the ignition, and no car logo or Android logo would be shown. After the update, everytime I start the car, the HU goes through a fresh boot sequence, showing the car logo, then Android text, then booting up. And regarding the tasks resuming after startup, everything is the same, I have to start Poweramp, and after shutting down the car Poweramp continues to play for 2-3 minutes.

Also, when the HU first started after the apk update, the EQ and SRS settings were all reset, I had to set them again.

In Car Settings, the ''Power Off or Dormancy when ACC is cut'' is set to Dormancy (it's set to OFF). I have tried changing it several times, setting it both to On and Off but the HU behaves the same, it completely powers off when ACC is cut.

I didn't want to mess with the steering wheel buttons because I'm already satisfied with them, I just wanted the task killer gone. So I replaced the original apk with the V3.0 from this post: https://xdaforums.com/showpost.php?p=71047452&postcount=62

Regarding the update, here's what I have done:

- installed Busy Box

- made a backup of the original SofiaServer apk

- copied the V3 SofiaServer apk from the post #62 and replaced the original apk

- set the permissions of the new apk file as advised (rwx for owner, rx for others)

- rebooted the HU

Can you please help me understand why is this happening? Have I put in a wrong version of the apk?

Thanks!
[Android Head-Units] gtxaspec:
Pretty sure these mods are out dated and un supported, you might try to install from JET and see if those work. Botherwise, the custom ROM is the best bet.
[Android Head-Units] etmilosk:
Thanks for replying!

I'm not sure how outdated they are, maybe today they are outdated, but the version I installed is just a month or so older than my ROM version.

However, it started working like it should all by itself, apparently. I just went into the Car Setting and toggled the Dormancy/Power Off switch for a couple of times, left it on Dormancy, and it started working. Now the Poweramp starts where it stopped. Interesting. :)[/QUOTE]

What model (version) of Citroen C5 do you have?

I drive a C5 X7 (the latest model) from 2012. and I'm using Joying HU in it, so far I have 5 working steering wheel buttons (Vol +, Vol -, Mute, Next, Previous), but I plan on adding functions to all the buttons later on with a hack using Arduino to read the LIN bus messages from the steering wheel.

With my Joying I use the Connects2 CAN adapter model CTSCT003.2.
[Android Head-Units] SlavaNN:
Hello!! Thanks for the work! Please solve the problem when I can not use the standard "answer" and "end" functions in the phone application. It is possible to delete them from the script altogether or at the end of your script, or if the application is running the phone, buttons work only as in the system. Thank you. Sorry, Google translator.
[Android Head-Units] KamaL:
Hello everyone,

I decided to use the mod in order to kill the WAZE app upon, as the app doesn't seem to survive a sleep state and it takes quite a few minutes to make it run properly after starting my car, which isn't convenient at all.

I'm still using the 5.1.1 ROM, and basically the built-in steering wheel settings page

is enough for me, and I don't want to change them.

and I tried the 4.1 one and installed it through the install shell script.

I added the proper to the launcher.sh file:

98) # ACC_OFF - executes on key off
$pause
sleep 5
am force-stop com.waze

At first, the ROM somehow crashed and all app data was reset. Not a big deal, the launcher.sh seem to be saved, but the problem is that all steering key settings were gone, and I can't seem to configure them again through the built-in steeling keys setting page. Specifically, the CALL and END CALL give the same number code once I try to configure them in the joying settings page.

If all I want is to fix the Waze app wakeup issue, and keep the original keys settings and set them up through the joying SETTING app and not through launcher.sh file, how should the launcher.sh file look like?

Thanks :)
[Android Head-Units] cinemusic:
Is there some else simillar to that for px5 unit like JY-UM128P2 ?
[Android Head-Units] surfer63:
I already made a "navigation TTS patch for most navigation apps" version and a "nokill version with the navigation TTS patch for most navigation apps".

I myself do not use the NoKill version. I use the first one. Apps get cleverer and cleverer and so does Android 8. I don't need a nokill anymore.

I don't do the other functionality like the launcher. I simply can't. As soon as a firmware becomes available I will work on rooted and Xposed again.
[Android Head-Units] cinemusic:
Hello. Thank you for your response. The GPSs I use are sygic, navigon and copilot (with igo I don't have any problem).

So if you have a solution for these it would be welcome.

My main issue is that I need my app to stay open even when I switch off the car.

Especially All in one Gestures app and Swapps ( side app drawer) are the ones that I mind the most.

The Android my unit uses is 6.1.
[Android Head-Units] Tumke32:
Did you managed to get these 2 buttons to work?
[Android Head-Units] surfer63:
The Gustden mods are no longer maintained. It is not advisable to use such an old mod on the newer firmwares.
[Android Head-Units] BoxaS:
surfer63, thanks for the work !!!

I also created my launcher.sh, the question arose about the button 28 (HANG). How to make one click to call, two clicks to end the call. Give advice on how to write such a script.
[Android Head-Units] bkdrb:
Hello, newbie here,

I am an Android app developer and have built a radio app designed for Android Head Units. The app works fine, but I don’t know how to map the built-in keys of the Joying Head Unit to my app. I implemented the standard onKeyUp method and handled the KEYCODE_MEDIA_NEXT, KEYCODE_MEDIA_FAST_FORWARD, etc. key events, but apparently they have to be somehow mapped to the same key events of the Head Unit.

I want the users to switch to the next/previous stations using the keys (attached to the) on their steering wheel. I assume that the mappings from the keys on the SW to the HU are working.

I have no experience with the head units and need help with this. Thanks in advance.
[Android Head-Units] gustden:
Just a word of caution, not all the buttons being sent correspond to keycodes that android can use. At minimum you would probably want to assign something to the 27- Talk, 9-NAVI, and 37-Source - (similar to the simple shell script I included ) - if you expect them to do anything. If you look at the simple shell script example, I have cases listed for the keys that do not send the standard android codes.

The home and back are standard key codes, along with the media buttons. Also, with the kill process removed, it greatly reduces the need for the case 99 since the process won't have to be restarted.
[Android Head-Units] gustden:
Attached is an updated Sofia-1-C9-Server-V1.0.apk , this is the original apk with the task kill function commented out and re-packaged. This does NOT modify any keys or buttons.

To install, you need to replace the system file: /system/app/Sofia-1-C9-Server-V1.0/Sofia-1-C9-Server-V1.0.apk

with the one in the zip file and reboot.

Since it is just one file, you can just put it on an sdcard and copy it into place using root explorer, es explorer, or similar type tool. Make sure the file permissions match the original file - which is readable by all. I also suggest to make a copy of the original, just in case you want to revert back.

There were some changes to this package with the recent ROM update from Joying. Please use the correct package for the ROM you are on.

V1 - Built from the Jan 4, 2017 Joying ROM

V2 - Built from Feb 22, 2017 Joying ROM

V3 - Built from Mar 14, 2017 Joying ROM - Includes Navigation TTS patch for radio from [MENTION=2550900]surfer63[/MENTION]
[Android Head-Units] KamaL:
Thanks the the great work!!

I'm also interested in disabling the task kill function only. What should be done to do so using this release?
[Android Head-Units] vinhZ:
1.place it in the right folder and set permissions/ reboot

2.assuming it doesn't touch the soft/hard keys,so it doesn't look for the launcher.sh
[Android Head-Units] Kurt Lund:
Thank you so very much. I will install it when I get home in the evening.

Regards Kurt
[Android Head-Units] dayanandgp:
Just to. Make sure I don't screw up, by placing this file I just get the ability to resume the functions right? My steering wheel controls remain as they are? Thanks a lot :good:
[Android Head-Units] KamaL:
Same question. Do we need to change permissions too?
[Android Head-Units] joshnat:
Thanks, I'll try the debugging version and look at the logcat this weekend.
[Android Head-Units] x3rb3ru$:
Just installed, looks like the last thing I needed to perfect my Joying UL135N2! Finally music just resumes playing after I start car!

If I should come across any bugs or instabilities I'll be sure to post my findings!

Thanks a lot!

(tested on Joying UL135N2 with AutoMate Car Dashboard launcher, BlackPlayer music player & Waze)
[Android Head-Units] dayanandgp:
Hi did you install just the apk which was posted above? Or complete v2?
[Android Head-Units] x3rb3ru$:
Just the .apk, not the buttons, gonna try to customize it for my own apps as soon as I have some free time.

I presume the only benefit of leaving the original apk is ram usage? Probably not really necessary for the 2gb model, or are there any other benefits?
[Android Head-Units] Sergio45:
How did you do The installation? A quick guide Will be really usefull

Thanks in advance
[Android Head-Units] vassandrei:
I'm curious what command i could add to the script which would be the one to invoke the recent apps screen

Edit: Is it

input keyevent KEYCODE_APP_SWITCH
[Android Head-Units] gustden:
I haven't tried it, but it should work :) I always just issue the command in a terminal or in adb before I add it to the script. Just to make sure it does what I expect.

There are a couple that I have run across that DO NOT work on our headunits. For example:

5 - KEYCODE_CALL

6 - KEYCODE_ENDCALL

26 - KEYCODE_POWER
[Android Head-Units] dayanandgp:
Simply copy and paste the file using file Explorer in correct folder. No installation...

You Need to have root by the way..
[Android Head-Units] x3rb3ru$:
Just check post #62 on this thread
[Android Head-Units] Sergio45:
Thanks. The folder is system/priv/apps?

Do we have to change permissions or owner in The apk file?
[Android Head-Units] nyogtha:
Just what I was looking for. Thanks. Downloaded it directly on my HU. I couldn't install it (copy the file) with E's explorer, but with Root Explorer it worked nicely. Mount partition R/W, then copy over the old file, remount read only. Reboot. Done. :good:
[Android Head-Units] x3rb3ru$:
Root explorer asked me to change the permissions when overwriting the file, so should be presented automatically