Skip to content

Instantly share code, notes, and snippets.

@justfortherec
Created June 20, 2018 11:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justfortherec/170f5eb74d53f0b52ca7e72be57879a4 to your computer and use it in GitHub Desktop.
Save justfortherec/170f5eb74d53f0b52ca7e72be57879a4 to your computer and use it in GitHub Desktop.
Log of failed incremental update of FP2 with TWRP
__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.2.1-0-2af13795 on Fri Jan 2 03:31:28 1970
(pid 206)
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: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 255
I:LANG: en
I:TW_NO_LEGACY_PROPS := true
Starting the UI...
fb0 reports (possibly inaccurate):
vi.bits_per_pixel = 32
vi.red.offset = 24 .length = 8
vi.green.offset = 16 .length = 8
vi.blue.offset = 8 .length = 8
setting GGL_PIXEL_FORMAT_RGBX_8888
framebuffer: 3 (1080 x 1920)
Using overlay graphics.
Skipping adf graphics because TW_TARGET_USES_QCOM_BSP := true
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)
=> Linking mtab
Moving /etc/twrp.fstab -> /etc/recovery.fstab
=> Processing recovery.fstab
I:Reading /etc/recovery.fstab
I:Processing '/boot'
I:Processing '/system'
I:Processing '/cache'
I:Processing '/data'
I:Processing '/external_sd'
I:Created '/external_sd' folder.
I:Processing '/recovery'
I:Processing '/misc'
I:Done processing fstab files
I:Using automatic handling for /data/media emulated storage device.
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:Backup folder set to '/data/media/0/TWRP/BACKUPS/5677467c'
I:Settings storage is '/data/media/0'
I:mount -o bind '/data/media/0' '/sdcard' process ended with RC=0
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 950MB, free: 24992MB.
I:Unable to mount '/external_sd'
I:Actual block device: '', current file system: 'vfat'
...done
I:Unmounting main partitions...
Partition Logs:
/boot | /dev/block/mmcblk0p8 | Size: 16MB
Flags: Can_Be_Backed_Up IsPresent Can_Flash_Img
Primary_Block_Device: /dev/block/mmcblk0p8
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
/system | /dev/block/mmcblk0p13 | Size: 2015MB Used: 1116MB Free: 899MB Backup Size: 1116MB
Flags: Can_Be_Mounted Can_Be_Wiped Can_Be_Backed_Up Wipe_Available_in_GUI IsPresent Mount_Read_Only
Primary_Block_Device: /dev/block/mmcblk0p13
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
/cache | /dev/block/mmcblk0p15 | Size: 629MB Used: 14MB Free: 615MB Backup Size: 14MB
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/mmcblk0p15
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/mmcblk0p20 | Size: 26139MB Used: 950MB Free: 24992MB Backup Size: 950MB
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/mmcblk0p20
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: ext4
Fstab_File_System: ext4
Backup_Method: files
MTP_Storage_ID: 65538
/external_sd | | 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/mmcblk1p1
Alternate_Block_Device: /dev/block/mmcblk1
Display_Name: Micro SDcard
Storage_Name: Micro SDcard
Backup_Path: /external_sd
Backup_Name: external_sd
Backup_Display_Name: Micro SDcard
Storage_Path: /external_sd
Current_File_System: vfat
Fstab_File_System: vfat
Backup_Method: files
MTP_Storage_ID: 65537
/recovery | /dev/block/mmcblk0p16 | Size: 16MB
Flags: IsPresent Can_Flash_Img
Primary_Block_Device: /dev/block/mmcblk0p16
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
/misc | /dev/block/mmcblk0p10 | Size: 1MB
Flags: IsPresent
Primary_Block_Device: /dev/block/mmcblk0p10
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
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/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/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:Unable to open '/data/media/0/TWRP/BACKUPS/5677467c'
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.
Boot command: boot-recovery
Got arguments from boot message
Startup Commands: '--update_package=/cache/fp_update_999.zip'I:Inserting 'install /cache/fp_update_999.zip'
'--locale=en_US'
ro.sf.lcd_density=480
ro.adb.qemud=1
ro.com.google.clientidbase=android-google
ro.com.android.dataroaming=true
ro.com.android.wifi-watchlist=GoogleGuest
ro.ril.hsxpa=1
ro.ril.gprsclass=10
ro.url.legal=http://www.google.com/intl/%s/mobile/android/basic/phone-legal.html
ro.boot.emmc=true
ro.boot.baseband=msm
ro.boot.hardware=qcom
ro.boot.serialno=5677467c
ro.boot.bootdevice=msm_sdcc.1
ro.omni.device=FP2
ro.omni.version=6.0.1-20171209-FP2-HOMEMADE
ro.twrp.boot=1
ro.twrp.version=3.2.1-0
ro.wifi.channels=
ro.allow.mock.location=1
ro.board.platform=msm8974
ro.build.id=MOB30M
ro.build.date=Sat Dec 9 11:22:42 UTC 2017
ro.build.date.utc=0
ro.build.host=0fd045ccc84f
ro.build.tags=test-keys
ro.build.type=eng
ro.build.user=jenkins
ro.build.flavor=omni_FP2-eng
ro.build.display.id=omni_FP2-eng 6.0.1 MOB30M 10 test-keys
ro.build.product=FP2
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=10
ro.build.version.preview_sdk=0
ro.build.version.all_codenames=REL
ro.build.version.security_patch=2016-06-01
ro.build.description=omni_FP2-eng 6.0.1 MOB30M 10 test-keys
ro.build.fingerprint=Fairphone/omni_FP2/FP2:6.0.1/MOB30M/10:eng/test-keys
ro.build.characteristics=default
ro.config.ringtone=Ring_Synth_04.ogg
ro.config.alarm_alert=Argon.ogg
ro.config.notification_sound=pixiedust.ogg
ro.dalvik.vm.native.bridge=0
ro.kernel.android.checkjni=1
ro.secure=0
ro.zygote=zygote32
ro.carrier=unknown
ro.product.cpu.abi=armeabi-v7a
ro.product.cpu.abi2=armeabi
ro.product.cpu.abilist=armeabi-v7a,armeabi
ro.product.cpu.abilist32=armeabi-v7a,armeabi
ro.product.cpu.abilist64=
ro.product.name=omni_FP2
ro.product.board=FP2
ro.product.brand=Fairphone
ro.product.model=Fairphone 2
ro.product.device=FP2
ro.product.locale=en-US
ro.product.manufacturer=Fairphone
ro.baseband=msm
ro.bootmode=unknown
ro.hardware=qcom
ro.revision=0
ro.serialno=5677467c
ro.bootimage.build.date=Sat Dec 9 11:24:08 UTC 2017
ro.bootimage.build.date.utc=1512818649
ro.bootimage.build.fingerprint=Fairphone/omni_FP2/FP2:6.0.1/MOB30M/10:eng/test-keys
ro.alarm_boot=false
ro.bootloader=unknown
ro.debuggable=1
ro.modversion=OmniROM-6.0.1-20171209-FP2-HOMEMADE
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.ueventd=running
init.svc.recovery=running
init.svc.set_permissive=stopped
twrp.crash_counter=0
twrp.action_complete=0
debug.atrace.tags.enableflags=0
dalvik.vm.isa.arm.variant=krait
dalvik.vm.isa.arm.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
camera2.portability.force_api=1
persist.sys.usb.config=mtp,adb
persist.sys.dalvik.vm.lib.2=libart
persist.sys.whitelist=/system/etc/whitelist_appops.xml
persist.sys.root_access=1
persist.sys.strict_op_enable=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/5677467c'
I:Copying file /etc/recovery.fstab to /cache/recovery/recovery.fstab
I:Version number saved to '/cache/recovery/.version'
I:Unable to mount '/external_sd'
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/0/TWRP/BACKUPS/5677467c'
I:TWFunc::Fixup_Time: Pre-fix date and time: 1970-01-01--22-31-31
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 /data/time/ats_2, offset 1529393911653
I:TWFunc::Fixup_Time: Date and time corrected: 2018-06-20--06-10-02
I:Switching packages (TWRP)
I:Set page: 'action_page'
I:operation_start: 'OpenRecoveryScript'
Running Recovery Commands
I:command is: 'install'
I:value is: '/cache/fp_update_999.zip'
I:Unable to mount '/external_sd'
I:Actual block device: '', current file system: 'vfat'
Installing zip file '/cache/fp_update_999.zip'
Checking for Digest file...
Skipping Digest check: no Digest file found
I:Update binary zip
I:Zip does not contain SELinux file_contexts file in its root.
Source: Fairphone/FP2/FP2:7.1.2/18.06.5/gms-3f541f8c:userdebug/test-keys
Target: Fairphone/FP2/FP2:7.1.2/18.06.5-X/gms-411367bb:userdebug/test-keys
Verifying current system...
E3001: Package expects build fingerprint of Fairphone/FP2/FP2:7.1.2/18.06.5/gms-3f541f8c:userdebug/test-keys or Fairphone/FP2/FP2:7.1.2/18.06.5-X/gms-411367bb:userdebug/test-keys; this device has Fairphone/omni_FP2/FP2:6.0.1/MOB30M/10:eng/test-keys.
Source: Fairphone/FP2/FP2:7.1.2/18.06.5/gms-3f541f8c:userdebug/test-keys
Target: Fairphone/FP2/FP2:7.1.2/18.06.5-X/gms-411367bb:userdebug/test-keys
Verifying current system...
E3001: Package expects build fingerprint of Fairphone/FP2/FP2:7.1.2/18.06.5/gms-3f541f8c:userdebug/test-keys or Fairphone/FP2/FP2:7.1.2/18.06.5-X/gms-411367bb:userdebug/test-keys; this device has Fairphone/omni_FP2/FP2:6.0.1/MOB30M/10:eng/test-keys.
partition read matched size 10088448 sha 790b324cbe6ad1afc6ed20ac874e7c2158072398
644984832 bytes free on /cache (10088448 needed)
Verified system image...
Patching system image after verification.
performing update
Verified system image...
Patching system image after verification.
blockimg version is 4
maximum stash entries 0
creating stash /cache/recovery/5a79362318d00cf4c316e86435b3ed38dd35082d/
644980736 bytes free on /cache (3989504 needed)
erasing 223555 blocks
stashing 974 overlapping blocks to 280430c3c4c1394a660c68a6d325ed9500ea1d96
644980736 bytes free on /cache (3989504 needed)
writing 974 blocks to /cache/recovery/5a79362318d00cf4c316e86435b3ed38dd35082d/280430c3c4c1394a660c68a6d325ed9500ea1d96
patching 974 blocks to 974
corrupt bsdiff patch file header (magic number)
Failed to apply bsdiff patch.
failed to execute command [bsdiff 0 3919007 280430c3c4c1394a660c68a6d325ed9500ea1d96 57002ed7204eaea79272b7074366126fb4537caf 2,286395,287369 974 2,286395,287369]
script aborted: E1001: Failed to update system image.
E1001: Failed to update system image.
error: 1001
Updater process ended with ERROR: 7
I:Install took 1 second(s).
Error installing zip file '/cache/fp_update_999.zip'
Done processing script file
I:Set page: 'action_complete'
I:operation_end - status=1
I:Set page: 'main'
I:Set page: 'clear_vars'
I:Set page: 'main2'
I:Starting MTP
I:[MTP] Starting MTP
I:sending message to add 65538 '/data/media/0' 'Internal Storage'
I:Message sent, add storage ID: 65538 '/data/media/0'
MTP Enabled
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: 19
I:[MTP] mtppipe add storage 65538 '/data/media/0'
I:[MTP] MtpStorage id: 65538 path: /data/media/0
I:Set overlay: 'slideout'
I:Set overlay: ''
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/0/recovery.log
@prityaa
Copy link

prityaa commented Sep 15, 2019

did you find solution for this ?

@justfortherec
Copy link
Author

As a workaround we disabled mounting of the system partition in fstab.

However, we decided to replace TWRP in the system image with stock recovery (because of this and other issues).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment