yashsingh1/xdaforums huggingface dataset:
[FYT Android Head Units] warata:
Thank you very much!:good:

By the way I already using your sample command "input keyevent 127; echo -n "h" > /sys/fytver/colorled"

How can I add WiFiOff.apk on this? Is that possible

"input keyevent 127; echo -n "h" > /sys/fytver/colorled; WiFiOff.apk" like this?

Thanks
[FYT Android Head Units] surfer63:
No, if you do it via the system call you need to use:

"input keyevent 127; echo -n "h" > /sys/fytver/colorled; am start org.hvdw.wifioff/.WiFiOff"

and for on: am start org.hvdw.wifion/.WiFiOn
[FYT Android Head Units] warata:
Thanks Wi-Fi off works but Wi-Fi on doesn't work (manually launch is OK).

Is this something wrong for Wi-Fi turns on?

input keyevent 126; echo -n "b" > /sys/fytver/colorled; am start org.hvdw.wifion/.WifiOn
[FYT Android Head Units] surfer63:
Sorry for the typo. Not "am start org.hvdw.wifion/.WifiOn"

but "am start org.hvdw.wifion/.WiFiOn"

Uppercase character F instead of lowercase character f.
[FYT Android Head Units] warata:
Ah, I did not see at all and I was just copying and pasting.:p

I can not mention connectivity yet, but the Wi-Fi resume function has worked now.

Thanks
[FYT Android Head Units] warata:
Hi surfer

A little embarrassing question...what kind of situation is "coming out of resume"?

I could not understand the meaning even using Google translation.:p

Thanks
[FYT Android Head Units] unisev:
I didn't find a way to do that... also, is there a way to remap the volume button ?

It actully mute volume (ON/OFF), and I prefer to map it like a PAUSE button.
[FYT Android Head Units] surfer63:
I can't remember exactly anymore and couldn't find it back.

So now from my vague memories.

Resume is normally the state a phone takes when you press the on/off button after it had gone to sleep, so after xy minutes or because you pressed the on/off button to get it to sleep.

On our systems that is overruled by the ACC_ON and ACC_OFF.

The only exception being that when you switched off the contact (the ACC_OFF) and you switch on the contact (the ACC_ON) within 4 minutes (or so). In that case you awake Android from resume as Android was already "sleeping", but the total hardware was not yet switched off. Next to that our units have the "kill_all" command as well, which simply kills all apps before switching the whole unit to deep-sleep. So again, the resume will not really take place apart from a number of Joying apps.

Of course, the "no-kill" option in the XFytTweaker (XSofiaTweaker) disables this "no-kill" function/method again.

So actually the Resume option is quite useless unless you have nokill set to active, and you have the habit to turn on the contact again within approx. 4 minutes.
[FYT Android Head Units] surfer63:
There are ways to find the process id of active apps, and then you can check "if package name == ....".

But the question is: why do you want to know?

The play/pause/stop/ffw/fbw action events act on the active media player, be it spotify, joyings media player, the video player, pulsar/jet-audio/poweramp/vlc/etc.

Your question for the Volume button has been asked before by [MENTION=2946605]IG_Vasilich[/MENTION]. I assume it is absolutely possible but I did not look into it yet (and will probably not in the coming time).
[FYT Android Head Units] warata:
Thank you for reply.

Even without using that function, XFytTweaker you made maximizes the value of our FYT-PX5.

By the way I found this in some Q&A blog.

$ am start -c android.intent.category.HOME -a android.intent.action.MAIN

This shell command works as "input keyevent 3" and it reacts much faster than the original keyevent command (I confirmed with the my FYT machine).

Do you know the meaning of this command?

Is it possible to rewrite keyevent 4<back> and keyevent 85<play/pause> in the same way?

