TeamWin / android_bootable_recovery

1.3k stars 408 forks source link

BUG: Phone won't boot after TWRP backup (not restore, no flashing) #294

Closed tonydiep closed 1 year ago

tonydiep commented 1 year ago

Device codename: OnePlus Nord N100 Model BE2013 TWRP version: TWRP 3.7.0-11 (booted from memory, not flashed to recovery)

WHAT STEPS WILL REPRODUCE THE PROBLEM?

  1. Boot into TWRP in memory (without writing to phone)
  2. Use TWRP to backup phone to external sd card (without writing to phone)
  3. Reboot
  4. Result: Phone shows logo, does not boot

WHAT IS THE EXPECTED RESULT?

Phone boots

WHAT HAPPENS INSTEAD?

Phone shows logo, does not boot

ADDITIONAL INFORMATION

I didn't do any writes to the phone. I didn't ask TWRP to do any writes to the phone. Was expecting phone to be in same state before TWRP backup since there shouldn't have been any writes, only reads. Really surprised that something has changed on the phone to prevent it from booting.

TWRP terminal showing error while trying to copy logs

E:Unhandled flag 'wrappedkey[]' followed by multiple 'Unable to mount xxxx'

TWRP's file manager is able to see /system

While trying to get recovery log I got the following

[tonydiep@server2 Phone OnePlus Nord N100]$ sudo adb devices [sudo] password for tonydiep:

[tonydiep@server2 Phone OnePlus Nord N100]$ sudo adb shell adb: device unauthorized. This adb server's $ADB_VENDOR_KEYS is not set Try 'adb kill-server' if that seems wrong. Otherwise check for a confirmation dialog on your device.

/tmp/recovery.log: dmesg:

OnePlusN100:/tmp # cat recovery.log
Starting TWRP 3.7.0_11-0-11b4b788 on Fri Jan 2 18:26:32 1970 (pid 499) RECOVERY_SDCARD_ON_DATA := true I:Lun file '/config/usb_gadget/g1/functions/mass_storage.0/lun.0/file' TW_HAS_EDL_MODE := true PRODUCT_USE_DYNAMIC_PARTITIONS := true TW_INCLUDE_CRYPTO := true I:TW_BRIGHTNESS_PATH := /sys/class/backlight/panel0-backlight/brightness I:Found brightness file at '/sys/class/backlight/panel0-backlight/brightness' I:Got max brightness 2047 from '/sys/class/backlight/panel0-backlight/max_brightness' I:TWFunc::Set_Brightness: Setting brightness control to 420 I:LANG: en I:AB_OTA_UPDATER := true Starting the UI... setting DRM_FORMAT_RGBX8888 and GGL_PIXEL_FORMAT_RGBX_8888 setting DRM_FORMAT_XBGR8888 and GGL_PIXEL_FORMAT_RGBA_8888 setting DRM_FORMAT_XBGR8888 and GGL_PIXEL_FORMAT_RGBA_8888 Using drm graphics. I:TWFunc::Set_Brightness: Setting brightness control to 420 TW_SCREEN_BLANK_ON_BOOT := true I:TWFunc::Set_Brightness: Setting brightness control to 0 I:TWFunc::Set_Brightness: Setting brightness control to 420 I:Loading package: splash (/twres/splash.xml) I:Load XML directly I:PageManager::LoadFileToBuffer loading filename: '/twres/splash.xml' directly I:Checking resolution... I:Scaling theme width 0.666667x and height 0.779167x, offsets x: 0 y: 104 w: 0 h: -104 I:Loading resources... I:Loading variables... I:Loading mouse cursor... I:Loading pages... I:Loading page splash I:Switching packages (splash) I:Loading package: TWRP (/TWRP/theme/ui.zip) I:Loading zip theme I:Loading package: TWRP (/twres/ui.xml) I:Load XML directly I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/zh_TW.xml' directly I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/zh_CN.xml' directly I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/uk.xml' directly I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/tr.xml' directly I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/sv.xml' directly I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/sl.xml' directly I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/sk.xml' directly I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/ru.xml' directly I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/pt_PT.xml' directly I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/pt_BR.xml' directly I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/pl.xml' directly I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/nl.xml' directly I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/ja.xml' directly I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/it.xml' directly I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/id.xml' directly I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/hu.xml' directly I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/fr.xml' directly I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/es.xml' directly I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/en.xml' directly I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/el.xml' directly I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/de.xml' directly I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/cz.xml' directly I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/en.xml' directly parsing languageFile parsing languageFile done I:PageManager::LoadFileToBuffer loading filename: '/twres/ui.xml' directly I:Checking resolution... I:Scaling theme width 0.666667x and height 0.779167x, offsets x: 0 y: 104 w: 0 h: -104 I:Loading resources... I:Failed to load image from indeterminate013, error -1 I:Loading variables... I:Loading mouse cursor... I:Loading pages... I:Including file: /twres/portrait.xml... I:PageManager::LoadFileToBuffer loading filename: '/twres/portrait.xml' directly I:Loading resources... I:Loading variables... I:Loading mouse cursor... I:Loading pages... I:Loading page main I:Loading page main2 I:Loading page install I:Loading page flash_confirm I:Loading page flash_zip I:Loading page flash_done I:Loading page flash_sleep_and_reboot I:Loading page flashimage_confirm I:Loading page clear_vars I:Loading page reboot_system_routine I:Loading page confirm_action I:Loading page action_page I:Loading page singleaction_page I:Loading page action_complete I:Loading page filecheck I:Loading page rebootcheck I:Loading page wipe I:Loading page advancedwipe I:Loading page formatdata I:Loading page formatdata_confirm I:Loading page checkpartitionlist I:Loading page partitionoptions I:Loading page refreshfilesystem I:Loading page selectfilesystem I:Loading page backup I:Loading page multiuser_warning I:Loading page backup_options I:Loading page backupname1 I:Loading page backupname2 I:Loading page backupencryption I:Loading page backupencryption2 I:Loading page checkbackuppassword I:Loading page backup_run I:Loading page restore I:Unable to open '//TWRP/BACKUPS/e72f81da' I:Loading page restore_force I:Unable to open '//TWRP/BACKUPS' I:Loading page restore_read I:Loading page restore_decrypt I:Loading page try_restore_decrypt I:Loading page restore_select I:Loading page renamebackup I:Loading page restore_run I:Loading page mount I:Loading page usb_mount I:Loading page usb_umount I:Loading page system_readonly_check I:Loading page fastbootreboot I:Loading page reboot I:Loading page installapp I:Loading page system_readonly I:Loading page settings I:Loading page settings_timezone I:Loading page settings_screen I:Loading page settings_vibration I:Loading page settings_language I:Loading page copylog I:Loading page advanced I:Loading page partsdcardsel I:Loading page partsdcardcheck I:Loading page partsdcard I:Loading page htcdumlock I:Loading page repackselect I:Loading page repackconfirm I:Loading page lock I:Loading page filemanagerlist I:Loading page filemanageroptions I:Loading page choosedestinationfolder I:Loading page filemanagerrenamefile I:Loading page filemanagerrenamefolder I:Loading page filemanagerchmod I:Loading page filemanagerconfirm I:Loading page filemanageraction I:Loading page decrypt I:Loading page decrypt_pattern I:Loading page decrypt_pin I:Loading page trydecrypt I:Loading page canceldecrypt I:Loading page terminalcommand I:Loading page fastboot I:Loading page sideload I:Loading page fixcontexts I:Loading page slideout I:Loading page select_storage I:Loading page select_language I:Loading page decrypt_users I:Loading page changeTwrpFolder I:Loading page restore_keymaster I:Set page: 'clear_vars' I:Set page: 'main2' I:Switching packages (TWRP) boot command: bootonce-bootloader I:Startup Commands: ro.boottime.adbd=2957203435 ro.boottime.init=2262137915 ro.boottime.init.selinux=77324948 ro.boottime.init.first_stage=52624062 ro.boottime.init.cold_boot_wait=333 ro.boottime.logd=2853915467 ro.boottime.ueventd=2436231248 ro.boottime.recovery=2929210519 ro.boottime.servicemanager=2879296196 ro.boottime.unified-script=2942740362 ro.boottime.hwservicemanager=2875471352 ro.boottime.vndservicemanager=2883461769 ro.boottime.make-fake-partitions-service=2949808696 ro.cold_boot_done=true ro.bionic.arch=arm64 ro.bionic.2nd_arch=arm ro.bionic.cpu_variant=generic ro.bionic.2nd_cpu_variant=kryo300 dalvik.vm.minidebuginfo=true dalvik.vm.dex2oat-minidebuginfo=true dalvik.vm.dex2oat-max-image-block-size=524288 dalvik.vm.dex2oat-resolve-startup-strings=true dalvik.vm.dex2oat-updatable-bcp-packages-file=/system/etc/updatable-bcp-packages.txt debug.atrace.tags.enableflags=0 ro.twrp.boot=1 ro.twrp.target.devices=billie2,OnePlusN100,Nord ro.twrp.version=3.7.0_11-0 ro.wifi.channels= ro.allow.mock.location=1 ro.build.flavor=twrp_OnePlusN100-eng ro.build.selinux=1 ro.build.version.all_codenames=REL ro.build.version.preview_sdk_fingerprint=REL ro.build.version.min_supported_target_sdk=23 ro.build.characteristics=default ro.iorapd.enable=true ro.kernel.android.checkjni=1 ro.system.build.id=RQ1A.210205.004 ro.system.build.date=Sun Jan 8 12:17:36 EET 2023 ro.system.build.date.utc=1673173056 ro.system.build.tags=test-keys ro.system.build.type=eng ro.system.build.version.sdk=30 ro.system.build.version.release=20.1.0 ro.system.build.version.incremental=eng.andrew.20230108.121932 ro.system.build.version.release_or_codename=20.1.0 ro.system.build.fingerprint=oneplus/twrp_OnePlusN100/OnePlusN100:20.1.0/RQ1A.210205.004/andrew01081217:eng/test-keys ro.treble.enabled=false ro.display.series=OnePlus Nord ro.product.build.id=RQ1A.210205.004 ro.product.build.date=Sun Jan 8 12:17:36 EET 2023 ro.product.build.date.utc=1673173056 ro.product.build.tags=test-keys ro.product.build.type=eng ro.product.build.version.sdk=30 ro.product.build.version.release=20.1.0 ro.product.build.version.incremental=eng.andrew.20230108.121932 ro.product.build.version.release_or_codename=20.1.0 ro.product.build.fingerprint=oneplus/twrp_OnePlusN100/OnePlusN100:20.1.0/RQ1A.210205.004/andrew01081217:eng/test-keys ro.product.system.name=twrp_OnePlusN100 ro.product.system.brand=oneplus ro.product.system.model=BE2013 ro.product.system.device=OnePlusN100 ro.product.system.manufacturer=oneplus ro.product.product.name=twrp_OnePlusN100 ro.product.product.brand=oneplus ro.product.product.model=BE2013 ro.product.product.device=OnePlusN100 ro.product.product.manufacturer=oneplus ro.product.system_ext.name=twrp_OnePlusN100 ro.product.system_ext.brand=oneplus ro.product.system_ext.model=BE2013 ro.product.system_ext.device=OnePlusN100 ro.product.system_ext.manufacturer=oneplus ro.system_ext.build.id=RQ1A.210205.004 ro.system_ext.build.date=Sun Jan 8 12:17:36 EET 2023 ro.system_ext.build.date.utc=1673173056 ro.system_ext.build.tags=test-keys ro.system_ext.build.type=eng ro.system_ext.build.version.sdk=30 ro.system_ext.build.version.release=20.1.0 ro.system_ext.build.version.incremental=eng.andrew.20230108.121932 ro.system_ext.build.version.release_or_codename=20.1.0 ro.system_ext.build.fingerprint=oneplus/twrp_OnePlusN100/OnePlusN100:20.1.0/RQ1A.210205.004/andrew01081217:eng/test-keys ro.postinstall.fstab.prefix=/system ro.actionable_compatible_property.enabled=false fbe.metadata.wrappedkey=true init.svc.adbd=restarting init.svc.logd=running init.svc.ueventd=running init.svc.recovery=running init.svc.servicemanager=running init.svc.unified-script=stopped init.svc.hwservicemanager=running init.svc.vndservicemanager=running init.svc.make-fake-partitions-service=stopped twrp.crash_counter=0 twrp.action_complete=0 prepdecrypt.loglevel=2 prepdecrypt.setpatch=true ro.boot.cust=0 ro.boot.mode=fastboot ro.boot.type=normal ro.boot.prmec=true ro.boot.vbmeta.size=8768 ro.boot.vbmeta.digest=e154688aa299d00f4aee35adde3eb80e674ad4f89ee3b4a078972fc2182bec30 ro.boot.vbmeta.hash_alg=sha256 ro.boot.vbmeta.avb_version=1.0 ro.boot.vbmeta.device_state=unlocked ro.boot.battery.absent=false ro.boot.console=ttyMSM0 ro.boot.dtb_idx=0 ro.boot.secboot=enabled ro.boot.selinux=permissive ro.boot.baseband=msm ro.boot.dtbo_idx=0 ro.boot.fastboot=1 ro.boot.hardware=qcom ro.boot.swprojid=20883 ro.boot.bootcount=855 ro.boot.keymaster=1 ro.boot.opcarrier=none ro.boot.bootdevice=4804000.ufshc ro.boot.hw_version=7 ro.boot.rf_version=11 ro.boot.veritymode=disabled ro.boot.at_location=factory ro.boot.avb_version=1.1 ro.boot.platform_id=417 ro.boot.prj_version=12 ro.boot.rpmb_enable=true ro.boot.startupmode=dc_charger ro.boot.boot_devices=soc/4804000.ufshc ro.boot.project_name=20883 ro.boot.platform_name=SM4250 ro.boot.power_cut_test=0 ro.boot.recoveryreason=000 ro.boot.enable_dm_verity=1 ro.boot.project_codename=billie2 ro.boot.verifiedbootstate=orange ro.build.id=RQ1A.210205.004 ro.build.date=Sun Jan 8 12:17:36 EET 2023 ro.build.date.utc=1673173056 ro.build.host=DESKTOP-MG9VPOR ro.build.tags=test-keys ro.build.type=eng ro.build.user=andrew ro.build.display.id=twrp_OnePlusN100-eng 20.1.0 RQ1A.210205.004 eng.andrew.20230108.121932 test-keys ro.build.product=OnePlusN100 ro.build.version.sdk=30 ro.build.version.base_os= ro.build.version.release=20.1.0 ro.build.version.codename=REL ro.build.version.incremental=eng.andrew.20230108.121932 ro.build.version.preview_sdk=0 ro.build.version.security_patch=2099-12-31 ro.build.version.release_or_codename=20.1.0 ro.build.description=twrp_OnePlusN100-eng 20.1.0 RQ1A.210205.004 eng.andrew.20230108.121932 test-keys ro.build.system_root_image=false ro.product.cpu.abi=arm64-v8a ro.product.cpu.abilist=arm64-v8a ro.product.name=twrp_OnePlusN100 ro.product.brand=oneplus ro.product.model=BE2013 ro.product.device=OnePlusN100 ro.product.manufacturer=oneplus ro.baseband=msm ro.bootmode=fastboot ro.hardware=qcom ro.revision=0 ro.bootloader=unknown ro.debuggable=1 ro.property_service.version=2 sys.usb.controller=4e00000.dwc3 persist.sys.dalvik.vm.lib.2=libart.so ro.crypto.volume.filenames_mode=aes-256-cts ro.minui.pixel_format=RGBX_8888 ro.zygote=zygote32 ro.dalvik.vm.native.bridge=0 dalvik.vm.isa.arm.variant=kryo300 dalvik.vm.isa.arm.features=default dalvik.vm.isa.arm64.variant=generic dalvik.vm.isa.arm64.features=default dalvik.vm.dexopt.secondary=true dalvik.vm.usejit=true dalvik.vm.lockprof.threshold=500 dalvik.vm.dex2oat-Xms=64m dalvik.vm.dex2oat-Xmx=512m dalvik.vm.appimageformat=lz4 dalvik.vm.usejitprofiles=true dalvik.vm.image-dex2oat-Xms=64m dalvik.vm.image-dex2oat-Xmx=64m dalvik.vm.image-dex2oat-filter=extract ro.odm.build.date=Sun Jan 8 12:17:36 EET 2023 ro.odm.build.date.utc=1673173056 ro.odm.build.version.incremental=eng.andrew.20230108.121932 ro.odm.build.fingerprint=oneplus/twrp_OnePlusN100/OnePlusN100:20.1.0/RQ1A.210205.004/andrew01081217:eng/test-keys ro.boot.product.hardware.sku=2 ro.boot.slot_suffix=_b ro.boot.fstab_suffix=default ro.boot.dynamic_partitions=true ro.hwui.use_vulkan= ro.board.platform=bengal ro.build.ab_update=true ro.vendor.build.date=Sun Jan 8 12:17:36 EET 2023 ro.vendor.build.date.utc=1673173056 ro.vendor.build.version.sdk=30 ro.vendor.build.version.incremental=eng.andrew.20230108.121932 ro.vendor.build.fingerprint=oneplus/twrp_OnePlusN100/OnePlusN100:20.1.0/RQ1A.210205.004/andrew01081217:eng/test-keys ro.product.cpu.abilist32= ro.product.cpu.abilist64=arm64-v8a ro.product.odm.name=twrp_OnePlusN100 ro.product.odm.brand=oneplus ro.product.odm.model=BE2013 ro.product.odm.device=OnePlusN100 ro.product.odm.manufacturer=oneplus ro.product.board=bengal ro.product.vendor.name=twrp_OnePlusN100 ro.product.vendor.brand=oneplus ro.product.vendor.model=BE2013 ro.product.vendor.device=OnePlusN100 ro.product.vendor.manufacturer=oneplus ro.bootimage.build.date=Sun Jan 8 12:17:36 EET 2023 ro.bootimage.build.date.utc=1673173056 ro.bootimage.build.fingerprint=oneplus/twrp_OnePlusN100/OnePlusN100:20.1.0/RQ1A.210205.004/andrew01081217:eng/test-keys ro.build.fingerprint=oneplus/twrp_OnePlusN100/OnePlusN100:20.1.0/RQ1A.210205.004/eng.andrew.20230108.121932:eng/test-keys pm.dexopt.boot=extract pm.dexopt.ab-ota=speed-profile pm.dexopt.shared=speed pm.dexopt.install=speed-profile pm.dexopt.inactive=verify pm.dexopt.bg-dexopt=speed-profile pm.dexopt.first-boot=extract ro.adb.secure=0 ro.secure=0 sys.usb.config=adb sys.usb.configfs=1 ro.gsid.image_running=0 gsid.image_installed=0 hwservicemanager.ready=true init.svc_debug_pid.adbd=502 init.svc_debug_pid.logd=485 init.svc_debug_pid.ueventd=475 init.svc_debug_pid.recovery=499 init.svc_debug_pid.servicemanager=493 init.svc_debug_pid.unified-script= init.svc_debug_pid.hwservicemanager=492 init.svc_debug_pid.vndservicemanager=494 init.svc_debug_pid.make-fake-partitions-service= persist.debug.dalvik.vm.core_platform_api_policy=just-warn ro.boot.serialno=e72f81da ro.serialno=e72f81da service.adb.root=1 dev.mnt.blk.mnt.vendor.op2=sda dev.mnt.blk.firmware=sde net.bt.name=Android persist.sys.usb.config=adb persist.sys.disable_rescue=true persist.traced.enable=1 ro.odm.build.id=RQ1A.210205.004 ro.odm.build.tags=test-keys ro.odm.build.type=eng ro.odm.build.version.sdk=30 ro.odm.build.version.release=20.1.0 ro.odm.build.version.release_or_codename=20.1.0 ro.odm.product.cpu.abilist=arm64-v8a ro.odm.product.cpu.abilist32= ro.odm.product.cpu.abilist64=arm64-v8a ro.vendor.build.id=RQ1A.210205.004 ro.vendor.build.tags=test-keys ro.vendor.build.type=eng ro.vendor.build.version.release=20.1.0 ro.vendor.build.version.release_or_codename=20.1.0 ro.vendor.product.cpu.abilist=arm64-v8a ro.vendor.product.cpu.abilist32= ro.vendor.product.cpu.abilist64=arm64-v8a vendor.gatekeeper.disable_spu=true ro.vendor.build.security_patch=2099-12-31 ro.vndk.lite=true ro.vndk.version=30

