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 8
    • Posts 115
    • Groups 0

    hankschwie

    @hankschwie

    22
    Reputation
    27
    Profile views
    115
    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: WAYDROID not booting

      @Ken1971
      Hi!
      After a few failed attempts trying to save the data of my waydroid installation I was able to solve it, but had to erase all the user data, and re-install everything I had running in the waydroid installation. 24.04 is not yet available for Fairphone 3, so its 20.04 I'm using.

      posted in Waydroid
      hankschwieH
      hankschwie
    • RE: WAYDROID not booting

      @Ken1971
      Yesterday the same problem appeared on my Fairphone 3.
      The log just tells me that the session is starting, and that the /dev/anbox-binder has appeared, nothing else.
      Any precautions needed for the reinstallation? I would hate to loose my data within the waydroid container.

      EDIT: removing and reinstalling did not change it - waydroid still hangs at the start.😕

      posted in Waydroid
      hankschwieH
      hankschwie
    • RE: Music app does not start; log tells lookup () called on invalid MediaSTore

      So I gave it a try and set all the ownership in /home/phablet to phablet:phablet, and after a reboot the app actually found some of the new files. 👍

      Looks like the app can't handle mpc files properly; or at least can't read the tags - they all end up in one "Unknown album" - but that's a different problem. 😬

      posted in Support
      hankschwieH
      hankschwie
    • RE: Music app does not start; log tells lookup () called on invalid MediaSTore

      @arubislander Yes, I did, and I had to change the rights of the files in /music, too. I opened an Issue (nr 104) on the gitlab page, see
      https://gitlab.com/ubports/development/apps/lomiri-music-app/-/issues/104

      posted in Support
      hankschwieH
      hankschwie
    • RE: Music app does not start; log tells lookup () called on invalid MediaSTore

      @arubislander Any idea how to find those?

      posted in Support
      hankschwieH
      hankschwie
    • RE: Music app does not start; log tells lookup () called on invalid MediaSTore

      Found at least something: The mediastore.db in ~/.cache/mediascanner-2.0 had the wrong rights, I changed the ownership from root:root to phablet:phablet, so the app starts again.
      But I still have not found a way to refresh the database for the Music app to show the new files I have added to ~/Music. I recall that this happened automatically, but it does not - or perhaps not any more?

      posted in Support
      hankschwieH
      hankschwie
    • Music app does not start; log tells lookup () called on invalid MediaSTore

      Hi!

      I have yet another problem with the Music App: It does not start anymore, it just tells me that there is no music to be found; the log is flooded with literally hundreds of messages

      lookup () called on invalid MediaStore
      

      When trying to play a file from the filemanager choosing the Music-app a message appears telling me that the app is waiting for data, after a few seconds I am asked to wait longer or to quit - waiting leads to a seemingly endless display of the message, but nothing is played.

      Is there a way to force the app to reread the data, as it does at first start? Is there some kind of db-file that could be renewed?

      Device is a fairphone 3, dev channel 20.04

      posted in Support
      hankschwieH
      hankschwie
    • RE: Music app stopped working

      @jojumaxx Hi!
      I have similar problems, looks like using waydroid and mounting ~/Music to it causes problems. The music app can't read the files anymore because the mounting changes the owner. See https://gitlab.com/ubports/development/apps/lomiri-music-app/-/issues/104

      posted in Support
      hankschwieH
      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