UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. Reynald
    3. Posts
    R
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 8
    • Posts 23
    • Groups 0

    Posts

    Recent Best Controversial
    • USB tethering not working

      I tried to use USB tethering on my OP6: not working at all (interface stays in MTP mode).

      I found that RNDIS mode was just not implemented in /usr/share/usbinit/setupusb... snif...

      So I modified (with success) /usr/share/usbinit/setupusb:

      #!/bin/sh
      CONFIG_FS=/sys/kernel/config
      CONFIG_DIR=$CONFIG_FS/usb_gadget/
      GADGET_DIR=$CONFIG_DIR/g1
      CONFIG_NAME="c.1"
      
      SERIALNUMBER=`getprop ro.serialno`             # e.g. "0123456789ABCDEF"
      MANUFACTURER=`getprop ro.product.vendor.manufacturer` # e.g. "Volla"
      PRODUCT=`getprop ro.product.vendor.model`             # e.g. "Phone"
      CONTROLLER=`getprop sys.usb.controller`        # e.g. "musb-hdrc"
      
      write() {
      	test -w "$1" || return
      	printf "$2" > "$1"
      }
      
      symlink() {
      	ln -s "$1" "$2"
      }
      
      reset_usb() {
      	rm -f $GADGET_DIR/configs/$CONFIG_NAME/mtp.gs0
      	rm -f $GADGET_DIR/configs/$CONFIG_NAME/ffs.adb
      	rm -f $GADGET_DIR/configs/$CONFIG_NAME/rndis.usb0
      }
      
      setup_rndis() {
      	reset_usb
      	write $GADGET_DIR/configs/$CONFIG_NAME/strings/0x409/configuration "rndis"
      	symlink $GADGET_DIR/functions/rndis.usb0 $GADGET_DIR/configs/$CONFIG_NAME/
      	write $GADGET_DIR/UDC $CONTROLLER
      	setprop sys.usb.state rndis
      }
      
      setup_mtp() {
      	reset_usb
      	write $GADGET_DIR/functions/mtp.gs0/os_desc/interface.MTP/compatible_id "mtp"
      	write $GADGET_DIR/configs/$CONFIG_NAME/strings/0x409/configuration "mtp"
      	symlink $GADGET_DIR/functions/mtp.gs0 $GADGET_DIR/configs/$CONFIG_NAME/
      	write $GADGET_DIR/UDC $CONTROLLER
      	setprop sys.usb.state mtp
      }
      
      setup_mtp_adb() {
      	reset_usb
      	write $GADGET_DIR/functions/mtp.gs0/os_desc/interface.MTP/compatible_id "mtp_adb"
      	write $GADGET_DIR/configs/$CONFIG_NAME/strings/0x409/configuration "mtp_adb"
      	symlink $GADGET_DIR/functions/mtp.gs0 $GADGET_DIR/configs/$CONFIG_NAME/
      	symlink $GADGET_DIR/functions/ffs.adb $GADGET_DIR/configs/$CONFIG_NAME/
      	start android-tools-adbd
      	sleep 2
      	write $GADGET_DIR/UDC $CONTROLLER
      	setprop sys.usb.state mtp,adb
      }
      
      setup_boot() {
      	if [ -e $GADGET_DIR/functions/mtp.gs0 ]; then
      		echo "Boot setup done"
      		return
      	fi
      
      	if ! mount | grep -q "$CONFIG_FS"; then
      		mount -t configfs none $CONFIG_FS
      		mkdir -p $GADGET_DIR/strings/0x409
      		mkdir -p $GADGET_DIR/functions/rndis.usb0
      		mkdir -p $GADGET_DIR/configs/$CONFIG_NAME/strings/0x409
      	fi
      
      	write $GADGET_DIR/idVendor 0x18D1
      	write $GADGET_DIR/bcdDevice 0x0223
      	write $GADGET_DIR/bcdUSB 0x0200
      	write $GADGET_DIR/os_desc/use 1
      	write $GADGET_DIR/os_desc/b_vendor_code 0x1
      	write $GADGET_DIR/os_desc/qw_sign "MSFT100"
      	write $GADGET_DIR/strings/0x409/serialnumber $SERIALNUMBER
      	write $GADGET_DIR/strings/0x409/manufacturer $MANUFACTURER
      	write $GADGET_DIR/strings/0x409/product $PRODUCT
      	mkdir -p $GADGET_DIR/functions/mtp.gs0
      	mkdir -p $GADGET_DIR/functions/ffs.adb
      	symlink $GADGET_DIR/configs/$CONFIG_NAME $GADGET_DIR/os_desc/$CONFIG_NAME
      
      	mkdir -p /dev/usb-ffs/adb
      	mount -t functionfs -o uid=32011,gid=32011 adb /dev/usb-ffs/adb
      	chown root:plugdev /dev/usb-ffs
      	chmod 775 /dev/usb-ffs
      	chown root:plugdev /dev/usb-ffs/adb
      	chmod 775 /dev/usb-ffs/adb
      
      	chown root:plugdev /dev/mtp_usb
      	chmod 660 /dev/mtp_usb
      }
      
      setup_boot
      
      if [ "$1" = "rndis" ]; then
      	setup_rndis
      elif [ "$1" = "mtp" ]; then
      	setup_mtp
      elif [ "$1" = "mtp_adb" ]; then
      	setup_mtp_adb
      else
      	echo "No configuration selected."
      fi
      
      exit 0
      

      and /usr/bin/tethering :

      #! /bin/sh
      
      NMCONF=/etc/NetworkManager/system-connections/tethering
      
      init_interface(){
      bash /usr/share/usbinit/setupusb reset
      bash /usr/share/usbinit/setupusb rndis
      ifconfig rndis0 up
      }
      
      enable(){
          MAC="$(ip -o link show rndis0 |sed -e 's/^.*ether //'|cut -d' ' -f1)"
          UUID=ca16a21d-7d8b-4b49-926e-"$(echo $MAC|sed -e 's/://g')"
          STAMP=$(date +%s)
      
          if [ ! -e $NMCONF ];then
              cat << EOF >$NMCONF
      [802-3-ethernet]
      duplex=full
      mac-address=$MAC
      
      [connection]
      id=tethering
      uuid=$UUID
      type=802-3-ethernet
      timestamp=$STAMP
      
      [ipv6]
      method=auto
      
      [ipv4]
      method=shared
      may-fail=false
      EOF
          else
              sed -i s/^mac-address=.*/mac-address=${MAC}/ $NMCONF
              sed -i s/^uuid=.*/uuid=${UUID}/ $NMCONF
              sed -i s/^timestamp=.*/timestamp=${STAMP}/ $NMCONF
          fi
      
          chmod 0600 $NMCONF
          sleep 2
          nmcli c reload
          nmcli c up id tethering
      }
      
      disable(){
          nmcli c down id tethering || true
          rm $NMCONF || true
          initctl start mtp-state
      }
      
      case $1 in
          enable)
              init_interface
              enable
              ;;
          disable)
              disable
              ;;
          *)
              echo "need an argument (enable|disable)"
              exit 0
              ;;
      esac
      

      RNDIS is now fully usable with /usr/bin/tethering enable/disable and with UT Tweak Tool.
      Enjoy!

      posted in Oneplus 6/6T
      R
      Reynald
    • RE: SIM disappears since OTA-20 update

      Please could anybody give me the content of /etc/ofono/ril_subscription.conf on his OP6?

      posted in Oneplus 6/6T
      R
      Reynald
    • RE: SIM disappears since OTA-20 update

      Seems to be a bad version of file /etc/ofono/ril_subscription.conf during update to OTA-20.

      I solved the problem by replacing with this but I'm not sure for the content (sourced from fairphone FP3) :

      [Settings]
      #EmptyConfig=false
      #Identity=radio:radio
      #3GLTEHandover=true
      #SetRadioCapability=auto
      
      SetRadioCapability=off
      emptyPinQuery=false
      radioPowerCycle=false
      confirmRadioPowerOn=false
      
      [ril_0]
      transport=binder:name=slot1
      name=slot1
      
      [ril_1]
      transport=binder:name=slot2
      name=slot2
      

      Any idea?

      posted in Oneplus 6/6T
      R
      Reynald
    • SIM disappears since OTA-20 update

      My phone (OP6) have just been updated with OTA-20.
      Now there is no SIM card unlocking form at startup and no SIM card neither cellular network shown in Network 😕

      posted in Oneplus 6/6T
      R
      Reynald
    • SIM2 disappears

      Sometimes the phone disconnects from cellular network because SIM2 slot (the only slot I use) shows "No SIM card".

      SIM2 runs OK after reboot... until the next time.

      It seems to happen more often when WiFi is switched off.

      posted in Oneplus 6/6T
      R
      Reynald
    • OP6 doesn't shutdown or reboot

      I found that when I choose "Reboot" or "Power off", the screen just goes black but the phone neither reboots or goes down: it is just "freezed" and still draining battery.

      To really power it down, I have to long press the power button while the screen is black (and press power again to restart it).

      posted in Oneplus 6/6T
      R
      Reynald
    • RE: mkdir '/cache/recovery': Required key not available

      Reinstalling older 0.8.9 installer fixed the flashing bug.
      UTouch finally installed on my OnePlus!!! (one month battle...)

      posted in UBports Installer
      R
      Reynald
    • RE: mkdir '/cache/recovery': Required key not available

      @alter Well... I start thinking a manual install script based on curl, fastboot and adb would be more usable than circumventing so many ubports-installer bugs!

      posted in UBports Installer
      R
      Reynald
    • RE: mkdir '/cache/recovery': Required key not available

      @alter Maybe, but... I tried installer 0.9.1 because installer 0.8.9 has downloading issues...

      posted in UBports Installer
      R
      Reynald
    • RE: mkdir '/cache/recovery': Required key not available

      @reynald Same problem after wiping user data from recovery mode.

      posted in UBports Installer
      R
      Reynald
    • mkdir '/cache/recovery': Required key not available

      Ubports installer error on OnePlus 6 :

      info: Welcome to the UBports Installer version 0.9.1-beta!
      [13152:1013/160212.256937:ERROR:sandbox_linux.cc(374)] InitializeSandbox() called with multiple threads in process gpu-process.
      info: device detected: enchilada
      info: Installing Ubuntu Touch on your OnePlus 6/6T (enchilada)
      info: configuring...
      info: settings: {"bootstrap":true,"wipe":"","channel":"16.04/arm64/android9/stable"}
      info: Downloading 9 files
      info: Downloaded file 1 of 9
      info: Downloaded file 2 of 9
      info: Downloaded file 3 of 9
      info: Downloaded file 4 of 9
      info: Downloaded file 5 of 9
      info: Downloaded file 6 of 9
      info: Downloaded file 7 of 9
      info: Downloaded file 8 of 9
      info: Downloaded file 9 of 9
      error: Error: adb:preparesystemimage: Error: {"error":{"code":1,"cmd":"adb -P 5037 shell mkdir -p /cache/recovery"},"stderr":"mkdir: '/cache/recovery': Required key not available"}
      stack trace: Error: {"error":{"code":1,"cmd":"adb -P 5037 shell mkdir -p /cache/recovery"},"stderr":"mkdir: '/cache/recovery': Required key not available"}
          at /opt/ubports-installer/resources/app.asar.unpacked/node_modules/promise-android-tools/lib/module.cjs:117:20
          at ChildProcess.exithandler (node:child_process:413:5)
          at ChildProcess.emit (node:events:394:28)
          at maybeClose (node:internal/child_process:1067:16)
          at Socket.<anonymous> (node:internal/child_process:453:11)
          at Socket.emit (node:events:394:28)
          at Pipe.<anonymous> (node:net:672:12)
      
      posted in UBports Installer
      R
      Reynald
    • RE: Download file checksum error

      @reynald Files correctly dowloaded with installer 0.9.1beta.

      Now it hangs at adb stage :

      info: device detected: enchilada
      info: Installing Ubuntu Touch on your OnePlus 6/6T (enchilada)
      info: configuring...
      info: settings: {"bootstrap":true,"channel":"16.04/arm64/android9/stable"}
      info: Downloading 10 files
      info: Downloaded file 1 of 10
      info: Downloaded file 2 of 10
      info: Downloaded file 3 of 10
      info: Downloaded file 4 of 10
      info: Downloaded file 5 of 10
      info: Downloaded file 6 of 10
      info: Downloaded file 7 of 10
      info: Downloaded file 8 of 10
      info: Downloaded file 9 of 10
      info: Downloaded file 10 of 10
      error: Error: adb:preparesystemimage: Error: {"error":{"code":1,"cmd":"adb -P 5037 shell mkdir -p /cache/recovery"},"stderr":"mkdir: '/cache/recovery': Required key not available"}
      stack trace: Error: {"error":{"code":1,"cmd":"adb -P 5037 shell mkdir -p /cache/recovery"},"stderr":"mkdir: '/cache/recovery': Required key not available"}
          at /opt/ubports-installer/resources/app.asar.unpacked/node_modules/promise-android-tools/lib/module.cjs:117:20
          at ChildProcess.exithandler (node:child_process:413:5)
          at ChildProcess.emit (node:events:394:28)
          at maybeClose (node:internal/child_process:1067:16)
          at Socket.<anonymous> (node:internal/child_process:453:11)
          at Socket.emit (node:events:394:28)
          at Pipe.<anonymous> (node:net:672:12)
      
      posted in UBports Installer
      R
      Reynald
    • RE: Download file checksum error

      @lakotaubp It's a download stage error, seems file is broken in the repository...

      posted in UBports Installer
      R
      Reynald
    • RE: Download file checksum error

      Same error after cache cleaned :

      info: Welcome to the UBports Installer version 0.8.9-beta!
      info: device detected: enchilada
      info: Installing Ubuntu Touch on your OnePlus 6/6T (enchilada)
      info: configuring...
      info: settings: {"channel":"16.04/arm64/android9/stable","wipe":false,"bootstrap":true}
      info: Downloading 2 files
      info: Downloaded file 1 of 2
      info: Downloaded file 2 of 2
      info: Downloading 14 files
      info: Downloaded file 1 of 14
      info: Downloaded file 2 of 14
      info: Downloaded file 3 of 14
      info: Downloaded file 4 of 14
      info: Downloaded file 5 of 14
      info: Downloaded file 6 of 14
      info: Downloaded file 7 of 14
      info: Downloaded file 8 of 14
      info: Downloaded file 9 of 14
      info: Downloaded file 10 of 14
      info: Downloaded file 11 of 14
      info: Downloaded file 12 of 14
      error: download error: Error: Error: Checksum mismatch on file /home/reynald/.cache/ubports/enchilada/Ubuntu Touch/boot-85b205f5bacfb677bb59205e57b91f50649ce3ead5097108b234ec47bce79ed0.tar.xz
      error: Error: core:download: Error: core:download Error: Error: Checksum mismatch on file /home/reynald/.cache/ubports/enchilada/Ubuntu Touch/boot-85b205f5bacfb677bb59205e57b91f50649ce3ead5097108b234ec47bce79ed0.tar.xz
      stack trace: Error: core:download Error: Error: Checksum mismatch on file /home/reynald/.cache/ubports/enchilada/Ubuntu Touch/boot-85b205f5bacfb677bb59205e57b91f50649ce3ead5097108b234ec47bce79ed0.tar.xz
          at /opt/ubports-installer/resources/app.asar/src/core/plugins/core/plugin.js:167:15
          at runMicrotasks (<anonymous>)
          at processTicksAndRejections (internal/process/task_queues.js:97:5)
      
      posted in UBports Installer
      R
      Reynald
    • Download file checksum error

      While ubports-installer is downloading files for OnePlus 6 (enchilada), it fails while downloading file 11/13:

      info: Welcome to the UBports Installer version 0.8.9-beta!
      info: device detected: enchilada
      info: Installing Ubuntu Touch on your OnePlus 6/6T (enchilada)
      info: configuring...
      info: settings: {"channel":"16.04/arm64/android9/stable","wipe":false,"bootstrap":true}
      info: Downloading 13 files
      info: Downloaded file 1 of 13
      info: Downloaded file 2 of 13
      info: Downloaded file 3 of 13
      info: Downloaded file 4 of 13
      info: Downloaded file 5 of 13
      info: Downloaded file 6 of 13
      info: Downloaded file 7 of 13
      info: Downloaded file 8 of 13
      info: Downloaded file 9 of 13
      info: Downloaded file 10 of 13
      info: Downloaded file 11 of 13
      error: download error: Error: Error: Checksum mismatch on file /home/reynald/.cache/ubports/enchilada/Ubuntu Touch/boot-85b205f5bacfb677bb59205e57b91f50649ce3ead5097108b234ec47bce79ed0.tar.xz
      error: Error: core:download: Error: core:download Error: Error: Checksum mismatch on file /home/reynald/.cache/ubports/enchilada/Ubuntu Touch/boot-85b205f5bacfb677bb59205e57b91f50649ce3ead5097108b234ec47bce79ed0.tar.xz
      stack trace: Error: core:download Error: Error: Checksum mismatch on file /home/reynald/.cache/ubports/enchilada/Ubuntu Touch/boot-85b205f5bacfb677bb59205e57b91f50649ce3ead5097108b234ec47bce79ed0.tar.xz
          at /opt/ubports-installer/resources/app.asar/src/core/plugins/core/plugin.js:167:15
          at runMicrotasks (<anonymous>)
          at processTicksAndRejections (internal/process/task_queues.js:97:5)
      (node:10150) electron: The default of contextIsolation is deprecated and will be changing from false to true in a future release of Electron.  See https://github.com/electron/electron/issues/23506 for more information
      info: Good bye!
      
      posted in UBports Installer
      R
      Reynald
    • RE: Anyone successful installing Touch (16.04) on Oneplus 6T Oxygen 10?

      @rbhawk I managed to install then stock Android/Oxygen 9.0.8 with MSM Download in EDL mode (lowest hardware recovery mode) with this tutorial : https://www.thecustomdroid.com/oneplus-6-6t-unbrick-guide/

      To start the 6 or 6T in EDL mode, set off the device and plug the USB while pressing volume + and -

      The only caveat is... MSM Download runs on Windows.

      posted in Oneplus 6/6T
      R
      Reynald
    • ubports-installer fails while downloading file 9/12

      ubports-installer recognizes the phone (Oneplus 6 - enchilada), goes recovery mode, downloads files, the 9th file has bad checksum and the whole thing fails:

      error: download error: Error: Error: Checksum mismatch on file /home/reynald/.cache/ubports/enchilada/Ubuntu Touch/boot-caf5011e14b7d983ea9f2384ef2fc43c4937bbd0006b30ff1aa65c87ae2ef8ee.tar.xz
      

      Same error after retrying...

      posted in Oneplus 6/6T
      R
      Reynald
    • RE: Oneplus 6 bricked on fastboot mode

      @lakotaubp OK, I managed to configure Android 9 and start ubports-installer.

      The new problem is: ubports-installer recognize the phone, downloads files, and the 9/12 file has bad checksum and the whole thing fails:

      error: download error: Error: Error: Checksum mismatch on file /home/reynald/.cache/ubports/enchilada/Ubuntu Touch/boot-caf5011e14b7d983ea9f2384ef2fc43c4937bbd0006b30ff1aa65c87ae2ef8ee.tar.xz
      

      I will make a new post for this issue

      posted in Oneplus 6/6T
      R
      Reynald
    • RE: Oneplus 6 bricked on fastboot mode

      I just reflashed the device with Android 9.0.8 with MSM Download, so Android 9 is running OK.

      Switched to developper mode, unlocked, and then ubports-installer (0.8.8) says "Your device sdm845 is not supported".

      On this page https://devices.ubuntu-touch.io/device/enchilada/ it's said this device sdm845 is supported, so what???

      posted in Oneplus 6/6T
      R
      Reynald
    • RE: Oneplus 6 bricked on fastboot mode

      @mrt10001 Got Mauronofrio ROM https://sourceforge.net/projects/fastbootroms/files/OnePlus 6/ and flashed 9.0.9 flawlessly, but the device still not booting (white LED on and nothing else).

      I also tried to (fast)boot to TWRP.img, but same result : white LED and nothing else.

      So the device is not "bricked" since I can access fastboot mode, but I can't manage to boot into anything else...

      posted in Oneplus 6/6T
      R
      Reynald