[Guide] Upgrade Nougat rooted & encrypted to Oreo easy way

Vlad_z

Senior Member
Mar 25, 2011
506
178
0
Well, this is maybe 10th way of doing this update but I just did it and decided to share steps.

I upgraded from 4.5.15 rooted and encrypted to 5.0.1 without data loss though I have to format /Data partition. So, this is what I did:

1. Unroot and remove pin from phone.
2. Boot into bootloader and flash using fastboot latest codeworx TWRP (I used universal one)
3. Boot into TWRP and made nandroid backup
4. Reboot back into system - still 4.5.15. Save TWRP backup to PC. Also save all sdcard folders you care about, such as DCIM, Pictures, Music, Download etc. to PC.
5. Load Oxygen5.0.1 zip file into Download folder on phone
6. Boot into TWRP
7. Install Oxygen5.0.1 zip though TWRP. Wipe Caches and FORMAT Data.
8. Reboot into system. Let Oreo run new phone wizard and settle.
9. Copy TWRP backup back to the phone. Copy your sdcard folders back. Also copy Magisk15.3.zip if you need a root.
10: Get developer mode in Oreo and enable ADB.
11. Reboot into bootloader and flash codeworx TWRP again and reboot into TWRP
12. Select and restore DATA only in TWRP (only DATA partition without media).
13. Flash Magisk 15.3
14. Wipe this time Caches only and reboot into Oreo

Done, re-assign your pin code etc.

Sounds a bit complicated but in fact it's all about how to deal with consequences of formatting Data partition.

So, in nutshell - save your DATA partition, install Oreo, format DATA then after Oreo settles, restore your Data and your root.
 
Last edited:

Vlad_z

Senior Member
Mar 25, 2011
506
178
0
When I went to install the Oxygen5.0.1 zip a message error showed that said "This Device is unlocked; bootstate: ""; sdk version: 25".
This will happen if you are trying to update not from Nougat (sdk=25) OR your ro.boot.verifiedbootstate is not "green" - unlocked.

Or (more likely) you are trying to flash from different version of recovery...

I am using this one:

https://sourceforge.net/projects/cheeseburgerdumplings/files/15.1/cheeseburger/recovery/twrp-3.2.1-0-universal-codeworkx-cheeseburger.img/download


PS: yes, I just looked into updater-script and looks like you got this error because you are unlocked and your recovery is built for Nougat (sdk25), you should use recovery build for Oreo (sdk26). So, definitely you are using wrong recovery.
 
Last edited:

orfeas

Senior Member
Mar 16, 2008
242
32
0
44
Patras
well, this is maybe 10th way of doing this update but i just did it and decided to share steps.

I upgraded from 4.5.15 rooted and encrypted to 5.0.1 without data loss though i have to format /data partition. So, this is what i did:

1. Unroot and remove pin from phone.
2. Boot into bootloader and flash using fastboot latest codeworx twrp (i used universal one)
3. Boot into twrp and made nandroid backup
4. Reboot back into system - still 4.5.15. Save twrp backup to pc. Also save all sdcard folders you care about, such as dcim, pictures, music, download etc. To pc.
5. Load oxygen5.0.1 zip file into download folder on phone
6. Boot into twrp
7. Install oxygen5.0.1 zip though twrp. Wipe caches and format data.
8. Reboot into system. Let oreo run new phone wizard and settle.
9. Copy twrp backup back to the phone. Copy your sdcard folders back. Also copy magisk15.3.zip if you need a root.
10: Get developer mode in oreo and enable adb.
11. Reboot into bootloader and flash codeworx twrp again and reboot into twrp
12. Select and restore data only in twrp (only data partition without media).
13. Flash magisk 15.3
14. Wipe this time caches only and reboot into oreo

done, re-assign your pin code etc.

Sounds a bit complicated but in fact it's all about how to deal with consequences of formatting data partition.

So, in nutshell - save your data partition, install oreo, format data then after oreo settles, restore your data and your root.
really really great.
Worked at last.
Thanks
 
  • Like
Reactions: Mark99_19

Dchoi229

Senior Member
Apr 27, 2017
320
47
0
I'm going to give it a shot soon. I really appreciate you making a simple guide for this. I'm still convinced nougat is more stable than oreo.
 

Dchoi229

Senior Member
Apr 27, 2017
320
47
0
Will this is also fix the known WiFi bug that kills it on a previously failed OTA Oreo update?
I'm actually facing the Wifi Issue right now and I followed this guide to upgrade to Oreo. I'll let you know if I find the fix.

---------- Post added at 03:09 PM ---------- Previous post was at 02:49 PM ----------

Will this is also fix the known WiFi bug that kills it on a previously failed OTA Oreo update?
https://forum.xda-developers.com/oneplus-5/how-to/guide-fix-fingerprints-wi-fi-failed-t3731059
 

Vlad_z

Senior Member
Mar 25, 2011
506
178
0
Will this is also fix the known WiFi bug that kills it on a previously failed OTA Oreo update?
I have no problem nether with my WiFi or fingerprint scanner.

I assume the problem for failed Oreo update has something to do with file level encryption went wrong and your wpa_supllicant.conf got corrupted etc...

In this guide I mention to remove your pin from your phone, let it be default encryption key, first thing before taking any further actions.

So, when Oreo will settle (new install wizard where you connect to WiFi, your google account) then after that TWRP restores your previous wpa_supllicant.conf file with all your previous WiFi settings and everything should be working just fine.

And after that you can add pin code to the phone to encrypt that default encryption key further...
 
Last edited:

Vlad_z

Senior Member
Mar 25, 2011
506
178
0
I'm actually facing the Wifi Issue right now and I followed this guide to upgrade to Oreo. I'll let you know if I find the fix.


Did you remove pin code? (Before even flashing codeworx TWRP first time)

PS: what issues exactly do you have?
 
Last edited:

Dchoi229

Senior Member
Apr 27, 2017
320
47
0
Did you remove pin code? (Before even flashing codeworx TWRP first time)

PS: what issues exactly do you have?
Actually I realized i was wrong the whole time. My work wifi was acting weird and it started working mid day lol. Your guide is excellent! It worked perfectly fine. Thanks for your help bro.
 

Kruzkal

Senior Member
Jan 14, 2010
183
36
0
Damn, I spoke too soon. Getting an error upon restoring data with TWRP

"extractTarFork() process ended with ERROR: 255"

Help!

This is the log:

Code:
Starting TWRP 3.2.1-0-3eb70edb on Wed Jul 29 14:08:52 1970
 (pid 595)
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:TWFunc::Set_Brightness: Setting brightness control to 255
I:LANG: en
Starting the UI...
Skipping adf graphics -- not present in build tree
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: 3 (1080 x 1920)
Using fbdev graphics.
I:TWFunc::Set_Brightness: Setting brightness control to 255
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)
I:Blacklisting input device: hbtp_vm
=> Linking mtab
=> Processing recovery.fstab
I:Reading /etc/recovery.fstab
I:Processing '/boot'
I:Processing '/cache'
I:Processing '/recovery'
I:Processing '/system'
I:Processing '/system_image'
I:Processing '/data'
I:Processing '/firmware'
I:Processing '/misc'
I:Processing '/modem'
I:Processing '/bluetooth'
I:Processing '/dsp'
I:Processing '/efs1'
I:Processing '/efs2'
I:Processing '/efsc'
I:Processing '/efsg'
I:Processing '/usbstorage'
I:Created '/usbstorage' folder.
I:Done processing fstab files
I:Setting up '/data' as data/media emulated storage.
I:mount -o bind '/data/media' '/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:Backup folder set to '/data/media/TWRP/BACKUPS/225dd9bb'
I:Settings storage is '/data/media'
I:Decrypt adopted storage starting
I:PageManager::LoadFileToBuffer loading filename: '/data/system/storage.xml' directly
I:No /data/system/storage.xml for adopted storage
Updating partition details...
I:Data backup size is 0MB, free: 102294MB.
I:Unable to mount '/usbstorage'
I:Actual block device: '', current file system: 'vfat'
...done
I:Unmounting main partitions...


Partition Logs:
/boot | /dev/block/sde19 | Size: 64MB
   Flags: Can_Be_Backed_Up IsPresent Can_Flash_Img 
   Primary_Block_Device: /dev/block/sde19
   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: 0MB Free: 247MB Backup Size: 0MB
   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

