Subcategories

  • This section is specifically useful for new contributors on the project

    7 Topics
    1 Posts
    DiogoD
    This Category is for those starting to contribute for the UBports Project and Community. By contributing, we mean doing things like: coding quality assurance (testing, bug reporting and validation, etc...) translations app development and maintenance writing and validating technical documentation and user manuals UBports social media and marqueting etc... If you want to contribute in these ways or others and have questions about it, like how to get started, where can you find information, please leave your questions in this category and we will try to answer them the best we can.
  • Discuss and solve problems with other users

    90 Topics
    645 Posts
    developerbaymanD
    @bearbobs sorry for the late reply its been busy with work...did you have to host the emulationstation?....because not sure how to host from within a clickable.....Iv seen the project before but have not really done anything with it....if it runs totally client side its do able....but if it needs hosting I don't think it can be done....the nes I'm working on is a heavily modded JavaScript emulator runs totally client side i added touch support fixed up the audio and added a lot of mapper support.....one big issue is the webview out of the box is....well lacking...if you load mario you will see black squares around the clouds and other sprites...not the emulator but the webview....
  • 133 Topics
    934 Posts
    developerbaymanD
    @captainfunk try this #!/bin/bash # # Usage: # To install and set up: ./waydroid_shared_folder.sh --install # To perform mount only: ./waydroid_shared_folder.sh --mount (used by cron) # To perform chown only: ./waydroid_shared_folder.sh --chown (used by cron) # To uninstall: ./waydroid_shared_folder.sh --uninstall # To display help: ./waydroid_shared_folder.sh --help # # --- Configuration --- # Define the paths for the shared folders. # ~/shared is the folder on your Ubuntu Touch host that you will use. SHARED_DIR_HOST="$HOME/shared" # ~/.local/share/waydroid/data/media/0/shared is the corresponding folder inside Waydroid. SHARED_DIR_WAYDROID="$HOME/.local/share/waydroid/data/media/0/shared" # The primary user on Ubuntu Touch. USER_PHABLET="phablet" # The name of this script, used for cron job identification. SCRIPT_NAME=$(basename "$0") # The absolute path to this script, essential for cron to execute it correctly. SCRIPT_PATH="$(cd "$(dirname "${BASH_SOURCE[0]}")" &> /dev/null && pwd)/$SCRIPT_NAME" # --- Functions --- # Function for logging messages to stdout with a timestamp. log() { echo "$(date '+%Y-%m-%d %H:%M:%S') - $1" } # Function to create the necessary shared directories if they don't exist. create_directories() { log "Creating shared directories..." # Create the host shared directory. mkdir -p "$SHARED_DIR_HOST" # Create the Waydroid internal shared directory path. mkdir -p "$SHARED_DIR_WAYDROID" if [ $? -eq 0 ]; then log "Directories created successfully." else log "Error creating directories. Please check permissions or disk space. Exiting." exit 1 fi } # Function to perform the bind mount operation. perform_bind_mount() { log "Attempting to bind mount '$SHARED_DIR_HOST' to '$SHARED_DIR_WAYDROID'..." # Check if the Waydroid shared folder is already mounted to avoid errors. if mountpoint -q "$SHARED_DIR_WAYDROID"; then log "Folder '$SHARED_DIR_WAYDROID' is already mounted. Skipping bind mount." else # Use sudo to perform the bind mount, linking the host folder to the Waydroid folder. sudo mount --bind "$SHARED_DIR_HOST" "$SHARED_DIR_WAYDROID" if [ $? -eq 0 ]; then log "Bind mount successful." # Immediately set initial permissions after a successful mount. set_folder_permissions else log "Error: Bind mount failed. This could be due to incorrect paths, Waydroid not running, or insufficient sudo permissions." log "Ensure Waydroid is running and '$SHARED_DIR_WAYDROID' exists inside its 'data/media/0' structure." exit 1 fi fi } # Function to unmount the shared folder. unmount_folder() { log "Attempting to unmount '$SHARED_DIR_WAYDROID'..." # Check if the folder is currently mounted before attempting to unmount. if mountpoint -q "$SHARED_DIR_WAYDROID"; then # Use sudo to unmount the folder. sudo umount "$SHARED_DIR_WAYDROID" if [ $? -eq 0 ]; then log "Unmount successful." else log "Error unmounting folder. This may happen if files inside are in use." log "You might need to manually unmount or reboot if it persists." exit 1 fi else log "Folder '$SHARED_DIR_WAYDROID' is not mounted. Skipping unmount." fi } # Function to set the ownership of the shared folder and its contents. set_folder_permissions() { log "Setting permissions for '$SHARED_DIR_WAYDROID' to '$USER_PHABLET:$USER_PHABLET'..." # Use sudo and the -R (recursive) flag to ensure all files and subdirectories # within the mounted shared folder are owned by the 'phablet' user. # This directly addresses the issue of Waydroid changing ownership. sudo chown -R "$USER_PHABLET":"$USER_PHABLET" "$SHARED_DIR_WAYDROID" if [ $? -eq 0 ]; then log "Permissions set successfully." else log "Error setting permissions. Check sudo permissions or ensure the path '$SHARED_DIR_WAYDROID' is valid." exit 1 fi } # Function to add cron jobs for persistence and continuous permission management. add_cron_jobs() { log "Adding cron jobs for persistence and continuous permission management..." # Get current crontab, add new entries, sort, remove duplicates, then set new crontab. # @reboot: Executes the script with '--mount' option every time the device reboots. # * * * * *: Executes the script with '--chown' option every minute to correct permissions. (crontab -l 2>/dev/null; \ echo "@reboot /bin/bash \"$SCRIPT_PATH\" --mount"; \ echo "* * * * * /bin/bash \"$SCRIPT_PATH\" --chown" \ ) | sort | uniq | crontab - if [ $? -eq 0 ]; then log "Cron jobs added successfully." log "They will run from this script's current location: $SCRIPT_PATH" log "IMPORTANT: Do NOT move or rename this script after installation, or the cron jobs will fail." log "You can verify the cron jobs by running: crontab -l" else log "Error adding cron jobs. This could be a cron service issue." exit 1 fi } # Function to remove cron jobs added by this script. remove_cron_jobs() { log "Removing cron jobs related to this script..." # List current cron jobs, filter out lines containing this script's path, and set the new crontab. crontab -l 2>/dev/null | grep -v "$SCRIPT_PATH" | crontab - if [ $? -eq 0 ]; then log "Cron jobs removed successfully. You can verify by running: crontab -l" else log "Error removing cron jobs. You may need to manually edit your crontab (crontab -e)." exit 1 fi } # Function to display the help message. display_help() { echo "Usage: $SCRIPT_NAME [OPTION]" echo "" echo "This script automates setting up and managing a shared folder between Ubuntu Touch and Waydroid." echo "" echo "Options:" echo " --install Performs initial setup: creates directories, mounts the folder," echo " sets initial permissions, and adds cron jobs for persistence and" echo " continuous permission handling. Run this command once to set up." echo "" echo " --mount Performs only the bind mount operation and sets initial permissions." echo " This option is primarily used by the '@reboot' cron job for persistence." echo "" echo " --chown Recursively sets permissions for the shared folder and its contents" echo " to 'phablet:phablet'. This option is used by the periodic cron job" echo " to automatically correct permissions changed by Waydroid." echo "" echo " --uninstall Removes the cron jobs added by this script and unmounts the shared folder." echo " This cleans up the setup." echo "" echo " --help Display this help message." echo "" echo "Important Notes:" echo " - This script assumes you are running it as the 'phablet' user on Ubuntu Touch." echo " - It relies on 'sudo' for mount and chown commands. The 'phablet' user typically has" echo " passwordless sudo access configured by default on Ubuntu Touch." echo " - After running '--install', a reboot is recommended to ensure the @reboot cron job fires." echo " - Do not move or rename this script after installation, as the cron jobs rely on its path." echo " - While '/etc/fstab' is a common Linux method for persistence, it's generally not recommended" echo " for user-level modifications on Ubuntu Touch due to its read-only root filesystem and OTA updates." echo " Using user-specific cron jobs provides a safer and more robust solution here." } # --- Main Logic --- # Check if the script is being run as root. It should be run as the regular user (phablet). if [[ $EUID -eq 0 ]]; then log "Error: This script should NOT be run directly with 'sudo'." log "Please run it as the '$USER_PHABLET' user (e.g., just './$SCRIPT_NAME --install')." log "The script will use 'sudo' internally where necessary." exit 1 fi # Check for essential commands required by the script. if ! command -v crontab &> /dev/null; then log "Error: 'crontab' command not found. Please ensure cron is installed and available." exit 1 fi if ! command -v mountpoint &> /dev/null; then log "Error: 'mountpoint' command not found. Please ensure it's installed (usually part of 'util-linux')." exit 1 fi # Process command-line arguments. case "$1" in --install) log "Initiating installation process..." create_directories # Create the required host and Waydroid directories. perform_bind_mount # Perform the initial bind mount. add_cron_jobs # Set up cron jobs for persistence and auto-chown. log "Installation complete. Please reboot your Ubuntu Touch device for all changes to take full effect." log "The shared folder will now be persistent across reboots, and permissions will be automatically corrected." ;; --mount) log "Executing mount operation (likely from @reboot cron job)..." create_directories # Ensure directories exist (in case they were deleted). perform_bind_mount # Perform the bind mount. ;; --chown) log "Executing chown operation (likely from periodic cron job)..." # Only attempt chown if the target directory exists and is mounted. if [ -d "$SHARED_DIR_WAYDROID" ] && mountpoint -q "$SHARED_DIR_WAYDROID"; then set_folder_permissions # Correct the permissions recursively. else log "Shared Waydroid directory '$SHARED_DIR_WAYDROID' not found or not mounted. Skipping chown for now." log "This might happen if Waydroid is not running or if the mount failed." fi ;; --uninstall) log "Initiating uninstallation process..." remove_cron_jobs # Remove the cron jobs. unmount_folder # Unmount the shared folder. log "Uninstallation complete. You may manually remove the '$SHARED_DIR_HOST' directory if no longer needed." ;; --help) display_help # Show the help message. ;; *) log "Invalid option: '$1'" display_help exit 1 ;; esac log "Script execution finished."
  • WhatsApp or WebWhatsApp

    Moved
    9
    0 Votes
    9 Posts
    2k Views
    advocatuxA
    @rueding keep in mind browser-ng is under heavy development now in order to be ready for OTA-5 Also it has changed its name, it's Morph now. If you want to take a peek to the development https://github.com/ubports/morph-browser
  • owncloud app for Aquaris E4.5 from BQ

    2
    0 Votes
    2 Posts
    342 Views
    ?
    Hi @rueding, There's a couple of Nextcloud apps, if that's any help... https://open-store.io/?sort=relevance&search=Nextcloud I can also sync between my phone and my Nextcloud calendar: Accounts has CalDAV, as well as Nextcloud and ownCloud...
  • Dekko (old) or Dekko2 for Aquaris E4.5 from BQ

    Moved
    4
    0 Votes
    4 Posts
    492 Views
    R
    it works Thank you
  • Dekko 2 install on 16.04

    6
    0 Votes
    6 Posts
    799 Views
    advocatuxA
    @fishfingers44 generally speaking, all the up to date clicks are in https://open-store.io/ Speaking about Dekko specifically, as it's under heavy development, you need to follow the releases in its repo (https://gitlab.com/dekkan/dekko/tags/) for now
  • Unable to read SIM contacts

    5
    0 Votes
    5 Posts
    1k Views
    F
    Managed to find a workaround. If you restart ofono (sudo initctl restart ofono), the import suddenly starts working. The drawback is that your phone goes offline and you will have to restart to get it back online. The pattern seems to be, that if your SIM is offline, import works. My 2nd SIM is blocked, therefore it stood offline and the import worked on the first try. Unfortunately, switching to flight mode doesn't work, because it simulates a modem with no SIM card.
  • How do you deal with no reliable web browser on 16.04 RC?

    30
    1 Votes
    30 Posts
    6k Views
    mihaelM
    @stefano If I try browser next for maps.google.com, the browser doesn't access the gps... But the page doesn't crash - that is promissing.
  • Update 16.04 dev 172

    3
    0 Votes
    3 Posts
    454 Views
    M
    I was trying to move a folder from PC (kde neon)to my phablet after updating to ver 170 , I got the,could not write to device message, so I turned on developer mode,and it worked. I usually move items to the downloads folder on phablet,thats when I realized there was not one. I ran the update to ver 172 and looked for the downloads folder, it was not there ( no wipe ). I then made a downloads folder, so a screen shot shows different date on that folder. So a terminal readout is correct,but I made that folder. I am using " skyneels Nvram flashable fix" and reflashing twrp periodcaly,to get away from Wifi,problems. Just trying to see if something slipped thru, I don't think its worth going to github for, seemed strange tho.
  • SOLVED: BQ E5 back to Ubuntu Touch

    3
    2
    0 Votes
    3 Posts
    755 Views
    F
    @advocatux thanks, worked. One comment for those who are doing the same thing: don't forget to enable developer mode once you have installed the legacy Ubuntu Touch. Otherwise UBports installer won't detect your device.
  • Howto comment on an app?

    Moved
    8
    1 Votes
    8 Posts
    1k Views
    dobeyD
    To support ratings/reviews, the code for the server that was used for the old store from Canonical, for this purpose, is I think Open Source, but it would require getting that set up and running somewhere under open-store.io, and then updating the client side to support it. It's a fairly simple API, and there's already code in unity-scope-click which supports the old service.
  • Struggling with Telegram.

    66
    0 Votes
    66 Posts
    23k Views
    flohackF
    There is a beta test build for ppl with problems, please try https://github.com/ubports/telegram-app/releases/tag/v2.5.5
  • Telegram App

    14
    0 Votes
    14 Posts
    2k Views
    flohackF
    I made a test build here: https://github.com/ubports/telegram-app/releases/tag/v2.5.5 - Can you please try with this one?
  • Issues with WiFi and Phone keypad on E4.5 (stable channel) [SOLVED]

    10
    0 Votes
    10 Posts
    1k Views
    T
    @truscellino Yes, it's still happening for me. Tapping the network name again doesn't help the situation. Surprisingly, turning WiFi off and on again doesn't help either (I would have expected this to work). The only solution is to turn airplane mode on and off again or to reboot the phone. I recently changed the channel my router uses and it had no effect on this issue. Good luck with your investigations. I have only one router and no convenient way to test others.
  • Description of new updates

    Moved
    5
    0 Votes
    5 Posts
    629 Views
    TheBirdT
    please in future can you remove any text etc.you no longer want when editing posts @advocatux @Lakotaubp Ok, I'll do that next time @advocatux said in Description of new updates: In short, no, there isn't official changelogs as such. Ok, clear. Thanks
  • Cannot install available Update

    3
    1
    0 Votes
    3 Posts
    600 Views
    M
    @Lakotaubp Yes, thank you. Ok, the single update that doesn't want getting installed isn't such a big Problem and I thought with 16.04. there were some issues - but yes, you're right. In this case moving to 16.04. seems to be a good option. So I will give it a try :-). Thanks.... Michael
  • Adb not finding stuff on Nexus4

    5
    0 Votes
    5 Posts
    705 Views
    J
    @advocatux Thanks, it's working now.
  • Internet Browser

    8
    0 Votes
    8 Posts
    1k Views
    advocatuxA
    @domubpkm yes, browser-ng is usable (sort of) in xenial rc, and almost completely broken in devel. The fix is already done and we just need to wait for all the pieces to fit in place
  • Dialer is crashing on E4.5 with 16.04 clean install (Stable)

    3
    0 Votes
    3 Posts
    534 Views
    T
    @lakotaubp thank you, I've updated the title to show that I am running 16.04 stable. Here are the log files in .cache/upstart as suggested. Which ones are relevant to this issue? I'll upload them to pastebin address-book-service.log.1.gz address-book-service.log.2.gz address-book-updater.log.1.gz address-book-updater.log.2.gz application-click-com.ubuntu.terminal_terminal_0.9.0.log application-click-com.ubuntu.terminal_terminal_0.9.0.log.1.gz application-click-logviewer.neothethird_logviewer_2.1.log application-failed.log.1.gz bluez-mpris-proxy.log.1.gz bluez-mpris-proxy.log.2.gz ciborium.log.1.gz ciborium.log.2.gz click-user-hooks.log.1.gz click-user-hooks.log.2.gz dbus.log dbus.log.1.gz dbus.log.2.gz dbus.log.3.gz dekkod-notify.log dekkod-notify.log.1.gz dekkod-notify.log.2.gz gnome-keyring.log.1.gz gnome-keyring.log.2.gz indicator-datetime.log.1.gz indicator-datetime.log.2.gz indicator-keyboard.log.1.gz indicator-keyboard.log.2.gz indicator-network.log indicator-network.log.1.gz indicator-network.log.2.gz indicator-network.log.3.gz indicator-network-secret-agent.log.1.gz indicator-sound.log maliit-server.log.1.gz maliit-server.log.2.gz maliit-server.log.3.gz media-hub.log media-hub.log.1.gz media-hub.log.2.gz media-hub.log.3.gz mediascanner-2.0.log.1.gz mediascanner-2.0.log.2.gz mediascanner-2.0.log.3.gz msyncd.log msyncd.log.1.gz msyncd.log.2.gz msyncd.log.3.gz mtp-server.log.1.gz mtp-server.log.2.gz nuntium.log nuntium.log.1.gz nuntium.log.2.gz nuntium.log.3.gz ofono-setup.log.1.gz ofono-setup.log.2.gz pulseaudio-trust-stored.log.1.gz pulseaudio-trust-stored.log.2.gz scope-registry.log scope-registry.log.1.gz scope-registry.log.2.gz scope-registry.log.3.gz session-migration.log.1.gz ssh-agent.log.1.gz ssh-agent.log.2.gz sync-monitor.log sync-monitor.log.1.gz sync-monitor.log.2.gz sync-monitor.log.3.gz telephony-service-indicator.log telephony-service-indicator.log.1.gz telephony-service-indicator.log.2.gz tone-generator.log tone-generator.log.1.gz tone-generator.log.2.gz ubuntu-location-service-trust-stored.log.1.gz ubuntu-location-service-trust-stored.log.2.gz ubuntu-push-client.log ubuntu-push-client.log.1.gz ubuntu-push-client.log.2.gz ubuntu-push-client.log.3.gz unity8-dash.log unity8-dash.log.1.gz unity8-dash.log.2.gz unity8-dash.log.3.gz unity8.log unity8.log.1.gz unity8.log.2.gz unity8.log.3.gz untrusted-helper-type-end-push-helper.log.1.gz url-dispatcher.log usensord.log.1.gz usensord.log.2.gz Here is /var/log/syslog https://www.dropbox.com/s/ug0632bcv34hepr/syslog.crash?dl=0 I will leave this file shared for as long as possible.
  • Moving to UBports now

    12
    0 Votes
    12 Posts
    2k Views
    G
    I've downloaded the file ubports-installer-0.1.21-beta.freebsd and can have a look into it with $ xz -dc ubports-installer-0.1.21-beta.freebsd | tar tf - +COMPACT_MANIFEST +MANIFEST /opt/ubports-installer/LICENSE.electron.txt /opt/ubports-installer/LICENSES.chromium.html /opt/ubports-installer/blink_image_resources_200_percent.pak /opt/ubports-installer/content_resources_200_percent.pak ... How is this to be installed and used on FreeBSD? I tried to rename the archive to the normal file name for FreeBSD packages, integrated it in my repository and tried to install it, which gives: # mv ubports-installer-0.1.21-beta.freebsd /usr/local/PKGDIR.20170304/ubports-installer-0.1.21-beta.txz # pkg repo /usr/local/PKGDIR.20170304 pkg -R /usr/local/etc/pkg/repos/ install ubports-installer Updating FreeBSD repository catalogue... meta.txz : 100% 264 B 0.3kB/s 00:01 packagesite.txz : 100% 418 KiB 428.5kB/s 00:01 Processing entries: 88% pkg: wrong architecture: linux:4:x86:64 instead of FreeBSD:12:amd64 pkg: repository FreeBSD contains packages with wrong ABI: linux:4:x86:64 Processing entries: 100% Unable to update repository FreeBSD Error updating repositories! Can the dev who created this archive please contact me? Thanks.
  • hello

    2
    0 Votes
    2 Posts
    358 Views
    advocatuxA
    @vincitygialam hi & welcome You can join us in our Telegram (https://ubports.com/telegram-welcome) & Matrix groups too (#ubports:matrix.org is a good place to start). Edit: also you can introduce yourself here if you want
  • Working bluetooth on devices

    Moved
    3
    2 Votes
    3 Posts
    846 Views
    jezekJ
    @thebird said in Working bluetooth on devices: If you have a positive Bluetooth story, please tell it in this thread. I bought an JBL Go bluetooth speaker. With my bq E5 sound through bluetooth did not work. The phone connected, but the play button did not work. All sounds stopped working. Could not switch off bluetooth and even restart the phone. Had to do hard reset (volume+power combo). So I used the speaker with jack-jack cable. Then I smashed my screen and was forced to buy a new phone. So I installed ubports on my new FP2 and tried to connect the speaker via bluetooth and ... wait for it ... it did not work again. The same troubles. But, and this is why this is a positive story, my brother bought himself a JBL Clip 2 and. .. yay ... it worked with both of my phones. So I traded the speakers with my brother and now everybody has a working bt speaker (brother is iPhone positive).