=> Linking mtab => Processing /etc/recovery.fstab I:Reading /etc/twrp.flags I:Reading /etc/recovery.fstab I:Processing '/system' I:Created '/system_root' folder. I:Unhandled flag: 'avb=vbmeta_system' I:Unhandled flag: 'first_stage_mount' I:Processing '/system_ext' I:Created '/system_ext' folder. I:Unhandled flag: 'avb=vbmeta_system' I:Unhandled flag: 'first_stage_mount' I:Processing '/vendor' I:Unhandled flag: 'avb' I:Unhandled flag: 'first_stage_mount' I:Processing '/product' I:Unhandled flag: 'avb=vbmeta_system' I:Unhandled flag: 'first_stage_mount' I:Processing '/metadata' I:Unhandled flag: 'first_stage_mount' ':Unhandled flag: 'wrappedkey I:Processing '/data' I:Unhandled flag: 'latemount' I:Unhandled flag: 'reservedsize=512M' I:FBE contents 'ice', filenames '' I:setting Key_Directory to: /metadata/vold/metadata_encryption I:Unhandled flag: 'sysfs_path=/sys/devices/platform/soc/4804000.ufshc' I:Unhandled flag: 'checkpoint=fs' I:Processing '/misc' I:Processing remaining twrp.flags I:Processing '/boot' I:Processing '/bt_firmware' I:Created '/bt_firmware' folder. I:Processing '/dtbo' I:Processing '/efs1' I:Processing '/efs2' I:Processing '/external_sd' I:Created '/external_sd' folder. I:Processing '/firmware_mnt' I:Created '/firmware_mnt' folder. I:Processing '/persist' I:Created '/persist' folder. I:TWFunc::Fixup_Time: Pre-fix date and time: 1970-01-02--18-26-34 I:TWFunc::Fixup_Time: Setting time offset from file /sys/class/rtc/rtc0/since_epoch I:TWFunc::Fixup_Time: will attempt to use the ats files now. I:TWFunc::Fixup_Time: Setting time offset from file /persist/time/ats_2, offset 1675660699329 I:TWFunc::Fixup_Time: Date and time corrected: 2023-02-07--23-44-53 I:Processing '/product_image' I:Processing '/recovery' I:Processing '/system_image' I:Processing '/usb-otg' I:Created '/usb-otg' folder. I:Processing '/vbmeta' I:Processing '/vendor_image' I:Done processing fstab files I:Trying to prepare system from super partition I:Symlinking /dev/block/dm-3 => /dev/block/bootdevice/by-name/system I:Trying to prepare system_ext from super partition I:Symlinking /dev/block/dm-4 => /dev/block/bootdevice/by-name/system_ext I:Trying to prepare vendor from super partition I:Symlinking /dev/block/dm-5 => /dev/block/bootdevice/by-name/vendor I:Trying to prepare product from super partition I:unable to update logical partition: /product I:Can't probe device /dev/block/sda16 I:Unable to mount '/data' I:Actual block device: '/dev/block/sda16', current file system: 'f2fs' I:Setting up '/data' as data/media emulated storage. I:Can't probe device /dev/block/sda16 I:Unable to mount '/data' I:Actual block device: '/dev/block/sda16', current file system: 'f2fs' I:Apex is disabled in this build I:Backup folder set to '/data/media/TWRP/BACKUPS/e72f81da' I:Settings storage is '/data/media' DEBUG:prepdecrypt::Running prepdecrypt script for TWRP... I:prepdecrypt::File Based Encryption (FBE) is present. DEBUG:prepdecrypt::SDK version: 30 DEBUG:prepdecrypt::DEFAULTPROP variable set to prop.default. DEBUG:prepdecrypt::A/B device detected! Finding current boot slot... DEBUG:prepdecrypt::Current boot slot: _b DEBUG:prepdecrypt::SETPATCH Override flag found. DEBUG:prepdecrypt::Device has recovery partition! DEBUG:prepdecrypt::Resetprop binary found! DEBUG:prepdecrypt::Fastboot boot detected. ro.boot.fastboot=1 DEBUG:prepdecrypt::SETPATCH Override flag found. I:prepdecrypt::SETPATCH=true DEBUG:prepdecrypt::Build tree is Oreo or above. Proceed with setting props... DEBUG:prepdecrypt::Temporary vendor folder created at /v. DEBUG:prepdecrypt::vendor mounted at /v. DEBUG:prepdecrypt::prepdecrypt.vendor_mounted=1 DEBUG:prepdecrypt::Vendor Build.prop exists! Reading vendor properties from build.prop... DEBUG:prepdecrypt::Current vendor Android SDK version: 30 DEBUG:prepdecrypt::Current vendor is Oreo or above. Proceed with setting vendor security patch level... DEBUG:prepdecrypt::Current Vendor Security Patch Level: 2099-12-31 DEBUG:prepdecrypt::resetprop successful! New Vendor Security Patch Level: 2022-12-01 DEBUG:prepdecrypt::prop.default update successful! ro.vendor.build.security_patch=2022-12-01 DEBUG:prepdecrypt::System-as-Root device detected! Updating build.prop path variable... DEBUG:prepdecrypt::Build.prop location set to system/build.prop. DEBUG:prepdecrypt::Temporary system folder created at /s. DEBUG:prepdecrypt::system mounted at /s. DEBUG:prepdecrypt::prepdecrypt.system_mounted=1 DEBUG:prepdecrypt::Build.prop exists! Reading system properties from build.prop... DEBUG:prepdecrypt::Current system Android SDK version: 30 DEBUG:prepdecrypt::Current system is Oreo or above. Proceed with setting OS Version & Security Patch Level... DEBUG:prepdecrypt::Current OS Version: 20.1.0 DEBUG:prepdecrypt::resetprop successful! New OS Version: 11 DEBUG:prepdecrypt::prop.default update successful! ro.build.version.release=11 DEBUG:prepdecrypt::Current Security Patch Level: 2099-12-31 DEBUG:prepdecrypt::resetprop successful! New Security Patch Level: 2022-03-05 DEBUG:prepdecrypt::prop.default update successful! ro.build.version.security_patch=2022-03-05 I:prepdecrypt::crypto.ready=1 I:prepdecrypt::Script complete. Device ready for decryption. I:Unable to decrypt metadata encryption I:FBE setup failed. Trying FDE...E:fde::get_crypt_ftr_and_key::Unexpected value for crypto key location: E:Error getting crypt footer and key Updating partition details... I:checking for twrp app I:Can't probe device product Failed to mount '/product' (Block device required) I:Actual block device: 'product', current file system: 'ext4' I:Can't probe device /dev/block/sda16 I:Unable to mount '/data' I:Actual block device: '/dev/block/sda16', current file system: 'f2fs' I:Can't probe device /dev/block/sda1 I:Unable to mount '/usb-otg' I:Actual block device: '/dev/block/sda1', current file system: 'auto' ...done I:Can't probe device /dev/block/sda16 I:Unable to mount '/data' I:Actual block device: '/dev/block/sda16', current file system: 'f2fs' Unable to mount storage /super | /dev/block/by-name/super | Size: 0MB Flags: Can_Be_Backed_Up IsPresent Can_Flash_Img Alternate_Block_Device: /dev/block/by-name/super Display_Name: super Backup_Path: /super Backup_Name: super Backup_Display_Name: Super (system system_ext vendor product) Current_File_System: emmc Backup_Method: dd

