Problem trying to install lineage os - Xiaomi Mi Mix 2S Questions & Answers

Hi, I have a problem trying to install lineage os 16. The problem is when I flash the rom with twrp (no matter what version). The installation stops at 46% and I get the following message: "patching system image unconditionally ...
patching vendor image unconditionally ...
detected filesystem ext4 for / dev / block / bootdevice / by-name / system."
After this and after installing the google apps, I reboot but I am loading the rom and later the recovery is restarted.
I tried with abd sideload and copying the zip file to internal storage.
Could anyone help me and give me some advice? Thank you.
I have searched on internet to find a solution but I haven´t see anything

Related

Jewel - Custom Rom Installation Problems - Pac man /

S-OFF
1.
I used the official RUU for Jewel SENSE50 4.13.651.4
(everything installs correctly and works)
2.
I used fastboot to flash twrp 2.8.6.4 (also tried 2.8.6.0 )
per - android.cmphys.c o m/twrp-jewel
Fastboot says success.
3.
I boot into recovery.
Perform a Factory reset
( No errors present and completes Successful)
4.
Install Pac Jewel Rom 20150515-044902.zip
It says successful, but it presents this line :
( detected filesystem ext 4 for /dev/block/platform/msm_sdcc.1/by-name/system )
5.
I install gapss for android 5.0 20150222-signed.zip
6.
Reboot and it hangs after installing all apps ( starting apps)
I've tried to mount /system in recovery and then wipe it. I've also tried to wipe it when it wasn't mounted.
I'm sure i've got all the drivers I need. I can use adb to open shell and browse the filesystem. Fastboot also is able to do most commands. Wouldn't allow a fastboot format system.
Any pointers would be appreciated. Thank you for your time.
You can close this sorry. I used a different gapp package and it no longer hung on starting apps.

TWRP unable to wipe or format `Failed to mount '/system' (Device or resource busy)`

