[Ovmsdev] Running Android app on Linux desktop
Chris van der Meijden
chris at arachnon.de
Mon Feb 8 17:55:18 HKT 2021
I just got the Android app running on the Linux desktop :-)
On Debian Stretch I used an old emulator from 2016: Shashlik 0.9.3http:
//www.shashlik.io/news/2016/03/02/shashlik-0-9-3/
Advantage - super simpleDisadvantage - buggy and not maintained any
more
But it is running well for me. Even with the correct locale:
What I did ...
Install ShashlikInstall OVMS apk in Shashlikhttps://www.howtoforge.com/
tutorial/how-to-install-and-run-android-apk-on-linux-with-shashlik/
Create folder ~/.local/share/shashlik/system
Edit
/opt/shashlik/android/config.ini
hw.ramSize=8000
/opt/shashlik/bin/shashlik-run
emulator_args
change "-noskin" to "-skin", "480x800",
Create an executable script /usr/local/bin/ovms containing:
#!/bin/bashcd /opt/shashlik/bin/./shashlik-run com.openvehicles.OVMS
com.openvehicles.OVMS.apk
Start it with the command "ovms" on the console.
Set locale in a second console:
adb shell "setprop persist.sys.language de; setprop persist.sys.country
DE;"
After restart of the emulator locale is set.
On a black screen with only arrows (yes, it is buggy):
adb shell rm -rf "/data/system/*"
and restart the emulator.
Have fun ...
Regards
Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvehicles.com/pipermail/ovmsdev/attachments/20210208/0b1f4f8e/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: shashlik.png
Type: image/png
Size: 120467 bytes
Desc: not available
URL: <http://lists.openvehicles.com/pipermail/ovmsdev/attachments/20210208/0b1f4f8e/attachment-0001.png>
More information about the OvmsDev
mailing list