I:Unmounting main partitions... I:Overriding ro.build.fingerprint with value: "google/treble_arm64_bgZ/phhgsi_arm64_ab:11/RD2A.211001.002/220321:userdebug/release-keys" from property ro.system.build.fingerprint in /system/build.prop I:Overriding ro.build.version.incremental with value: "220321" from property ro.build.version.incremental in /system/build.prop I:Unable to override property ro.build.version.ota: property not found in /system/build.prop I:Unable to locate file: /system_root/system/etc/buildinfo/oem_build.prop I:Unable to override property ro.build.version.ota: property not found in /system/etc/buildinfo/oem_build.prop SELinux contexts loaded from /file_contexts Full SELinux support is present. I:Can't probe device /dev/block/sda16 I:Unable to mount '/data' I:Actual block device: '/dev/block/sda16', current file system: 'f2fs' I:Unable to mount settings storage during GUI startup.

Partition Logs: /system_root | /dev/block/dm-3 | Size: 2917MB Used: 2863MB Free: 54MB Backup Size: 2863MB Flags: Can_Be_Mounted IsPresent SlotSelect Mount_Read_Only Is_Super Primary_Block_Device: /dev/block/dm-3 Display_Name: System Storage_Name: System Backup_Path: /system_root Backup_Name: system Backup_Display_Name: System Storage_Path: /system_root Current_File_System: ext4 Fstab_File_System: ext4 Backup_Method: files Mount_Flags: 0, Mount_Options: barrier=1,discard

