Navigation

    UBports Robot Logo

    UBports Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Apparmor weird bug: ubports doesn't reboot unless the apparmor cache is deleted.

    Porting
    1
    3
    420
    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.
    • N
      nitanmarcel last edited by

      Hello.

      I'm trying to port Ubports to Xiaomi Redmi Note 9/Pro/S and I'm encountering a strange bug with AppArmor:

      The first boot works fine but after I try to reboot the phone it gets stuck at the Redmi logo and the only way to make it boot is by deleting the apparmor folder from /var/cache/.

      I've spend 2 days going back and forward and I still haven't found a fix or a reason why this happens.

      Did anyone encountered this problem while porting ubports to their device?

      Halium branch: halium10
      Kernel sources: https://github.com/nitanmarcel/kernel_xiaomi_sm6250
      Ubports gitlab repo: https://gitlab.com/nitanmarcel/miatool-halium

      Thanks!

      N 1 Reply Last reply Reply Quote 0
      • N
        nitanmarcel @nitanmarcel last edited by nitanmarcel

        @nitanmarcel Coming with an update about the bug, it's not required to delete the whole folder to boot into in ubports. just the file named click_com.ubuntu.ubports_ubports_1.9.1

        Edit: False alarm. it looks like it didn't boot this time even after deleting that file

        Edit: Again. It booted but after I deleted the folder, booted and then started all over but just by deleting the file

        1 Reply Last reply Reply Quote 0
        • N
          nitanmarcel last edited by

          After a few days I decided to try another vendor.img and out of nowhere reboots worked just fine. I still have no idea why the vendor messed up apparmor but anyway, if someone happens to have the same problem he could try using different vendor images.

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