-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Try Redmi Note 9 LineageOS #149
Comments
On FASTBOOTD:
Output:
Source: https://source.android.com/docs/core/tests/vts/gsi#flashing-gsis |
https://crdroid.net/merlinx/10 supports Android 14 but is no longer supported. |
Should investigate https://new.c.mi.com/global/miuidownload/detail/guide/1. |
https://doc.e.foundation/devices/merlinx and https://crdroid.net/sweet/11 just copy LineageOS documentation it seems. |
DuckDuckGo and YouTube search Redmi Note 9 LineageOS install. |
https://en.miui.com/unlock/download_en.html Should investigate https://new.c.mi.com/global/post/101245. |
OEM unlock present in Developer options but not mentioned in LineageOS guide? However, it does not seem to help. |
Updater settings already installed does not seem to provide the ability to install LineageOS. |
adb shell whoami
adb shell cat /proc/cpuinfo Output:
|
DuckDuckGo search MT6769Z: so it seems to be a MediaTek chip but I doubt I am currently facing a driver issue. Related to Benjamin_Loison/windows/issues/52. |
Could try to figure out what is being tried on USB in plaintext, as there is a fastboot executable. |
Still have the same Couldn't verify device after investigating https://i.mi.com/mobile/find and 9 hours. TWRP and Magisk may help but I hardly doubt so for the latter. |
The person:
have maybe found GitHub tools to help unlock the bootloader. RohitVerma882/termux-miunlock may help. |
RohitVerma882/XiaoMiToolV2 does not have any change compared to: could try it in a virtual machine, ensuring that able to detect the phone anyway. |
https://www.xiaomitool.com/V2/#qa_unlock
|
DuckDuckGo and Google search "Couldn't verify device" Redmi Note 9. |
Maybe Global or China ROM version would help, source: https://xiaomi.eu/community/threads/couldnt-verify-device-mi-unlock.46776/post-478897. |
DuckDuckGo search |
Maybe the used software have logs. Could also pay attention if some logs are shown on the phone screen but it does not seem to be any interesting. |
YouTube video: x8h7FZ0lE00 does not help. |
YouTube video: zTArE7sixJI seems too complicated in comparison with using a computer. |
Should investigate https://xdaforums.com/t/help-unable-to-unlock-bootloader.4422491/. |
Maybe can try install a beta version or even more up-to-date through a Xiaomi tool, source: https://xiaomi.eu/community/threads/couldnt-verify-device-cant-get-info-connect-again.33885/ |
flash recovery recovery.img Output:
fastboot reboot fastboot Output:
fastboot flash recovery recovery.img Output:
|
The person:
only proceeded through the updater settings which refused previously, before figuring out the region change trick to update the phone. So he has not used a computer. |
Note that the screenshot is incomplete, related to #18. |
both do not help Mi unlock. Windows update proposed as optional update for MediaTek port and I installed it. The phone emitted a sound as requested online (through find my device service) about an hour before. Now detected in Mi unlock software while on orange FASTBOOT thanks to one of these 2 changes it seems. |
git config --global trailer.changeid.key 'Change-Id'
export USE_CCACHE=1
export CCACHE_EXEC=/usr/bin/ccache
ccache -M 50G
|
sudo apt install -y ccache Output:
ccache -M 50G
|
cd ~/android/lineage
repo init -u https://github.com/LineageOS/android.git -b lineage-20.0 --git-lfs --no-clone-bundle Output:
|
Benjamin_Loison/repo/issues/6 would help. |
date; time repo sync Output:
|
source build/envsetup.sh
breakfast merlinx Output:
|
python
python3 Output:
sudo apt install -y python-is-python3 Output:
|
breakfast merlinx Output:
|
breakfast merlinx Output:
|
I suspect that could give another try to LineageOS 21, as #issuecomment-2577134462 faces #issuecomment-2567999583 which I solved thanks to extracting blobs. So let us make the reproducibility from scratch on OVH environment before trying again. |
While extracting blobs from official ROM looks more correct, as there will not be any update from official ROM, LineageOS extraction is fine. |
wget https://mirrorbits.lineageos.org/full/merlinx/20241224/lineage-20.0-20241224-nightly-merlinx-signed.zip Output:
|
echo '450ba082540854c7fd5ead0805599c5d3556d157e9f62de9408b6c2eea30feb1 lineage-20.0-20241224-nightly-merlinx-signed.zip' | sha256sum --check
|
mkdir ~/android/system_dump/
cd ~/android/system_dump/
sudo apt install -y unzip Output:
for type in system vendor product system_ext
do
unzip ~/android/lineage/lineage-20.0-20241224-nightly-merlinx-signed.zip $type.{transfer.list,new.dat.br}
done Output:
sudo apt install -y brotli Output:
|
for type in system vendor product system_ext
do
brotli --decompress --output=$type.new.dat $type.new.dat.br
done does not return anything. |
git clone --depth 1 https://github.com/xpirt/sdat2img Output:
|
for type in system vendor product system_ext
do
python sdat2img/sdat2img.py $type.{transfer.list,new.dat,img}
done Output:
|
mkdir system/
sudo mount system.img system/
for type in vendor product system_ext
do
system_folder=system/$type
#rm -R $system_folder/*
sudo mount $type.img $system_folder/
done does not return anything. |
cd ~/android/lineage/device/xiaomi/merlinx/
./extract-files.sh ~/android/system_dump/system/ Output:
for type in vendor product system_ext
do
sudo umount ~/android/system_dump/system/$type
done
sudo umount ~/android/system_dump/system |
breakfast merlinx Output:
sudo apt install -y libncurses5 libc6 gcc-multilib libssl-dev zip rsync date; time brunch merlinx |
Bash script:sudo apt update
sudo apt upgrade -y
sudo apt autoremove -y
sudo apt dist-upgrade -y
mkdir -p ~/bin/ ~/android/lineage/
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo
sudo apt install -y git
git config --global user.email '[email protected]'
git config --global user.name 'Benjamin Loison'
sudo apt install git-lfs
git config --global trailer.changeid.key 'Change-Id'
export USE_CCACHE=1
export CCACHE_EXEC=/usr/bin/ccache
sudo apt install -y ccache
ccache -M 50G
cd ~/android/lineage
. ~/.profile
repo init -u https://github.com/LineageOS/android.git -b lineage-20.0 --git-lfs --no-clone-bundle
date; time repo sync
source build/envsetup.sh
sudo apt install -y python-is-python3
FILE=lineage-20.0-20241224-nightly-merlinx-signed.zip
wget https://mirrorbits.lineageos.org/full/merlinx/20241224/$FILE
echo "450ba082540854c7fd5ead0805599c5d3556d157e9f62de9408b6c2eea30feb1 $FILE" | sha256sum --check
mkdir ~/android/system_dump/
cd ~/android/system_dump/
sudo apt install -y unzip
for type in system vendor product system_ext
do
unzip ~/android/lineage/$FILE $type.{transfer.list,new.dat.br}
done
sudo apt install -y brotli
for type in system vendor product system_ext
do
brotli --decompress --output=$type.new.dat $type.new.dat.br
done
git clone --depth 1 https://github.com/xpirt/sdat2img
for type in system vendor product system_ext
do
python sdat2img/sdat2img.py $type.{transfer.list,new.dat,img}
done
mkdir system/
sudo mount system.img system/
for type in vendor product system_ext
do
system_folder=system/$type
sudo mount $type.img $system_folder/
done
cd ~/android/lineage/
breakfast merlinx
cd ~/android/lineage/device/xiaomi/merlinx/
./extract-files.sh ~/android/system_dump/system/
for type in vendor product system_ext
do
sudo umount ~/android/system_dump/system/$type
done
sudo umount ~/android/system_dump/system
breakfast merlinx
sudo apt install -y libncurses5 libc6 gcc-multilib libssl-dev zip rsync
rm ~/.cache/ccache
mkdir -p ~/.cache/ccache/tmp/
date; time brunch merlinx
ls -lh ~/android/lineage/out/target/product/merlinx/lineage-20.0-*-UNOFFICIAL-merlinx.zip |
history | grep 'apt install' does not help. |
Following #issuecomment-2645996328: find -name 'AccountManagerService.java'
|
|
Well LineageOS 21 compilation does not work: |
See the Signal message at 1739225277216 with the phone maintainer about requesting him if the update works fine on the phone. |
Does not the Bash script:sudo apt install -y brotli
git clone --depth 1 https://github.com/xpirt/sdat2img
for type in system vendor product system_ext
do
unzip ~/android/lineage/$FILE $type.{transfer.list,new.dat.br}
brotli --decompress --output=$type.new.dat $type.new.dat.br
python sdat2img/sdat2img.py $type.{transfer.list,new.dat,img}
done work fine? |
Output:
Same output for
fastboot flashing unlock_critical
andfastboot oem unlock
.From orange FASTBOOT
fastboot reboot fastboot
and restartmiflash_unlock.exe
makes the phone detectable in this software by switching graphically to FASTBOOTD blue.Related to #25 and #146.
At 50%:
Output:
Output:
Output:
Could give a try to https://flash.android.com to try to temporarily install GSI.
The text was updated successfully, but these errors were encountered: