[OnePlus 3 Questions & Answers] sylviohneto:
Hi everyone!

I'm facing a weird problem: I installed Resurrection Remix again (7.1.1) (it was my main rom) and TWRP started asking for the encryption key (although it was a pattern). I entered into recovery and did a wipe as the system requested.

Then, I realized that the encryption problem went further and I tried

fastboot format userdata

After that, the bootloader is able to boot just the TWRP recovery.

Then I tried from this link https://forums.oneplus.net/threads/beta-8-encryption-help.479290/page-2:

fastboot format userdata
fastboot format cache
fastboot format system
fastboot erase recovery
fastboot erase boot
fastboot reboot
fastboot flash recovery <twrp28>

However, nothing changes.

I also tried to do all wipes, to format the data and system partition as EXT4, to reinstall RRemix 7.1.1 a lot of times, and, again, the system can just boot into recovery.

I saw a lot of user with the same problem, however, there is no solution for this problem yet.

OBS: the phone is booting successfully with the command:

fastboot boot boot.img

And then, after one manual reboot, the bootloader chooses the recovery again. The phone continues to boot into TWRP only.

The Encryption is gone, but I can only boot using this manual mode discovered by [MENTION=3302459]Sompom[/MENTION]

https://xdaforums.com/oneplus-3/help/oneplus-3-bootloader-defaulting-to-t3529130

Could someone please help to fix this boot problem?

If there is any information than I can provide, please, let me know.

Plase, find the logs below:

Recovery LOG

__bionic_open_tzdata: couldn't find any tzdata when looking for localtime!

__bionic_open_tzdata: couldn't find any tzdata when looking for GMT!

__bionic_open_tzdata: couldn't find any tzdata when looking for posixrules!

Starting TWRP 3.0.2-1 on Mon May 4 19:23:21 1970

(pid 433)

BOARD_HAS_NO_REAL_SDCARD := true

RECOVERY_SDCARD_ON_DATA := true

I:Lun file '/sys/class/android_usb/android0/f_mass_storage/lun0/file' does not exist, USB storage mode disabled

TW_INCLUDE_CRYPTO := true

I:TW_BRIGHTNESS_PATH := /sys/class/leds/lcd-backlight/brightness

I:Found brightness file at '/sys/class/leds/lcd-backlight/brightness'

I:Got max brightness 255 from '/sys/class/leds/lcd-backlight/max_brightness'

I:TWFunc::Set_Brightness: Setting brightness control to 80

I:LANG: en

Starting the UI...Overlay graphics may work (mdssfb_90000), but not enabled. Use TW_TARGET_USES_QCOM_BSP := true to enable.

setting DRM_FORMAT_RGB565 and GGL_PIXEL_FORMAT_RGB_565

cannot find/open a drm device: No such file or directory

fb0 reports (possibly inaccurate):

vi.bits_per_pixel = 32

vi.red.offset = 0 .length = 8

vi.green.offset = 8 .length = 8

vi.blue.offset = 16 .length = 8

setting GGL_PIXEL_FORMAT_RGBA_8888

double buffered

framebuffer: 0 (1080 x 1920)

Using fbdev graphics.

I:TWFunc::Set_Brightness: Setting brightness control to 80

I:Loading package: splash (/twres/splash.xml)

I:Load XML directly

I:PageManager::LoadFileToBuffer loading filename: '/twres/splash.xml' directly

I:Checking resolution...

I:Loading resources...

I:Loading variables...

I:Loading mouse cursor...

I:Loading pages...

I:Loading page splash

I:Switching packages (splash)

=> Linking mtab

=> Processing recovery.fstab

I:Processing '/boot'

I:Processing '/cache'

I:Processing '/data'

I:Processing '/recovery'

I:Processing '/system'

I:Processing '/system_image'

I:Processing '/efs1'

I:Processing '/efs2'

I:Processing '/usb_otg'

I:Created '/usb_otg' folder.

I:Setting up '/data' as data/media emulated storage.

I:Created '/sdcard' folder.

I:mount -o bind '/data/media' '/sdcard' process ended with RC=0

I:mount -o bind '/data/media/0' '/sdcard' process ended with RC=0

I:Setting up '/data' as data/media emulated storage.

I:mount -o bind '/data/media' '/sdcard' process ended with RC=0

