[Android Software Development] vhsantos1:
Recovery error on update script and boot loop on 0.9.9.7

Recovery log:

(HIDE) kup_Path: /cache

Backup_Name: cache

Backup_Display_Name: Cache

Storage_Path: /cache

Current_File_System: ext4

Fstab_File_System: ext4

Backup_Method: files

/efs1 | /dev/block/mmcblk0p11 | Size: 14MB

Flags: Can_Be_Backed_Up Has_SubPartition IsPresent

Primary_Block_Device: /dev/block/mmcblk0p11

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/mmcblk0p12 | Size: 3MB

Flags: Can_Be_Backed_Up Is_SubPartition IsPresent

SubPartition_Of: /efs1

Primary_Block_Device: /dev/block/mmcblk0p12

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

/efs3 | /dev/block/mmcblk0p13 | Size: 3MB

Flags: Can_Be_Backed_Up Is_SubPartition IsPresent

SubPartition_Of: /efs1

Primary_Block_Device: /dev/block/mmcblk0p13

Display_Name: efs3

Storage_Name: efs3

Backup_Path: /efs3

Backup_Name: efs3

Backup_Display_Name: efs3

Storage_Path: /efs3

Current_File_System: emmc

Fstab_File_System: emmc

Backup_Method: dd

/external_sd | /dev/block/mmcblk1p1 | Size: 60887MB Used: 42615MB Free: 18272MB Backup Size: 42615MB

Flags: Can_Be_Mounted Can_Be_Wiped Wipe_Available_in_GUI Removable IsPresent 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: 65538

/modem | /dev/block/mmcblk0p2 | Size: 57MB

Flags: Can_Be_Backed_Up IsPresent

Primary_Block_Device: /dev/block/mmcblk0p2

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

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

Flags: Can_Be_Mounted Can_Be_Wiped Removable Is_Storage

Primary_Block_Device: /dev/block/sda1

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

MTP_Storage_ID: 65539

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:Unable to open '/data/media/0/TWRP/BACKUPS/6e8a41bd'

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 system_readonly_check

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:Loading page system_readonly

I:Set page: 'clear_vars'

I:Set page: 'main2'

I:Switching packages (TWRP)

Renaming regular /file_contexts -> /file_contexts.bak

Moving /prebuilt_file_contexts -> /file_contexts

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.qc.sdk.izat.service_mask=0x4

ro.qc.sdk.izat.premium_enabled=0

ro.qc.sdk.audio.ssr=false

ro.qc.sdk.audio.fluencetype=none

ro.sf.lcd_density=480

ro.adb.qemud=1

ro.com.google.gmsversion=4.3_r1

ro.com.google.clientidbase=android-samsung

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

ro.com.android.dataroaming=true

ro.ril.hsxpa=1

ro.ril.gprsclass=10

ro.sec.fle.encryption=true

ro.boot.emmc=true

ro.boot.sec_atd.tty=/dev/ttyHSL0

ro.boot.baseband=msm

ro.boot.hardware=qcom

ro.boot.serialno=6e8a41bd

ro.boot.bootloader=N9005XXUGBPD3

ro.boot.debug_level=0x4f4c

ro.boot.warranty_bit=1

ro.boot.boot_recovery=1

ro.boot.emmc_checksum=3

ro.boot.nvdata_backup=0

ro.boot.cp_debug_level=0x55FF

ro.hdmi.enable=true

ro.hwui.path_cache_size=8

ro.hwui.shape_cache_size=2

ro.hwui.texture_cache_size=48

ro.hwui.gradient_cache_size=1

ro.hwui.drop_shadow_cache_size=4

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=512

ro.omni.device=hlte

ro.twrp.boot=1

ro.twrp.version=2.8.7.0

ro.wifi.channels=

ro.allow.mock.location=1

ro.board.platform=msm8660

ro.build.id=LMY47X

ro.build.PDA=N9005XXUBMI7

ro.build.date=Sat Jun 20 23:53:13 EDT 2015

ro.build.date.utc=0

ro.build.host=build

ro.build.tags=test-keys

ro.build.type=eng

ro.build.user=jenkins

ro.build.flavor=omni_hlte-eng

ro.build.display.id=omni_hlte-eng 5.1.1 LMY47X 21 test-keys

ro.build.product=hlte

ro.build.selinux=1

ro.build.version.sdk=22

ro.build.version.release=5.1.1

ro.build.version.codename=REL

ro.build.version.incremental=21

ro.build.version.all_codenames=REL

ro.build.changelist=1628120

ro.build.hidden_ver=N9005XXUBMI7

ro.build.description=omni_hlte-eng 5.1.1 LMY47X 21 test-keys

