UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. ernest
    E
    Offline
    • Profile
    • Following 0
    • Followers 2
    • Topics 8
    • Posts 212
    • Groups 0

    ernest

    @ernest

    92
    Reputation
    691
    Profile views
    212
    Posts
    2
    Followers
    0
    Following
    Joined
    Last Online

    ernest Unfollow Follow

    Best posts made by ernest

    • [Halium9-GSI] - Oneplus 3(T)

      Edit : After 2 months as daily driver

      Ubports on this device is really nice and definitively faster than Halium 7.1

      I did notice a critical bug that I'm not able to identify the source exact, but I would think it's at android level => Rild. After some time ofonod is not anymore able to get cell signal information, ofonod is not crashing but simply not able to get modem information. Tragic side of the bug, the cell signal freeze and making you thinking everything is fine, while you cannot make and receive a call...
      I've made a small watchdog/hack reading the log of ofonod and when cell tower information is lost it kill Ofonod and Telepathy-ofonod (Otherwise it's loose it's DBUS-id). So far killing ofonod is the only way to get back cell tower signal. It happen randomly, sometime 4 times during an hour, sometime 4 time during the day...
      It's not a fix, but a dirty hack letting me using the phone daily without issue and studying this problem :).

      Except that the limitation relies on the GSI image rather than the port itself.

      I've updated the working/not working section thanks of Flo list.


      Hello,
      After working on the Halium 7.1 port OP3, i've gave a shot to the Halium 9 thanks to the help of the Halium telegram group especially Erfan.

      This use the great work of the Halium developpers and GSI image from Erfan.

      This is a proof of concept, only, and not supposed to be run as a daily driver, even if it's possible.
      The port is based on

      • A trebelized OP3(T) device,
      • A modified lineage OS (Trebelized) to acquire the vendors partition
      • The Ubports GSI from Erfan (Updated weekly).

      Becareful, this is not a standard H7.1 or H9 port but a H9-GSI port, I didn't try to build a device image with H9.

      It's running pretty smooth.

      To avoid confusion with Halium 7.1 I've created a dedicate repository : https://github.com/OP3-Halium.

      Sources:
      Kernel: https://github.com/OP3-Halium/android_kernel_oneplus_msm8996
      Device (Lineage base): https://github.com/OP3-Halium/android_device_oneplus_oneplus3
      Ubports GSI : look into https://t.me/ErfanGSI

      Compiles files:
      https://drive.google.com/drive/folders/1vnJEKkhO3xqH-fWWG55-yxwx5K1EeKq7?usp=sharing

      Status:

      • Working:
        Actors: Manual brightness
        Actors: Notification LED
        Actors: Torchlight
        Actors: Vibration
        Camera: Flashlight
        Camera: Photo (Yes zoom super slow)
        Camera: Video (Yes zoom super slow)
        Camera: Switch between back and front camera
        Cellular: Incoming, outgoing calls
        Cellular: MMS in, out
        Cellular: PIN unlock
        Cellular: SMS in, out
        Cellular: Change audio routings
        Cellular: Voice in calls
        Cellular: Adjust volume during a call
        Endurance: Battery lifetime > 24h from 100%
        Endurance: No reboot needed for 1 week
        GPU: Boot into UI
        GPU: Hardware video decoding
        Misc: Anbox patches applied to kernel
        Misc: AppArmor patches applied to kernel (Kernel 3.4, 3.10, 3.18)
        Misc: Battery percentage
        Misc: Offline charging
        Misc: Online charging
        Misc: RTC time is used after reboot
        Network: Bluetooth (Yes but cannot be stopped)
        Network: Flight mode
        Network: Hotspot
        Sensors: Automatic brightness (However Erfan modification requires custom .deb - Ask me)
        Sensors: Fingerprint reader (Yes ! thanks to Erfan)
        Sensors: GPS
        Sensors: Proximity
        Sensors: Rotation
        Sensors: Touchscreen
        Sound: Earphones
        Sound: Loudspeaker
        Sound: Microphone
        Sound: Volume control
        Ssh: yes
        OP3 specific : Finger print reader button calls Dash menu

      • Working with additional steps:
        Cellular: Carrier info, signal strength (loss sometime, need to flash the file OP3_GSI_Fix_V1.2.zip after Erfan GSI)
        Cellular: Data connection (Yes select 4G, depending of deb version icon might not be there)
        Network: Bluetooth (For better hardware compatibility Bluez 5.53 can be use : https://ci.ubports.com/job/ubports/job/bluez-packaging/job/xenial_-_even-newer-bluez/)
        Network: WiFi (To restart it easily, need to flash the file OP3_GSI_Fix_V1.2.zip after Erfan GSI)
        OP3 specific : Dash charging (need to flash the file OP3_GSI_Fix_V1.2.zip after Erfan GSI)
        OP3 specific : Tri state switch (upper position silent mode) (need to flash the file OP3_GSI_Fix_V1.2.zip after Erfan GSI)

      • Not working:
        Network: Bluetooth Call (Call got redirected to speaker :/)
        Misc: Shutdown / Reboot ( Most of the time no)
        Misc: Recovery image (Not with GSI)
        Misc: Reset to factory defaults (Not with GSI)
        (Network: NFC - disabled atm due to no middleware)
        USB: MTP access
        USB: ADB access
        USB: External monitor - only for devices that support it
        OTA / Update : To update the GSI image, an apt-get upgrade needs to be done below.

      Install:
      Everything to install is it there : https://github.com/OP3-Halium/Documentation

      Note:

      • Once you trebilized your phone, you can still use it as before and install non treble OS.
      • Until Ubports GSI future is properly define, to upgrade your system you need to mark on hold the following packages, otherwise your phone will not boot :
      sudo apt-mark hold hfd-service  hfd-service-tools libqt5feedback5-hfd lxc-android-config powerd qml-module-hfd  qtubuntu-android repowerd repowerd-data repowerd-tools
      
      • The zip OP3_GSI_Fix_V1.2.zip contains
        • Fix for Tri-state switch
        • Temporary fix Mobile Morph webview, as the form factor is not capture in GSI image
        • Fix battery management - allow to stop charging beyond defined battery %
        • Hack to restart ofonod when cell signal lost
        • Activate Dash charging
        • Fix wifi restart

      Anybody willing to help is welcome ^^ even for testing.

      Short video : https://gfycat.com/infamousorganicichneumonfly

      posted in Oneplus 3/3T
      E
      ernest
    • GPS tracking in Background - Edge Hack (Not Devel, Stable, RC)

      Hello,

      As you know to track your activity there is the application Activity Tracker : https://open-store.io/app/activitytracker.cwayne18
      Unfortunately due to the Utouch security policy, GPS signal is not accessible when the screen is off or app is in background, that why the original developer force the screen to stay on, reducing significantly the battery life with no benefit.
      Issue is tracked there : https://github.com/ubports/ubuntu-touch/issues/1067

      Prior using the script please read : https://github.com/ernesst/Utrack/blob/master/README.md

      Enjoy.

      posted in App Development
      E
      ernest
    • How-To : Offline Unav maps

      A quick how-to on getting offline maps for Unav.

      Recently i needed to update my offline map and everytime it's quit a mess to setup an OpenstreetMap local server, lost of hours lost on that. I recently found a docker instance perfect for our needs.

      What we need in this how-to

      • A linux computer (of-course) with disk space
      • Snap of Jtiledownloader installed
      • docker.io installed

      Optional

      • A nextcloud instance
      • desktop nextcloud sync software
      • Ubsync.

      First of all : setting up tile server.

      Not much to say, except follow the work of this great Github repository :
      https://github.com/Overv/openstreetmap-tile-server

      docker volume create openstreetmap-data
      
      git clone https://github.com/Overv/openstreetmap-tile-server.git
      
      cd openstreetmap-tile-server/
      

      What i've done :
      docker volume create openstreetmap-data
      download the appropriate pbf there : http://download.geofabrik.de/

      docker run -v /absolute/path/to/luxembourg.osm.pbf:/data.osm.pbf -v openstreetmap-data:/var/lib/postgresql/10/main overv/openstreetmap-tile-server import
      

      If lucky enough then

      docker run -p 80:80 -v openstreetmap-data:/var/lib/postgresql/10/main -d overv/openstreetmap-tile-server run
      

      Std output :

      root@T450s:/home/ernest# docker run -v /home/ernest/Documents/texas-latest.osm.pbf:/data.osm.pbf -v openstreetmap-data:/var/lib/postgresql/10/main overv/openstreetmap-tile-server import
      Unable to find image 'overv/openstreetmap-tile-server:latest' locally
      latest: Pulling from overv/openstreetmap-tile-server
      898c46f3b1a1: Pull complete 
      63366dfa0a50: Pull complete 
      041d4cd74a92: Pull complete 
      6e1bee0f8701: Pull complete 
      b3d49b2dd661: Pull complete 
      7f7fd75ed7c3: Pull complete 
      ee5c945e49f2: Pull complete 
      808e9c0fdf3b: Pull complete 
      d780496bb933: Pull complete 
      52ddc01564c5: Pull complete 
      98df30b28f52: Pull complete 
      6806a290c5cc: Pull complete 
      fe5da1ed6f5d: Pull complete 
      c2b03f1243c3: Pull complete 
      892f03c6da75: Pull complete 
      60740ad09b89: Pull complete 
      510cf260d67d: Pull complete 
      e5cf11ef9535: Pull complete 
      327759077133: Pull complete 
      29fd64d01acc: Pull complete 
      6529fd3cf6e4: Pull complete 
      7b31de690592: Pull complete 
      42ed3f4d774a: Pull complete 
      8c1ac07d887f: Pull complete 
      9a8a920e2d77: Pull complete 
      e8e3c66eb441: Pull complete 
      8bcaa423208c: Pull complete 
      a64871ac5a50: Pull complete 
      Digest: sha256:f8c58ef99819eb73adfaee91401b7f23a878f29122fae285734912657f5082da
      Status: Downloaded newer image for overv/openstreetmap-tile-server:latest
      + '[' 1 -ne 1 ']'
      + '[' import = import ']'
      + CreatePostgressqlConfig
      + cp /etc/postgresql/10/main/postgresql.custom.conf.tmpl /etc/postgresql/10/main/postgresql.custom.conf
      + sudo -u postgres echo 'autovacuum = on'
      + cat /etc/postgresql/10/main/postgresql.custom.conf
      # Suggested minimal settings from
      # https://ircama.github.io/osm-carto-tutorials/tile-server-ubuntu/
      
      shared_buffers = 128MB
      min_wal_size = 1GB
      max_wal_size = 2GB
      maintenance_work_mem = 256MB
      
      # Suggested settings from
      # https://github.com/openstreetmap/chef/blob/master/roles/tile.rb#L38-L45
      
      max_connections = 250
      temp_buffers = 32MB
      work_mem = 128MB
      wal_buffers = 1024kB
      wal_writer_delay = 500ms
      commit_delay = 10000
      # checkpoint_segments = 60 # unrecognized in psql 10.7.1
      max_wal_size = 2880MB
      random_page_cost = 1.1
      track_activity_query_size = 16384
      autovacuum_vacuum_scale_factor = 0.05
      autovacuum_analyze_scale_factor = 0.02
      autovacuum = on
      + service postgresql start
       * Starting PostgreSQL 10 database server
         ...done.
      + sudo -u postgres createuser renderer
      + sudo -u postgres createdb -E UTF8 -O renderer gis
      + sudo -u postgres psql -d gis -c 'CREATE EXTENSION postgis;'
      CREATE EXTENSION
      + sudo -u postgres psql -d gis -c 'CREATE EXTENSION hstore;'
      CREATE EXTENSION
      + sudo -u postgres psql -d gis -c 'ALTER TABLE geometry_columns OWNER TO renderer;'
      ALTER TABLE
      + sudo -u postgres psql -d gis -c 'ALTER TABLE spatial_ref_sys OWNER TO renderer;'
      ALTER TABLE
      + '[' '!' -f /data.osm.pbf ']'
      + sudo -u renderer osm2pgsql -d gis --create --slim -G --hstore --tag-transform-script /home/renderer/src/openstreetmap-carto/openstreetmap-carto.lua -C 2048 --number-processes 4 -S /home/renderer/src/openstreetmap-carto/openstreetmap-carto.style /data.osm.pbf
      osm2pgsql version 0.96.0 (64 bit id space)
      
      Allocating memory for dense node cache
      Allocating dense node cache in one big chunk
      Allocating memory for sparse node cache
      Sharing dense sparse
      Node-cache: cache=2048MB, maxblocks=32768*65536, allocation method=11
      Mid: pgsql, cache=2048
      Setting up table: planet_osm_nodes
      Setting up table: planet_osm_ways
      Setting up table: planet_osm_rels
      Using lua based tag processing pipeline with script /home/renderer/src/openstreetmap-carto/openstreetmap-carto.lua
      Using projection SRS 3857 (Spherical Mercator)
      Setting up table: planet_osm_point
      Setting up table: planet_osm_line
      Setting up table: planet_osm_polygon
      Setting up table: planet_osm_roads
      
      Reading in file: /data.osm.pbf
      Using PBF parser.
      Processing: Node(44188k 237.6k/s) Way(4610k 12.36k/s) Relation(26670 952.50/s)  parse time: 587s
      Node stats: total(44188377), max(6434488285) in 186s
      Way stats: total(4610012), max(686484151) in 373s
      Relation stats: total(26922), max(9523915) in 28s
      Sorting data and creating indexes for planet_osm_point
      Sorting data and creating indexes for planet_osm_line
      Sorting data and creating indexes for planet_osm_polygon
      Sorting data and creating indexes for planet_osm_roads
      Copying planet_osm_roads to cluster by geometry finished
      Creating geometry index on planet_osm_roads
      Copying planet_osm_point to cluster by geometry finished
      Creating geometry index on planet_osm_point
      Creating osm_id index on planet_osm_roads
      Creating indexes on planet_osm_roads finished
      All indexes on planet_osm_roads created in 20s
      Completed planet_osm_roads
      Stopping table: planet_osm_nodes
      Stopped table: planet_osm_nodes in 0s
      Stopping table: planet_osm_ways
      Building index on table: planet_osm_ways
      Creating osm_id index on planet_osm_point
      Creating indexes on planet_osm_point finished
      All indexes on planet_osm_point created in 75s
      Completed planet_osm_point
      Stopping table: planet_osm_rels
      Building index on table: planet_osm_rels
      Stopped table: planet_osm_rels in 4s
      Copying planet_osm_line to cluster by geometry finished
      Creating geometry index on planet_osm_line
      Creating osm_id index on planet_osm_line
      Creating indexes on planet_osm_line finished
      All indexes on planet_osm_line created in 218s
      Completed planet_osm_line
      Copying planet_osm_polygon to cluster by geometry finished
      Creating geometry index on planet_osm_polygon
      Creating osm_id index on planet_osm_polygon
      Creating indexes on planet_osm_polygon finished
      All indexes on planet_osm_polygon created in 344s
      Completed planet_osm_polygon
      Stopped table: planet_osm_ways in 385s
      
      Osm2pgsql took 993s overall
      node cache: stored: 44188377(100.00%), storage efficiency: 57.43% (dense blocks: 3386, sparse nodes: 24604874), hit rate: 100.00%
      + service postgresql stop
       * Stopping PostgreSQL 10 database server
         ...done.
      + exit 0
      root@T450s:/home/ernest# sudo docker run -p 80:80 -v openstreetmap-data:/var/lib/postgresql/10/main -d overv/openstreetmap-tile-server run
      
      

      and open in your browser : http://localhost/ done you have a tile server running.
      8414b7e9-a729-4dd4-bd1e-f3a7ea8cd23e-image.png

      I'm not sure how long the docker instance last and may need to be regenerated each time, fine for me I'm using it every 6 month. Please see the github info, if you want to have an docker instance lasting.

      Second step : downloading the tile, for that you need Jtiledownloader

      See : http://unav.me/offline/ and the snap store
      a191d9e2-2ca7-4800-aa70-36e2f098256c-image.png
      f2fb655c-e491-4e00-a266-0888ab5bece1-image.png
      The configuration is pretty simple : as server enter http://localhost:80/tile. then open "slippy map chooser" you should see the map.
      Then select the area of interest (defined with left click), set tile zoom level to 10,11,12,13,14,15,16,17 and click download and wait.
      56f8c977-2c75-4cea-b2e8-ab139068b2ad-image.png

      Third step :

      transfert to the phone... this is up to you, define as the step 6 there : http://unav.me/offline/
      I'm suggesting to zip the folder and extract it in the phone.
      Personnally, i'm synchronizing my Jtiledownload folder archive to my nextcloud instance and then this instance to my utouch folder, it's longer but "automatic" update.

      I hope it will help to reduce your data consumption 🙂

      Restart from scratch

      Following thise link to cleanup docker image, container and volume
      https://www.digitalocean.com/community/tutorials/how-to-remove-docker-images-containers-and-volumes

      posted in Support
      E
      ernest
    • RE: What is your main points for a perfect personal phone operative system?

      Marius,

      I would see it
      Stable devices & software,
      Fully integrated with standards like : Mail, Caldav, Webdav, Carddav etc...
      Strong base software : Mail, GPS, Communication, Browser,
      Overall being secured and hackable.

      Then Convergence + Anbox for some proprietary stuff like banking, bus ticket etc..

      posted in General
      E
      ernest
    • RE: Help creating an UBSync arm64 version

      Thanks to @belohoub, we have release the arm64 compatible ubsync version 0.6 :1st_place_medal:

      https://launchpad.net/owncloud-sync/ubsync/ubsync-0.6

      posted in App Development
      E
      ernest
    • RE: VPN on UT. Tutorial here.

      I've published the VPN editor app allowing to tune more setting.
      this app + pivpn on the otherside works great

      https://open-store.io/app/com.ubuntu.developer.pete-woods.vpn-editor

      posted in News
      E
      ernest
    • RE: Pure maps navigation port
      • PyOtherSide has been integrated to the system since 16.04

      • To keep display on : there is an example in Activity Tracker app, not sure if it's the most pretty.
        https://github.com/ernesst/ActivityTracker/blob/master/Main.qml line 45.

      posted in App Development
      E
      ernest
    • RE: Oneplus 3/3T

      Yes from what i've tried.
      I'm not a bluetooth user anyway, but i've tried in my car everything works + - good.

      posted in Oneplus 3/3T
      E
      ernest
    • RE: Browser redirect to wifi login page

      Most of the guest wifi network request to catch an non https request to bring you to their non secure login page.
      So to get the login page try to load a page in http only like http://www.no-ssl.com/ then you should normally get the login page.
      Then it's the moment to start your VPN connection.

      posted in Support
      E
      ernest
    • RE: Futify (spotify client) need beta testers

      @manland you can publish. Thanks.

      posted in App Development
      E
      ernest

    Latest posts made by ernest

    • RE: Help creating an UBSync arm64 version

      Thanks to @belohoub, we have release the arm64 compatible ubsync version 0.6 :1st_place_medal:

      https://launchpad.net/owncloud-sync/ubsync/ubsync-0.6

      posted in App Development
      E
      ernest
    • RE: Help creating an UBSync arm64 version

      @belohoub
      Super !

      Are you on telegram ? let's find a smooth way for the users to upgrade on openstore.

      posted in App Development
      E
      ernest
    • RE: Help creating an UBSync arm64 version

      @luksus
      Why do you want to build it by yourself ?

      Yes i did build the lib by myself and change the arch in the code to arm64.

      posted in App Development
      E
      ernest
    • RE: Help creating an UBSync arm64 version

      @luksus no, this one has a script in background and needs to be manually review.
      Usually brian asks for the source, compile it by itself and upload the packages.

      So if the source are not public, no upload.

      posted in App Development
      E
      ernest
    • RE: Help creating an UBSync arm64 version

      @luksus
      As explained, the code between arch version has to be the same on openstore. Currently the app has been written in c++/qml with hardcoded arch...
      Thus the code needs to be updated for multiarch... It's beyond my capabilities.

      posted in App Development
      E
      ernest
    • RE: One method to encrypt /home/phablet

      @trainailleur
      Lomiri cannot restart thus the screen remains black, while ssh access works fine.

      posted in Support
      E
      ernest
    • RE: Help creating an UBSync arm64 version

      @Luksus Yes, the architecture is hardcoded everywhere in this app 😕

      posted in App Development
      E
      ernest
    • RE: Music app, Bluetooth and 3.5mm headphone jack controls?

      @AppLee said in Music app, Bluetooth and 3.5mm headphone jack controls?:

      tated by Dobey in another thread, bluetooth improvement requires updating to 20.04 to be able to use the latest version for bluez and pulseaudio IIRC

      I'm not sure that we need 20.04 to run the latest bluez version. I'm running the bluez 5.53 version on ubuntu touch in order use my speaker (any other lower version failed on the pairing).
      the 5.53 version is available there : https://ci.ubports.com/job/ubports/job/bluez-packaging/job/xenial_-_even-newer-bluez/

      So far I didn't see any drawback.

      posted in Support
      E
      ernest
    • RE: Oneplus 3/3T

      @Stefano
      Ok so the problem is for H9 GSI V10, we switch topic then 😉

      posted in Oneplus 3/3T
      E
      ernest
    • RE: Oneplus 3/3T

      @Stefano said in Oneplus 3/3T:

      Let's talk about about Halium 7.1 here 🙂
      AFAIK, there is a bug on the OP3T camera, I don't remember if gst-droid fix it ?

      posted in Oneplus 3/3T
      E
      ernest