/system_ext | /dev/block/dm-4 | Size: 1024MB Used: 1021MB Free: 3MB Backup Size: 1021MB Flags: Can_Be_Mounted IsPresent SlotSelect Mount_Read_Only Is_Super Primary_Block_Device: /dev/block/dm-4 Display_Name: System_EXT Storage_Name: System_EXT Backup_Path: /system_ext Backup_Name: System_EXT Backup_Display_Name: System_EXT Storage_Path: /system_ext Current_File_System: ext4 Fstab_File_System: ext4 Backup_Method: files Mount_Flags: 0, Mount_Options: barrier=1,discard

/vendor | /dev/block/dm-5 | Size: 891MB Used: 888MB Free: 2MB Backup Size: 888MB Flags: Can_Be_Mounted IsPresent SlotSelect Mount_Read_Only Is_Super Primary_Block_Device: /dev/block/dm-5 Display_Name: Vendor Storage_Name: Vendor Backup_Path: /vendor Backup_Name: vendor Backup_Display_Name: Vendor Storage_Path: /vendor Current_File_System: ext4 Fstab_File_System: ext4 Backup_Method: files Mount_Flags: 0, Mount_Options: barrier=1,discard

/product | product | Size: 0MB Used: 0MB Free: 0MB Backup Size: 0MB Flags: Can_Be_Mounted Can_Be_Wiped Can_Be_Backed_Up Wipe_Available_in_GUI IsPresent SlotSelect Mount_Read_Only Is_Super Primary_Block_Device: product Display_Name: Product Storage_Name: Product Backup_Path: /product Backup_Name: Product Backup_Display_Name: Product Storage_Path: /product Current_File_System: ext4 Fstab_File_System: ext4 Backup_Method: files Mount_Flags: 0, Mount_Options: barrier=1,discard

