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

What's Inside the Black Box of Ubuntu Touch?

Scheduled Pinned Locked Moved General
49 Posts 9 Posters 10.0k Views 4 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.
    • D Offline
      dobey @rob
      last edited by 1 Feb 2020, 05:05

      @rob You shouldn't need to "configure" any apps in any way for these things. You need a .desktop file for your app in libertine, and you need to launch the app with ubuntu-app-launch from the host. It runs the app with a clean environment, and sets variables that need to be set. As xcb is the default QPA, and the app is run under Xmir (and thus has $DISPLAY set), it should try to use that. If not, perhaps there is a bug somewhere, but libertine is also an experimental feature to allow using legacy apps (which are mostly only usable on larger screens with a mouse and keyboard attached).

      If you want to develop mobile native apps, really, libertine is not the way to do it.

      1 Reply Last reply Reply Quote 0
      • R Offline
        rob
        last edited by 1 Feb 2020, 07:26

        @dobey thank you. the question on the setting was for me to understand how the graphics framework knows to use which display client to use. That's all. Most of my questions here are for discovery and education (for my Youtube videos on UT) and not for anything I'm specifically doing.. One of the videos will discuss Mir specifically.

        And it actually came to me as I ran libertine launch and the message about the mirclient came up. I was just curious where that was set.

        This is a great community and I hope to be saying many positive things about it and all of you.

        1 Reply Last reply Reply Quote 1
        • A Offline
          arubislander @Guest
          last edited by 1 Feb 2020, 09:47

          @3arn0wl,

          @rob's goal, as I understand it, is not to create an app at all, but to explore the limits of what is possible with the system, preferably while still remaining within support (i.e. not breaking OTA updates)

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

          ? 1 Reply Last reply 1 Feb 2020, 13:22 Reply Quote 0
          • ? Offline
            A Former User @arubislander
            last edited by 1 Feb 2020, 13:22

            πŸ™‚ I fully understand that, @arubislander.

            A 1 Reply Last reply 1 Feb 2020, 15:33 Reply Quote 0
            • A Offline
              arubislander @Guest
              last edited by 1 Feb 2020, 15:33

              My apologies, @3arn0wl. Your comment threw me off.

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

              1 Reply Last reply Reply Quote 0
              • R Offline
                rob
                last edited by 1 Feb 2020, 16:33

                @arubislander indeed! at least for now.

                I have a couple of apps I could port over too to the openstore. And there are some changes I'd suggest to the system apps. But that's not connected to this thread.

                1 Reply Last reply Reply Quote 0
                • D Offline
                  dobey @rob
                  last edited by 1 Feb 2020, 17:10

                  @rob said in What's Inside the Black Box of Ubuntu Touch?:

                  @3arn0wl I hope the real objective is freely do whatever we want. Sometimes we use shared public apps. Sometimes we may want to make private apps. Sometimes we just want to play

                  To be fair, you can do whatever you want, as the device is yours and all the code is open source (save of course for the binary blobs in Android side for drivers/firmware). However, it doesn't mean doing what you want is necessarily supported by the software, or that it necessarily should be.

                  Strictly speaking, Libertine is an experimental feature designed for the purpose of running legacy (X11 and non-converged) apps within the confined environment of Unity 8, either on a PC or when using a phone/tablet with an external display, mouse, and keyboard. There are a few additional things you can use the Libertine container system for, such as a way to install and run terminal apps from the Ubuntu archive, compiling things natively on a phone, etc…

                  Despite GTK+ being installed in the rootfs (it's really only there because the keyboard indicator, which is used for external keyboards, uses GDK to draw the [EN] "icon" you see in the panel), it is not a directly supported toolkit target of the system. You can build/install something in a Libertine container, and use it with GTK+, but as I mentioned before, you will need to develop the app nearly to the point of something you would ship, with a myapp.desktop file, and you will need to install all the dependencies you need, so that the app can run. You also cannot run ./myapp directly in the container, nor run libertine-launch ./myapp and need to run it such as ubuntu-app-launch containerid_myapp_0.0 from the host (where containerid_myapp_0.0 is the appid, which should appear in the output of ubuntu-app-launch-appids after you've created the app and myapp.desktop file inside the container).

                  1 Reply Last reply Reply Quote 0
                  • R Offline
                    rob
                    last edited by 1 Feb 2020, 17:50

                    @dobey here's why I started playing with Libertine.

                    in theory, on a standard phone like the Nexus 5 I'm using, there are many space limitations doing even testing inside the host. While there are not the same space limitations inside Libertine.

                    So let's just say I'm testing an app that I could load in the host. I run apt-get install and it says out of space in /cache which apparently is where apt puts it's stuff.

                    Given the lack of resources available, it's not even possible to do much playing at the host side and then one is stuck with libertine, and its limitations and 'experimental' bugs.

                    Now I expect this would be different on a pinephone since UT is not stuck with the pre-made partitions on Android.

                    I also understand that there are differences in pre-loaded libraries in the Host vs what's in Libertine (desktop 16.04) which brings it's own different set of issues.

                    The point of this exercise is to see if I can do normal Linux things on a UT device vs. let's say using PostmarketOS. This is a valid comparison and an often made one between the OS options.

                    I understand the upcoming changes (wayland, pinephone) will change the comparison.

                    One might say that this kind of playing is not normal and would break OTA updates. But that will really be a non issue on the Pinephone since one could just have a clean UT install always available on an extra SD card.

                    Partly this ability to play with this stuff is why we're on Linux. Partly it's also because of privacy advantages.

                    In any case, I've concluded that Libertine isn't the answer but need more space on the host to do more experimentation. Hopefully the Pinephone will give that space.

                    D 1 Reply Last reply 1 Feb 2020, 21:33 Reply Quote 0
                    • H Offline
                      hummlbach
                      last edited by hummlbach 2 Jan 2020, 20:26 1 Feb 2020, 20:25

                      @rob if you want to experiment with your phone, you don't need to wait for the pinephone. You can resize your root partition today (most likely), the android stuff doesn't hinder you. Maybe you want to have a look at: https://github.com/timsueberkrueb/plasma-phone-dev-setup/blob/master/usr/bin/resize-root-partition

                      1 Reply Last reply Reply Quote 0
                      • D Offline
                        dobey @rob
                        last edited by 1 Feb 2020, 21:33

                        @rob said in What's Inside the Black Box of Ubuntu Touch?:

                        The point of this exercise is to see if I can do normal Linux things on a UT device vs. let's say using PostmarketOS. This is a valid comparison and an often made one between the OS options.

                        I think this is a poor distinction to make. Ubuntu Touch is not a traditional Linux distribution, so no, you cannot treat it like one. It is an OS designed with phone/tablet use in mind, and with security restraints to that effect. It's only a valid comparison for people who do not want a phone or tablet, but instead want something they can treat like a traditional Linux distro, in their pocket. And those are two very different things, for which making the comparison in such a manner, doesn't promote the benefits of such a system, and treats the traditional and less secure way as something inherently better.

                        @rob said in What's Inside the Black Box of Ubuntu Touch?:

                        Partly this ability to play with this stuff is why we're on Linux. Partly it's also because of privacy advantages.

                        Android is still Linux. So far, the things you've talked about in terms of building and running an app directly on the phone, have absolutely nothing to do with whether there is a Linux kernel running on the device though. Linux is running on billions of devices in the wild. Simply because you can't ssh into those devices arbitrarily and do some traditional things you might be used to on Debian or Ubuntu on your PC, doesn't make those devices not be Linux. Android is the same.

                        @rob said in What's Inside the Black Box of Ubuntu Touch?:

                        In any case, I've concluded that Libertine isn't the answer but need more space on the host to do more experimentation. Hopefully the Pinephone will give that space.

                        Libertine is the answer, as it is what provides a container for installing and running legacy apps. However, it doesn't magically make those apps responsive or usable on phones, nor does it enable a full traditional Linux distribution experience. Likewise, Pinephone is not an answer here, as it is not the only device that UT will be supporting. The rootfs contents (in terms of what is supported by UT) must remain consistent across devices, regardless of whether they use libhybris or not, and whether or not they are stuck with Android style partitioning. Doing anything different in this area across different devices will only make it harder to support, harder to build apps for UT, and harder for users to use UT. Those are all things we clearly do not want.

                        1 Reply Last reply Reply Quote 3
                        49 out of 49
                        • First post
                          49/49
                          Last post