UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. hankschwie
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 7
    • Posts 107
    • Groups 0

    hankschwie

    @hankschwie

    22
    Reputation
    24
    Profile views
    107
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    hankschwie Unfollow Follow

    Best posts made by hankschwie

    • Refresh icon view in App Drawer in real time

      Hi!

      We wrote a small script and a desktop file to toogle Anbox via

      anbox-tool enable|disable
      

      see [https://wiki.ubuntuusers.de/Ubuntu_Touch/Anbox/#Automatisches-Umschalten-per-Icon] .

      because Anbox is using energy, even when not in use. It works fine.

      Now I thought it would be nice to change the icon (like using a green one when Anbox is enabled, and a red one when it is disabled). I tried to use cp within the script to copy a new icon to home/phablet/.local/share/applications/ . That works, but it looks like the icons are cached somewhere, and are only refreshed after unity8 is restarted, or the whole device.

      Would it be possible to change that in real time, so I could see just by the colour of the icon if Anbox is enabled or not?

      posted in Support
      hankschwieH
      hankschwie
    • RE: Refresh icon view in App Drawer in real time

      Hi!

      I was able to solve this. I noticed that anbox apps are displayed immediately after installation, as soon as the desktop file is placed in /home/phablet/.local/share/applications . So I tried to work with two desktop files which are moved back and forth between /home/phablet/.local/share/applications and /home/phablet/Downloads . The anboxtoggle.sh shovels those back and forth with each disable/enable run instead of the icons - they stay in place.

      anboxtoogle.sh looks like this:

      #!/bin/bash
      anboxtool=($(anbox-tool status)) 
      atenabled=${anboxtool[5]}
      
      if [ "$atenabled" == "YES" ]; then
            anbox-tool disable
      	mv /home/phablet/Downloads/anboxtoggleRED.desktop /home/phablet/.local/share/applications/anboxtoggleRED.desktop
      	mv /home/phablet/.local/share/applications/anboxtoggleGREEN.desktop /home/phablet/Downloads/anboxtoggleGREEN.desktop 
      else
            anbox-tool enable
      	mv /home/phablet/Downloads/anboxtoggleGREEN.desktop /home/phablet/.local/share/applications/anboxtoggleGREEN.desktop
      	mv /home/phablet/.local/share/applications/anboxtoggleRED.desktop /home/phablet/Downloads/anboxtoggleRED.desktop 
      fi
      

      The desktop file anboxtoggleGREEN.desktop:

      [Desktop Entry]
      Name=Anboxtoggle
      Type=Application
      Terminal=false
      Icon=/home/phablet/.local/share/applications/anbox-green.png
      Categories=Utility
      Comment=Switch between anbox enabled and disabled
      X-Ubuntu-Touch=true
      Exec=/home/phablet/.local/share/applications/anboxtoggle.sh 
      

      For anboxtoggleRED.desktop you just need to change the icon name in the Icon line to anbox-red.png. You need two different icon pictures, called anbox-red.png and anbox-green.png, as well (just grab some from the net, and change the colours with gimp or a similar program, if neccessary).
      Make the other files executable, and put the two icon files and one of the desktop files in /home/phablet/.local/share/applications/, the other desktop file in /home/phablet/Downloads/. (If Anbox currently is runnig, put anboxRed.desktop in .../applications, if not anboxtoggleGREEN.desktop.)

      Now there should be just one icon in the app drawer, indicating if anbox is enabled or not, changing is colour with every call.

      Have fun!

      posted in Support
      hankschwieH
      hankschwie
    • RE: Welcome to the UBports community! Introduce yourself here!

      Hi!

      I'm Heinrich aka hank, and have been around for some weeks now.

      I'm an "interested layman", without any computer science training whatsoever (well, except for a Highschool Class way back in 1982 ;-)).
      Using Ubuntu since about 2005 (warty!), I switched over to Ubuntu completely since Windows Vista was introduced.
      I have been active in the german ubuntuusers.de forum since 2005, and act as wiki moderator since 2009.
      Last year I got my hands on a used Fairphone2, (already had one running the open source fairphone version) and tried Ubuntu Touch. Since then I'm hooked to it, bought a new bq HD m10 just for UT, and did an almost complete overhaul of the https://wiki.ubuntuusers.de/Ubuntu_Touch section over at ubuntuusers.de over the last weeks - (might be interesting for people who speak, or at least read, German).

      Thanks for the help I was able to get from you so far! Hope I can give something back.

      posted in General
      hankschwieH
      hankschwie
    • RE: How to show storage space left on Ubuntu Touch? [Solved]

      System settings-> about-> storage will show the space,left internally

      posted in Support
      hankschwieH
      hankschwie
    • RE: make everything on the screen BIGGER! text and BUTTONS!

      Hi!

      You can use the UT Tweak Tool to change that.

      posted in Support
      hankschwieH
      hankschwie
    • RE: Dark Sky

      It affects Indicator Weather ( https://open-store.io/app/indicator-weather.bhdouglass ) as well. I changed to OpenWeatherMap, You need an API key too, but I hope they will not be bought by Apple or Google :confused_face:

      posted in Off topic
      hankschwieH
      hankschwie
    • RE: Login to TELEport: No SMS option

      @AppLee Thanks! It worked out eventually, after three tries I was able create an account.

      posted in Support
      hankschwieH
      hankschwie
    • RE: Refresh icon view in App Drawer in real time

      @chrisse

      Well, the icons survived a couple of unity8 restarts, and two device restarts, so it looks like the name was important... For all anbox apps the names for the desktop files and their icons are identical except for the ending, so I thought that could do the trick.

      posted in Support
      hankschwieH
      hankschwie
    • RE: Anbox issues

      @aclifton314

      • multiple instances: Have a look at https://forums.ubports.com/topic/3939/app-menu-double-entries-w-anbox/ . Restarting Unity8 usually helps, or restarting the device, but there is no way to completely get rid of those duplicates.
      • You can't remove the default android apps. You could deactivate some calling the android Settings, go to Apps and deactivate those you don't need. I usually deinstall other anbox apps that don't work, or are not needed any more using the default android way via Settings->Apps within Anbox, too.
        Installed apps are - at least partly - stored in /home/phablet/anbox-data/data/app, but the whole content of path .../data/... is "invisible", and only accessible as root-user using a ssh or adb shell. You can navigate using cd PATH, and show contents using ls (-la].
      • Easiest and fastest way to remove anbox is to reflash your device with the current version and channel using the UBports Installer; but don't wipe the user data!
      posted in Support
      hankschwieH
      hankschwie
    • RE: Stuck with anbox-tool install command

      Hi!
      We just had a similar case at https://forum.fairphone.com/t/ubuntu-touch-with-threema-on-anbox-where-are-the-files/53768/12 , a fairphone 2 running the stable channel. After changing to rc channel Anbox installation, that was stuck like in this case, could be completed, and now works. Perhaps you could give it a try? (if you are on stable, nobody knows but you...).

      But you left the forum; so we'll never know. I hope it helps in other cases.

      posted in Support
      hankschwieH
      hankschwie

    Latest posts made by hankschwie

    • RE: Futify (spotify client) need beta testers

      Hi!
      Futify does not connect anymore, and, what is worse, Spotify considers it a be a security risk. Yesterday I tried to use futify and to log in with my username and password without success; today I got an email telling me that the had to reset my password because of "suspisious activities". See https://forums.ubports.com/topic/10567/spotify-blockt-futify

      So, it just doesn't work anymore.
      greetz
      hank

      posted in App Development
      hankschwieH
      hankschwie
    • RE: FP2 - OTG working on Ubuntu touch?

      @DeadBattery
      My fairphone 2 works with OTG, version is 16.04 devel, (2023-04-17)

      posted in Fairphone 2
      hankschwieH
      hankschwie
    • RE: Shop not working

      @lakotaubp

      The error message is still there, I get it every time I open an ubports-page outside the forum. After pressing the "OK" - button, the pages seem to work fine - I didn't order anything to check it ;-)!

      This is the error box; I use an up-to-date firefox 100.0, running on Ubuntu 20.04.

      Bildschirmfoto vom 2022-05-14 19-54-43.png

      posted in General
      hankschwieH
      hankschwie
    • RE: Shop not working

      Hi!

      Something's still amiss; I get an error when opening the shop; message as follows:

      Error:
      Error: Permission denied to access property "apply"
      
      https://ubports.com/web/content/155099-7063fc3/9/web.assets_common_lazy.js:1143
      Zurückverfolgung
      trigger@https://ubports.com/web/content/155099-7063fc3/9/web.assets_common_lazy.js:1143:31
      trigger/<@https://ubports.com/web/content/155099-7063fc3/9/web.assets_common_lazy.js:1148:258
      each@https://ubports.com/web/content/155099-7063fc3/9/web.assets_common_lazy.js:624:170
      each@https://ubports.com/web/content/155099-7063fc3/9/web.assets_common_lazy.js:615:192
      trigger@https://ubports.com/web/content/155099-7063fc3/9/web.assets_common_lazy.js:1148:229
      attach_handlers/<@https://ubports.com/web/content/155100-0a0c73f/9/web.assets_frontend_lazy.js:1032:513
      dispatch@https://ubports.com/web/content/155099-7063fc3/9/web.assets_common_lazy.js:925:447
      add/elemData.handle@https://ubports.com/web/content/155099-7063fc3/9/web.assets_common_lazy.js:911:166
      trigger@https://ubports.com/web/content/155099-7063fc3/9/web.assets_common_lazy.js:1142:227
      trigger/<@https://ubports.com/web/content/155099-7063fc3/9/web.assets_common_lazy.js:1148:258
      each@https://ubports.com/web/content/155099-7063fc3/9/web.assets_common_lazy.js:624:170
      each@https://ubports.com/web/content/155099-7063fc3/9/web.assets_common_lazy.js:615:192
      trigger@https://ubports.com/web/content/155099-7063fc3/9/web.assets_common_lazy.js:1148:229
      attach_handlers@https://ubports.com/web/content/155100-0a0c73f/9/web.assets_frontend_lazy.js:1032:534
      start/<@https://ubports.com/web/content/155100-0a0c73f/9/web.assets_frontend_lazy.js:1032:349
      

      I've seen it on other ubports pages as well...

      posted in General
      hankschwieH
      hankschwie
    • RE: How to manually change the screen orientation ?

      Hi!

      Perhaps it is an "app issue"? Some apps are restricted to a certain screen orientation. You could check in ~.local/share/applications, in the .desktop files. Some apps have a setting called

      X-Ubuntu-Supported-Orientations=
      

      Possible values are

      primary, portrait, inverted-portrait, landscape, inverted-landscape
      

      perhaps it helps to change it there.

      posted in Support
      hankschwieH
      hankschwie
    • RE: M10 HD on boot loop after trying usbports-installer

      @mrt10001 I have another BQ Aquaris m10 FD running Ubuntu Touch; the wifi bug is still not solved, so I can't use both devices within the WIFI network at home - I tried to change the address, but didn't succeed.
      The whole thing started out when I tried to use twrp on the m10, I wanted to root it and to try Lineage or something similar... But that's a different story.

      posted in Support
      hankschwieH
      hankschwie
    • RE: M10 HD on boot loop after trying usbports-installer

      OK, sometimes you don't see the forest for the trees... FInally I was able to use the flash tool; a little "sudo" helped a lot...

      I reinstalled an Android 8.1 version, and afterwards I was able to use fastboot to relock the device.

      Thanks for your support!

      posted in Support
      hankschwieH
      hankschwie
    • RE: M10 HD on boot loop after trying usbports-installer

      @mrt10001 I could try, but I doubt if that changes anything. After a night of reboot loops the battery is more or less drained, the device is "shut down". But as soon as I connect an usb cable and power is provided again, the boot loop starts again, too.

      Is there some hard reset tool available for Ubuntu Linux to force a reset? I found something like that, but it seems to be a windows tool.

      EDIT: Tried to disconnect and then press the power button; as soon as I reconnect, the device tries to loop again, even with the the almost drained battery it vibrates about every 5 seconds. Same behavior as before with the charged battery.

      posted in Support
      hankschwieH
      hankschwie
    • RE: M10 HD on boot loop after trying usbports-installer

      @mrt10001 No chance using the vol+ button that way, the device just just keeps looping, no matter in which order I push or release buttons. I have already opened up the device, have to check how to disconnect the battery. I think I saw a youtube video somewhere how to replace the battery, I'll search for that.

      EDIT: I was able to disconnect it, but as soon as I reconnect the battery, the loop starts as before....

      posted in Support
      hankschwieH
      hankschwie
    • RE: M10 HD on boot loop after trying usbports-installer

      @mrt10001 It simply does not switch of, it keeps restarting...

      posted in Support
      hankschwieH
      hankschwie