/metadata | /dev/block/sda15 | Size: 11MB Used: 0MB Free: 11MB Backup Size: 0MB Flags: Can_Be_Mounted Can_Be_Wiped Can_Be_Backed_Up Wipe_Available_in_GUI IsPresent Primary_Block_Device: /dev/block/sda15 Display_Name: Metadata Storage_Name: metadata Backup_Path: /metadata Backup_Name: metadata Backup_Display_Name: metadata Storage_Path: /metadata Current_File_System: ext4 Fstab_File_System: ext4 Backup_Method: files Mount_Flags: 1046, Mount_Options: discard

/data | /dev/block/sda16 | Size: 0MB Used: 0MB Free: 0MB Backup Size: 0MB Flags: Can_Be_Mounted Can_Be_Wiped Can_Be_Backed_Up Wipe_During_Factory_Reset Wipe_Available_in_GUI IsPresent Can_Be_Encrypted Is_Encrypted Has_Data_Media Can_Encrypt_Backup Use_Userdata_Encryption Is_Storage Is_Settings_Storage Symlink_Path: /data/media Symlink_Mount_Point: /sdcard Primary_Block_Device: /dev/block/sda16 Display_Name: Data Storage_Name: Internal Storage Backup_Path: /data Backup_Name: data Backup_Display_Name: Data Storage_Path: /data/media Current_File_System: f2fs Fstab_File_System: f2fs Backup_Method: files Mount_Flags: 1030, Mount_Options: discard,reserve_root=32768,resgid=1065,fsync_mode=nobarrier,inlinecrypt MTP_Storage_ID: 65537 Metadata Key Directory: /metadata/vold/metadata_encryption

/misc | /dev/block/sda3 | Size: 1MB Flags: IsPresent Primary_Block_Device: /dev/block/sda3 Display_Name: misc Storage_Name: misc Backup_Path: /misc Backup_Name: misc Backup_Display_Name: misc Storage_Path: /misc Current_File_System: emmc Fstab_File_System: emmc Backup_Method: dd

/boot | /dev/block/bootdevice/by-name/boot_b | Size: 96MB Flags: Can_Be_Backed_Up IsPresent Can_Flash_Img SlotSelect Primary_Block_Device: /dev/block/bootdevice/by-name/boot Display_Name: Boot Storage_Name: boot Backup_Path: /boot Backup_Name: boot Backup_Display_Name: Boot Storage_Path: /boot Current_File_System: emmc Fstab_File_System: emmc Backup_Method: dd

