UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. joshndroid
    3. Posts
    J
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 4
    • Posts 13
    • Groups 0

    Posts

    Recent Best Controversial
    • Tip - UT Launcher App Removal Script

      Waydroid is great but it creates some pointless default launcher apps that not everyone wants.

      To combat this you can go into ./local/share/applications/ directory and delete the waydroid ones (except the default waydroid.desktop or you potentially wont be able to get into waydroid at all).

      That can be annoying and time consuming, so why not do all of them or select ones as a script

      create a UTLauncher-waydroid-app-remover.sh script and ensure it has;
      chmod +x to allow it to be executed.

      Don't forget to make sure you have mounted your system to rw

      sudo mount -o remount,rw /
      

      Contents of the script;

      #Ubuntu Touch Launcher Android App Remover Script
      cd ~/.local/share/applications
      rm waydroid.com.android.calculator2.desktop #AOSP calculator
      rm waydroid.com.android.camera2.desktop #AOSP camera
      rm waydroid.com.android.contacts.desktop #AOSP contacts
      rm waydroid.com.android.deskclock.desktop #AOSP clock
      rm waydroid.com.android.documentsui.desktop #AOSP file browser application
      rm waydroid.com.android.email.desktop #AOSP email
      rm waydroid.com.android.gallery3d.desktop #AOSP gallery
      rm waydroid.com.android.inputmethod.latin.desktop #AOSP keyboard
      rm waydroid.com.android.settings.desktop #AOSP android settings
      rm waydroid.org.lineageos.eleven.desktop #lineage music player
      rm waydroid.org.lineageos.etar.desktop #lineage calendar
      rm waydroid.org.lineageos.jelly.desktop #lineage web browser
      rm waydroid.org.lineageos.recorder.desktop #lineage recording application
      exit
      

      That there will delete everything.. you will want to most likely modify it to suit your needs which can be done by placing a # at the start of the line or deleting that particular line altogether. You can add further ones to it as well if you have a typical setup in waydroid so if you need to reinstall waydroid for whatever reason you have a script ready to run.

      These commands are device agnostic and should work on any UT device... I only have a Pixel 3a XL to test these on.

      posted in Waydroid
      J
      joshndroid
    • RE: Tutorial - Wireguard Enable/Disable without an app using the launcher (including wifi toggle if you wish)

      While i only have a pixel 3a xl to test with the commands are agnostic

      posted in App Development
      J
      joshndroid
    • Tutorial - Wireguard Enable/Disable without an app using the launcher (including wifi toggle if you wish)

      With things limited in the wireguard space apart from kernel support I had been yearning for an app to make life easier with setup and toggling but alas... The one on the store, while awesome, doesn't work with a device set up with a pin

      For ease, get your device working via ssh to make things quicker and easier.
      Another good thing to remember is that you will need to remount the filesystem in order to change things in various areas such as;

      sudo mount -o remount,rw /
      

      Firstly get yourself setup with wireguard on the device within terminal. You can use something like this here (minus the starting at boot and be mindful of how your wireguard server is created, whether the client information needs to be added through a gui, etc) - https://tech.serhatteker.com/post/2021-01/how-to-set-up-wireguard-client-on-ubuntu-desktop/

      With that, wireguard will work, however you need to run the command through terminal each time and supply a password... kinda annoying if your leaving home/work/ whatever.

      Here we can add a line in the sudoers file to access the wireguard command/s without the need to input a password. It will still require the use of 'sudo' however you wont be prompted. There is obviously a bit of a security risk adding things such as this to the sudoers file just to be mindful of that.

      anyway run (make sure your rw);

      sudo visudo
      

      and paste in this line at the bottom

      phablet ALL=NOPASSWD: /usr/bin/wg, /usr/bin/wg-quick
      

      Save...

      You should now be good to bring up the wireguard connection or down without being prompted for a password.

      From here we can create a script in order to connect/disconnect to our wireguard server

      For arguments sake we can call it wireguardup.sh and can place it within /home/phablet/ directory (for example)

      #!/bin/bash
      sudo wg-quick up wg0
      exit
      

      Save and make sure you have chmod +x on the script in order to allow it to execute.

      You can now make the reciprocating file with 'up' substituted with 'down' on both the script name and the wg-quick command line.
      You should now be able to run the associated script to bring the wireguard instance up or down.

      Now we can go further and get it to run from our application launcher.

      Let's get a couple rudimentary icons into place first (I have attached them to this post I knocked up in a couple minutes with gimp).
      Put them in an appropriate directory (for example we could use ~/.local/share/icons )

      wireguardup.png wireguarddown.png

      Now lets get a launcher entry working.
      These will need to go into ~/.local/share/applications/
      We can call it wireguardup.desktop

      Paste in the contents

      [Desktop Entry]
      Version=1.0
      Type=Application
      Terminal=false
      Exec=/home/phablet/wireguardup.sh
      Icon=/home/phablet/.local/share/icons/wireguardup.png
      Name=Wireguard UP
      X-Ubuntu-Touch=true
      X-Ubuntu-Default-Department-ID=accessories
      

      Remember this will need to have the appropriate location you stored your script as well as your icon to work correctly.
      You can then make the same thing again with the 'down' set of script & icon

      Now you could essentially just use this as is however if you want to take it a step further you can go back to your wireguardup.sh and modify it with further commands that you wish to run for example disabling wifi in line with your wireguard toggle.

      so for instance, you wish to turn off wifi when the wireguard tunnel is up your wireguardup.sh can be changed to something like this

      #!/bin/bash
      nmcli radio wifi off
      wait 5
      sudo wg-quick up wg0
      exit
      

      note - the wait command isn't explicitly necessary I just find that it works better for me if i give it a moment before connecting to wireguard

      You should now be good to connect and disconnect to your wireguard server with a single launcher click either way...

      There's probably a more elegant solution but in any event this works for now and might help someone else out there

      posted in App Development wireguard toggle
      J
      joshndroid
    • RE: Wireguard Kernel Support

      @fredldotme any update on the app compatibility with 3a XL?
      I really would like wireguard support with a pin

      posted in Google Pixel 3a/3a XL
      J
      joshndroid
    • RE: Wireguard Kernel Support

      @fredldotme Love your work on the device. Its great. Wireguard support is possibly the only major thing that is preventing my daily use as it is critical for a lot of my self hosted life. From a security standpoint I will wait until the device is functional with the password working as if i for whatever reason lost it, with no password i could be up a creek without a paddle

      posted in Google Pixel 3a/3a XL
      J
      joshndroid
    • Wireguard Kernel Support

      Hello Devs,

      Just curious if there is plans to add wireguard kernel support?
      I see that when installing the wireguard app that it lists its not supported and that it would need to use userspace implementation.

      Interestingly, I have tried for hours to even get that working to which it just refuses to connect.
      I have wireguard working just fine on all the other android and pi devices I have... this one just doesnt want to work

      posted in Google Pixel 3a/3a XL
      J
      joshndroid
    • RE: Stuck on Google Splash Screen Instead of Going to Recovery Mode

      @npierce I would probably try again. I would also try a different USB port (I have definitely had issues with ports USB3/2 or even on AMD vs intel) systems. It sounds bizarre but just what I have encountered over the years... Sometimes simple thing such as changing port or PC or even the cable and magically it works properly

      posted in Google Pixel 3a/3a XL
      J
      joshndroid
    • RE: Pixel 3a XL experience

      @wsanford Im on the other side of the planet...

      I've just been tinkering around as yet to get it to some sort of daily ready device.
      It reminds me a lot of early android tinkering... a bit of fun to it

      posted in Google Pixel 3a/3a XL
      J
      joshndroid
    • RE: Futify (spotify client) need beta testers

      Just installed this and had a play..
      It seems a tad laggy on the UBports Pixel 3aXL but im sure that will mature with time.
      It also weirdly took a while before it would actually play anything. i had to exit out and go back in for it to work. same thing happened when I tried to log in for the first time.
      i see that some of my playlists are not showing in the top bar as well so i had to search for it to play.
      Apart from those, it seems to be running quite well. thanks for the app!

      posted in App Development
      J
      joshndroid
    • Device Appreciation Thread

      Literally just a thread for users who are here and have had a play to say thanks to the maintainers and devs of not only this device, but the project as a whole.

      Thanks

      posted in Google Pixel 3a/3a XL
      J
      joshndroid
    • RE: Stuck on Google Splash Screen Instead of Going to Recovery Mode

      Hey mate i did the conversion today and also had this issue.

      I used the 0.8.8 version and it also worked first go 🙂

      posted in Google Pixel 3a/3a XL
      J
      joshndroid
    • RE: Waydroid installation

      @stanwood thanks mate. I used your link and had a play.

      The only thing I can't seem to do is remove useless duplicates from the ubuntu touch app drawer. I disabled the useless duplicate apps within the settings app in the waydroid instance however it doesn't remove them from the ubuntu touch drawer... sigh

      posted in Google Pixel 3a/3a XL
      J
      joshndroid
    • RE: Pixel 3a XL experience

      @wsanford I cannot believe I literally have just been going through the same thing. Fresh ebay second hand 3XL... latest deb beta 0.9.1 and stuck at google screen. Thankfully I found this and the 0.8.8 version worked FIRST time. Definitely something wonky with install on the later versions. Thanks mate, one happy fellow enthusiast here (Even made an account just to post this) 🙂

      posted in Google Pixel 3a/3a XL
      J
      joshndroid