• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
UBports Robot Logo UBports Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

/home/phablet directory not present?

Scheduled Pinned Locked Moved Oneplus 5/5T
14 Posts 7 Posters 767 Views 3 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C Offline
      Chester
      last edited by Chester 29 Jan 2023, 22:35

      Hello,

      I'm currently using a OP5 and would like to develop apps for UBports. To do this, I'll have to use 'clickable' the dev tool for UBports, and to connect my OP5 to my computer. There are two ways to connect to the phone through a computer: usb with ADB or wifi with SSH. In both case, it seems that I'll need to access to the /home/phablet directory of the device.
      My problem is that this directory isn't present in my device when I check through adb (device in recovery mode). When I boot back in normal mode (adb isn't working on a OP5 in normal mode) and check with the UBports terminal, the /home/phablet directory is present!? Do someone knows about that mess?

      Thanks for your help

      1 Reply Last reply Reply Quote 0
      • K Offline
        kugiigi
        last edited by 30 Jan 2023, 04:10

        Does your device work normally? Because it's impossible that that directory isn't present because that's the home directory. Also, why do you need to access it for app development?

        C 1 Reply Last reply 30 Jan 2023, 23:26 Reply Quote 0
        • C Offline
          Chester @kugiigi
          last edited by 30 Jan 2023, 23:26

          @kugiigi
          Yes, my device is working normally. It's my daily phone. πŸ˜‰

          Unless I'm wrong, clickable needs this directory, because it's looking for it when it's pushing the compiled program to the target device. The alternative is to set and use a ssh connexion with clickable, but in the UBports documentation for SSH, you have to connect to the target using the phablet id (phablet@deviceIPadress)...

          K A 2 Replies Last reply 31 Jan 2023, 00:26 Reply Quote 0
          • K Offline
            kugiigi @Chester
            last edited by 31 Jan 2023, 00:26

            @chester I'm pretty sure that directory is there. What is exactly the error you're encountering? I suggest just setting up SSH for ease of use I personally haven't tried ADB in a long time. Using SSH on clickable is very easy: clickable --ssh <IP>

            M 1 Reply Last reply 1 Feb 2023, 15:33 Reply Quote 0
            • M Offline
              mateo_salta @kugiigi
              last edited by mateo_salta 2 Jan 2023, 15:36 1 Feb 2023, 15:33

              @kugiigi won't see it like that in recovery i think, will be in the data partition? and have to mount it i guess in recovery ( I'm not sure recovery's adb will work for devloping via clickable)

              since adb is not working maybe try ssh?

              or have you enabled developer mode in system settings -> about ?

              1 Reply Last reply Reply Quote 0
              • C Offline
                Chester
                last edited by 5 Feb 2023, 12:39

                Thanks for your replies.
                I activated ssh on my OP5, then tried to connect to ssh through the terminal of my computer, using the command 'ssh phablet@deviceIP'. I got the answer "permision denied (publickey)".
                As I said previously, I tried to follow this guide on the UBports documentation, but I can't do the 'configure your device' chapter because of lack of the home/phablet directory. That's why I got a mess with the public/private ssh keys... :zany_face:

                J 1 Reply Last reply 5 Feb 2023, 16:35 Reply Quote 0
                • J Offline
                  jonius @Chester
                  last edited by 5 Feb 2023, 16:35

                  @chester could you please paste the exact error message you are referring to? Btw, if you struggle pushing the SSH key via ADB, you can use other means like MTP or sharing it via a messenger.

                  C 1 Reply Last reply 7 Feb 2023, 23:15 Reply Quote 0
                  • A Offline
                    arubislander @Chester
                    last edited by 6 Feb 2023, 10:04

                    @chester Hi,

                    What version of Ubuntu Touch are you on? 16.04 or 20.04?
                    Have you enabled Developer mode on your device? Without it ADB will not work. In 20.04 I noticed in passing that the device wouldn't even show up on the computer desktop without developer mode being on. But I need to double check that to be sure.

                    πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
                    Happily running Ubuntu Touch
                    Google Pixel 3a (20.04 DEV)
                    JingPad (24.04 preview)
                    Meizu Pro 5 (16.04 DEV)

                    M C 2 Replies Last reply 6 Feb 2023, 12:00 Reply Quote 0
                    • M Offline
                      Moem @arubislander
                      last edited by 6 Feb 2023, 12:00

                      Device page for OP5 says:

                      adbaccess.jpg

                      Might that be the problem?

                      Is currently using an Op5t
                      Also owns an Op1, a BQ E4.5 and an Xperia X, as well as a BQ tablet and a Pinetab2. Please, someone... make it stop.

                      1 Reply Last reply Reply Quote 1
                      • C Offline
                        Chester @arubislander
                        last edited by 7 Feb 2023, 23:07

                        @arubislander
                        Hello. I'm using a 16.04 version, OTA-24. Dev mode is on, udev rules ok, but nothing is shown by the 'adb devices' command in the terminal.
                        In recovery mode, adb is working...

                        L 1 Reply Last reply 8 Feb 2023, 06:27 Reply Quote 0
                        • C Offline
                          Chester @jonius
                          last edited by 7 Feb 2023, 23:15

                          @jonius
                          I didn't think about MTP. Let's have a try this way...

                          L 1 Reply Last reply 8 Feb 2023, 06:28 Reply Quote 0
                          • L Offline
                            Lakotaubp @Chester
                            last edited by 8 Feb 2023, 06:27

                            @chester adb works in recovery, try fastboot devices in Bootloader.

                            1 Reply Last reply Reply Quote 0
                            • L Offline
                              Lakotaubp @Chester
                              last edited by 8 Feb 2023, 06:28

                              @chester MTP works for me on mine. You might need to UT Tweaktool from the OpenStore to manage things.

                              1 Reply Last reply Reply Quote 0
                              • C Offline
                                Chester
                                last edited by 12 Feb 2023, 23:11

                                I finally managed to get it working. Thank you all for your help and advices. πŸ™‚

                                To do so, I used usb with MTP to transfer the ssh public key file generated on my computer to my OP5. After that I used the terminal on my phone to manipule files and folders using the phablet account. Note that this account seems not present in recovery mode.
                                I followed the chapter 'configure your device' on that page, turned the wifi on, and enabled ssh.
                                Now the ssh connection is working fine. I can now use the clickable --ssh option the develop on my OP5.

                                Again, thank you all!! πŸ™‚

                                1 Reply Last reply Reply Quote 0
                                6 out of 14
                                • First post
                                  6/14
                                  Last post