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

    Android version and Libhybris

    Scheduled Pinned Locked Moved Unsolved Support
    14 Posts 3 Posters 427 Views 2 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.
      • ikozI Offline
        ikoz @poVoq
        last edited by ikoz

        @poVoq In UT you can run getprop which will dump many info regarding your device including the SDK version.
        In Android you can use apps like Treble checker.

        Alternatively, use the unpack_bootimg.py script from the porting notes.

        May the source be with you

        poVoqP 1 Reply Last reply Reply Quote 0
        • poVoqP Offline
          poVoq @ikoz
          last edited by poVoq

          @ikoz I see. But those guides seem to indicate nowhere which SDK versions are working with Halium9.

          My device seems to run on "SDK_INT:35" if I read the data correctly.

          Edit: or Treble VNDK version 30

          Fairphone 5 (Not yet installed UT on it though)

          ikozI 1 Reply Last reply Reply Quote 0
          • ikozI Offline
            ikoz @poVoq
            last edited by ikoz

            @poVoq The VNDK version is the one you are looking for (I confused SDK and VNDK previously but now edited the post). VNDK version 30 means android 11.

            The porting notes are for Android 9+, they are mostly (excluding GKI) the same for even the latest version (currently 14). The script needs as input the boot.img of the partition, which includes the kernel.

            May the source be with you

            poVoqP 1 Reply Last reply Reply Quote 0
            • poVoqP Offline
              poVoq @ikoz
              last edited by

              @ikoz Interesting. The device in question (FP5) never had Android 11, but rather was released with Android 13 and is currently on Android 15 here.

              But ok, so I assume as long as this VNDK is on version 30 the UT installer should have no issue installing UT as ultimately that is what counts?

              Fairphone 5 (Not yet installed UT on it though)

              ikozI 1 Reply Last reply Reply Quote 0
              • ikozI Offline
                ikoz @poVoq
                last edited by

                @poVoq That is correct, there shouldn't be any incompatible changes across updates that affect UT.

                May the source be with you

                G 1 Reply Last reply Reply Quote 1
                • G Offline
                  gpatel-fr @ikoz
                  last edited by

                  @ikoz

                  I think that I can plug my questions here, don't seem to be incompatible with the topic.

                  I have looked up treble on the internet, I have seen it on f-droid but not on google store, so it's not a standard android feature I understand ?

                  Also, what's up with vndk deprecation for Android 15 ? Has libhybris any chance of being updated to use the new-fangled apexes ? Maybe it's a question that should be asked on the Q&A - or maybe it has already been discussed ?

                  TIA

                  poVoqP ikozI 2 Replies Last reply Reply Quote 0
                  • poVoqP Offline
                    poVoq @gpatel-fr
                    last edited by

                    @gpatel-fr AFAIK It is usually called "Project Treble" which is what allows running GSI, see: https://developer.android.com/topic/generic-system-image/

                    Fairphone 5 (Not yet installed UT on it though)

                    G 1 Reply Last reply Reply Quote 0
                    • ikozI Offline
                      ikoz @gpatel-fr
                      last edited by

                      @gpatel-fr

                      Also, what's up with vndk deprecation for Android 15 ? Has libhybris any chance of being updated to use the new-fangled apexes ?

                      New devices use GKI (generic kernel image) which is part of the effort by Google to standarize the kernels used by devices. For us this means that the first boot will be harder to achieve, but it will be easier to get more phone hardware working due to the similarities. Halium 14 is already working to some extent so there shouldn't be any issue.

                      (Sorry for the late reply, couldn't respond when I first read it and forgot it later.)

                      May the source be with you

                      G 1 Reply Last reply Reply Quote 0
                      • G Offline
                        gpatel-fr @poVoq
                        last edited by

                        @poVoq

                        from this link my understanding that to check the vndk version, it's necessary to enable debug mode on the phone, connect a computer through usb and use adb. It's easy once the phone is bought, I was hoping for something that could be done with any Android phone demoed in a shop before buying it :-).

                        1 Reply Last reply Reply Quote 0
                        • G Offline
                          gpatel-fr @ikoz
                          last edited by

                          @ikoz said in Android version and Libhybris:

                          New devices use GKI (generic kernel image) which is part of the effort by Google to standarize the kernels used by devices. For us this means that the first boot will be harder to achieve, but it will be easier to get more phone hardware working due to the similarities. Halium 14 is already working to some extent so there shouldn't be any issue.

                          Thanks, however there is still much to understand IMO - from

                          https://source.android.com/docs/core/architecture/vndk

                          Vndk deprecation happens in Android 15, not 14 - unless Halium 14 means Android 15 ? if yes, it's really confusing 🙂

                          ikozI 1 Reply Last reply Reply Quote 0
                          • ikozI Offline
                            ikoz @gpatel-fr
                            last edited by ikoz

                            @gpatel-fr

                            Vndk deprecation happens in Android 15, not 14 - unless Halium 14 means Android 15 ?

                            I think the only thing UT has to do with VNDK is mount the correct partitions to be read by the android container, which handles the rest. Ask in the porting group for more detail, there are already some short discussions around it.

                            to check the vndk version, it's necessary to enable debug mode on the phone, connect a computer through usb and use adb

                            You can install an app called Treble Info from F-Droid.

                            May the source be with you

                            1 Reply Last reply Reply Quote 0
                            • First post
                              Last post