TeamWin / Team-Win-Recovery-Project

Core recovery files for the Team Win Recovery Project (T.W.R.P) - this is not up to date, please see https://github.com/TeamWin/android_bootable_recovery/
http://twrp.me
1.95k stars 741 forks source link

Recovery script always says failed when it actually it succeeds #425

Open ckvisme opened 9 years ago

ckvisme commented 9 years ago

Running HTC M8_whl MultiRom v32. When flashing MultiRom zip from the MR app it runs automatically into twrp and flashes the zip file...at the end twrp says script has failed when I has not. Everything aside from saying it failed actually works.

Starting TWRP 2.8.6 on Wed Jun 3 21:09:30 2015 (pid 254) Setting SELinux to permissive TW_INCLUDE_DUMLOCK := true I:Lun file '/sys/devices/msm_dwc3/f9200000.dwc3/gadget/lun0/file' 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 Starting the UI...Pixel format: 1080x1920 @ 32bpp Pixel format: RGBX_8888 Not using qualcomm overlay, 'mdssfb_90000' framebuffer: fd 4 (1080 x 1920) minui: /sys/board_properties/virtualkeys.synaptics-rmi-touchscreen is 5 % 6 => Linking mtab => Processing recovery.fstab I:Processing '/misc' I:Processing '/boot' I:Processing '/cache' I:Processing '/system' I:Processing '/data' I:Processing '/devlog' I:Created '/devlog' folder. I:Processing '/recovery' I:Processing '/external_sd' I:Created '/external_sd' folder. I:Processing '/sd_ext' I:Created '/sd_ext' folder. I:Processing '/usb_otg' I:Created '/usb_otg' folder. 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:Created '/and-sec' folder. I:Creating Android Secure: /external_sd/.android_secure I:mount -o bind '/external_sd/.android_secure' '/and-sec' process ended with RC=0 I:Backup folder set to '/data/media/0/TWRP/BACKUPS/FA43TSF03740' I:Settings storage is '/data/media/0' Updating partition details... I:mount -o bind '/data/media/0' '/sdcard' process ended with RC=0 I:Data backup size is 1757MB, free: 16862MB. I:Unable to mount '/sd_ext' I:Actual block device: '', current file system: 'ext4' I:Unable to mount '/usb_otg' I:Actual block device: '', current file system: 'vfat' ...done I:mount -o bind '/data/media/0' '/sdcard' process ended with RC=0 I:Unmounting main partitions...

Partition Logs: /misc | /dev/block/mmcblk0p24 | Size: 1MB Raw size: 0

Flags: IsPresent Primary_Block_Device: /dev/block/mmcblk0p24 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/mmcblk0p42 | Size: 16MB Raw size: 0

Flags: Can_Be_Backed_Up IsPresent Can_Flash_Img Primary_Block_Device: /dev/block/mmcblk0p42 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/mmcblk0p46 | Size: 377MB Used: 17MB Free: 360MB Backup Size: 17MB Raw size: 402653184

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/mmcblk0p46 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

/system | /dev/block/mmcblk0p45 | Size: 2641MB Used: 1194MB Free: 1447MB Backup Size: 1194MB Raw size: 2818572288

Flags: Can_Be_Mounted Can_Be_Wiped Can_Be_Backed_Up Wipe_Available_in_GUI IsPresent Primary_Block_Device: /dev/block/mmcblk0p45 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

/data | /dev/block/mmcblk0p47 | Size: 25532MB Used: 1757MB Free: 16862MB Backup Size: 1757MB Raw size: 27246198784

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/mmcblk0p47 Crypto_Key_Location: /dev/block/platform/msm_sdcc.1/by-name/extra 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: 65539

/devlog | /dev/block/mmcblk0p39 | Size: 29MB Used: 25MB Free: 4MB Backup Size: 25MB Raw size: 31457280

Flags: Can_Be_Mounted Can_Be_Wiped IsPresent Primary_Block_Device: /dev/block/mmcblk0p39 Display_Name: devlog Storage_Name: devlog Backup_Path: /devlog Backup_Name: devlog Backup_Display_Name: devlog Storage_Path: /devlog Current_File_System: ext4 Fstab_File_System: ext4 Backup_Method: files

/recovery | /dev/block/mmcblk0p43 | Size: 24MB Raw size: 0

Flags: IsPresent Can_Flash_Img Primary_Block_Device: /dev/block/mmcblk0p43 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

/external_sd | /dev/block/mmcblk1p1 | Size: 61802MB Used: 23052MB Free: 38749MB Backup Size: 0MB Raw size: 64809336832

