UBports Robot Logo UBports Forum
    • 版面
    • 最新
    • 標籤
    • 熱門
    • 使用者
    • 群組
    • 搜尋
    • 註冊
    • 登入

    Xiaomi Redmi 4X (santoni)

    已排程 已置頂 已鎖定 已移動 Xiaomi Redmi 4/4X
    xiaomiredmi
    111 貼文 41 Posters 50.0k 瀏覽 11 Watching
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
      回覆
      • 在新貼文中回覆
      登入後回覆
      此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
      • Danct12D 離線
        Danct12
        最後由 Danct12 編輯

        This is a port of Ubuntu Touch for the Xiaomi Redmi 4X (santoni).

        Sources:

        Kernel: https://github.com/ubports-santoni/android_kernel_xiaomi_santoni

        Device:

        • Device Tree: https://github.com/ubports-santoni/android_device_xiaomi_santoni
        • Vendor Blobs: https://github.com/ubports-santoni/android_vendor_xiaomi_santoni

        Halium: https://github.com/Halium/halium-devices/blob/halium-7.1/manifests/xiaomi_santoni.xml

        Status:

        Component Status
        AppArmor Y
        Boot into UI Y
        Camera Y
        Cellular Calls Y
        Cellular Data Y
        GPS Y
        Sensors Y
        Sound Y
        UBPorts Installer Y
        UBPorts Recovery Y
        Vibrator Y
        Wi-Fi Y

        Bug report / Issues

        Please report them to here: https://github.com/ubports-santoni/projectmanagement/issues

        Install

        Install using UBports installer (GET THE LATEST VERSION):
        https://github.com/ubports/ubports-installer/releases

        M 1 條回覆 最後回覆 回覆 引用 9
        • Danct12D 離線
          Danct12
          最後由 Danct12 編輯

          Video decoding is now fixed!! 🎉 :party_popper:

          Please download the latest CI from 17-01-2020.

          1 條回覆 最後回覆 回覆 引用 3
          • M 離線
            makeixo
            最後由 編輯

            wow, seems like you nearly got it!

            nice!

            1 條回覆 最後回覆 回覆 引用 0
            • K 離線
              keep37
              最後由 編輯

              Hi @Danct12
              I finally got a liltle time to test GPS on the latest build (17. Jan 2020) and it is working (at least with unav).
              I have performed the following steps

              • Boot in fastboot mode and flash the halium-boot image

              • Boot to recovery and wipe Dalvik/ART Cache, System, Vendor, Data, Cache

              • While in recovery, install the rootfs and system image

              • Reboot to Ubuntu touch and apply the rules for lxc-android-config

              • Reboot to ubuntu, download and install unav from Openstore

              • Unav asks permission for location on first start, accept it

              • Search a destination in unav and press navigate.

              • Unav says "Waiting for GPS signal ..." and after a short time (2~5 minutes), my position was found and I was able to navigate to the destination.

              Danct12D A 2 條回覆 最後回覆 回覆 引用 0
              • Danct12D 離線
                Danct12 @keep37
                最後由 編輯

                @keep37 Didn't lxc-android-config rules always applies automatically by default?

                K 1 條回覆 最後回覆 回覆 引用 0
                • K 離線
                  keep37 @Danct12
                  最後由 編輯

                  @Danct12
                  Sorry, I meant the udev rules for santoni in "/usr/lib/lxc-android-config/"

                  sudo mount -o remount,rw /
                  sudo -i # And enter your password
                  cat /var/lib/lxc/android/rootfs/ueventd*.rc|grep ^/dev|sed -e 's/^\/dev\///'|awk '{printf "ACTION==\"add\", KERNEL==\"%s\", OWNER=\"%s\", GROUP=\"%s\", MODE=\"%s\"\n",$1,$3,$4,$2}' | sed -e 's/\r//' >/usr/lib/lxc-android-config/70-santoni.rules
                  
                  1 條回覆 最後回覆 回覆 引用 0
                  • Danct12D 離線
                    Danct12
                    最後由 Danct12 編輯

                    ARM64 rootfs is now working on the device! (EXPERIMENTAL)

                    How to test arm64:

                    1. Download the latest image from CI (06-02-2020)
                    2. Download the latest rootfs from ci.ubports.com.
                    3. Install using halium-install like before and it should boot to ubports without modifications.

                    It is recommended to wipe data before you switch architecture!!

                    Otherwise, you can flash the armhf rootfs instead if you aren't interested in trying out experimental features.

                    A 1 條回覆 最後回覆 回覆 引用 0
                    • L 離線
                      linuxadopter
                      最後由 編輯

                      Is the port still under active development? I'm thinking about buying this phone and if the port is abandoned please tell me so I can buy something like Redmi 6 instead.

                      Danct12D 1 條回覆 最後回覆 回覆 引用 0
                      • A 離線
                        aceclan @Danct12
                        最後由 編輯

                        @Danct12, can You help me with "build system image" from Github Actions?
                        I need more info what to do after git clone...
                        Or need to use something from marketplace?
                        Why don't You share every fresh working image... The easiest way for "noobs like me 🙂

                        Thanks in advance,
                        Alex

                        1 條回覆 最後回覆 回覆 引用 1
                        • A 離線
                          aceclan @keep37
                          最後由 編輯

                          @keep37 it is possible to use the TWRP recovery, or just the ubport recovery?

                          K 1 條回覆 最後回覆 回覆 引用 0
                          • K 離線
                            keep37 @aceclan
                            最後由 編輯

                            @aceclan I haven't tried the ubport recovery yet. The TWRP recovery works

                            A 1 條回覆 最後回覆 回覆 引用 0
                            • A 離線
                              aceclan @keep37
                              最後由 編輯

                              Thank You @keep37 and also thanks to @Danct12
                              It is ok , the ADB works in TWRP, but I have problems with hallium-install dependency's and this doesn't work for me:

                              path/to/halium-install -p ut path/to/rootfs.tar.gz path/to/system.img
                              doesn't work for me.

                              (using manjaro linux)

                              Do You know other way to install thees two files?
                              ex.

                              • extract the rootfs and Install the system.img from TWRP gui?

                              • manual install using adb shell ?
                                (extract steps from hallium install 😞 )

                              Alex

                              A 1 條回覆 最後回覆 回覆 引用 0
                              • A 離線
                                aceclan @aceclan
                                最後由 編輯

                                I've succeeded.... 🙂

                                Danct12D 4 2 條回覆 最後回覆 回覆 引用 1
                                • Danct12D 離線
                                  Danct12 @aceclan
                                  最後由 Danct12 編輯

                                  @aceclan If you get an error, next time please post the output of halium-install.

                                  But in the future, I'll try to make it so that you don't have to depend on a bash script to install, but rather using the official UBports installer.

                                  Or if you don't want that, I'll try to make it into a TWRP recovery zip. Of course, this installation method is not supported by the UBports dev team, but rather me.

                                  1 條回覆 最後回覆 回覆 引用 0
                                  • Danct12D 離線
                                    Danct12 @linuxadopter
                                    最後由 編輯

                                    @linuxadopter Not so much people reported issues, but so far I think the port could be usable for now.

                                    Aside from loudspeaker mode in calls doesn't route to the speaker properly and a few apparmor issues.

                                    1 條回覆 最後回覆 回覆 引用 0
                                    • A 離線
                                      aceclan
                                      最後由 編輯

                                      Dual Boot -> Sysadmin approach :)
                                      

                                      I am using right now dual boot stock fw / ubport - switching boot from TWRP.
                                      I write down thees steps to my self to remember and for everyone ho would like to try...
                                      Using stock because is good... (dm-verity, rooted , ad-aware .... ) , I could not find any rom with scheduled Power On/Off feature. Needed a solution without wipe. As I understand won't mix the stuff because rootfs.img and system.img is used on ubuntu touch so it will be separated.

                                      So try ubuntu for freedom:

                                      Having already an unlocked Redmi4x, with working StockRom, rooted, dm-verity, and TWRP installed.
                                      
                                      • Boot to TWRP recovery, Backup ALL stuff including DATA.

                                      • Copy TWRP folder outside from the phone , ex. to Your desktop.

                                      • Format Data, to remove encryption, otherwise ubport installer won't work.

                                      • Copy back the TWRP folder backups to phone and restore stock rom.

                                      • Fingerprint and unlock won't work so need these steps in recovery mode:

                                        Mount Data, System, and Delete from '/data/system' folder: files with .key extension and files with 'locksettings' keyword. Reboot to system. Everything should be fine , setup up again a security pattern. Fingerprints works after that.
                                        TWRP-pinreset1.png

                                      • Reboot to recovery and Backup stock Boot partition.

                                      • Backup to fasboot , flash halium-boot.img.

                                      • Reboot to Recovery, so ADB recovery is active , flash from Your Desktop:

                                        path/to/halium-install -p ut path/to/rootfs.tar.gz path/to/system.img
                                        
                                      • Backup Hallium boot partition.

                                      Now You can switch any time , just restore Boot partition. Enjoy 🙂 .

                                      Screenshot_2020-03-04-13-39-51.png

                                      S 1 條回覆 最後回覆 回覆 引用 1
                                      • 4 離線
                                        4htet @aceclan
                                        最後由 編輯

                                        @aceclan can u explain detail how to flash system.img from twrp?

                                        A 1 條回覆 最後回覆 回覆 引用 0
                                        • A 離線
                                          aceclan @4htet
                                          最後由 編輯

                                          @4htet , if You read again the steps I wrote:

                                          • Reboot to Recovery, so ADB recovery is active , flash from Your Desktop:

                                          path/to/halium-install -p ut path/to/rootfs.tar.gz path/to/system.img


                                          Explain:

                                          When You are in recovery mode and connect the USB cable, the ADB recovery mode is active. (I suppose You already have android SDK, ADB , fastboot tools...)
                                          To check use command:
                                          adb devices
                                          in fastboot :
                                          fastboot devices

                                          so in this step won't flash from TWRP GUI, just use TWRP for adb, and reboot.

                                          How to flash, was specified already by @Danct12 , read here:
                                          http://docs.ubports.com/en/latest/porting/installing-16-04.html

                                          the basic is ->
                                          path/to/halium-install -p ut path/to/rootfs.tar.gz path/to/system.img,

                                          Best regards,
                                          Alex

                                          4 1 條回覆 最後回覆 回覆 引用 0
                                          • 4 離線
                                            4htet @aceclan
                                            最後由 4htet 編輯

                                            @aceclan Thanks for your reply. I followed your instructions. Now , when the terminal tell me to set password, this message is showing continuously. "chroot: failed to run command 'passwd' : Exec format error failed, please try again"

                                            Edit: Now I know that I cant chroot into rootfs on my redmi4x which means qemu-user-static is not working on my Ubuntu 19.04. Still can`t find the fix for that.

                                            Danct12D A 2 條回覆 最後回覆 回覆 引用 0
                                            • ? 離線
                                              舊使用者
                                              最後由 舊使用者 編輯

                                              Hey, I'm having some problems getting my 4X to boot into UT. I'm on Ubuntu 18.04 and downloaded latest System and Boot image from the Github. I also unlocked my bootloader and flashed newest TWRP. After that, I flashed Halium-Boot through fastboot. After booting back to TWRP( to get ADB to work) I started normally flashing with halium-install.
                                              Everything seems to be fine. It asked me for password and flashed system and rootfs to /data. After that while trying to boot the OS, it just locks up on Mi Logo and on dmesg -w I see:
                                              Screenshot from 2020-03-09 19-57-47.png
                                              Here's the last message from Halium-Install:
                                              Screenshot from 2020-03-09 19-59-03.png
                                              I really don't know what's the problem here. I tried reformatting /data, /system, /cache etc. and same results, I also tried installing LineageOS 16 (Official) and install ut on top of that but still the same thing.
                                              Any help is appriciated!

                                              flohackF Danct12D 2 條回覆 最後回覆 回覆 引用 0
                                              • 第一個貼文
                                                最後的貼文