/bt_firmware | /dev/block/bootdevice/by-name/bluetooth_b | Size: 63MB Used: 0MB Free: 63MB Backup Size: 0MB Flags: Can_Be_Mounted Can_Be_Wiped Can_Be_Backed_Up IsPresent SlotSelect Mount_Read_Only Primary_Block_Device: /dev/block/bootdevice/by-name/bluetooth Display_Name: Bluetooth Storage_Name: Bluetooth Backup_Path: /bt_firmware Backup_Name: bt_firmware Backup_Display_Name: Bluetooth Storage_Path: /bt_firmware Current_File_System: vfat Fstab_File_System: ext4 Backup_Method: files Mount_Flags: 0, Mount_Options: context=u:object_r:bt_firmware_file:s0

/dtbo | /dev/block/bootdevice/by-name/dtbo_b | Size: 24MB Flags: Can_Be_Backed_Up IsPresent Can_Flash_Img SlotSelect Primary_Block_Device: /dev/block/bootdevice/by-name/dtbo Display_Name: DTBO Storage_Name: DTBO Backup_Path: /dtbo Backup_Name: dtbo Backup_Display_Name: DTBO Storage_Path: /dtbo Current_File_System: emmc Fstab_File_System: emmc Backup_Method: dd

/efs1 | /dev/block/sdf2 | Size: 2MB Flags: Can_Be_Backed_Up Has_SubPartition IsPresent Primary_Block_Device: /dev/block/sdf2 Display_Name: EFS Storage_Name: EFS Backup_Path: /efs1 Backup_Name: efs1 Backup_Display_Name: EFS Storage_Path: /efs1 Current_File_System: emmc Fstab_File_System: emmc Backup_Method: dd

/efs2 | /dev/block/sdf3 | Size: 2MB Flags: Can_Be_Backed_Up Is_SubPartition IsPresent SubPartition_Of: /efs1 Primary_Block_Device: /dev/block/sdf3 Display_Name: efs2 Storage_Name: efs2 Backup_Path: /efs2 Backup_Name: efs2 Backup_Display_Name: efs2 Storage_Path: /efs2 Current_File_System: emmc Fstab_File_System: emmc Backup_Method: dd

/external_sd | /dev/block/mmcblk0p1 | Size: 244755MB Used: 158383MB Free: 86372MB Backup Size: 158383MB Flags: Can_Be_Mounted Can_Be_Wiped Wipe_Available_in_GUI Removable IsPresent Is_Storage Primary_Block_Device: /dev/block/mmcblk0p1 Alternate_Block_Device: /dev/block/mmcblk0 Display_Name: Micro SD Card Storage_Name: Micro SD Card Backup_Path: /external_sd Backup_Name: external_sd Backup_Display_Name: Micro SD Card Storage_Path: /external_sd Current_File_System: vfat Fstab_File_System: auto Backup_Method: files MTP_Storage_ID: 65538

/firmware_mnt | /dev/block/bootdevice/by-name/modem_b | Size: 511MB Used: 113MB Free: 398MB Backup Size: 113MB Flags: Can_Be_Mounted Can_Be_Wiped IsPresent Mount_To_Decrypt SlotSelect Mount_Read_Only Primary_Block_Device: /dev/block/bootdevice/by-name/modem Display_Name: Firmware Storage_Name: Firmware Backup_Path: /firmware_mnt Backup_Name: firmware_mnt Backup_Display_Name: Firmware Storage_Path: /firmware_mnt Current_File_System: vfat Fstab_File_System: ext4 Backup_Method: files Mount_Flags: 0, Mount_Options: shortname=lower,uid=1000,gid=1000,dmask=227,fmask=337,context=u:object_r:firmware_file:s0

/persist | /dev/block/sda2 | Size: 26MB Used: 1MB Free: 25MB Backup Size: 1MB Flags: Can_Be_Mounted Can_Be_Wiped Can_Be_Backed_Up IsPresent Primary_Block_Device: /dev/block/sda2 Display_Name: Persist Storage_Name: Persist Backup_Path: /persist Backup_Name: persist Backup_Display_Name: Persist Storage_Path: /persist Current_File_System: ext4 Fstab_File_System: ext4 Backup_Method: files

/product_image | | Size: 0MB Flags: Can_Be_Backed_Up Can_Flash_Img Primary_Block_Device: /dev/block/bootdevice/by-name/product Display_Name: Product Image Storage_Name: Product Image Backup_Path: /product_image Backup_Name: product_image Backup_Display_Name: Product Image Storage_Path: /product_image Current_File_System: emmc Fstab_File_System: emmc Backup_Method: dd

/recovery | /dev/block/bootdevice/by-name/recovery_b | Size: 96MB Flags: Can_Be_Backed_Up IsPresent Can_Flash_Img SlotSelect Primary_Block_Device: /dev/block/bootdevice/by-name/recovery Display_Name: Recovery Storage_Name: recovery Backup_Path: /recovery Backup_Name: recovery Backup_Display_Name: Recovery Storage_Path: /recovery Current_File_System: emmc Fstab_File_System: emmc Backup_Method: dd

/system_image | /dev/block/bootdevice/by-name/system | Size: 2919MB Flags: Can_Be_Backed_Up IsPresent Can_Flash_Img Primary_Block_Device: /dev/block/bootdevice/by-name/system Display_Name: System Image Storage_Name: System Image Backup_Path: /system_image Backup_Name: system_image Backup_Display_Name: System Image Storage_Path: /system_image Current_File_System: emmc Fstab_File_System: emmc Backup_Method: dd