Flags: Can_Be_Mounted Can_Be_Wiped Can_Be_Backed_Up Wipe_Available_in_GUI Removable IsPresent Has_Android_Secure Is_Storage Symlink_Path: /external_sd/.android_secure Symlink_Mount_Point: /and-sec Primary_Block_Device: /dev/block/mmcblk1p1 Alternate_Block_Device: /dev/block/mmcblk1 Display_Name: Micro SDcard Storage_Name: Micro SDcard Backup_Path: /and-sec Backup_Name: and-sec Backup_Display_Name: Android Secure Storage_Path: /external_sd Current_File_System: exfat Fstab_File_System: vfat Backup_Method: files MTP_Storage_ID: 65537

/sd_ext | | Size: 0MB Used: 0MB Free: 0MB Backup Size: 0MB Raw size: 0

Flags: Can_Be_Mounted Can_Be_Wiped Wipe_Available_in_GUI Removable Primary_Block_Device: /dev/block/mmcblk1p2 Display_Name: SD-Ext Storage_Name: SD-Ext Backup_Path: /sd_ext Backup_Name: sd_ext Backup_Display_Name: SD-Ext Storage_Path: /sd_ext Current_File_System: ext4 Fstab_File_System: ext4 Backup_Method: files

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

Flags: Can_Be_Mounted Can_Be_Wiped Wipe_Available_in_GUI Removable 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: vfat Fstab_File_System: vfat Backup_Method: files MTP_Storage_ID: 65538

