Software Development Modded syu.ms.apk

Search This thread

seb21

Senior Member
Feb 9, 2019
90
63
Hi all.
This syu.ms.apk mod main function is to extend control of steering wheel controls (CAN based) plus some extra.
It is two part mod :
- factory com.syu.ms.apk must be replaced with this modded syu.ms.apk - easiest way is to use lsec mathod . If you don't know how see post #15
- Mod Config App (install like every apk ) - the configuration tool for this mod.
For more information please read user manual.txt

Change log :
- added possibility to assign intents to buttons.
- Config App : added UI for vertical screens
26.01.2023 :
- added possibility to use up to 5 different user apps lists
- added possibility to use you own order of app in the carousel.
- added external assets files. I attached a zip file with all used assets. - This is based on @mariodantas idea
01.02.2023
- added system property for @mariodantas project.
17.02.2023
Only the syu.ms.apk !!!
- added a intent receiver to inject system wide key events.

I also decide to put here a test version with ability to assign to SWC screen touch actions. Info about this is text file inside the .zip

As there is no point to maintain two different versions of syu.ms.apk files i will use the newest, for now is from the joying firmware (04-11-2022)

For now i am working on rewriting the whole settings app.
For translations thanks to :
@muzoss - German
@daviddosa - Hungarian
@mariodantas - French
@surfer63 - Dutch
 

Attachments

  • ms_mod_prop.zip
    7 KB · Views: 116
  • Mod Config App.apk
    4.5 MB · Views: 213
  • 190000000_com.syu.ms.apk
    3.9 MB · Views: 127
  • user manual.txt
    5.7 KB · Views: 138
  • test version.zip
    7 MB · Views: 88
Last edited:

daviddosa

Senior Member
Sep 21, 2015
323
195
Livingston
OnePlus 3
OnePlus 5
[...]
And i have a question. Maybe someone of you can help me.
I try to make my dashboard display to show navigational data (distance,directions, e.t.c) - so far no success. I have 2 canbus boxes : simplesoft (XP) and raise (RZC) .Do someone of you know a place where i can get the full functions list for the canboxes ???

Thank you so much for the tag, and also for the modified apk. Can't wait to try it out tomorrow.

As for your question:
Does that kind of dashboard panel support the displaying of the navigation data? Even if it looks like it should, there could be different hardware and software revisions of the display with different functionalities.
When I upgraded my display first time in my Peugeot 308, I made a mistake of not checking the actual software number on the back of the new unit. While some of the functionality was present, I wasn't able to connect the radio bluetooth (yes, the radio, which is a separate unit) because of the old software on the display.
 

seb21

Senior Member
Feb 9, 2019
90
63
Thank you so much for the tag, and also for the modified apk. Can't wait to try it out tomorrow.

As for your question:
Does that kind of dashboard panel support the displaying of the navigation data? Even if it looks like it should, there could be different hardware and software revisions of the display with different functionalities.
When I upgraded my display first time in my Peugeot 308, I made a mistake of not checking the actual software number on the back of the new unit. While some of the functionality was present, I wasn't able to connect the radio bluetooth (yes, the radio, which is a separate unit) because of the old software on the display.
Yes,it does. I have Leon 3 and with the original multimedia station i had the possibility to display navigational data on the dashboard. As i switched to android unit first i had simplesoft canbox and i was able to send media info but not navi nor compass. On their web site (only chinese) there is info that my canbox can send navi data to the dashboard. But there are not one piece of documentation. Now i have raise and from start the compass started working but still no navi.
 

seb21

Senior Member
Feb 9, 2019
90
63
@seb21 I think this one is still killing apps

public static void h(String str) { ActivityManager n = ae.n(); try { if (str.startsWith(":")) { str = str.substring(0, str.indexOf(":")); } if (!p.a(str)) { k(str); n.forceStopPackage(str); a.o.c.a(str); } } catch (Exception e2) { e2.printStackTrace(); } }

File smali/app/aj.smali
It's not.
killAppWhenSleep() -> KillAllAppButSome() -> killApp(String)
Class aj n() -> o() -> h(String)
I call in n() my method that calls (or not) o()
I'm using h(String) to kill aps in the user sources (kill switch)
I see the difference on my unit. When i switch on No Kill then after evrey sleep my unit is performing boot, probably because i have low end unit UIS 8581 with only 2 gigs of RAM.
 