I'm trying to install LineageOS and then GAPPS on my Pixel XL from TWRP recovery. I'll try to `Advance Wipe` the `/systems` directory and `Format Data`, but I continue to get multiple errors:
Code:
Failed to mount '/system' (Device or resource busy)
Code:
Failed to mount '/vendor' (Device or resource busy)
And
Code:
Unable to wipe 'System'
Code:
Unable to wipe '/system'
If I just continue with `adb sideload lineageos.zip` most of the time it stops about halfway (PowerShell shows `47%`) through and then TWRP shell shows:
Code:
Installing zip file '/sideload/package.zip'
Step 1/2
Step 2/2
I then try to `sideload` the `gapps.zip` file and get another error saying `/system` doesn't have enough space. I've tried sideloading several different gapps versions including their smallest `pico` zip fie of `91.39 MiB`.
I am able to then boot into LineageOS, but no GAPPS show and I'm not able to run any new apps installed via APK without them crashing.
My assumption is that I need to fully wipe `system` and format it, but I've been trying for two days now and still get the above `(Device or resource busy)` errors. Any help would be much appreciated!
Make sure you have the latest tools.
Latest TWRP for marlin is 3.3.0-0
Latest platform-tools is 29.0.1
Not sure what's the cause of this, but if you want to wipe and start fresh I think the best option is reflash the stock factory image that completely wipes everything and restores everything stock.
Then, you can retry wiping the device using the latest TWRP (currently, marlin is 3.3.1-0, the zip is 3.3.0-0, try just boot it and don't flash the zip), flash LOS and then gapps.
Also, as pointed by @post-mortem, make sure you are using the latest adb version when flashing the factory image, just to avoid any potential issue.
Don't use 3.3.1-0. Try 3.3.0-0. I had the same issue.
Why doesn't TWRP Team provide an answer as to why this happens? It appears to affect everyone with the latest official Pixel ROM.
Twrp is for Android pie and has trouble mounting stock Android 10. They have announced this on their website. This shouldn't matter since you're installing lineage. You don't need to wipe system before installing lineage because it installs into the inactive slot. You need to sideload lineage then reboot into recovery to switch slot's. The instructions are on the lineage website.
Did OP manage to solve this issue?

cant access system partition in twrp

hey i want to install a custom rom (gsi) so i hope some people can help me out
main info: i have a ulefone note 9p with mediatek 6762 (runs with mediatek 6765 android scatter) and android 10.
this twrp is a twrp 3.4.0. built for ulefone note 9p i downloaded from here:
unofficial twrp 3.4.0 Root Ulefone Note 9P - unofficial twrp
download unofficial twrp 3.3.1 root Ulefone Note 9P, user who own Ulefone Note 9P can root it by following the below instructions
unofficialtwrp.com
after going to the painful procedure of unlocking bootloader flashing stock and twrp modified rom + rooting the device
i stuck at the procedure to install a gsi image via twrp.
i already know that the device must be unrooted and i have already gained some experiences in flashing the rom
even after a few softbricks, so i will try installing this image with a stock rom and twrp after i received the help i need.
i use a sd card because twrp always disappears when i transfer a file via my phone and i land on stock recovery.
this problem solves when i root my phone via magisk. as i heard flashing gsi's dont work in a heavy modified state (like with magisk),
so a sd card solved this problem to run files on recovery mode without file transfer and rooting.
the problem i have is the following: i followed some instructions saying to wipe some data first in advanced wipe
- also the system partition which is not available. after that tried to install the image directly. as it finds the rom from my sd card i have to select the partition type to flash image
i only have boot recovery and super available but i need the system partition. i looked in the internet further (the painful process) and it gave me some hints going to mount.
there it finds the system partition but when i set a checkmark on it nothing changes, so this hint didn't helped me.
what should i do now? i'm stuck in some dead end and i don't know what to do it seems like this is the only way for me to get it work.
please help.
i think i found something. since my phone is rooted i also tried to delete system apps which also don't work. i tried many system app removers but it always give error. i think the problem lies in permissions that are not given to this phone. how can i get full access to \ system to gain full permission rights? i also have busybox installed btw
You've to mount the /system partition as RW in order to access this storage location.
Example code:
Code:
adb devices
adb shell "su -c 'mount -t auto -o rw,remount /system'"

Android 12 "userdata forced encryption"

Hello,
I downloaded aosp extended v9 which is android 12 custom rom and flash twrp the latest version and encountered this ""userdata forced encryption" problem.
As most of you know that android 12 still a new and there is no official support from devs yet so I did some research, I tried to make my own edition of boot.img and failed of course .
So let me share my progress with you, may be someone could help to find a solution.
I tried all the available ways,
1. In TWRP, decrypt data partition always asking for password, tried to use default_password and any possible password but didn't work.
2. Formatted the device by TWRP then tried to modify fstab.qcom but it didn't work because there is no r/w privileges to edit system files.
3. Unpacked boot.img (96 MB) using AIK , modified fstab.qcom then repacked it but the new file is smaller (52 MB)m formatted the device , flashed the new boot.img befor launching the system but the devices encrypted again. I also tried 「CRB」 [V3.0.0-beta12b] to modify it but always had the same result.
4. in 「CRB」 [V3.0.0-beta12b] there was an option to disable force encryption but I don't know how to use it. it always says "Done" but nothing happen.
If you have any extra ideas please share with us.
Thanks

Cannot install GAPPS

Hello all - hope everyone's doing OK? I have a OnePlus One lying in the drawer for years and decided to flash it to the latest Lineage OS18.1 so I can take it as a backup phone abroad. I was able to successfully install the OS but when I attempted to install GAPPS (the smallest pico version) I got an error 70 saying there was insufficient space to install it. Doing some Googling a workaround seems to be to re-size the partition using TWRP. However when I tried that (Wipe-Advance Wipe-Check System-Repair or Change File System-Resize File System) I get another error message:
/sbin/e2fsck -fp /dev/block/platform/msm_sdcc.1/by-name/system process ended with ERROR: 1
Unable to repair System
Anyone have any idea how I can fix this? For completeness in my system_root file system it is showing as Size: 1303Mb Used: 1063MB Free: 239Mb
Thanks!
Use a lower size gapps or aroma gapps so that you can choose required apps to install. Also, flash the rom+gapps together because of changes from some custom android versions you can't reboot to system and then flash gapps, that will give you force closes error.
Or maybe try to do full reset with original operating system and start all over again.
If the problem still persist, change the recovery to another available versions.
LineageOS only recommends MindTheGapps for 18.1

Categories

Resources