I:mount -o bind '/data/media/0' '/sdcard' process ended with RC=0

I:Backup folder set to '/data/media/0/TWRP/BACKUPS/96b3692d'

I:Settings storage is '/data/media/0'

I:Decrypt adopted storage starting

I:PageManager::LoadFileToBuffer loading filename: '/data/system/storage.xml' directly

Updating partition details...

I:Data backup size is 102MB, free: 51764MB.

I:Unable to mount '/usb_otg'

I:Actual block device: '', current file system: 'vfat'

...done

I:Unmounting main partitions...

Partition Logs:

/boot | /dev/block/sde18 | Size: 64MB

Flags: Can_Be_Backed_Up IsPresent Can_Flash_Img

Primary_Block_Device: /dev/block/sde18

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

/cache | /dev/block/sda3 | Size: 247MB Used: 11MB Free: 236MB Backup Size: 11MB

Flags: Can_Be_Mounted Can_Be_Wiped Can_Be_Backed_Up Wipe_During_Factory_Reset Wipe_Available_in_GUI IsPresent

Primary_Block_Device: /dev/block/sda3

Display_Name: Cache

Storage_Name: Cache

Backup_Path: /cache

Backup_Name: cache

Backup_Display_Name: Cache

Storage_Path: /cache

Current_File_System: ext4

Fstab_File_System: ext4

Backup_Method: files

/data | /dev/block/sda15 | Size: 54918MB Used: 102MB Free: 51764MB Backup Size: 102MB

Flags: Can_Be_Mounted Can_Be_Wiped Can_Be_Backed_Up Wipe_During_Factory_Reset Wipe_Available_in_GUI IsPresent Can_Be_Encrypted Has_Data_Media Can_Encrypt_Backup Use_Userdata_Encryption Is_Storage Is_Settings_Storage

Symlink_Path: /data/media/0

Symlink_Mount_Point: /sdcard

Primary_Block_Device: /dev/block/sda15

Length: -16384

Display_Name: Data

Storage_Name: Internal Storage

Backup_Path: /data

Backup_Name: data

Backup_Display_Name: Data

Storage_Path: /data/media/0

Current_File_System: f2fs

Fstab_File_System: f2fs

Backup_Method: files

MTP_Storage_ID: 65537

/recovery | /dev/block/sde21 | Size: 64MB

Flags: Can_Be_Backed_Up IsPresent Can_Flash_Img

Primary_Block_Device: /dev/block/sde21

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 | /dev/block/sde20 | Size: 2913MB Used: 1999MB Free: 914MB Backup Size: 1999MB

Flags: Can_Be_Mounted Can_Be_Wiped Can_Be_Backed_Up Wipe_Available_in_GUI IsPresent

Primary_Block_Device: /dev/block/sde20

Display_Name: System

Storage_Name: System

Backup_Path: /system

Backup_Name: system

Backup_Display_Name: System

Storage_Path: /system

Current_File_System: ext4

Fstab_File_System: ext4

Backup_Method: files

/system_image | /dev/block/sde20 | Size: 3008MB

Flags: Can_Be_Backed_Up IsPresent Can_Flash_Img

Primary_Block_Device: /dev/block/sde20

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

/efs1 | /dev/block/sdf1 | Size: 2MB

Flags: Can_Be_Backed_Up Has_SubPartition IsPresent

Primary_Block_Device: /dev/block/sdf1

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/sdf2 | Size: 2MB

Flags: Can_Be_Backed_Up Is_SubPartition IsPresent

SubPartition_Of: /efs1

Primary_Block_Device: /dev/block/sdf2

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

/usb_otg | | Size: 0MB Used: 0MB Free: 0MB Backup Size: 0MB

Flags: Can_Be_Mounted Can_Be_Wiped Wipe_Available_in_GUI Removable Is_Storage

Primary_Block_Device: /dev/block/sdg1

Alternate_Block_Device: /dev/block/sdg

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: vfat

Fstab_File_System: vfat

Backup_Method: files

MTP_Storage_ID: 65538

I:Loading package: TWRP (/data/media/0/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_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/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: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 flashimage_confirm

I:Loading page clear_vars

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 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 '/data/media/0/TWRP/BACKUPS/96b3692d'

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 reboot

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 advanced

I:Loading page partsdcardsel

I:Loading page partsdcardcheck

I:Loading page partsdcard

I:Loading page htcdumlock

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 trydecrypt

I:Loading page terminalcommand

I:Loading page sideload

I:Loading page fixcontexts

I:Loading page installsu

I:Loading page slideout

I:Loading page select_storage

I:Loading page select_language

I:Set page: 'clear_vars'

I:Set page: 'main2'

I:Switching packages (TWRP)

SELinux contexts loaded from /file_contexts

Full SELinux support is present.

I:Not using /misc, not defined in fstab.

I:Not using /misc, not defined in fstab.

Startup Commands:

ro.cm.build.version.plat.rev=0

ro.cm.build.version.plat.sdk=5

ro.cm.device=oneplus3

ro.cm.display.version=13.0-20160804-UNOFFICIAL-oneplus3

ro.cm.version=13.0-20160804-UNOFFICIAL-oneplus3

ro.cm.releasetype=UNOFFICIAL

ro.com.google.clientidbase=android-oneplus

ro.com.android.dateformat=MM-dd-yyyy

ro.com.android.dataroaming=false

ro.com.android.wifi-watchlist=GoogleGuest

ro.url.legal=http://www.google.com/intl/%s/mobile/android/basic/phone-legal.html

ro.url.legal.android_privacy=http://www.google.com/intl/%s/mobile/android/basic/privacy.html

ro.boot.mode=normal

ro.boot.angela=disabled

ro.boot.nobatt=0

ro.boot.secboot=enabled

ro.boot.selinux=permissive

ro.boot.baseband=msm

ro.boot.hardware=qcom

ro.boot.serialno=96b3692d

ro.boot.keymaster=1

ro.boot.bootdevice=624000.ufshc

ro.boot.hw_version=16

ro.boot.rf_version=21

ro.boot.veritymode=enforcing

ro.boot.pcba_number=001580206822032700016379

ro.boot.rpmb_enable=true

ro.boot.project_name=15801

ro.boot.enable_dm_verity=1

ro.twrp.boot=1

ro.twrp.version=3.0.2-1

ro.wifi.channels=

ro.allow.mock.location=1

ro.board.platform=msm8996

ro.build.id=MMB29M

ro.build.date=Thu Aug 4 09:14:14 EDT 2016

ro.build.date.utc=1470316454

ro.build.host=build

ro.build.tags=test-keys

ro.build.type=eng

ro.build.user=jenkins

ro.build.flavor=cm_oneplus3-eng

ro.build.display.id=OnePlus3-eng 6.0.1 MMB29M 123bd1a616 test-keys

ro.build.product=OnePlus3

ro.build.selinux=1

ro.build.version.sdk=23

ro.build.version.base_os=

ro.build.version.release=6.0.1

ro.build.version.codename=REL

ro.build.version.incremental=123bd1a616

ro.build.version.preview_sdk=0

ro.build.version.all_codenames=REL

ro.build.version.security_patch=2015-12-01

ro.build.description=OnePlus3-user 6.0.1 MMB29M 42 dev-keys

ro.build.fingerprint=OnePlus/OnePlus3/OnePlus3:6.0.1/MMB29M/213690:user/release-keys

ro.build.characteristics=default

ro.config.ringtone=Orion.ogg

ro.config.alarm_alert=Helium.ogg

ro.config.notification_sound=Argon.ogg

ro.dalvik.vm.native.bridge=0

ro.kernel.android.checkjni=1

ro.secure=0

ro.zygote=zygote64_32

ro.carrier=unknown

ro.cmlegal.url=https://cyngn.com/legal/privacy-policy

ro.display.series=OnePlus 3

ro.product.cpu.abi=arm64-v8a

ro.product.cpu.abilist=arm64-v8a,armeabi-v7a,armeabi

ro.product.cpu.abilist32=armeabi-v7a,armeabi

ro.product.cpu.abilist64=arm64-v8a

ro.product.name=OnePlus3

ro.product.board=MSM8996

ro.product.brand=OnePlus

ro.product.model=ONE A3003

ro.product.device=OnePlus3

ro.product.locale=en-US

ro.product.manufacturer=OnePlus

ro.baseband=msm

ro.bootmode=normal

ro.hardware=qcom

ro.revision=0

ro.serialno=96b3692d

ro.bootimage.build.date=Thu Aug 4 09:14:31 EDT 2016

ro.bootimage.build.date.utc=1470316471

ro.bootimage.build.fingerprint=OnePlus/OnePlus3/OnePlus3:6.0.1/MMB29M/123bd1a616:eng/test-keys

ro.alarm_boot=false

ro.bootloader=unknown

ro.debuggable=1

ro.modversion=13.0-20160804-UNOFFICIAL-oneplus3

ro.rommanager.developerid=cyanogenmod

ro.setupwizard.enterprise_mode=1

net.bt.name=Android

net.change=net.bt.name

sys.usb.ffs.ready=1

init.svc.adbd=running

init.svc.healthd=running

init.svc.ueventd=running

init.svc.recovery=running

init.svc.set_permissive=stopped

twrp.crash_counter=0

twrp.action_complete=0

debug.atrace.tags.enableflags=0

media.sf.omx-plugin=libffmpeg_omx.so

media.sf.extractor-plugin=libffmpeg_extractor.so

dalvik.vm.isa.arm.variant=cortex-a53

dalvik.vm.isa.arm.features=default

dalvik.vm.isa.arm64.variant=kryo

dalvik.vm.isa.arm64.features=default

dalvik.vm.usejit=true

dalvik.vm.lockprof.threshold=500

dalvik.vm.dex2oat-Xms=64m

dalvik.vm.dex2oat-Xmx=512m

dalvik.vm.dex2oat-filter=verify-at-runtime

dalvik.vm.stack-trace-file=/data/anr/traces.txt

dalvik.vm.image-dex2oat-Xms=64m

dalvik.vm.image-dex2oat-Xmx=64m

dalvik.vm.image-dex2oat-filter=verify-at-runtime

persist.sys.dun.override=0

persist.sys.usb.config=adb

persist.sys.dalvik.vm.lib.2=libart.so

persist.sys.root_access=0

persist.sys.recovery_update=false

service.adb.root=1

keyguard.no_require_sim=true

I:Copying file /cache/recovery/log to /cache/recovery/last_log

tw_get_context got selinux context: u:object_r:media_rw_data_file:s0

I:Got default contexts and file mode for storage files.

I:Attempt to load settings from settings file...

I:InfoManager loading from '/data/media/0/TWRP/.twrps'.

I:Backup folder set to '/data/media/0/TWRP/BACKUPS/96b3692d'

I:Copying file /etc/recovery.fstab to /cache/recovery/recovery.fstab

I:Version number saved to '/cache/recovery/.version'

I:Unable to mount '/usb_otg'

I:Actual block device: '', current file system: 'vfat'

__bionic_open_tzdata: couldn't find any tzdata when looking for CST6CDT,M3.2.0,M11.1.0!

__bionic_open_tzdata: couldn't find any tzdata when looking for posixrules!

I:TWFunc::Set_Brightness: Setting brightness control to 80

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/0/TWRP/BACKUPS/96b3692d'

I:TWFunc::Fixup_Time: Pre-fix date and time: 1970-05-04--14-23-23

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: no ats files found, leaving untouched!

I:Enabling MTP during startup

I:Starting MTP

Starting MTP

I:sending message to add 65537 '/data/media/0' 'Internal Storage'

I:Message sent, add storage ID: 65537

MTP Enabled

I:Check_Lifetime_Writes result: '351260'

I:Switching packages (TWRP)

I:Set page: 'main'

I:Set page: 'clear_vars'

I:Set page: 'main2'

created new mtpserver object

MtpServer::run fd: 19

mtppipe add storage 65537 '/data/media/0'

MtpStorage id: 65537 path: /data/media/0

I:Set page: 'mount'

I:Set overlay: 'select_storage'

I:Set overlay: ''

I:Set page: 'clear_vars'

I:Set page: 'mount'

I:TWFunc::Set_Brightness: Setting brightness control to 5

I:TWFunc::Set_Brightness: Setting brightness control to 0

I:TWFunc::Set_Brightness: Setting brightness control to 80

I:Set overlay: ''

I:Set page: 'main'

I:Set page: 'clear_vars'

I:Set page: 'main2'

I:Set page: 'advanced'

I:Set page: 'confirm_action'

I:Set page: 'action_page'

I:operation_start: 'Copy Log'

I:Copying file /tmp/recovery.log to /data/media/0/recovery.log

Thank you!!!