Last edited:
  • Like
Reactions: mariodantas

surfer63

Senior Member
May 4, 2010
4,734
2,261
Zwolle
github.com
Hi all.
I decided to make separate thread with my modded ms.apk.

@surfer63 Please change the link in your first post. I will no longer clutter your thread. It is to help people with different problems. :)

And i have a question. Maybe someone of you can help me.
I try to make my dashboard display to show navigational data (distance,directions, e.t.c) - so far no success. I have 2 canbus boxes : simplesoft (XP) and raise (RZC) .Do someone of you know a place where i can get the full functions list for the canboxes ???

I changed the link.

Thanks for this great contribution.
I don't consider something this useful as cluttering of "my" thread, but it is indeed better to separate it so that your app gets the attention it deserves.

I have read somewhere about a person who had an arduino connected to read all CANbus codes. I already searched frantically the last hour, but could not find it. I will continue my search.
 

seb21

Senior Member
Feb 9, 2019
90
63
I changed the link.

Thanks for this great contribution.
I don't consider something this useful as cluttering of "my" thread, but it is indeed better to separate it so that your app gets the attention it deserves.

I have read somewhere about a person who had an arduino connected to read all CANbus codes. I already searched frantically the last hour, but could not find it. I will continue my search.
Thanks.
But don't waste your time on this. I have searched this forum on every topic related to canboxes and i have not found nothing that could help me. Beside this can loggers is not what I'm looking for. Unfortunately canbox functions having nothing common with can bus commands - different canboxes have different command ID for the same can bus commands ID
 

surfer63

Senior Member
May 4, 2010
4,734
2,261
Zwolle
github.com
And the Dutch translation.

I have the idea that "User Apk" is not yet a translatable string (but I suppose everyone can translate that)

And the original English <string name="Out_Of_Range">Argument of out integer range !!!</string>
should be "Argument out of integer range", but personally I would have used "Argument outside integer range"
 

Attachments

  • strings-nl.xml
    3.6 KB · Views: 16

seb21

Senior Member
Feb 9, 2019
90
63
And the Dutch translation.

I have the idea that "User Apk" is not yet a translatable string (but I suppose everyone can translate that)

And the original English <string name="Out_Of_Range">Argument of out integer range !!!</string>
should be "Argument out of integer range", but personally I would have used "Argument outside integer range"
Thanks. File updated.
And i also added whole buttons names list to strings file.
Thanks for pointing me this mistake.
 

stealthee

Senior Member
Dec 15, 2007
328
81
Does anyone know how one would install this? And other note would this allow me to change the default action from pressing the volume button on the car. right now it turns off the screen. but leaves the sound on. If i press the power button on the radio itself on the side it turns the screen off AND mutes it. Thats what I want the volume button to do. Just like it used to do with the OEM radio.
 

daviddosa

Senior Member
Sep 21, 2015
323
195
Livingston
OnePlus 3
OnePlus 5
Does anyone know how one would install this? And other note would this allow me to change the default action from pressing the volume button on the car. right now it turns off the screen. but leaves the sound on. If i press the power button on the radio itself on the side it turns the screen off AND mutes it. Thats what I want the volume button to do. Just like it used to do with the OEM radio.

I have packed everything into this ZIP file. All you need to do is to unpack it directly onto a FAT32 formatted USB drive, plug the drive into your headunit, and wait for it to install.

The installer will make a copy of the original file into the "backup" folder.
In case something goes wrong, and you want to restore the original file, all you need to do is to copy the files 7862lsec.sh and 8581lsec.sh from lsec_updatesh\restore_script to lsec_updatesh to replace the already existing ones.
Once done, just unplug and plug back in the USB storage and wait for it to complete.

If you want to write the code for yourself, use the commands below.
Save it as 7862lsec.sh and also as 8581lsec.sh

Copy modified to system
Code:
#make backup to "backup" folder on USB storage
cp -rf /oem/app/190000000_com.syu.ms/190000000_com.syu.ms.apk  /storage/sdcard1/backup/190000000_com.syu.ms.apk

#copy modded file from USB storage to headunit
cp -rf /storage/sdcard1/190000000_com.syu.ms_modded.apk /oem/app/190000000_com.syu.ms/190000000_com.syu.ms.apk

#set ownership and permissions
chown -R 0.0 /oem/app/190000000_com.syu.ms/190000000_com.syu.ms.apk
chmod 0755 /oem/app/190000000_com.syu.ms
chmod 0644 /oem/app/190000000_com.syu.ms/190000000_com.syu.ms.apk

Restore original
Code:
#restore backup from "backup" folder
cp -rf /storage/sdcard1/backup/190000000_com.syu.ms.apk /oem/app/190000000_com.syu.ms/190000000_com.syu.ms.apk

#set ownership and permissions
chown -R 0.0 /oem/app/190000000_com.syu.ms/190000000_com.syu.ms.apk
chmod 0755 /oem/app/190000000_com.syu.ms
chmod 0644 /oem/app/190000000_com.syu.ms/190000000_com.syu.ms.apk

File updated on 06/11/2022 22:47 GMT
Installers added for JOYING and MEKEDE separately, updated with newer files on 21/12/2022 20:09 GMT
 

Attachments

  • Modified_syu.ms_Installer_MEKEDE_21.12.2022.zip
    8.4 MB · Views: 145
  • Modified_syu.ms_Installer_JOYING_21.12.2022.zip
    8.5 MB · Views: 100
Last edited:

seb21

Senior Member
Feb 9, 2019
90
63
Does anyone know how one would install this? And other note would this allow me to change the default action from pressing the volume button on the car. right now it turns off the screen. but leaves the sound on. If i press the power button on the radio itself on the side it turns the screen off AND mutes it. Thats what I want the volume button to do. Just like it used to do with the OEM radio.

You can't change the functions of Vol Up and Vol Down buttons, all others buttons you can change.
 

stealthee

Senior Member
Dec 15, 2007
328
81
You can't change the functions of Vol Up and Vol Down buttons, all others buttons you can change.
its the volume up volume down knob but if you press it . oem radio would turn off the oem radio. With this head unit it leaves the volume on and turns off the screen. Would like it to mute and turn off the screen the android unit power button on the top left if i touch that it turns off the screen and mutes.
 

daviddosa

Senior Member
Sep 21, 2015
323
195
Livingston
OnePlus 3
OnePlus 5
its the volume up volume down knob but if you press it . oem radio would turn off the oem radio. With this head unit it leaves the volume on and turns off the screen. Would like it to mute and turn off the screen the android unit power button on the top left if i touch that it turns off the screen and mutes.
When you install the app and also the modified app, you will be able to see what action is assigned to the volume button press. It's only the volume up and volume down actions which are locked, the rest should be configurable.
Do you have a CANBUS decoder, or you had to connect the Key1 Key2 wires?

It's easy to install using the method in my previous post, and also gives you a backup in case something goes wrong.
 

seb21

Senior Member
Feb 9, 2019
90
63
its the volume up volume down knob but if you press it . oem radio would turn off the oem radio. With this head unit it leaves the volume on and turns off the screen. Would like it to mute and turn off the screen the android unit power button on the top left if i touch that it turns off the screen and mutes.
Pressing the volume knob sends signal Black Screen (or something like that), and yes you can assign to it function Power
 

stealthee

Senior Member
Dec 15, 2007
328
81
When you install the app and also the modified app, you will be able to see what action is assigned to the volume button press. It's only the volume up and volume down actions which are locked, the rest should be configurable.
Do you have a CANBUS decoder, or you had to connect the Key1 Key2 wires?

It's easy to install using the method in my previous post, and also gives you a backup in case something goes wrong.
I have a canbus decoder . Silly Dodge Journey. Without a decoder I was stuck with a OEM radio.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    @seb21 do you have any hopes of Analogue steering wheel modification being implemented, or perhaps that requires MCU code change as MCU handles analogue buttons?
    The analogue buttons are handled in MCU and ms.apk. MCU reads the analogue value of pressed button and send it to ms.apk as learned key code. The problem is that in Ms APK are only three places where key codes are handled (can, unit and analogue ?) , But it is not working.

    I must add to my unit analogue button ( at least one) to look closer to this problem.
    1
    hi I installed it on a joying unit useing method from #15 but cannot find the setting? or the app itself, Am i missing somthing? TIA
    Hi. The syu.ms.apk is not visible in launcher, it's a system app that is working all time in background.
    The setting app you must download from this thread and install it like every other android APK.
    1
    Will this work on an Atoto unit that uses resistive swc wires?
    I want to set a button to launch an app and the built in config screen doesn't have that option.
    As i was informed by some users
    the analog SWC (resistive) is not working right now.
    1
    @seb21

    Thanks for this great app,

    I took the risk and installed it on a fyt-based device whose manufacturer I do not know ( sc9853, android 8.1).

    Only the "mode" button on the steering wheel can be assigned, even that is enough for me.

    However, the bottom side of the application is not visible on the 1024x600 resolution screen (160dpi). I added the picture. How can I fix this?

    View attachment 5867113

    I have one more question for you.

    I can't assign the "google assistant GO" app to a long press of the Mode key. Because this application does not appear in the application list.

    How can I assign the "google assistant GO" application to a long press of the Mode button? Is it possible to do it with "intent"?

    (The "google assistant" app is not making phone calls, so I have to use the "google assistant Go" app.)
    Can you help me with this?
    Hi.
    However, the bottom side of the application is not visible on the 1024x600 resolution screen (160dpi).
    As the Config app is based on android "density pixels" the only solution is to lower your dpi, around 100 dpi should be enough. I''m currently rewriting the app but it is long road before me - so no other solution from my side right now.

    Because this application does not appear in the application list.
    This app is visible as "Assistant" (not "Assistant go")in system, and should be visible on apk list in Config app. I have checked that in emulator.
    Let me know if you still can't see it.

    And for the risk installing any ms.apk on any FYT device : there is no risk, if it will not work properly or it will crash you can always install back your "good version" .
  • 7
    Hi all.
    This syu.ms.apk mod main function is to extend control of steering wheel controls (CAN based) plus some extra.
    It is two part mod :
    - factory com.syu.ms.apk must be replaced with this modded syu.ms.apk - easiest way is to use lsec mathod . If you don't know how see post #15
    - Mod Config App (install like every apk ) - the configuration tool for this mod.
    For more information please read user manual.txt

    Change log :
    - added possibility to assign intents to buttons.
    - Config App : added UI for vertical screens
    26.01.2023 :
    - added possibility to use up to 5 different user apps lists
    - added possibility to use you own order of app in the carousel.
    - added external assets files. I attached a zip file with all used assets. - This is based on @mariodantas idea
    01.02.2023
    - added system property for @mariodantas project.
    17.02.2023
    Only the syu.ms.apk !!!
    - added a intent receiver to inject system wide key events.

    I also decide to put here a test version with ability to assign to SWC screen touch actions. Info about this is text file inside the .zip

    As there is no point to maintain two different versions of syu.ms.apk files i will use the newest, for now is from the joying firmware (04-11-2022)

    For now i am working on rewriting the whole settings app.
    For translations thanks to :
    @muzoss - German
    @daviddosa - Hungarian
    @mariodantas - French
    @surfer63 - Dutch
    4
    If anyone wants to update their translation i updated the strings.xml file in first post.
    New versions of Config App and syu.ms i will post tomorrow .
    4
    I have updated the installer to include the new ModConfigApp and newer versions of modded syu.ms.apk.
    Find it in post #15.
    4
    Hi everyone.
    New versions available . Updated first post.
    3
    As i see if you replace ms.apk with another for example my modded version and it is not working there can be only one explanation : system for some reason (different signature ???)has not updated Dalvik Cache- therefore it still using old app.

    Do you know a way (without root) to force the system to clear/rebuild Dalvik ?
    Yes, I just explained that in another post if you flash a single app.
    See post #1250 from the "General FYT based Spreadtrum uis7862 etcetera" thread.
    For the com.syu.ms it should be
    Code:
    # Remove the current app data/program cache/cache
    rm -rf /data/dalvik-cache/profiles/com.syu.ms
    rm -rf /data/data/com.syu.ms
    rm -rf /data/dalvik-cache/arm64/*com.syu.ms*

    Edit:
    The relevant dalvik files are actually:

    A lot of users know my HWGetinfo.apk by now, but personally I use a flashable lsec script to do this as it gives much more info. I will add some informational text to it and share it in "my" thread.