/recovery | /dev/block/sde22 | Size: 64MB
   Flags: Can_Be_Backed_Up IsPresent Can_Flash_Img 
   Primary_Block_Device: /dev/block/sde22
   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/sde21 | Size: 2929MB Used: 2758MB Free: 170MB Backup Size: 2758MB
   Flags: Can_Be_Mounted Can_Be_Wiped Can_Be_Backed_Up Wipe_Available_in_GUI IsPresent Mount_Read_Only 
   Primary_Block_Device: /dev/block/sde21
   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/sde21 | Size: 3072MB
   Flags: Can_Be_Backed_Up IsPresent Can_Flash_Img 
   Primary_Block_Device: /dev/block/sde21
   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

/data | /dev/block/sda13 | Size: 113981MB Used: 0MB Free: 102294MB 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 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/sda13
   Display_Name: Data
   Storage_Name: Internal Storage
   Backup_Path: /data
   Backup_Name: data
   Backup_Display_Name: Data
   Storage_Path: /data/media
   Current_File_System: ext4
   Fstab_File_System: ext4
   Backup_Method: files
   MTP_Storage_ID: 65537

/firmware | /dev/block/sde10 | Size: 109MB Used: 104MB Free: 5MB Backup Size: 104MB
   Flags: Can_Be_Mounted Can_Be_Wiped IsPresent Mount_To_Decrypt Mount_Read_Only 
   Primary_Block_Device: /dev/block/sde10
   Display_Name: Firmware
   Storage_Name: Firmware
   Backup_Path: /firmware
   Backup_Name: firmware
   Backup_Display_Name: Firmware
   Storage_Path: /firmware
   Current_File_System: vfat
   Fstab_File_System: vfat
   Backup_Method: files

/misc | /dev/block/sda4 | Size: 1MB
   Flags: IsPresent 
   Primary_Block_Device: /dev/block/sda4
   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

/modem | /dev/block/sde10 | Size: 110MB
   Flags: Can_Be_Backed_Up Has_SubPartition IsPresent 
   Primary_Block_Device: /dev/block/sde10
   Display_Name: Modem
   Storage_Name: Modem
   Backup_Path: /modem
   Backup_Name: modem
   Backup_Display_Name: Modem
   Storage_Path: /modem
   Current_File_System: emmc
   Fstab_File_System: emmc
   Backup_Method: dd

/bluetooth | /dev/block/sde24 | Size: 1MB
   Flags: Can_Be_Backed_Up Is_SubPartition IsPresent 
   SubPartition_Of: /modem
   Primary_Block_Device: /dev/block/sde24
   Display_Name: bluetooth
   Storage_Name: bluetooth
   Backup_Path: /bluetooth
   Backup_Name: bluetooth
   Backup_Display_Name: bluetooth
   Storage_Path: /bluetooth
   Current_File_System: emmc
   Fstab_File_System: emmc
   Backup_Method: dd

/dsp | /dev/block/sde11 | Size: 16MB
   Flags: Can_Be_Backed_Up Is_SubPartition IsPresent 
   SubPartition_Of: /modem
   Primary_Block_Device: /dev/block/sde11
   Display_Name: dsp
   Storage_Name: dsp
   Backup_Path: /dsp
   Backup_Name: dsp
   Backup_Display_Name: dsp
   Storage_Path: /dsp
   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

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

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

/usbstorage |  | 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 Storage
   Storage_Name: USB Storage
   Backup_Path: /usbstorage
   Backup_Name: usbstorage
   Backup_Display_Name: USB Storage
   Storage_Path: /usbstorage
   Current_File_System: vfat
   Fstab_File_System: vfat
   Backup_Method: files
   Mount_Flags: 0, Mount_Options: utf8
   MTP_Storage_ID: 65538