/usb-otg | /dev/block/sda1 | Size: 0MB Used: 0MB Free: 0MB Backup Size: 0MB Flags: Can_Be_Mounted Can_Be_Wiped Wipe_Available_in_GUI Removable IsPresent Is_Storage Primary_Block_Device: /dev/block/sda1 Alternate_Block_Device: /dev/block/sda Display_Name: USB OTG Storage_Name: USB OTG Backup_Path: /usb-otg Backup_Name: usb-otg Backup_Display_Name: USB OTG Storage_Path: /usb-otg Current_File_System: auto Fstab_File_System: auto Backup_Method: files MTP_Storage_ID: 65539

/vbmeta | /dev/block/bootdevice/by-name/vbmeta_b | Size: 0MB Flags: Can_Be_Backed_Up IsPresent Can_Flash_Img SlotSelect Primary_Block_Device: /dev/block/bootdevice/by-name/vbmeta Display_Name: VBMeta Storage_Name: VBMeta Backup_Path: /vbmeta Backup_Name: vbmeta Backup_Display_Name: VBMeta Storage_Path: /vbmeta Current_File_System: emmc Fstab_File_System: emmc Backup_Method: dd

/vendor_image | /dev/block/bootdevice/by-name/vendor | Size: 906MB Flags: Can_Be_Backed_Up IsPresent Can_Flash_Img Primary_Block_Device: /dev/block/bootdevice/by-name/vendor Display_Name: Vendor Image Storage_Name: Vendor Image Backup_Path: /vendor_image Backup_Name: vendor_image Backup_Display_Name: Vendor Image Storage_Path: /vendor_image Current_File_System: emmc Fstab_File_System: emmc Backup_Method: dd

/super | /dev/block/by-name/super | Size: 0MB Flags: Can_Be_Backed_Up IsPresent Can_Flash_Img Alternate_Block_Device: /dev/block/by-name/super Display_Name: super Backup_Path: /super Backup_Name: super Backup_Display_Name: Super (system system_ext vendor product) Current_File_System: emmc Backup_Method: dd

I:Can't probe device /dev/block/sda16 I:Unable to mount '/data' I:Actual block device: '/dev/block/sda16', current file system: 'f2fs' I:Can't probe device /dev/block/sda16 I:Unable to mount '/data' I:Actual block device: '/dev/block/sda16', current file system: 'f2fs' Unable to mount /data/media/TWRP/.twrps I:Attempt to load settings from settings file... I:InfoManager file '/data/media/TWRP/.twrps' not found. I:Backup folder set to '/data/media/TWRP/BACKUPS/e72f81da' I:Unable to open: /data/recovery/.version. Data may be unmounted. Error: No such file or directory I:Can't probe device /dev/block/sda16 I:Unable to mount '/data' I:Actual block device: '/dev/block/sda16', current file system: 'f2fs' I:Can't probe device /dev/block/sda1 I:Unable to mount '/usb-otg' I:Actual block device: '/dev/block/sda1', current file system: 'auto' I:TWFunc::Set_Brightness: Setting brightness control to 420 I:Can't probe device /dev/block/sda16 I:Unable to mount '/data' I:Actual block device: '/dev/block/sda16', current file system: 'f2fs' I:Can't probe device /dev/block/sda16 I:Unable to mount '/data' I:Actual block device: '/dev/block/sda16', current file system: 'f2fs' Unable to mount /data/media/TWRP/.twrps I:Attempt to load settings from settings file... I:InfoManager file '/data/media/TWRP/.twrps' not found. I:Backup folder set to '/data/media/TWRP/BACKUPS/e72f81da' I:Can't probe device /dev/block/sda16 I:Unable to mount '/data' I:Actual block device: '/dev/block/sda16', current file system: 'f2fs' I:Version number saved to '/data/recovery/.version' I:Can't probe device /dev/block/sda16 I:Unable to mount '/data' I:Actual block device: '/dev/block/sda16', current file system: 'f2fs' I:Can't probe device /dev/block/sda1 I:Unable to mount '/usb-otg' I:Actual block device: '/dev/block/sda1', current file system: 'auto' I:TWFunc::Set_Brightness: Setting brightness control to 420 I:Can't probe device /dev/block/sda16 I:Unable to mount '/data' I:Actual block device: '/dev/block/sda16', current file system: 'f2fs' I:Can't probe device /dev/block/sda16 I:Unable to mount '/data' I:Actual block device: '/dev/block/sda16', current file system: 'f2fs' I:Path /data/recovery/log.gz does not exist. Unable to copy file to /data/recovery/last_log.gz I:Can't probe device /dev/block/sda16 I:Unable to mount '/data' I:Actual block device: '/dev/block/sda16', current file system: 'f2fs' I:Starting Adb Backup FIFO I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/en.xml' directly parsing languageFile parsing languageFile done I:Translating partition display names I:Backup folder set to '/data/media/TWRP/BACKUPS/e72f81da' I:checking for twrp app I:Can't probe device /dev/block/sda16 I:Unable to mount '/data' I:Actual block device: '/dev/block/sda16', current file system: 'f2fs' I:Data partition cannot be mounted during app check I:App not installed I:Switching packages (TWRP) I:Set page: 'main' I:Set page: 'clear_vars' I:Set page: 'main2' I:Set page: 'mount' I:recv error on uevent I:TWFunc::Set_Brightness: Setting brightness control to 5 I:TWFunc::Set_Brightness: Setting brightness control to 0

tonydiep commented 1 year ago

twrp -> wipe -> format made the phone bootable again.

tonydiep commented 1 year ago

Closing issue because the problem isn't with TWRP.

After re-installing ROM 24 hours my phone just went into a boot loop again. I haven't touched TWRP so that's not the problem.

( I just booted into recovery and booted straight back out to system and the phone is stuck on the phone starting logo again. Strange because I did no writes to the phone. In any event, the issue is not with TWRP.)