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

    Posts

    Recent Best Controversial
    • 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
    • RE: [Solved] Nexus 10 with old version (2014) of UT on it - anyway to update it?

      Hi!

      You'll find available Android images on

      https://developers.google.com/android/images

      nexus 10 is
      https://developers.google.com/android/images#mantaray

      Download the archive that fits your device, you'll need fastboot and adb installed on your PC, and follow the instructions of the Readme within the .zip.

      posted in Support
      hankschwieH
      hankschwie
    • RE: Weird clock app behavior

      Hi!

      Yes, I have a similar problems with my FP2. I solved it setting another alarm for the same time; but the unusable entry is still there. I didn't try to reflash, since I am able to use other alarm times with no trouble. I'm on RC, will add this to the OTA12-thread.

      posted in Support
      hankschwieH
      hankschwie
    • RE: Weird clock app behavior

      Looks like it's an "old" bug:

      https://gitlab.com/ubports/apps/clock-app/-/issues/140

      Looking further into this I found two task.ics files, in two folders named ~/.local/share/evolution/tasks/xxxxxxxxxx.xxxx.x@ubuntu-phablet/. I removed the older one. Now there is just one file, ~/.local/share/evolution/tasks/1514137684.3458.0@ubuntu-phablet/tasks.ics
      looks like this has taken care of the problem.

      I'll play around with it, and check on the BQ m10, too...

      posted in Support
      hankschwieH
      hankschwie
    • How to import a gpx.track into pure maps/Unav?

      Is there a way to import gpx tracks to use them with pure maps (or unav)? I can't find anything in the settings, can't open the track with either application from the filemanager. Is it possible?

      posted in Support
      hankschwieH
      hankschwie