Hello, I want to ask about two missing work arounds in the situations app.
I solved the following work arounds which not work before but two I can’t solve alone. The first 4 work arounds I will share also here:
Play a sound for every Profile with command line - solved paplay /home/defaultuser/Music/Situation/xxxx.wav
switch ON/OFF mobile service per command because the official function in situations work not longer – solved sudo dbus-send --print-reply --type=method_call --system --dest=net.connman /net/connman/technology/cellular net.connman.Technology.SetProperty string:Powered variant:boolean:false sudo dbus-send --print-reply --type=method_call --system --dest=net.connman /net/connman/technology/cellular net.connman.Technology.SetProperty string:Powered variant:boolean:true
switch ON/OFF aliendalvik service in the night per command line – solved sudo systemctl stop aliendalvik.service sudo systemctl start aliendalvik.service
new file under
/etc/sudoers.d/my-personal-settings
add follow line: %defaultuser ALL=(ALL) NOPASSWD: ALL
or only defaultuser ALL=(ALL) NOPASSWD: /usr/bin/systemctl defaultuser ALL=(ALL) NOPASSWD: /usr/bin/klillall
etc.
switch ON/OFF GPS with command line – solved
install gpstoggle from OpenRepos.net gpstoggle location=1 gpstoggle location=0
kill or close an android app and also the open app cover from it – no solution
I try: sudo killall de.blitzer.plus but android restart this process again and the app cover will not close
What can I use to close an app like the button in settings or the close “X” in switcher?
I was searching also in some lipstick files and found this line: apkConfiguration.call("forceStopApp", ["de.blitzer.plus"]
But I dont know how can I use this! A restart from aliendalvik works but this is not a good solution If I use another navigation app and make a stop on the trip.
Disconnect my Amazfit GTS in car mode separate with command and not switch off hole Bluetooth – no solution
Why I need this? Because the connection to a watch will kill the dealer functions from the car and I can’t take a call without the phone touch display. The microphone and the speakers work but the wheel switches do not work. If I disconnect the watch in settings, I can use all cell functions.
Now I need a command to switch off a special BT-device maybe at the MAC address…
The BT device had the name “Amazfit GTS” with MAC-adress: “D1:6C:9F:4F:9B:9C”.
Maybe here are specialists with more knowledge as me. Thanks for all ideas!!!
The mpris-restart should not disconnect your watch but enabled the remote on your steering-wheel.
Normally there is no need to disconnect the watch in order for a working mpris-remote.
I had a Amazfit BIP and experienced the same problems like you. Sometimes the remote from watch and car-steering working, sometimes only one or nothing.
Having said that i had also Problems with Android and Bluetooth regarding Title-Transfer and Remote on Car-Audio.
Actually i use Jolla C2 and things seem to be improved, not perfect but better than what i experienced before.
Okay, this I will try tomorrow in my car, but the problem is, that I switch in car profil if situations see the connection with my mazda and I dont know what it makes if I start then your line. But maybe I can run this code one time in the morning or in every other profile. I will see and share the result for other users here. Thanks for your good tips!!!
Maybe I can add after Exec= another exit command.
If I use the line apkd-launcher -d %U de.blitzer.plus.apk de.blitzer.plus/com.eifrig.blitzerde.activity.splash.SplashActivity
in terminal with sudo I get follow answer:
[defaultuser@Xperia10II-DualSIM ~]$ sudo apkd-launcher -d %U de.blitzer.plus.apk de.blitzer.plus/com.eifrig.blitzerde.activity.splash.SplashActivity
Launching Android Intent android.intent.action.VIEW de.blitzer.plus/com.eifrig.blitzerde.activity.splash.SplashActivity with %U/(null)
Failed to get bus access - 0 : Cannot autolaunch D-Bus without X11 $DISPLAY
Failed to get bus access - 0 : Cannot autolaunch D-Bus without X11 $DISPLAY
[defaultuser@Xperia10II-DualSIM ~]$
I did some quick tests with your “close app problem” and usually just killing the process of an android app should be enough. But de.blitzer seems to be different and re-spawns…
Finally I was successful with devel-su appsupport-attach am force-stop de.blitzer - in your case probably devel-su appsupport-attach am force-stop de.blitzer.plus
sudo appsupport-attach am force-stop de.blitzer.plus
and it’s run perfect!!!
Many Thanks - you are a specialist and I am so happy. Now I can start and stop any android app with Situations. Nice weekend and I will also test the Line
systemctl restart --user mpris-proxy its run only without sudo
from fingus today to solve the conflict between a conneted Amazfit watch and the car bluetooth.
Then all my open points are solved with the help from this wonderful forum.
After this I will share it also with the developer from Situations (Pastilli Labs) because he can all lines maybe bring in his helpfile in the app.
Works also perfect and I start it after the connection with the car.
This is only possible because I use the function BT detection special device in Situations. This search at may car and it is connected than switch on the profile car.
Now I had no open points.
Thank you all helpers and good reuse the other users.
since 5.0.0.62 I cant stop the android support???
I tryed: sudo systemctl stop aliendalvik.service sudo systemctl start aliendalvik.service
and got the message “Unit aliendalvik.service not loadet”
what is the false? The Androidsupport is running and I can use Whatsapp.
Thanks for all help. I found the solution.
Since SFOS 5.0 the name at the android suport service are changed.
To start/stop aliendalvik or new the AppSupport the comand line should be formed so: