OSTC Tools for Windows - HWOS Config for Android
Re: OSTC Tools for Windows - HWOS Config for Android
I'm having a problem with HWOS Config for Android. Running Android 10 device (that I used before successfully with HWOS Config). First, I got an error message cannot create directory /storage/emulated/0/HWOSConfig. Obviously, the app was installed allowing storage permission. Ok, then I make that directory myself using adb, and the error message goes away. I connect a DC successfully, and see that its properly connected. Then, I download the latest firmware. No error is shown, only a very quick flash of a dialog (thus unreadable), but a check using adb shows no firmware file is downloaded error message in the logcat is "/storage/emulated/0/HWOSConfig/null: open failed: ENOENT".
This all feels like some permission problem. Is seems like HWOS Config cannot create files in /storage/emulated/0
Any idea what could be wrong here?
best regards,
--jan
This all feels like some permission problem. Is seems like HWOS Config cannot create files in /storage/emulated/0
Any idea what could be wrong here?
best regards,
--jan
Re: OSTC Tools for Windows - HWOS Config for Android
Hi Jan,
just to clarify.
This device was used before mith OSTCTools and it was working?
What did change inbetween (only OSTCTools update?)?
What brand is your device?
You can answer per email if you like.
I know that all the Android 10 security stuff can cause problems on some devices.
So i think it has something to do with permissions.
The Firmwarefile is downloaded, but could not be written to the folder.
You can access the folder with the Android filemanager?
What happens when you copy a firmwarefile and a changelog to the folder?
Keep an eye on the naming conventions.
hwos_tech_fw_3-01_EN.hex
hwos_tech_changelog_3-01.txt
for example.
Regards
Rob
just to clarify.
This device was used before mith OSTCTools and it was working?
What did change inbetween (only OSTCTools update?)?
What brand is your device?
You can answer per email if you like.
I know that all the Android 10 security stuff can cause problems on some devices.
So i think it has something to do with permissions.
The Firmwarefile is downloaded, but could not be written to the folder.
You can access the folder with the Android filemanager?
What happens when you copy a firmwarefile and a changelog to the folder?
Keep an eye on the naming conventions.
hwos_tech_fw_3-01_EN.hex
hwos_tech_changelog_3-01.txt
for example.
Regards
Rob
Home: http://www.angermayr.eu
email: ostctools@angermayr.eu
Home of OSTC Tools: http://ostctools.angermayr.eu
HWOSConfig for Android: https://play.google.com/store/apps/details?id=eu.angermayr.hwosconfig
email: ostctools@angermayr.eu
Home of OSTC Tools: http://ostctools.angermayr.eu
HWOSConfig for Android: https://play.google.com/store/apps/details?id=eu.angermayr.hwosconfig
Re: OSTC Tools for Windows - HWOS Config for Android
Hi Rob,
This device was used before mith OSTCTools and it was working?
The device was used with HWOS Config only (the android app). I'm pretty sure I did upgrade all my DCs to the latest firmware versions (both OSTC3+, OSTC plus, OSTC4) around 1 october (to 3.12 for the small OSTCs and 1.5.5 for the OSTC4) using HWOS Config that was up to date at that moment. After that the phone was fully re-installed using the same code base as it was before (so all history from HWOS Config is gone, unfortunately).
What did change inbetween (only OSTCTools update?)?
Numerous things like Googles monthly security updates, and a lot more. The device is running LineageOS 17.1 (is almost AOSP version 10). It is a Xiaomi, but only the bootloader from Xiaomi is still on the device, all the rest is non stock. Obviously, "all" apps I use, including all kinds of official including high security chat stuff, baking apps, etc. are running without any problem, so there is nothing fundamentally wrong.
I know that all the Android 10 security stuff can cause problems on some devices.
So i think it has something to do with permissions.
The Firmwarefile is downloaded, but could not be written to the folder.
Yes, that is correct and also my idea.
You can access the folder with the Android filemanager?
Yes, I can.
What happens when you copy a firmwarefile and a changelog to the folder?
A small excerpt from the logcat:
11-05 18:30:22.654 24261 24289 D HWOSConfig_d: isStoragePermissionGranted SET Permission is granted
11-05 18:30:22.654 24261 24289 E HWOSConfig_d: Storage permission granted.
11-05 18:30:22.654 24261 24289 E HWOSConfig_d: Directory /storage/emulated/0/HWOSConfig already exists
11-05 18:30:22.655 24261 24289 E Error: : /storage/emulated/0/HWOSConfig/hwos_tech_fw_3-13_EN.hex: open failed: EACCES (Permission denied)
So, the app sees the file hwos_tech_fw_3-13_EN.hex (the error would be ENOENT otherwise), but it cannot write it, and cannot read it.
To be complete, the listing from an adb shell command, All files manually added using adb. The app should have access for the sdcard_rw group, but apparently it does not.
$ ls -la /storage/emulated/0/HWOSConfig
total 372
drwxrwx--x 2 root sdcard_rw 4096 2020-11-05 17:50 .
drwxrwx--x 19 root sdcard_rw 4096 2020-11-05 17:50 ..
-rw-rw---- 1 root sdcard_rw 41474 2020-10-29 09:25 hwos_tech_changelog_3-13.txt
-rw-rw---- 1 root sdcard_rw 307256 2020-10-29 09:09 hwos_tech_fw_3-13_EN.hex
And obviously. With SELinux enforcing set you cannot mess with the file permissions here.
regards,
--jan
This device was used before mith OSTCTools and it was working?
The device was used with HWOS Config only (the android app). I'm pretty sure I did upgrade all my DCs to the latest firmware versions (both OSTC3+, OSTC plus, OSTC4) around 1 october (to 3.12 for the small OSTCs and 1.5.5 for the OSTC4) using HWOS Config that was up to date at that moment. After that the phone was fully re-installed using the same code base as it was before (so all history from HWOS Config is gone, unfortunately).
What did change inbetween (only OSTCTools update?)?
Numerous things like Googles monthly security updates, and a lot more. The device is running LineageOS 17.1 (is almost AOSP version 10). It is a Xiaomi, but only the bootloader from Xiaomi is still on the device, all the rest is non stock. Obviously, "all" apps I use, including all kinds of official including high security chat stuff, baking apps, etc. are running without any problem, so there is nothing fundamentally wrong.
I know that all the Android 10 security stuff can cause problems on some devices.
So i think it has something to do with permissions.
The Firmwarefile is downloaded, but could not be written to the folder.
Yes, that is correct and also my idea.
You can access the folder with the Android filemanager?
Yes, I can.
What happens when you copy a firmwarefile and a changelog to the folder?
A small excerpt from the logcat:
11-05 18:30:22.654 24261 24289 D HWOSConfig_d: isStoragePermissionGranted SET Permission is granted
11-05 18:30:22.654 24261 24289 E HWOSConfig_d: Storage permission granted.
11-05 18:30:22.654 24261 24289 E HWOSConfig_d: Directory /storage/emulated/0/HWOSConfig already exists
11-05 18:30:22.655 24261 24289 E Error: : /storage/emulated/0/HWOSConfig/hwos_tech_fw_3-13_EN.hex: open failed: EACCES (Permission denied)
So, the app sees the file hwos_tech_fw_3-13_EN.hex (the error would be ENOENT otherwise), but it cannot write it, and cannot read it.
To be complete, the listing from an adb shell command, All files manually added using adb. The app should have access for the sdcard_rw group, but apparently it does not.
$ ls -la /storage/emulated/0/HWOSConfig
total 372
drwxrwx--x 2 root sdcard_rw 4096 2020-11-05 17:50 .
drwxrwx--x 19 root sdcard_rw 4096 2020-11-05 17:50 ..
-rw-rw---- 1 root sdcard_rw 41474 2020-10-29 09:25 hwos_tech_changelog_3-13.txt
-rw-rw---- 1 root sdcard_rw 307256 2020-10-29 09:09 hwos_tech_fw_3-13_EN.hex
And obviously. With SELinux enforcing set you cannot mess with the file permissions here.
regards,
--jan
Re: OSTC Tools for Windows - HWOS Config for Android
Hi Jan,
it seems there is a problem and i have to migrate the HWOSConfig folder to an other location, especially for Android 11.
For Android 10 there is a "new" permission that should handle this.
As my new android device is still at google, delivery expected end of next week, i cannot test the change right now.
Please send me an email to ostctools@angermayr.eu and i mail you a version that requests this permission.
Lets see what happens than.
regards
Rob
it seems there is a problem and i have to migrate the HWOSConfig folder to an other location, especially for Android 11.
For Android 10 there is a "new" permission that should handle this.
As my new android device is still at google, delivery expected end of next week, i cannot test the change right now.
Please send me an email to ostctools@angermayr.eu and i mail you a version that requests this permission.
Lets see what happens than.
regards
Rob
Home: http://www.angermayr.eu
email: ostctools@angermayr.eu
Home of OSTC Tools: http://ostctools.angermayr.eu
HWOSConfig for Android: https://play.google.com/store/apps/details?id=eu.angermayr.hwosconfig
email: ostctools@angermayr.eu
Home of OSTC Tools: http://ostctools.angermayr.eu
HWOSConfig for Android: https://play.google.com/store/apps/details?id=eu.angermayr.hwosconfig
Re: OSTC Tools for Windows - HWOS Config for Android
Hi,
i just uploaded a new version of HWOS Config for Android (1.2.03).
The only change is a bugfix fpr storage permissions for the HWOSConfig folder in android 10 and later.
Thank you Jan, for reporting and testing!
Best reagrds
Rob
German / Deutsch ------------------------------------------
Hallo,
ich habe gerade eine neue Version von HWOS Config für Android (1.2.03) in den Playstore geladen.
Die einzige Änderung ist ein Bugfix zu den Zugriffsrechten auf den HWOSConfig Ordner für Android 10 und später.
Danke Jan, für das Melden des Problems und Testen des Fixes!
Viele Grüße
Rob
i just uploaded a new version of HWOS Config for Android (1.2.03).
The only change is a bugfix fpr storage permissions for the HWOSConfig folder in android 10 and later.
Thank you Jan, for reporting and testing!
Best reagrds
Rob
German / Deutsch ------------------------------------------
Hallo,
ich habe gerade eine neue Version von HWOS Config für Android (1.2.03) in den Playstore geladen.
Die einzige Änderung ist ein Bugfix zu den Zugriffsrechten auf den HWOSConfig Ordner für Android 10 und später.
Danke Jan, für das Melden des Problems und Testen des Fixes!
Viele Grüße
Rob
Home: http://www.angermayr.eu
email: ostctools@angermayr.eu
Home of OSTC Tools: http://ostctools.angermayr.eu
HWOSConfig for Android: https://play.google.com/store/apps/details?id=eu.angermayr.hwosconfig
email: ostctools@angermayr.eu
Home of OSTC Tools: http://ostctools.angermayr.eu
HWOSConfig for Android: https://play.google.com/store/apps/details?id=eu.angermayr.hwosconfig
Re: OSTC Tools for Windows - HWOS Config for Android
Hello,
I have just uploaded a new version of HWOS Config for Android (1.3.00) to the Playstore.
Support for OSTC2 with sensor interface, called "Tech O2" for simplicity.
Displayed firmware types configurable in the settings.
And now for the biggest change.
Unfortunately, I had to give up the /HWOSConfig folder where firmware files were previously stored.
According to Google guidelines, they are now stored under /Android/data/eu.angermayr.hwosconfig/files.
Depending on the firmware type (Sport, Tech, Tech with O2 interface, OSTC 4) in a separate subdirectory.
The folder is located on the device or on the external SD card, depending on what is set in the smartphone.
The advantage of this folder is that it is deleted together with its contents when the app is uninstalled.
Disadvantage of this folder; it is deleted along with its contents when the App is uninstalled.
The directories are:
/Android/data/eu.angermayr.hwosconfig/files/fw_sport
/Android/data/eu.angermayr.hwosconfig/files/fw_tech
/android/data/eu.angermayr.hwosconfig/files/fw_techo2
/android/data/eu.angermayr.hwosconfig/files/fw_ostc4
If you have firmware files in the HWOSConfig directory that you want to continue using,
please copy them manually into the appropriate directory.
Then please delete the HWOSConfig directory on your phone manually, the app (unfortunately) no longer has access to it.
Best regards
Rob
German / Deutsch ------------------------------------------
Hallo,
ich habe gerade eine neue Version von HWOS Config für Android (1.3.00) in den Playstore hochgeladen.
Unterstützung für OSTC2 mit Sensor Schnittstelle, der Einfachheit genannt "Tech O2".
Angezeigte Firmwaretypen in den Einstellungen konfigurierbar.
Und nun zur größten Änderung.
Leider musste ich den Ordner /HWOSConfig in dem bisher die Firmware Dateien gespeichert wurden aufgeben.
Nach den Google Richtlinien werden diese jetzt unter /Android/data/eu.angermayr.hwosconfig/files gespeichert.
Je nach Firmwaretyp (Sport, Tech, Tech mit O2 Schnittstelle, OSTC 4) in einem eigenen Unterverzeichnis.
Der Ordner befindet sich auf dem Device oder auf der externen SD Karte, je nachdem was im Smartphone eingestellt ist.
Vorteil dieses Ordners; er wird bei Deinstallation der App mitsamt dem Inhalt gelöscht.
Nachteil dieses Ordners; er wird bei Deinstallation der App mitsamt dem Inhalt gelöscht.
Die Verzeichnisse sind:
/Android/data/eu.angermayr.hwosconfig/files/fw_sport
/Android/data/eu.angermayr.hwosconfig/files/fw_tech
/Android/data/eu.angermayr.hwosconfig/files/fw_techo2
/Android/data/eu.angermayr.hwosconfig/files/fw_ostc4
Solltet ihr im HWOSConfig Verzeichnis firmware Dateien haben die ihr weiter nutzen wollt,
bitte manuell in das entsprechende Verzeichnis kopieren.
Das HWOSConfig Verzeichnis auf eurem Phone dann bitte manuell löschen, die App hat (leider) keinen Zugriff mehr darauf.
Viele Grüße
Rob
I have just uploaded a new version of HWOS Config for Android (1.3.00) to the Playstore.
Support for OSTC2 with sensor interface, called "Tech O2" for simplicity.
Displayed firmware types configurable in the settings.
And now for the biggest change.
Unfortunately, I had to give up the /HWOSConfig folder where firmware files were previously stored.
According to Google guidelines, they are now stored under /Android/data/eu.angermayr.hwosconfig/files.
Depending on the firmware type (Sport, Tech, Tech with O2 interface, OSTC 4) in a separate subdirectory.
The folder is located on the device or on the external SD card, depending on what is set in the smartphone.
The advantage of this folder is that it is deleted together with its contents when the app is uninstalled.
Disadvantage of this folder; it is deleted along with its contents when the App is uninstalled.
The directories are:
/Android/data/eu.angermayr.hwosconfig/files/fw_sport
/Android/data/eu.angermayr.hwosconfig/files/fw_tech
/android/data/eu.angermayr.hwosconfig/files/fw_techo2
/android/data/eu.angermayr.hwosconfig/files/fw_ostc4
If you have firmware files in the HWOSConfig directory that you want to continue using,
please copy them manually into the appropriate directory.
Then please delete the HWOSConfig directory on your phone manually, the app (unfortunately) no longer has access to it.
Best regards
Rob
German / Deutsch ------------------------------------------
Hallo,
ich habe gerade eine neue Version von HWOS Config für Android (1.3.00) in den Playstore hochgeladen.
Unterstützung für OSTC2 mit Sensor Schnittstelle, der Einfachheit genannt "Tech O2".
Angezeigte Firmwaretypen in den Einstellungen konfigurierbar.
Und nun zur größten Änderung.
Leider musste ich den Ordner /HWOSConfig in dem bisher die Firmware Dateien gespeichert wurden aufgeben.
Nach den Google Richtlinien werden diese jetzt unter /Android/data/eu.angermayr.hwosconfig/files gespeichert.
Je nach Firmwaretyp (Sport, Tech, Tech mit O2 Schnittstelle, OSTC 4) in einem eigenen Unterverzeichnis.
Der Ordner befindet sich auf dem Device oder auf der externen SD Karte, je nachdem was im Smartphone eingestellt ist.
Vorteil dieses Ordners; er wird bei Deinstallation der App mitsamt dem Inhalt gelöscht.
Nachteil dieses Ordners; er wird bei Deinstallation der App mitsamt dem Inhalt gelöscht.
Die Verzeichnisse sind:
/Android/data/eu.angermayr.hwosconfig/files/fw_sport
/Android/data/eu.angermayr.hwosconfig/files/fw_tech
/Android/data/eu.angermayr.hwosconfig/files/fw_techo2
/Android/data/eu.angermayr.hwosconfig/files/fw_ostc4
Solltet ihr im HWOSConfig Verzeichnis firmware Dateien haben die ihr weiter nutzen wollt,
bitte manuell in das entsprechende Verzeichnis kopieren.
Das HWOSConfig Verzeichnis auf eurem Phone dann bitte manuell löschen, die App hat (leider) keinen Zugriff mehr darauf.
Viele Grüße
Rob
Home: http://www.angermayr.eu
email: ostctools@angermayr.eu
Home of OSTC Tools: http://ostctools.angermayr.eu
HWOSConfig for Android: https://play.google.com/store/apps/details?id=eu.angermayr.hwosconfig
email: ostctools@angermayr.eu
Home of OSTC Tools: http://ostctools.angermayr.eu
HWOSConfig for Android: https://play.google.com/store/apps/details?id=eu.angermayr.hwosconfig
Re: OSTC Tools for Windows - HWOS Config for Android
Hi,
i just uploaded a new version of HWOS Config for Android (1.3.01) to the playstore.
The only change is a bugfix for Xiaomi (and other Chinese smartphones) with Android 12,
these have a Bluetooth interface that does not meet the specifications.
Maybe someone with a Xiaomi Android 12 smartphone, I don't own one, can test if it connects to the OSTC and let me know.
Best reagrds
Rob
German / Deutsch ------------------------------------------
Hallo,
ich habe gerade eine neue Version von HWOS Config für Android (1.3.01) in den Playstore geladen.
Die einzige Änderung ist ein Bugfix für Xiaomi (and andere chinesische Smartphones) mit Android 12,
diese haben einen nicht den Spezifikationen entsprechende Bluetooth Schnittstelle.
Vielleicht kann jemand mit einem Xiaomi Android 12 Smartphone, ich selbst besitze keines, einmal testen ob es sich mit dem OSTC verbindet und mir bescheid sagen.
Viele Grüße
Rob
i just uploaded a new version of HWOS Config for Android (1.3.01) to the playstore.
The only change is a bugfix for Xiaomi (and other Chinese smartphones) with Android 12,
these have a Bluetooth interface that does not meet the specifications.
Maybe someone with a Xiaomi Android 12 smartphone, I don't own one, can test if it connects to the OSTC and let me know.
Best reagrds
Rob
German / Deutsch ------------------------------------------
Hallo,
ich habe gerade eine neue Version von HWOS Config für Android (1.3.01) in den Playstore geladen.
Die einzige Änderung ist ein Bugfix für Xiaomi (and andere chinesische Smartphones) mit Android 12,
diese haben einen nicht den Spezifikationen entsprechende Bluetooth Schnittstelle.
Vielleicht kann jemand mit einem Xiaomi Android 12 Smartphone, ich selbst besitze keines, einmal testen ob es sich mit dem OSTC verbindet und mir bescheid sagen.
Viele Grüße
Rob
Home: http://www.angermayr.eu
email: ostctools@angermayr.eu
Home of OSTC Tools: http://ostctools.angermayr.eu
HWOSConfig for Android: https://play.google.com/store/apps/details?id=eu.angermayr.hwosconfig
email: ostctools@angermayr.eu
Home of OSTC Tools: http://ostctools.angermayr.eu
HWOSConfig for Android: https://play.google.com/store/apps/details?id=eu.angermayr.hwosconfig
Re: OSTC Tools for Windows - HWOS Config for Android
I' have replaced my old Samsung S9 with a Samsung 23+ (Android 14) and HWOS Config (V1.3.04) does not work.
When the app is opened I am asked if I should Allow it to find nearby devices. Allow results in a crash and Don't Allow freezes at the 'About' Screen.
Is there a setting I need to change to enable this to work?
When the app is opened I am asked if I should Allow it to find nearby devices. Allow results in a crash and Don't Allow freezes at the 'About' Screen.
Is there a setting I need to change to enable this to work?
Re: OSTC Tools for Windows - HWOS Config for Android
Hi,
i found your ANR (crash) at Google,
Please connect your OSTC with the Bluetooth System Control, so that it is shown in the list of Bluetooth Devices.
Please give me feedback weather this helped or not.
Regards
Rob
i found your ANR (crash) at Google,
Please connect your OSTC with the Bluetooth System Control, so that it is shown in the list of Bluetooth Devices.
Please give me feedback weather this helped or not.
Regards
Rob
Home: http://www.angermayr.eu
email: ostctools@angermayr.eu
Home of OSTC Tools: http://ostctools.angermayr.eu
HWOSConfig for Android: https://play.google.com/store/apps/details?id=eu.angermayr.hwosconfig
email: ostctools@angermayr.eu
Home of OSTC Tools: http://ostctools.angermayr.eu
HWOSConfig for Android: https://play.google.com/store/apps/details?id=eu.angermayr.hwosconfig
Re: OSTC Tools for Windows - HWOS Config for Android
Hi Rob, thanks for looking.
I have a few computers showing in the list of Bluetooth devices.
HWOS Config doesn't get far enough for me to select the computer it should to connect to. I did try it with a paired OSTC2 in Bluetooth mode ready for connection and was able to read the logfile using Diving Log.
After HWOS Config opening for the first time after installation I am asked to 'Allow HWOS Config to find, connect to and determine relative position of nearby devices'. If I chose 'Allow' it will crash immediately. If I choose 'Don't Allow' then the question is repeated. If I select 'Allow' then it will crash and if I select 'Don't allow' it shows the 'About' screen but will not respond.
I have a few computers showing in the list of Bluetooth devices.
HWOS Config doesn't get far enough for me to select the computer it should to connect to. I did try it with a paired OSTC2 in Bluetooth mode ready for connection and was able to read the logfile using Diving Log.
After HWOS Config opening for the first time after installation I am asked to 'Allow HWOS Config to find, connect to and determine relative position of nearby devices'. If I chose 'Allow' it will crash immediately. If I choose 'Don't Allow' then the question is repeated. If I select 'Allow' then it will crash and if I select 'Don't allow' it shows the 'About' screen but will not respond.
Re: OSTC Tools for Windows - HWOS Config for Android
Hi dwhitlow,
please send me a email, i will send you a new version of HWOSConfig for testing.
Regards
Rob
please send me a email, i will send you a new version of HWOSConfig for testing.
Regards
Rob
Home: http://www.angermayr.eu
email: ostctools@angermayr.eu
Home of OSTC Tools: http://ostctools.angermayr.eu
HWOSConfig for Android: https://play.google.com/store/apps/details?id=eu.angermayr.hwosconfig
email: ostctools@angermayr.eu
Home of OSTC Tools: http://ostctools.angermayr.eu
HWOSConfig for Android: https://play.google.com/store/apps/details?id=eu.angermayr.hwosconfig
Re: OSTC Tools for Windows - HWOS Config for Android
Hi Rob,
Thank you for your help fixing this problem.
For anyone else seeing this problem, it was caused by using the migration option from my old Samsung device to my new Samsung device.
In this process a Bluetooth device was migrated and showed as 'Paired on previous phone or tablet'.
Unpairing this device and repairing it fixed the problem and now HWOS Config is working on my new device.
Thank you for your help fixing this problem.
For anyone else seeing this problem, it was caused by using the migration option from my old Samsung device to my new Samsung device.
In this process a Bluetooth device was migrated and showed as 'Paired on previous phone or tablet'.
Unpairing this device and repairing it fixed the problem and now HWOS Config is working on my new device.