Thanks
[FYT Android Head Units] surfer63:
I still can't make it work the old way. I almost twice bricked my radio in my attempts. I'm out of clues right now. I still have one idea that I will try. But it means again a lot of rewriting. (And I'm next week on holiday.)

And one more combined question: Until now I only heard two users complain here about the volume behavior. Are there more users or not, and on which device (sofia or px5)?
[FYT Android Head Units] etrefal:
No worries. I'm staying with XsofiaTweaker for the time being.
[FYT Android Head Units] unisev:
Hello,

Is it possible to remap de volume button (not the pot) ?
[FYT Android Head Units] mariof:
Hi,

I have PX5 unit (not Joying) in my car (Mazda 6 3rd Gen). I have installed Joying FYT firmware and rooted using surfer63 method. Xposed is also installed. SWC is controlled by Canbus as well as the knob/commander in the centre console. I have managed to change Audio button from equalizer to 1-tap Music apk and on double tap to Radio apk.

Am I able to tweak the rest of the commander buttons using the px5 tweaker? For example 'Phone' button does not do anything but I would like to assign Bluetooth apk also the knob Up/Down buttons only work in Radio apk but I would like to assign Prev/Next for Music apk as well.
[FYT Android Head Units] kampfschachtel:
I have the "mode" button on my steering wheel, with which I can switch through a given list of apps. How can I modify the apps and order in that list?

Was done somewhere/how in combination with the hardware buttons on the joying, but how? cannot find it anymore

Is it part of FYTtweaker mod, if not could you add it?

Thanks.
[FYT Android Head Units] surfer63:
The MODE/SRC button is not under "Assign app or action to hardware buttons", but under "Assign app or action to steering wheel buttons".

It allows for single/double/triple tap, but not "rotating choice".

I do not have steering wheel buttons. It is impossible for me to do good analysis to this to make it a rotating option.

.
[FYT Android Head Units] kampfschachtel:
its enough for me if I can change the three apps that are behind a single/double/triple click. by assigning it I can also define the order i want them to come up using the button.

This is included in the xfytTweaker? just downloaded it and will install soon.

Could you modifiy it so instead of triple click there are 5 clicks and therfor 5 apps?

I want use this mainly on the track to switch between the lap timer, torque pro and OBD diagnose app without taking hands of the wheel.
[FYT Android Head Units] surfer63:
Yes, it is simply first app, 2nd app, 3rd app.

Theoretically yes, but timing might become a problem with 5 taps.

And although it is not difficult to implement, it is a huge amount of work.

Did you have a look at the 2nd post which contains some mini-HowTo?
[FYT Android Head Units] kampfschachtel:
Thanks surfer. Then forget the 5 Klick one, 3 is ok too.

Printed out the whole post 2 and 3, so I have a guidance how to when I do it in the car. Not so easy anymore to get it out, so i cannot do all the mods at the desk at home anymore with my PC and fast internet aside as I done it before.
[FYT Android Head Units] kampfschachtel:
Thanks so much surfer, your XFytTweaker is a genius piece of software for the joying. Makes everything much easier and smoother.

Assigned the 3 apps to the mode button and works like a charm. Also all the other functions build in.

Get a cold start with the kill function on so some apps set a wakelock. Will fixed it like you describe and I am sure that will work painless too.
[FYT Android Head Units] mcwieger:
I've been on a stable release of the standard Joying software for a while now (I believe January 2017, Android 6), no complaints at all.

Except for one thing: the GPS issue (mi/h vs km/h), which is fixed in the GPSSpeedFix module.

I'd rather not run the risk of having to set up my unit again for this small issue. Therefore: given the updates on the Joying Root Assistant, is installing the Xposed framework still a (considerable) risk on the latest version? Or do user experiences prove the risk is minimal?

For those suggesting moving to a custom rom: I appreciate the Joying functionality to downclock the CPU speed automatically when it overheats, so I'd like to keep using the Joying rom (single DIN unit, no place to build a fan).
[FYT Android Head Units] surfer63:
With regard to installing Xposed from the JET apk: I still don't know why it works for one user on Sofia and not for another user , so I consider it still experimental (please note that Xposed install is "STABLE" on PX5).

W.r.t. the gtxaspec custom rom: It is indeed setting the scaling_governor to performance, which locks the unit at its max CPU frequency. The Sofia still allows for throttling as the intel software still throttles down the unit when it gets too hot, but gtxaspec disabled the ituxd server so that is not working. That is the only thing I don't like about that custom ROM. The safety options against overheating are switched off. In case your fan fails you have a melted CPU/motherboard in 60 seconds. And Joying would certainly tell you that it is out of warranty (which I fully understand).

Personally I would set it to "Interactive Governor" and leave the ituxd service in place.

It is only 20 lines of script in the install-recovery.sh and I have been thinking to add an option in the JET apk to remove those lines, reactivate ituxd (not relevant for PX5 as ituxd is an intel service) and set the governor ot interactive.
[FYT Android Head Units] surfer63:
With regard to installing Xposed from the JET apk: I still don't know why it works for one user on Sofia and not for another user , so I consider it still experimental (please note that Xposed install is "STABLE" on PX5).

W.r.t. the gtxaspec custom rom: It is indeed setting the scaling_governor to performance, which locks the unit at its max CPU frequency. The Sofia still allows for throttling as the intel software still throttles down the unit when it gets too hot, but gtxaspec disabled the ituxd server so that is not working. That is the only thing I don't like about that custom ROM. The safety options against overheating are switched off. In case your fan fails you have a melted CPU/motherboard in 60 seconds and your unit would be completely dead. And Joying would certainly tell you that that is out of warranty (which I fully understand).

Personally I would set it to "Interactive Governor" and leave the ituxd service in place.

It is only 20 lines of script in the install-recovery.sh and I have been thinking to add an option in the JET apk to remove those lines, reactivate ituxd (not relevant for PX5 as ituxd is an intel service) and set the governor to interactive.
[FYT Android Head Units] warata:
onekeynavi

Hi suffer

I found that onekeynavi will not work properly after installing FytTweaker.

If you repeatedly press the NAVI key in the original state, the specified navigation application and the application that was being executed last time will appear alternately.

But after install FytTweaker, you can not call the application you used just by calling the NAVI application with the NAVI key.

Can you fix it?

Thanks
[FYT Android Head Units] surfer63:
No, I can't.

What happens is that the Navi key is triggered by sofiaserver/main_server, and this function calls either the onekeynavi.apk or the alternate apk.

The Xposed hook in in sofiaserver/mainserver is bypassing this entire function and replacing it with a new call. Unfortunately for you that means that the alternate functionality of the Navi key no longer works.

But you can "fix" it: The option to "fix" this behavior is to leave the "string to be used" empty. In that case XFytTweaker will skip the hook and execute the original function. Then you have the double behavior of the NAVI button back.
[FYT Android Head Units] warata:
Thank you for your suggestion.

I tested that leave the "string to be used" empty. Unfortunately the results NAVI key no longer works.
[FYT Android Head Units] surfer63:
I'm afraid you are right. That was how it worked in the XSofiaTweaker. Android 8 requires a different handling of this and the check takes place at a later stage. I will check that.
[FYT Android Head Units] packyman:
is there a way to detect a coldboot e.g. after reset? I have some tasks to do, but only after a coldboot no on every ACC_ON.

btw whats the different between resume and ACC_ON?
[FYT Android Head Units] trueppp:
Some keys on my steering wheel are not showing in Xfytweaker (Next and Back) they only work in the radio app...anyway to get them to show?
[FYT Android Head Units] surfer63:
Next/Back are indeed not captured in XFytTweaker. Note as well that Next/Back work on quite a deep level.

You say that Next/Back only work in the radio app. From that I conclude they do not work in media apps. That has nothing to do with XFytTweaker.

Next/Back are really "general" keys which should work in all apps that support play/pause/skip_next/skip_previous.

If that is not the case, you have another issue.
[FYT Android Head Units] trueppp:
Ok thank you, I'll have to check, maybe my MCU mismatch issue is causing problems.
[FYT Android Head Units] surfer63:
Correct CAN bus settings?

Steering wheel buttons go via the CAN bus if you have a CAN bus.
[FYT Android Head Units] yuvalmesika:
[MENTION=2550900]surfer63[/MENTION]

the feature to prevent the Bluetooth app from being on top, is it possible to do the same for the smaller view of the Bluetooth app (the one that appears above the navigation app)?
[FYT Android Head Units] surfer63:
That one is from the navigation app itself. Many nav apps have that nowadays. If you reinstall your nav app and it requests permission to answer/do phone calls, then you know it has that.

I use OSM nav apps and I know OsmAnd and Magic Earth do that as well.
[FYT Android Head Units] yuvalmesika:
[MENTION=2550900]surfer63[/MENTION] I'm using Waze...

I talking about joying Bluetooth app that have 2 modes, one full screen the other is on call half screen view.

So with your Xposed module I can send the full screen to the background when I'm on call, but the half screen view I can't it still always on top.
[FYT Android Head Units] surfer63:
So you are using the Baloo mod?
[FYT Android Head Units] yuvalmesika:
No Baloo mode makes the half screen view smaller (removes the numbers from the view), I am using the default Joying Bluetooth app without a mod.

The half screen view is activated when you are in a call and the navigation app is running (only if you declared the navigation app in Joying device settings).

I guess the Xposed module only work on the regular view(full screen) and prevent it from being always on top,

Do you think it possible to make the same behavior for the half screen view?
[FYT Android Head Units] edit:
+1

I would love that too !
[FYT Android Head Units] trueppp:
When I try to select my correct can bus, it says it has the files but then errors out
[FYT Android Head Units] reckert:
Hi- I tried this on the PX5 with the latest rom that actually has Android Auto working. It appears that the app still pops on top during a phone call. If I can block this from popping on top, i can actually use the microphone mute button when driving so people I am on calls with don' t hear me swearing at other drivers . :D
[FYT Android Head Units] Wijt:
[MENTION=2550900]surfer63[/MENTION] is it possible to connect key 163 previous and 165 next to a button on the steering weel.

Somehowe Joying changed the keys for next/previous,so they work for the standard apps but not for Poweramp,Spotify or any other app .

I contacted them about it and they say I have to downgrade to get them working again,Strange.

thanks for a response
[FYT Android Head Units] surfer63:
I assume it is possible but I don't have steering wheel keys. I already mentioned a few times that I don't want to work on things I can't use myself and which I can't test myself. The testing back and forth with a user would take way too much time.

It is open source. Everybody can contribute. One user already did that for this usb-dac volume control (I don't have a usb-dac either).

It is not personal. It is just way too much work that way.
[FYT Android Head Units] Wijt:
Thank you for the reply.

I will try to change a couple of things to see if it's works.

Could you please tell me whatt the standard intent for the BT PHONE is in the XFytTweaker module is.

I accendentley erased it and forgot to write it down

thanks
[FYT Android Head Units] surfer63:
In the preferences file are a number of defaults. See here for BT.

The "root" link is https://github.com/hvdwolf/XFytTweaker
[FYT Android Head Units] HaTeNL:
Where can I found a compiled version of GPSPeedFix? I also cannot find it in JET
[FYT Android Head Units] surfer63:
GpsSpeedFix can only be installed on a Sofia 3GR and only when you have Xposed installed. The JET apk checks for both situations.

The speed is correctly determined on the PX5, so on a PX5 it is totally useless and might do more wrong than good (and you still need Xposed).
[FYT Android Head Units] HaTeNL:
Hmm I'm pretty sure it is not correct, or my Samsung S8 is not correct.. The radio gives a higher speed than my S8: At 130km/h on the radio, the S8 says 140km/h. Needs further investigation.
[FYT Android Head Units] surfer63:
That is your CAN-bus speed. If you have a CAN bus, your unit will use the speed from the speedometer of your car. If you disconnect the CAN bus, you will see that the speed is calculated via the GPS of the unit and most probably it is the same as your S8.

Besides: the issue with the Sofia is not too high or too low speed, but speed steps are only displayed down/up in 4 km steps and not in 0.5 or 0.8 or 1.2 or whatever. The Sofia uses integers to calculate from meters per second to kilometers. This is actually a factor of 3.6, but rounded (being an integer) to 4 km steps.
[FYT Android Head Units] HaTeNL:
The speed given on the unit is indeed exactly the same as on the speedometer from the car. I do have a Canbus box, but it is still not connected how it should be, as I told you :)

Then how does it communicate with the radio?
[FYT Android Head Units] surfer63:
Some data is pretty standard and (almost) always the same like engine RPM, speed, fuel level in tank, engine water temp and probably other data as well. This is also the reason that these low-cost (bluetooth) OBD dongles/devices can be plugged into any car to read those basic "things".

Of course every brand has its own additions to the standards, but please don't ask which data as I do not know either, but I assume SWC, "board computer" and the like.
[FYT Android Head Units] HaTeNL:
Ah it appears I'm not clear. This is not what I mean. I currently do not have any data lines connected. This is my setup:

The CAN H and CAN L come from the car, but they are not connected to the radio (joying connector). Also, the RX and TX from the canbus box are not connected since I don't know how. If the speed now comes from the car (to the radio), how does it happen? Maybe some voltage fluctuations on one of the other lines?
[FYT Android Head Units] R4m80:
I'm sure I saw this before, but I cannot find it now. How do I set the WiFi to go on automatically when acc_on. I'm not exactly sure how to set it up. In xFytTweaker I select ACC_ON: Call method as ? and string to be used ?
[FYT Android Head Units] surfer63:
post #503. You need to install the wifi on/off apps via JET apk. That one also explains how to activate them.
[FYT Android Head Units] R4m80:
Thank you. Will give it a go.
[FYT Android Head Units] timbiotic:
Is there a way to make Bluetooth audio trump radio audio if I'm using my phone for directions? I have to disable Bluetooth right now to get audio if I want to listen to radio. But then I lose hands free calling
[FYT Android Head Units] surfer63:
I do not know, but why don't you use "some" navigation app on your head unit for directions?

If you need online directions or traffic info or the like you can either hotspot over bluetooth from your phone to your unit, or wifi hotspot from your phone to your unit. That is what multiple users are doing including myself.

Note that bluetooth hotspot streaming is max 1.5MBps, but for traffic info and directions that is more than enough.

And bluetooth is a low energy protocol compared to WiFi. Note also that the real BT LE is not supported by the units.
[FYT Android Head Units] timbiotic:
What bluetooth hotspot app do you use? I didnt think the joying would tether using bluetooth. Would that support spotify/streaming music and directions?

I tried a wifi vpn from secureTether but google maps kept having blank map spots and disconnects. I dont have the hotspot plan on my unlimited plan. I've thought about getting MetroPCS smartride which is dirt cheap for 2gb/month. But i keep reminding myself that my phone does all this already...
[FYT Android Head Units] surfer63:
I can't say anything about not being able to use hotspot from your supplier plan, but for any other situation:

Do not start by using an app for it, simply use your builtin Android options from the Settings screen. When that's all working you can optionally switch to "some" app or use tasker or so, to do it automatically.

Bluetooth up to 4.0 is 1.5MBps within 1.5 meter range. That is more than sufficient to stream 320 Kbps mp3 or max 512 Kbps ogg music. Flac music in 1412 Kbps might struggle with it, but I have my music also on my head unit (on an sdcard) so I never tested that.

Instructions and the like are really low bandwidth.

Some users experience unstable bluetooth connections. That might disturb instructions and the like. I personally (and fortunately) don't have that.
[FYT Android Head Units] VBA_Dev:
Is it possible to use the acc_on and resume logic in xfyttweaker to create a custom notification?
[FYT Android Head Units] surfer63:
Do you mean a toast message?

If so, take a look at this post.

And otherwise: please explain.
[FYT Android Head Units] VBA_Dev:
Perfect, many thanks ?
[FYT Android Head Units] HaTeNL:
What settings do you mean? Because I can't find any setting to enable Bluetooth tether on the head unit.
[FYT Android Head Units] surfer63:
What is it that you want?

A Bluetooth tether hotspot from your phone to your unit?

Or a BT thether hotspot from your unit to your phone?

If you tether from your phone it is in your phone's settings. The unit will then automatically connect.

I do not know how to do that from the unit, being the host sharing its BT hotspot to the phone.
[FYT Android Head Units] HaTeNL:
I want to share my phones Internet using Bluetooth tether. Now I always enable WiFi hotspot on my phone.

I don't see the radio here in the settings (see screenshot)

Also on the radio I don't see any settings for this
[FYT Android Head Units] surfer63:
You first need to couple your unit and phone via bluetooth.

Then on your phone you set your hotspot and enable "bluetooth tetering" on your phone.

Then the unit can access the internet over bluetooth via the broadband of your phone.
[FYT Android Head Units] HaTeNL:
Unfortunately that's not working on my device :(

You also have a px5 fyt unit right?
[FYT Android Head Units] surfer63:
Yes, but I simply use WiFi tethering. When my wife and/or daughter travel(s) with me, they/she use(s) my hotspot as well.

But on second thought it might be still the same bug as reported here.

At that time I checked/tested it, but I already forgot I did. :)
[FYT Android Head Units] dingmel:
Posted in error. Apologies !
[FYT Android Head Units] marcurelio:
Hi, @surfer63. It's been a long time. Recently my unity (a Zhan PS5 with which you helped me a lot back in 2019) stopped responding to some of the physical buttons. I then installed the factory firmware, installed Joying Extra Tools, rooted, installed Xposed. Before this issue, I had set the DVD button to open Spotify with one click, and Google Podcasts with two clicks. Now it doesn't work. I have FytHWOneKey installed. With it, I was able to set the AUX button to open PowerAmp, but not the DVD button. Is there anything I'm doing wrong?