MultiROM Recovery version: 2015-06-02 p1 I:Loading package: TWRP (/script/ui.xml) I:Load XML directly 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:Checking resolution... I:Loading resources... open_png /twres/images/twrplogo.png libpng warning: iCCP: Not recognizing known sRGB profile that has been edited open_png /twres/images/menu-button.png open_png /twres/images/file.png open_png /twres/images/folder.png open_png /twres/images/slideout.png open_png /twres/images/indeterminate001.png open_png /twres/images/indeterminate002.png open_png /twres/images/indeterminate003.png open_png /twres/images/indeterminate004.png open_png /twres/images/indeterminate005.png open_png /twres/images/indeterminate006.png open_png /twres/images/indeterminate007.png open_png /twres/images/progress_empty.png open_png /twres/images/progress_fill.png open_png /twres/images/checkbox_empty.png open_png /twres/images/checkbox_checked.png open_png /twres/images/radio_empty.png open_png /twres/images/radio_selected.png open_png /twres/images/medium-button.png open_png /twres/images/sort-button.png open_png /twres/images/minus-button.png open_png /twres/images/plus-button.png open_png /twres/images/home-icon.png open_png /twres/images/back-icon.png open_png /twres/images/slider.png open_png /twres/images/slider-used.png open_png /twres/images/slider-touch.png open_png /twres/images/unlock.png open_png /twres/images/keyboard1.png open_png /twres/images/keyboard2.png open_png /twres/images/keyboard3.png open_png /twres/images/keyboard4.png open_png /twres/images/cursor.png I:Loading variables... I:Loading mouse cursor... I:Loading pages... I:PageSet::CheckInclude loading filename: '/twres/portrait.xml' I:Loading included resources... I:Loading included variables... I:Loading mouse cursor... I:Loading included 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 install_image 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 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 selectstorage I:Loading page mount I:Loading page usb_mount I:Loading page usb_umount I:Loading page reboot I:Loading page settings I:Loading page timezone I:Loading page screen I:Loading page Vibrate I:Loading page advanced 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 filemanageracction I:Loading page decrypt I:Loading page decrypt_pattern I:Loading page trydecrypt I:Loading page terminalfolder I:Loading page terminalcommand I:Loading page sideload I:Loading page fixperms I:Loading page installsu I:PageSet::CheckInclude loading filename: '/twres/multirom.xml' I:Loading included resources... I:Loading included variables... I:Loading mouse cursor... I:Loading included pages... I:Loading page multirom_msg I:Loading page multirom_main I:Loading page multirom_list I:Unable to open '' I:Loading page multirom_manage I:Loading page multirom_rename I:Loading page multirom_do_rename I:Loading page multirom_flash_select I:Loading page multirom_flash_confirm I:Loading page multirom_settings I:Loading page multirom_settings_autoboot I:Loading page multirom_settings_rename_internal I:Loading page multirom_inject_select I:Loading page multirom_add I:Loading page multirom_add_select I:Loading page multirom_add_start_process I:Loading page multirom_add_image_size I:Loading page multirom_change_img_size I:Loading page multirom_set_list_loc I:Loading page multirom_add_source I:Loading page multirom_add_sailfish I:Loading page multirom_sideload_complete I:Loading page multirom_swap I:Loading page multirom_swap_set_internal_name I:Loading page multirom_swap_space_info 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: ro.adb.secure=0 ro.com.google.clientidbase=android-google ro.com.android.dateformat=MM-dd-yyyy ro.com.android.dataroaming=true ro.com.android.wifi-watchlist=GoogleGuest ro.ril.oem.ecclist=911 ro.ril.set.mtusize=1422 ro.ril.svdo=true ro.ril.enable.a53=1 ro.ril.enable.sdr=0 ro.ril.enable.gea3=1 ro.ril.disable.fd.plmn.prefix=23402,23410,23411,23420 ro.url.legal=http://www.google.com/intl/%s/mobile/android/basic/phone-legal.html ro.boot.dq=PASS ro.boot.lb=1 ro.boot.cid=SPCS_001 ro.boot.mid=0P6B70000 ro.boot.emmc=true ro.boot.mode=recovery ro.boot.podt=0x7D0 ro.boot.engid=0 ro.boot.ddrmid=(0x1) ro.boot.carrier=COMMON ro.boot.keycaps=qwerty ro.boot.selinux=permissive ro.boot.baseband=1.09.20.0209 ro.boot.hardware=qcom ro.boot.pagesize=2048 ro.boot.rom_type=NORMAL ro.boot.serialno=FA43TSF03740 ro.boot.devicerev=5 ro.boot.bootloader=3.19.0.0000 ro.boot.efuse_info=SL ro.boot.batt_poweron=good_battery ro.cdma.home.operator.alpha=Sprint ro.cdma.home.operator.numeric=310120 ro.cdma.subscribe_on_ruim_ready=true ro.hwui.path_cache_size=24 ro.hwui.layer_cache_size=32 ro.hwui.texture_cache_size=48 ro.hwui.gradient_cache_size=1 ro.hwui.r_buffer_cache_size=4 ro.hwui.drop_shadow_cache_size=5 ro.hwui.text_large_cache_width=2048 ro.hwui.text_small_cache_width=1024 ro.hwui.text_large_cache_height=1024 ro.hwui.text_small_cache_height=1024 ro.hwui.texture_cache_flushrate=0.5 ro.omni.device=m8 ro.omni.version=5.0.2-20150602-m8-HOMEMADE ro.twrp.boot=1 ro.twrp.version=2.8.6 ro.wifi.channels= ro.allow.mock.location=0 ro.board.platform=msm8974 ro.build.id=LRX22G ro.build.date=Tue Jun 2 14:24:42 EDT 2015 ro.build.date.utc=0 ro.build.host=QuadCore-SSD-BuildBox ro.build.tags=test-keys ro.build.type=userdebug ro.build.user=throwback ro.build.display.id=omni_m8-userdebug 5.0.2 LRX22G eng.throwback.20150602.142336 test-keys ro.build.product=m8 ro.build.version.sdk=21 ro.build.version.release=5.0.2 ro.build.version.codename=REL ro.build.version.incremental=eng.throwback.20150602.142336 ro.build.version.all_codenames=REL ro.build.description=1.54.651.8 CL326598 release-keys ro.build.fingerprint=htc/sprint_wwe/htc_m8whl:4.4.2/KOT49H/326598.8:user/release-keys ro.build.characteristics=default ro.config.ringtone=Orion.ogg ro.config.alarm_alert=Argon.ogg ro.config.notification_sound=pixiedust.ogg ro.dalvik.vm.native.bridge=0 ro.secure=1 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.board=MSM8974 ro.product.brand=htc ro.product.model=831C ro.product.device=m8whl ro.product.locale.region=US ro.product.locale.language=en ro.product.manufacturer=htc ro.baseband=1.09.20.0209 ro.bootmode=recovery ro.hardware=qcom ro.revision=0 ro.serialno=FA43TSF03740 ro.9kramdump=0 ro.telephony.default_network=8 ro.telephony.default_cdma_sub=1 ro.bootloader=3.19.0.0000 ro.debuggable=1 ro.modversion=OmniROM-5.0.2-20150602-m8-HOMEMADE ro.factorytest=0 ro.setupwizard.enterprise_mode=1 gsm.sim.operator.alpha=Sprint gsm.sim.operator.numeric=310120 gsm.operator.alpha=310120 gsm.operator.numeric=310120 net.bt.name=Android net.change=net.bt.name init.svc.adbd=running init.svc.healthd=running init.svc.ueventd=running init.svc.recovery=running init.svc.chargeled=running init.svc.choice_fn=stopped twrp.crash_counter=0 dalvik.vm.isa.arm.features=div dalvik.vm.lockprof.threshold=500 dalvik.vm.dex2oat-Xms=64m dalvik.vm.dex2oat-Xmx=512m dalvik.vm.stack-trace-file=/data/anr/traces.txt dalvik.vm.image-dex2oat-Xms=64m dalvik.vm.image-dex2oat-Xmx=64m persist.sys.usb.config=adb persist.sys.dalvik.vm.lib.2=libart.so persist.sys.root_access=1 persist.radio.snapshot_timer=22 persist.radio.snapshot_enabled=1 service.adb.root=1 keyguard.no_require_sim=true telephony.sms.pseudo_multipart=1 telephony.lteOnCdmaDevice=1

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:Loading settings from '/data/media/0/TWRP/.twrps'. I:Backup folder set to '/data/media/0/TWRP/BACKUPS/FA########' 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' I:TWFunc::Set_Brightness: Setting brightness control to 219 I:TWFunc::Fixup_Time: Pre-fix date and time: 2015-06-03--16-09-32 I:TWFunc::Fixup_Time: Setting time offset from file /sys/class/rtc/rtc0/since_epoch I:TWFunc::Fixup_Time: Date and time corrected: 2015-06-03--16-09-32 I:Switching packages (TWRP) I:Set page: 'action_page' I:operation_start: 'OpenRecoveryScript' I:Script file found: '/cache/recovery/openrecoveryscript' I:Copying file /cache/recovery/openrecoveryscript to /tmp/openrecoveryscript Processing OpenRecoveryScript file... I:command is: 'install' I:value is: '/cache/recovery/multirom-20150601-v32-UNOFFICIAL-m8.zip' I:Unable to mount '/usb_otg' I:Actual block device: '', current file system: 'vfat' Installing zip file '/cache/recovery/multirom-20150601-v32-UNOFFICIAL-m8.zip' Installing '/cache/recovery/multirom-20150601-v32-UNOFFICIAL-m8.zip'... Checking for MD5 file... Skipping MD5 check: no MD5 file found I:Zip does not contain SELinux file_contexts file in its root. I:Legacy property environment initialized. Installing MultiROM for m8 Extracting binaries... about to run program [/sbin/busybox] with 3 args mount: mounting /dev/block/mmcblk0p47 on /data failed: Device or resource busy run_program: child exited with status 255 about to run program [/sbin/busybox] with 3 args minzip: Extracted 75 file(s) minzip: Extracted 4 file(s) about to run program [/tmp/extractmultirom.sh] with 1 args rm: can't remove '/data/media/0/multirom/boot.img-ubuntu': No such file or directory rm: can't remove '/data/media/0/multirom/infos/_': No such file or directory about to run program [/tmp/inject_boot.sh] with 1 args Injecting boot image... Cleaning up... Installation complete! script succeeded: result was [Installation complete!]I:Legacy property environment disabled. Injecting boot.img with MultiROM... I:Running cmd ""/data/media/0/multirom/trampoline" --inject="/dev/block/mmcblk0p42" --mrom_dir="/data/media/0/multirom" " I:command is: 'cmd' I:value is: 'rm "/cache/recovery/multirom-20150601-v32-UNOFFICIAL-m8.zip"' I:rm "/cache/recovery/multirom-20150601-v32-UNOFFICIAL-m8.zip" process ended with RC=0 Done processing script file

CaptainThrowback commented 9 years ago

Yep, I'm seeing this on standard TWRP as well with either ORS operations or AOSP recovery commands. Thanks for reporting this. Oddly, nowhere in that log does it indicate failure. There wasn't anything else in the log? It didn't appear to start over or anything?

ckvisme commented 9 years ago

That was all of it..I will try it again and see if anything different appears . Everything (aside from it saying 'failed' ) works as it should. This has been like this, for me anyway, since it started using MultiRom in March. I just ignored it before. Thx for the swift info and help, as always Captain.

ckvisme commented 9 years ago

I flashed MultiRom again and pulled another recovery log...I still don't see any fails ...but im not very familiar with reading these logs, so I might be wrong. I posted the links to both logs in the MultiRom M8 thread. I will post the 2nd one here if anyone sees a difference that I don't. (if anyone has the time to look at it). Thx

2nd recovery log :

[URL=https://mega.nz/#!e8oS0QQb!XAmb7mdw5cOwjiJ20f8Cj4jauQquImy4Gpc7V3ppwW8] Recovery log 2 [/URL]