I:Loading package: TWRP (/data/media/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 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 appcheck
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: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 rebootapp
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 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.
Startup Commands: 
sys.usb.config=adb
service.adb.root=1
ro.persistent_properties.ready=true
ro.crypto.type=file
ro.crypto.state=encrypted
ro.build.fingerprint=OnePlus/omni_cheeseburger/cheeseburger:8.1.0/OPM3.171019.013/codewo01052214:eng/test-keys
ro.boottime.adbd=3280855535
ro.boottime.init=2428
ro.boottime.init.selinux=34
ro.boottime.init.cold_boot_wait=716
ro.boottime.ueventd=2473566608
ro.boottime.recovery=3215361818
ro.boottime.sbinqseecomd=3284557770
ro.boottime.keymaster-3-0=3319188216
ro.boottime.gatekeeper-1-0=3322590584
ro.boottime.servicemanager=3325840832
ro.boottime.set_permissive=3212346286
ro.boottime.hwservicemanager=3315933958
ro.boot.serialno=225dd9bb
ro.serialno=225dd9bb
hwservicemanager.ready=true
net.bt.name=Android
sys.usb.rmnet.func.name=gsi
sys.usb.rndis.func.name=gsi
sys.usb.controller=a800000.dwc3
sys.listeners.registered=true
persist.sys.usb.config=adb
persist.sys.dalvik.vm.lib.2=libart.so
persist.sys.disable_rescue=true
debug.atrace.tags.enableflags=0
dalvik.vm.isa.arm.variant=cortex-a9
dalvik.vm.isa.arm.features=default
dalvik.vm.isa.arm64.variant=generic
dalvik.vm.isa.arm64.features=default
dalvik.vm.lockprof.threshold=500
dalvik.vm.stack-trace-dir=/data/anr
dalvik.vm.image-dex2oat-filter=verify-at-runtime
ro.config.ringtone=omni_ringtone1.ogg
ro.config.alarm_alert=omni_alarm1.ogg
ro.config.notification_sound=omni_notification1.ogg
ro.com.google.clientidbase=android-google
ro.com.android.wifi-watchlist=GoogleGuest
ro.url.legal=http://www.google.com/intl/%s/mobile/android/basic/phone-legal.html
ro.boot.mode=recovery
ro.boot.angela=disabled
ro.boot.battery.absent=false
ro.boot.console=ttyMSM0
ro.boot.secboot=enabled
ro.boot.selinux=permissive
ro.boot.baseband=msm
ro.boot.configfs=true
ro.boot.hardware=qcom
ro.boot.keymaster=1
ro.boot.bootdevice=1da4000.ufshc
ro.boot.hw_version=23
ro.boot.rf_version=53
ro.boot.veritymode=enforcing
ro.boot.pcba_number=001685907601036000006927
ro.boot.rpmb_enable=true
ro.boot.startupmode=pon1
ro.boot.project_name=16859
ro.boot.usbcontroller=a800000.dwc3
ro.boot.enable_dm_verity=1
ro.boot.verifiedbootstate=orange
ro.omni.device=cheeseburger
ro.omni.version=8.1.0-20180105-cheeseburger-HOMEMADE
ro.twrp.boot=1
ro.twrp.version=3.2.1-0
ro.wifi.channels=
ro.allow.mock.location=1
ro.board.platform=msm8998
ro.build.id=OPM3.171019.013
ro.build.date=Fri Jan  5 22:14:20 CET 2018
ro.build.date.utc=1515186860
ro.build.host=ryzen
ro.build.tags=test-keys
ro.build.type=eng
ro.build.user=codeworkx
ro.build.flavor=omni_cheeseburger-eng
ro.build.display.id=omni_cheeseburger-eng 8.1.0 OPM3.171019.013 eng.codewo.20180105.221420 test-keys
ro.build.product=cheeseburger
ro.build.selinux=1
ro.build.version.sdk=27
ro.build.version.base_os=
ro.build.version.release=8.1.0
ro.build.version.codename=REL
ro.build.version.incremental=eng.codewo.20180105.221420
ro.build.version.preview_sdk=0
ro.build.version.all_codenames=REL
ro.build.version.security_patch=2018-01-05
ro.build.description=omni_cheeseburger-eng 8.1.0 OPM3.171019.013 eng.codewo.20180105.221420 test-keys
ro.build.characteristics=default
ro.bionic.ld.warning=1
ro.kernel.android.checkjni=1
ro.secure=0
ro.treble.enabled=false
ro.vendor.product.name=omni_cheeseburger
ro.vendor.product.brand=OnePlus
ro.vendor.product.model=OnePlus A5000
ro.vendor.product.device=cheeseburger
ro.vendor.product.manufacturer=OnePlus
ro.display.series=OnePlus 5
ro.product.cpu.abi=arm64-v8a
ro.product.cpu.abilist=armeabi-v7a,armeabi
ro.product.cpu.abilist32=armeabi-v7a,armeabi
ro.product.cpu.abilist64=
ro.product.name=omni_cheeseburger
ro.product.board=msm8998
ro.product.brand=OnePlus
ro.product.model=OnePlus A5000
ro.product.device=cheeseburger
ro.product.manufacturer=OnePlus
ro.baseband=msm
ro.bootmode=recovery
ro.hardware=qcom
ro.revision=0
ro.bootimage.build.date=Fri Jan 5 22:14:20 CET 2018
ro.bootimage.build.date.utc=1515186860
ro.bootimage.build.fingerprint=OnePlus/omni_cheeseburger/cheeseburger:8.1.0/OPM3.171019.013/codewo01052214:eng/test-keys
ro.bootloader=unknown
ro.debuggable=1
ro.modversion=OmniROM-8.1.0-20180105-cheeseburger-HOMEMADE
ro.setupwizard.enterprise_mode=1
ro.property_service.version=2
init.svc.adbd=restarting
init.svc.ueventd=running
init.svc.recovery=running
init.svc.sbinqseecomd=running
init.svc.keymaster-3-0=running
init.svc.gatekeeper-1-0=running
init.svc.servicemanager=running
init.svc.set_permissive=stopped
init.svc.hwservicemanager=running
twrp.crash_counter=0
twrp.action_complete=0
crypto.ready=1

I:Copying file /cache/recovery/log to /cache/recovery/last_log
tw_get_context got selinux context: u:object_r:system_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/TWRP/.twrps'.
I:Backup folder set to '/data/media/TWRP/BACKUPS/225dd9bb'
I:Copying file /etc/recovery.fstab to /cache/recovery/recovery.fstab
I:Version number saved to '/cache/recovery/.version'
I:Unable to mount '/usbstorage'
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 255
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/225dd9bb'
I:TWFunc::Fixup_Time: Pre-fix date and time: 1970-07-29--09-08-53
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:Starting MTP
I:Cannot find file /sys/class/android_usb/android0/idVendor
I:Cannot find file /sys/class/android_usb/android0/idProduct
I:sending message to add 65537 '/data/media' 'Internal Storage'
I:Message sent, add storage ID: 65537 '/data/media'
MTP Enabled
I:[MTP] Starting MTP
I:Check_Lifetime_Writes result: '46988'
I:Switching packages (TWRP)
I:Starting Adb Backup FIFO
I:Set page: 'main'
I:Set page: 'clear_vars'
I:Set page: 'main2'
I:[MTP] created new mtpserver object
I:[MTP] MtpServer::run fd: 20
I:[MTP] mtppipe add storage 65537 '/data/media'
I:[MTP] MtpStorage id: 65537 path: /data/media
I:Set page: 'restore'
I:Set page: 'restore_read'
I:Set page: 'restore_select'
I:Set page: 'restore_run'
I:operation_start: 'Nandroid'
[RESTORE STARTED]
Restore folder: '/data/media/TWRP/BACKUPS/225dd9bb/2018-01-22--19-47-07'
Skipping Digest check based on user setting.
Calculating restore details...
I:InfoManager loading from '/data/media/TWRP/BACKUPS/225dd9bb/2018-01-22--19-47-07/data.info'.
I:Read info file, restore size is 9214007296
Restoring 1 partitions...
Total restore size is 8787MB
I:Restore filename is: /data/media/TWRP/BACKUPS/225dd9bb/2018-01-22--19-47-07/data.ext4.win
I:Restore file system is: 'ext4'.
I:Restore file system is: 'ext4'.
Wiping Data (excl. storage)
Wiping data without wiping /data/media ...
I:skipped '/data/lost+found'
I:skipped '/data/media'
Done.
I:sending message to add 65537 '/data/media' 'Internal Storage'
I:Message sent, add storage ID: 65537 '/data/media'
I:[MTP] mtppipe add storage 65537 '/data/media'
Restoring Data (excl. storage)...
I:[MTP] MtpStorage id: 65537 path: /data/media
E:[MTP] MtpServer::addStorage Storage for storage ID 65537 already exists.
Invalid encryption mode file /data/unencrypted/mode
I:InfoManager loading from '/data/media/TWRP/BACKUPS/225dd9bb/2018-01-22--19-47-07/data.info'.
I:Read info file, restore size is 9214007296
I:Multiple archives
Invalid encryption mode file /data/unencrypted/mode
Invalid encryption mode file /data/unencrypted/mode
Invalid encryption mode file /data/unencrypted/mode
Invalid encryption mode file /data/unencrypted/mode
Invalid encryption mode file /data/unencrypted/mode
Invalid encryption mode file /data/unencrypted/mode
Invalid encryption mode file /data/unencrypted/mode
Invalid encryption mode file /data/unencrypted/mode
Invalid encryption mode file /data/unencrypted/mode
I:First tar file '/data/media/TWRP/BACKUPS/225dd9bb/2018-01-22--19-47-07/data.ext4.win000' not encrypted
I:Setting archive type
I:Extracting uncompressed tar
did not find newline char in expected location, continuing anyway...
  ==> extracting: //data/bootchart/ (mode 40755, directory)
restoring policy 1DK > '80f1efb175000000' to '//data/bootchart/'
did not find newline char in expected location, continuing anyway...
  ==> extracting: //data/local/ (mode 40751, directory)
restoring policy 1DK > '80f1efb175000000' to '//data/local/'
did not find newline char in expected location, continuing anyway...
  ==> extracting: //data/local/tmp/ (mode 40771, directory)
tar_extract_file(): failed to extract //data/local/tmp/ !!!
I:Unable to extract tar archive '/data/media/TWRP/BACKUPS/225dd9bb/2018-01-22--19-47-07/data.ext4.win000'
Error during restore process.
I:Error extracting '/data/media/TWRP/BACKUPS/225dd9bb/2018-01-22--19-47-07/data.ext4.win000' in thread ID 0
I:Error extracting split archive.
Error during restore process.
extractTarFork() process ended with ERROR: 255
I:Set page: 'action_complete'
I:operation_end - status=1
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 255
I:Set overlay: ''
I:Set page: 'clear_vars'
I:Set page: 'main2'
I:Set page: 'advanced'
I:Set page: 'copylog'
I:Set page: 'action_page'
I:operation_start: 'Copy Log'
I:Copying file /tmp/recovery.log to /data/media/recovery.log
 
Last edited:

Vlad_z

Senior Member
Mar 25, 2011
506
178
0
Check that archive file for corruption with WinRar on PC.
Can you open some files from that data.ext4.win000 archive?

Was you phone encrypted on Nougat?
Did you remove pin before taking nandroid?
Did you use codeworx universal TWRP to take nandroid?
What steps did you do exactly?
 
Last edited:

avlis88

Member
Jan 12, 2013
32
2
0
Update work perfect !
I have only one problem, I can not access the internal storage on the pc. I can access from the pc Work in bootloader or recovery, but not if I am on android.
 

Vlad_z

Senior Member
Mar 25, 2011
506
178
0
Update work perfect !
I have only one problem, I can not access the internal storage on the pc. I can access from the pc Work in bootloader or recovery, but not if I am on android.
When you connect Android phone to PC, on phone you have to choose file transfer USB mode. By default it's charging only. So, you have to switch it to "File transfer" and then you can access your phone internal storage from PC.
 

Kruzkal

Senior Member
Jan 14, 2010
183
36
0
Check that archive file for corruption with WinRar on PC.
Can you open some files from that data.ext4.win000 archive?

Was you phone encrypted on Nougat?
Did you remove pin before taking nandroid?
Did you use codeworx universal TWRP to take nandroid?
What steps did you do exactly?
Yes
Yes
Yes
Followed instructions exactly

I have since managed to work round that problem by restoring apps with data using Titanium Backup instead of TWRP. Still not entirely sure what went wrong but apparently quite a common error restoring with TWRP. Took a bit of time to redo some settings and a couple of apps required reinstalling, but didn't lose anything of note.
 

pindonga123

Member
May 28, 2015
49
0
0
Yes
Yes
Yes
Followed instructions exactly

I have since managed to work round that problem by restoring apps with data using Titanium Backup instead of TWRP. Still not entirely sure what went wrong but apparently quite a common error restoring with TWRP. Took a bit of time to redo some settings and a couple of apps required reinstalling, but didn't lose anything of note.
I follow the step and always the same, bootloop, I dont know if it is my phone or what but always the same, bootloop