ro.build.fingerprint=samsung/omni_hlte/hlte:5.1.1/LMY47X/21:eng/test-keys

ro.build.characteristics=default

ro.error.receiver.default=com.samsung.receiver.error

ro.hdcp2.rx=tz

ro.slook.ver=1

ro.config.tima=1

ro.config.ringtone=Over_the_horizon.ogg

ro.config.alarm_alert=Alarm_Morning_flower.ogg

ro.config.media_sound=Media_preview_Touch_the_light.ogg

ro.config.notification_sound=S_Whistle.ogg

ro.crypto.support=recovery_mount|others

ro.dalvik.vm.native.bridge=0

ro.kernel.qemu=0

ro.kernel.android.checkjni=1

ro.secure=0

ro.secwvk=144

ro.vendor.extension_library=/vendor/lib/libqc-opt.so

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_hlte

ro.product.board=hlte

ro.product.brand=samsung

ro.product.model=hlte

ro.product.device=hlte

ro.product.locale.region=US

ro.product.locale.language=en

ro.product.manufacturer=samsung

ro.baseband=msm

ro.bootmode=unknown

ro.chipname=MSM8974

ro.hardware=qcom

ro.opengles.version=196608

ro.qualcomm.bt.hci_transport=smd

ro.qualcomm.cabl=0

ro.revision=8

ro.serialno=6e8a41bd

ro.sec_media.rtsp.fast_start=true

ro.bootloader=N9005XXUGBPD3

ro.debuggable=1

ro.factorytest=0

ro.setupwizard.mode=OPTIONAL

ro.product_ship=true

ro.securestorage.support=true

ro.lcd_brightness=162

ro.use_data_netmgrd=true

ro.lcd_min_brightness=5

dev.pm.dyn_samplingrate=1

lpa.decode=false

lpa.use-stagefright=true

mmp.enable.3g2=true

net.bt.name=Android

net.change=net.bt.name

net.streaming.rtsp.uaprof=http://wap.samsungmobile.com/uaprof/

ril.subscription.types=NV,RUIM

init.svc.adbd=running

init.svc.healthd=running

init.svc.ueventd=running

init.svc.recovery=running

init.svc.set_permissive=stopped

rild.libargs=-d /dev/smd0

rild.libpath=/system/lib/libsec-ril.so

twrp.crash_counter=0

debug.sf.hw=1

debug.egl.hw=1

debug.mdpcomp.logs=0

debug.mdpcomp.fallback=false

debug.mdpcomp.idletime=100

debug.composition.type=gpu

media.stagefright.enable-aac=true

media.stagefright.enable-qcp=true

media.stagefright.enable-http=true

media.stagefright.enable-scan=true

media.stagefright.enable-fma2dp=true

media.stagefright.enable-player=true

media.enable-commonsource=true

dalvik.vm.isa.arm.features=div

dalvik.vm.heapsize=512m

dalvik.vm.dex2oat-Xms=64m

dalvik.vm.dex2oat-Xmx=512m

dalvik.vm.heapmaxfree=8m

dalvik.vm.heapminfree=2m

dalvik.vm.heapidealfree=8388608

dalvik.vm.heapstartsize=8m

dalvik.vm.dex2oat-filter=interpret-only

dalvik.vm.heapgrowthlimit=128m

dalvik.vm.heaputilization=0.25

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

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

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

dalvik.vm.heapconcurrentstart=2097152

dalvik.vm.image-dex2oat-filter=verify-none

dalvik.vm.heaptargetutilization=0.75

tunnel.decode=true

tunnel.audiovideo.decode=true

persist.gps.qc_nlp_in_use=0

persist.hwc.mdpcomp.enable=true

persist.sys.usb.config=adb

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

persist.sys.font_clarity=0

persist.sys.storage_preload=1

persist.data.netmgrd.qos.enable=true

persist.rild.nitz_plmn=

persist.rild.nitz_long_ons_0=

persist.rild.nitz_long_ons_1=

persist.rild.nitz_long_ons_2=

persist.rild.nitz_long_ons_3=

persist.rild.nitz_short_ons_0=

persist.rild.nitz_short_ons_1=

persist.rild.nitz_short_ons_2=

persist.rild.nitz_short_ons_3=

persist.radio.add_power_save=1

persist.radio.lte_vrat_report=1

persist.radio.apm_sim_not_pwdn=1

persist.timed.enable=true

persist.fuse_sdcard=true

service.adb.root=1

keyguard.no_require_sim=true

telephony.lteOnCdmaDevice=0

DEVICE_PROVISIONED=1

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

tw_get_context got selinux context: u:object_r:m (HIDE)