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

    Posts

    Recent Best Controversial
    • [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
    • RE: Oneplus 3/3T

      @Flohack
      See my reply there : https://github.com/ubports/ubuntu-touch/issues/1402

      posted in Oneplus 3/3T
      E
      ernest
    • RE: Help the community

      @jujubala1997 said in Help the community:

      Where do I start? What are barriers that impede UT from spreading? What should I learn in software to help the community?

      Depends your area of interest and confort : community, system, porting, coding, Art etc... and you don't even need to be good or educated in that field, like me 🙂 just learning by tweaking.

      Python wise they are several possibilities :

      • full applications : https://github.com/ernesst/ActivityTracker
      • Wrapper : https://framagit.org/ernesst/MLS-for-Utouch / https://framagit.org/ernesst/gps-utouch-tracker

      Python get integrated into QML via : https://github.com/thp/pyotherside

      A very nice python lib would be great to integrate into Utouch : https://github.com/owncloud/pyocclient for Nextcloud/Owncloud.

      Welcome in the community.

      posted in General
      E
      ernest
    • RE: [Halium9-GSI] - Oneplus 3(T)

      @Stefano

      • Bluetooth is rootfs dependent mainly. Cf post of @peat_psuwit.
      • Wifi - Not yet, I've found a nicer solution for 7.1 too so I'll update both. But while wait I can tell you we the two files should go. I'll see how it goes on h7.1 but seems way smoother in H9. I hope my update will make smoother H7.1 too.
        As it's still under WIP and GSI is standardize, likely i'll create a patch OP3.
      • Flash ligth, i'm using a modified app .. an old indicator, I'll to recompile it for armhf rootfs.

      I'm not sure what the firmware change does... I didn't flash specific one for the ubports version and likely they're from latest official Oneplus image. I don't see much problem.
      Each time you'ill need to flash halium-boot, lineage modified and ubports GSi.

      posted in Oneplus 3/3T
      E
      ernest
    • RE: [Halium9-GSI] - Oneplus 3(T)

      @aanno said in [Halium9-GSI] - Oneplus 3(T):

      Very interesting. So interesting that I've tried - but I already failed with 'treblezing' the device - and the rest of the documentation is even more thrilling...

      I still got some general questions about GSI on 3T. Perhaps somebody reading this can answer them:

      • Is 'treblezing' the future direction for 3T, i.e. will there be a 'vendor' system plus (device-independant) GSI images?

      Are you refering to OP3 ubports future ? I'm not in the position to decide. I've supported halium 7.1 port, add my small participation to previous amazing work by fixing there and there bugs + enabling bluetooth over 6 months. The results is still far from perfect significant bugs remains...and some hardware issue like the fingerprint reader.
      I tooks me 2 weeks to enable the device for Erfan GSI ubports....and the result was great in term of daily usage (Once i found a counter measure to the ofono/rild bug, but still not a proper fix)
      Now I'm testing V10

      • Are GSI images android version dependant? I.e. will there be different GSI images for android 9, android 10, and so on?

      Currently it's android 9 vendor depend.

      • Is 'Halium9-GSI' a official Halium version? Will GSI be the direction Halium will take?

      Good question, I'm not the one able to answer.

      • I still haven't understood what modifications are needed on boot and kernel for GSI. Can somebody elaborate on this?

      From the phone I'm limited in the answer but kernel requires modification to allows the android container and ubports to boot. I suggest to read the halium documentation and join telegram halium group.

      • [off-topic] It seems that there are other (unofficial) GSI image, e.g. lineage images. Is there a change that they run on 3T?

      I didn't try, due to my lack of interest in android in general.

      posted in Oneplus 3/3T
      E
      ernest
    • RE: [Halium9-GSI] - Oneplus 3(T)

      I confirming that it's the OP3T camera creating issues.

      I just tried it on a OP3, no issue with the camera and so far I didn't noticed issue with the phone except :

      • The power menu doesn't switch off the phone,
      • Some boot there is a race condition affecting the wifi and telephony.

      I've updated my patch for the OP3 version 1.4

      The phone feels really smooth.

      For the OP3T camera, I presume significant amount and competencies are required to fix this issue, likely beyond mine.
      ~~For instance, we are not the only one with OP3T camera issue : https://forum.xda-developers.com/oneplus-3t/themes/mod-camera-hdr-fix-t3742366~~

      posted in Oneplus 3/3T
      E
      ernest
    • RE: One method to encrypt /home/phablet

      FYI : https://bugs.launchpad.net/ubuntu/+source/ecryptfs-utils/+bug/1756840

      posted in Support
      E
      ernest
    • RE: UBports Community Q&A: Saturday, May 27, 2017

      Is there any though to ask Cannonical to send a message to all app publishers in order to inform them about openstore ?

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

      @FBrain
      To install other version of bluetooth :
      https://github.com/ubports/bluez-packaging/pull/6#issuecomment-592493552

      the 5.53 works fine https://ci.ubports.com/job/ubports/job/bluez-packaging/job/xenial_-_even-newer-bluez/
      click on + view.

      posted in Oneplus 3/3T
      E
      ernest
    • RE: Early install on Nexus 4?

      Hello,

      look at the bug list on mako,
      https://github.com/ubports/ubports-touch/issues?q=is%3Aopen+is%3Aissue+label%3A"device%3A+mako"
      If you juge it acceptable you can flash, but currently it's still considered experimental

      posted in Support
      E
      ernest
    • RE: Mozilla Locations Service on Ubuntu Touch

      All, in order to help, I've create a wrapper in python which scan wifi and gps position.

      It's not the most userfriendly, but quite simple to use and can run in background too if the terminal is set for it.

      Please test and let me know.
      https://framagit.org/ernesst/MLS-for-Utouch/tree/master

      Note :

      • Upload to MLS is done automatically when the app is closed by a Ctrl+C and phone connected to internet.
      • No parallel use with Unav or Activity Tracker test has been properly done yet 🙂
      • Only tested with Nexus 5, if fail with other device, please create a bug.

      If anybody know how to list cells tower around the device, please let me know. So far all the ofono script doesn't allow that 😕

      Further implementation : If this script is able to run in background without disturbing user apps, would be interesting to add a on/off button in the GPS menu.

      posted in General
      E
      ernest