[MOD] Boot Bridge for Sony ELF

Search This thread

tennyleaz

Senior Member
Sep 18, 2011
476
49
Not working on xperia acro s (hikari), rom nAOSP nougat, tried magisk 17.3/18.0/18.1
I get
Code:
assert failed: run_program("/tmp/boot_bridge/boot_bridge.sh", "init") == 0
 
Last edited:

Ps24u

Senior Member
May 21, 2016
169
32
@AdrianDC : I could use some help. I screwed up big time and flashed although my bootloader is locked.
Now when I attempt to start my device, Xperia Z1 Compact, it gives me a black screen with the LED flashing 3 times. I don't have access to TWRP anymore either.
I'm on Android 5.1.1, it was previously rooted with SuperSU and I just wanted to switch to Magisk.
So I flashed unSU.zip, which worked fine, device rebooted and supersu was removed correctly.
Then I tried to flash magisk via TWRP, it said failed because of Sony ELF and to use your boot bridge tool, which I did.
TWRP didn't report any error and the operation was sucessful, but now the device is bricked because I'm on locked bootloader (that's gotta be it..).
Before attempting the procedure, I made a TWRP backup, but in a very dumb move I did it on the internal SD card, and I also forgot to enable USB Debugging...
Is there anything I can try to reflash my backed up "boot" to get the device back to life?
I can put it in "fast boot mode" and "flashmode" so it's not completely dead but I'm at a loss regarding what to try/how..
Any help is _very_ welcome.
 
Last edited:

Wyjek

Member
Feb 16, 2015
36
2
@AdrianDC : I could use some help. I screwed up big time and flashed although my bootloader is locked.
Now when I attempt to start my device, Xperia Z1 Compact, it gives me a black screen with the LED flashing 3 times. I don't have access to TWRP anymore either.
I'm on Android 5.1.1, it was previously rooted with SuperSU and I just wanted to switch to Magisk.
So I flashed unSU.zip, which worked fine, device rebooted and supersu was removed correctly.
Then I tried to flash magisk via TWRP, it said failed because of Sony ELF and to use your boot bridge tool, which I did.
TWRP didn't report any error and the operation was sucessful, but now the device is bricked because I'm on locked bootloader (that's gotta be it..).
Before attempting the procedure, I made a TWRP backup, but in a very dumb move I did it on the internal SD card, and I also forgot to enable USB Debugging...
Is there anything I can try to reflash my backed up "boot" to get the device back to life?
I can put it in "fast boot mode" and "flashmode" so it's not completely dead but I'm at a loss regarding what to try/how..
Any help is _very_ welcome.

I think you can flash stock ROM via PC, I don't know the exact procedure because I don't have Z1C, but look it up.
 

Ps24u

Senior Member
May 21, 2016
169
32
I think you can flash stock ROM via PC, I don't know the exact procedure because I don't have Z1C, but look it up.
Yes I was able to reflash the stock kernel and the device got back to life. Then I flashed my full backup and everything's in order again.
So yeah; Boot Bridge + Magisk _only_ work with unlocked bootloaders.
 

lepas33

Member
Apr 2, 2017
10
2
Yes I was able to reflash the stock kernel and the device got back to life. Then I flashed my full backup and everything's in order again.
So yeah; Boot Bridge + Magisk _only_ work with unlocked bootloaders.
Hi @Ps24u,

I've got exactly the same result as you : brick z1c while TWRPing the myInstall.zip file containing magisk & boot bridge. That sounds normal as magisk has to modify the kernel. I had a slim hope with this boot bridge...
Flashtool to get my device back.

If anyone succeed installing magisk on stock kernel with locked bootloader and Boot Bridge, please give us a clue. Thanks !
 

Ps24u

Senior Member
May 21, 2016
169
32
Hi @Ps24u,

I've got exactly the same result as you : brick z1c while TWRPing the myInstall.zip file containing magisk & boot bridge. That sounds normal as magisk has to modify the kernel. I had a slim hope with this boot bridge...
Flashtool to get my device back.

If anyone succeed installing magisk on stock kernel with locked bootloader and Boot Bridge, please give us a clue. Thanks !
Besides the locked bootloader, could it be it's because our TWRP is just too old? I'm using v2.8.7.0 and wonder if it's even supposed to work with Boot Bridge + Magisk at all..
 

sieger007

Senior Member
Jul 4, 2008
291
30
Dublin
reviving this thread after quite some time but I'm in the same situation save that I haven't come to the point where I breaked my z1s . I know the bootloader is locked it's a t mobile phone and I tried to flash. m a g i s k via TWRP that I installed and it came the same message that Sony l f 32 partition detected use bootbridge.
I wanted to check with learned numbers were here what was the procedure for need to get magisk working on a bootloader locked Xperia z1
 

globe79

Senior Member
Apr 1, 2013
68
33
Sony Xperia SP
Moto G
Dear @AdrianDC today I tried your 18.1 for Xperia SP dated Jan 25, 2021 together with your opengapas pico for Android 11 (current from their website can't fit). I have a problem rooting it with Magisk 23.0. I renamed their "hybrid" apk to zip, renamed to install.zip and moved into boot-bridge zip. I also tried unpacking of "apk" to zip it again (forecasting some different compression by @topjohnwu). Both methods failed to unpack, when tried to apply boot-bridge via your recent TWRP for Xperia SP. Can you advice something?
 
Dear @AdrianDC today I tried your 18.1 for Xperia SP dated Jan 25, 2021 together with your opengapas pico for Android 11 (current from their website can't fit). I have a problem rooting it with Magisk 23.0. I renamed their "hybrid" apk to zip, renamed to install.zip and moved into boot-bridge zip. I also tried unpacking of "apk" to zip it again (forecasting some different compression by @topjohnwu). Both methods failed to unpack, when tried to apply boot-bridge via your recent TWRP for Xperia SP. Can you advice something?
Hi, did you solve the issue? I also face the same issue with you, unable to unpack boot image.
 

mirhl

Senior Member
Oct 15, 2012
3,098
1,165
Magisk after 20.4 and until 24.0 were broken on xperias.
 
Trying to use the latest version (v24.3) of Magisk fails with the message: Error in flash_zip: unzip failed. Guessing it was an unsupported compression method, I repacked the Magisk zip with store only. Things looked fine after that except the XperiaV was soft-bricked and needed a new flash of boot.img from lineage-18.1-20210125-UNOFFICIAL-tsubasa.zip.
Screenshot_2022-05-24-15-05-02.png
 
Trying to use the latest version (v24.3) of Magisk fails with the message: Error in flash_zip: unzip failed. Guessing it was an unsupported compression method, I repacked the Magisk zip with store only. Things looked fine after that except the XperiaV was soft-bricked
The Xperia V was indeed soft bricked. This time I dug around a bit and found that the Boot Bridge script was lying!
Code:
  - Restoring the boot bridge...
Writing boot.img updated with kernel
dd: writing '/dev/block/platform/msm_sdcc.1/by-name/Kernel': No space left on device
40961+0 records in
40960+0 records out
20971520 bytes (20.0MB) copied, 2.898367 seconds, 6.9MB/s
32332+1 records in
32332+1 records out
16554001 bytes (15.8MB) copied, 3.778391 seconds, 4.2MB/s
  - Cleaning temporary files...
 
  Installation completed!
 
script succeeded: result was [ ]I:Updater process ended with RC=0
Oh, dd failed writing? Nah, nevermind that. It's fine. :ROFLMAO:

So there's the unzip not supporting the compression used in the latest (24.3) Magisk. And a severe failure in the script. @AdrianDC

Code:
Starting TWRP 3.6.1_9-0-e4274559 on Wed May 25 15:44:36 2022
 (pid 176)
RECOVERY_SDCARD_ON_DATA := true
I:Lun file '/sys/devices/platform/msm_hsusb/gadget/lun0/file'
TW_INCLUDE_CRYPTO := true
I:TW_BRIGHTNESS_PATH := /sys/devices/i2c-10/10-0040/leds/lcd-backlight_1/brightness
I:Found brightness file at '/sys/devices/i2c-10/10-0040/leds/lcd-backlight_1/brightness'
I:Will use a second brightness file at '/sys/devices/i2c-10/10-0040/leds/lcd-backlight_2/brightness'
I:TWFunc::Set_Brightness: Setting brightness control to 51
I:TWFunc::Set_Brightness: Setting secondary brightness control to 51
I:LANG: en
Starting the UI...
setting DRM_FORMAT_RGBX8888 and GGL_PIXEL_FORMAT_RGBX_8888
cannot find/open a drm device: No such file or directory
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
double buffered
framebuffer: 0 (720 x 1280)
Using fbdev graphics.
I:TWFunc::Set_Brightness: Setting brightness control to 51
I:TWFunc::Set_Brightness: Setting secondary brightness control to 51
I:Loading package: splash (/twres/splash.xml)
I:Load XML directly
I:pageManager::LoadFileToBuffer loading filename: '/twres/splash.xml' directly
I:Checking resolution...
I:Scaling theme width 0.666667x and height 0.666667x, offsets x: 0 y: 0 w: 0 h: 0
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: bma250
I:Blacklisting input device: compass
I:Blacklisting input device: apds9702
=> Linking mtab
=> Processing /etc/recovery.fstab for SAR-detection
I:Reading /etc/recovery.fstab
I:Done processing fstab files
I:SAR-DETECT: Non-SAR System detected
=> Processing /etc/recovery.fstab
I:Reading /etc/recovery.fstab
I:processing '/boot'
I:processing '/recovery'
I:processing '/system'
I:processing '/cache'
I:processing '/data'
I:processing '/ta'
I:processing '/misc'
I:processing '/sdcard_legacy'
I:Created '/sdcard_legacy' folder.
I:processing '/external_sd'
I:Created '/external_sd' folder.
I:processing '/usb-otg'
I:Created '/usb-otg' folder.
I:Done processing fstab files
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/0' '/sdcard' process ended with RC=0
I:No custom recovery folder found. Using TWRP as default.
I:Backup folder set to '/data/media/0/TWRP/BACKUPS/CB5A1N34V4'
I:Settings storage is '/data/media/0'
I:Decrypt adopted storage starting
I:pageManager::LoadFileToBuffer loading filename: '/data/system/storage.xml' directly
I:successfully loaded storage.xml
I:failed to open ''
Updating partition details...
I:Data backup size is 203MB, free: 1756MB.
I:Unable to mount '/usb-otg'
I:Actual block device: '', current file system: 'auto'
...done
I:Unmounting main partitions...


Partition Logs:
/boot | /dev/block/mmcblk0p4 | Size: 20MB
   Flags: Can_Be_Backed_Up IsPresent Can_Flash_Img
   Primary_Block_Device: /dev/block/mmcblk0p4
   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

/recovery | /dev/block/mmcblk0p11 | Size: 16MB
   Flags: Can_Be_Wiped Can_Be_Backed_Up Wipe_Available_in_GUI IsPresent Can_Flash_Img
   Primary_Block_Device: /dev/block/mmcblk0p11
   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/mmcblk0p12 | Size: 1208MB Used: 1014MB Free: 194MB Backup Size: 1014MB
   Flags: Can_Be_Mounted Can_Be_Wiped Can_Be_Backed_Up Wipe_Available_in_GUI IsPresent Mount_Read_Only
   Primary_Block_Device: /dev/block/mmcblk0p12
   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/mmcblk0p13 | Size: 246MB Used: 4MB Free: 241MB Backup Size: 4MB
   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/mmcblk0p13
   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/mmcblk0p14 | Size: 2015MB Used: 203MB Free: 1756MB Backup Size: 203MB
   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/mmcblk0p14
   Crypto_Key_Location: footer
   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: 65537

/ta | /dev/block/mmcblk0p1 | Size: 2MB
   Flags: Can_Be_Backed_Up IsPresent
   Primary_Block_Device: /dev/block/mmcblk0p1
   Display_Name: TrimArea
   Storage_Name: TrimArea
   Backup_Path: /ta
   Backup_Name: ta
   Backup_Display_Name: TrimArea
   Storage_Path: /ta
   Current_File_System: emmc
   Fstab_File_System: emmc
   Backup_Method: dd

/misc | /dev/block/mmcblk0p10 | Size: 8MB
   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

/sdcard_legacy | /dev/block/mmcblk0p15 | Size: 3801MB Used: 68MB Free: 3733MB Backup Size: 68MB
   Flags: Can_Be_Mounted Can_Be_Wiped Wipe_Available_in_GUI Removable IsPresent Is_Storage
   Primary_Block_Device: /dev/block/mmcblk0p15
   Display_Name: Legacy SDCard
   Storage_Name: Legacy SDCard
   Backup_Path: /sdcard_legacy
   Backup_Name: sdcard_legacy
   Backup_Display_Name: Legacy SDCard
   Storage_Path: /sdcard_legacy
   Current_File_System: ext4
   Fstab_File_System: ext4
   Backup_Method: files
   MTP_Storage_ID: 65538

/external_sd | /dev/block/mmcblk1p1 | Size: 1883MB Used: 1008MB Free: 874MB Backup Size: 1008MB
   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
   Crypto_Key_Location: userdata
   Display_Name: external_sd
   Storage_Name: external_sd
   Backup_Path: /external_sd
   Backup_Name: external_sd
   Backup_Display_Name: external_sd
   Storage_Path: /external_sd
   Current_File_System: vfat
   Fstab_File_System: vfat
   Backup_Method: files
   MTP_Storage_ID: 65539

/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/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: auto
   Fstab_File_System: auto
   Backup_Method: files
   MTP_Storage_ID: 65540

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_PT.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/id.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:Scaling theme width 0.666667x and height 0.666667x, offsets x: 0 y: 0 w: 0 h: 0
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 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 multiuser_warning
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/CB5A1N34V4'
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 installapp
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 repackselect
I:Loading page repackconfirm
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 decrypt_pin
I:Loading page trydecrypt
I:Loading page canceldecrypt
I:Loading page terminalcommand
I:Loading page sideload
I:Loading page fixcontexts
I:Loading page slideout
I:Loading page select_storage
I:Loading page select_language
I:Loading page decrypt_users
I:Loading page changeTwrpFolder
I:Set page: 'clear_vars'
I:Set page: 'main2'
I:Switching packages (TWRP)
Startup Commands:
ro.com.android.dataroaming=true
ro.usb.pid_suffix=186
ro.boot.selinux=permissive
ro.boot.baseband=msm
ro.boot.hardware=qcom
ro.boot.serialno=CB5A1N34V4
ro.boot.bootdevice=msm_sdcc.1\FF
ro.boot.bootloader=s1
ro.omni.device=tsubasa
ro.twrp.sar=false
ro.twrp.boot=1
ro.twrp.version=3.6.1_9-0
ro.wifi.channels=
ro.allow.mock.location=1
ro.board.platform=msm8960
ro.build.id=MOB31K
ro.build.date=Thu Mar 17 00:53:01 UTC 2022
ro.build.date.utc=0
ro.build.host=c67cb60a4d08
ro.build.tags=test-keys
ro.build.type=eng
ro.build.user=
ro.build.flavor=omni_tsubasa-eng
ro.build.display.id=omni_tsubasa-eng 6.0.1 MOB31K 1 test-keys
ro.build.product=tsubasa
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=1
ro.build.version.preview_sdk=
ro.build.version.all_codenames=REL
ro.build.version.security_patch=2016-11-05
ro.build.description=LT25i-user 4.3 JB-MR2-BLUE-140326-1343 263 test-keys
ro.build.fingerprint=Sony/LT25i/LT25i:4.3/9.2.A.1.210/Lfv_tg:user/release-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=LT25i
ro.product.board=MSM8960
ro.product.brand=Sony
ro.product.model=Xperia V
ro.product.device=tsubasa
ro.product.locale=en-US
ro.product.manufacturer=Sony
ro.baseband=msm
ro.bootmode=unknown
ro.hardware=qcom
ro.revision=0
ro.serialno=CB5A1N34V4
ro.bootimage.build.date=Thu Mar 17 00:53:04 UTC 2022
ro.bootimage.build.date.utc=1647478384
ro.bootimage.build.fingerprint=Sony/omni_tsubasa/tsubasa:6.0.1/MOB31K/1:eng/test-keys
ro.bootloader=s1
ro.debuggable=1
ro.recovery_id=0x0000000000000000000000000000000000000000000000000000000000000000
net.bt.name=Android
net.change=net.bt.name
sys.usb.ffs.ready=1
init.svc.adbd=stopping
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.heapsize=256m
dalvik.vm.lockprof.threshold=500
dalvik.vm.dex2oat-Xms=64m
dalvik.vm.dex2oat-Xmx=512m
dalvik.vm.heapmaxfree=8m
dalvik.vm.heapminfree=512k
dalvik.vm.heapstartsize=8m
dalvik.vm.dex2oat-filter=verify-at-runtime
dalvik.vm.heapgrowthlimit=96m
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
dalvik.vm.heaptargetutilization=0.75
persist.sys.usb.config=adb
persist.sys.dalvik.vm.lib.2=libart
service.adb.root=1
keyguard.no_require_sim=true

SELinux contexts loaded from /file_contexts
Full SELinux support is present.
tw_get_context got selinux context: u:eek:bject_r:media_rw_data_file:s0
I:Got default contexts and file mode for storage files.
I:TWFunc::Fixup_Time: Pre-fix date and time: 2022-05-25--15-44-46
I:TWFunc::Fixup_Time: Setting time offset from file /sys/class/rtc/rtc0/since_epoch
I:TWFunc::Fixup_Time: Date and time corrected: 2022-05-25--15-44-46
I:Copied file /cache/recovery/log.gz to /cache/recovery/last_log.gz
I:No custom recovery folder found. Using TWRP as default.
I:Attempt to load settings from settings file...
I:InfoManager loading from '/data/media/0/TWRP/.twrps'.
I:No recovery folder found. Using default folder.
I:Backup folder set to '/external_sd/TWRP/BACKUPS/CB5A1N34V4'
I:Copied 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: 'auto'
I:TWFunc::Set_Brightness: Setting brightness control to 51
I:TWFunc::Set_Brightness: Setting secondary brightness control to 51
I:pageManager::LoadFileToBuffer loading filename: '/twres/languages/en.xml' directly
parsing languageFile
parsing languageFile done
I:Translating partition display names
I:No recovery folder found. Using default folder.
I:Backup folder set to '/external_sd/TWRP/BACKUPS/CB5A1N34V4'
I:Starting MTP
I:[MTP] Starting MTP
I:sending message to add 65537 '/data/media/0' 'Internal Storage'
I:Message sent, add storage ID: 65537 '/data/media/0'
I:sending message to add 65538 '/sdcard_legacy' 'Legacy SDCard'
I:Message sent, add storage ID: 65538 '/sdcard_legacy'
I:sending message to add 65539 '/external_sd' 'Micro SD card'
I:Message sent, add storage ID: 65539 '/external_sd'
MTP Enabled
I:Check_Lifetime_Writes result: '19329'
I:Starting Adb Backup FIFO
I:Unable to read sdk version from build prop
I:Switching packages (TWRP)
I:Set page: 'main'
I:Set page: 'clear_vars'
I:Set page: 'main2'
I:[MTP] created new mtpserver object
I:[MTP] MtpServer::run fd: 22
I:[MTP] mtppipe add storage 65537 '/data/media/0'
I:[MTP] MtpStorage id: 65537 path: /data/media/0
I:[MTP] mtppipe add storage 65538 '/sdcard_legacy'
I:[MTP] MtpStorage id: 65538 path: /sdcard_legacy
I:[MTP] mtppipe add storage 65539 '/external_sd'
I:[MTP] MtpStorage id: 65539 path: /external_sd
I:Set page: 'install'
I:Set page: 'flash_confirm'
I:Set page: 'flash_zip'
I:eek:peration_start: 'Flashing'
Installing zip file '/external_sd/BootBridge-SonyELF-Magisk.zip'
Unmounting System...
I:Update binary zip
I:Extracting updater binary 'META-INF/com/google/android/update-binary'
I:Zip does not contain SELinux file_contexts file in its root.
I:has_legacy_properties: Found legacy property match!
I:Legacy property environment initialized.
 
 
 =================================
 | Bootimage Bridge for Sony ELF |
 |        Adrian DC - 2016       |
 =================================
 
 Usage:
  - Replace the zip you wish to flash
     in install/install.zip
  - Flash the BootBridge zip
 
 Installation:
  - Extracting the script files...
minzip: Extracted 5 file(s)
  - Preparing the boot bridge...
about to run program [/tmp/boot_bridge/boot_bridge.sh] with 2 args
40960+0 records in
40960+0 records out
20971520 bytes (20.0MB) copied, 0.681947 seconds, 29.3MB/s
dd: writing '/dev/block/platform/msm_sdcc.1/by-name/Kernel': No space left on device
40961+0 records in
40960+0 records out
20971520 bytes (20.0MB) copied, 2.883199 seconds, 6.9MB/s
12+0 records in
12+0 records out
6144 bytes (6.0KB) copied, 0.007478 seconds, 802.4KB/s
Writing boot.img updated with kernel
 
  - Flashing the install.zip...
minzip: Extracted 1 file(s)
about to run program [/tmp/boot_bridge/flash_zip.sh] with 3 args
Archive:  /tmp/boot_bridge/install.zip
  inflating: lib/x86_64/libbusybox.so
Archive:  /tmp/boot_bridge/install.zip
  inflating: lib/x86/libbusybox.so
Archive:  /tmp/boot_bridge/install.zip
  inflating: lib/arm64-v8a/libbusybox.so
Archive:  /tmp/boot_bridge/install.zip
  inflating: lib/armeabi-v7a/libbusybox.so
Archive:  /tmp/boot_bridge/install.zip
   creating: assets/
   creating: assets/dexopt/
  inflating: assets/dexopt/baseline.prof
  inflating: assets/addon.d.sh
  inflating: assets/boot_patch.sh
  inflating: assets/bootctl
   creating: assets/chromeos/
  inflating: assets/chromeos/futility
  inflating: assets/chromeos/kernel.keyblock
  inflating: assets/chromeos/kernel_data_key.vbprivk
  inflating: assets/main.jar
  inflating: assets/module_installer.sh
  inflating: assets/uninstaller.sh
  inflating: assets/util_functions.sh
   creating: lib/
   creating: lib/arm64-v8a/
  inflating: lib/arm64-v8a/libmagisk64.so
  inflating: lib/arm64-v8a/libmagiskboot.so
  inflating: lib/arm64-v8a/libmagiskinit.so
   creating: lib/armeabi-v7a/
  inflating: lib/armeabi-v7a/libmagisk32.so
  inflating: lib/armeabi-v7a/libmagiskboot.so
  inflating: lib/armeabi-v7a/libmagiskinit.so
   creating: lib/x86/
  inflating: lib/x86/libmagisk32.so
  inflating: lib/x86/libmagiskboot.so
  inflating: lib/x86/libmagiskinit.so
   creating: lib/x86_64/
  inflating: lib/x86_64/libmagisk64.so
  inflating: lib/x86_64/libmagiskboot.so
  inflating: lib/x86_64/libmagiskinit.so
   creating: META-INF/com/google/
   creating: META-INF/com/google/android/
  inflating: META-INF/com/google/android/update-binary
  inflating: META-INF/com/google/android/updater-script
***********************
 Magisk 24.1 Installer
***********************
- Mounting /system
- Device is system-as-root
- Mounting /apex/com.android.adbd
- Mounting /apex/com.android.art
- Mounting /apex/com.android.conscrypt
- Mounting /apex/com.android.extservices
- Mounting /apex/com.android.i18n
- Mounting /apex/com.android.ipsec
- Mounting /apex/com.android.media
- Mounting /apex/com.android.media.swcodec
- Mounting /apex/com.android.mediaprovider
- Mounting /apex/com.android.neuralnetworks
- Mounting /apex/com.android.os.statsd
- Mounting /apex/com.android.permission
- Mounting /apex/com.android.resolv
- Mounting /apex/com.android.runtime
- Mounting /apex/com.android.sdkext
- Mounting /apex/com.android.tethering
- Mounting /apex/com.android.tethering
- Mounting /apex/com.android.tzdata
- Mounting /apex/com.android.wifi
- System-as-root, keep dm/avb-verity
- Cannot find vbmeta partition, patch vbmeta in boot image
- Target image: /dev/block/mmcblk0p4
- Device platform: armeabi-v7a
- Constructing environment
- Adding addon.d survival script
Error preloading public library libandroid.so: dlopen failed: library "libstatssocket.so" not found: needed by /system/lib/libandroid_runtime.so in namespace system
libc: Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 1678 (main), pid 1678 (main)
Aborted
- Unpacking boot image
Parsing boot image: [/dev/block/mmcblk0p4]
HEADER_VER      [0]
KERNEL_SZ       [5459680]
RAMDISK_SZ      [10701753]
SECOND_SZ       [0]
EXTRA_SZ        [0]
PAGESIZE        [2048]
NAME            []
CMDLINE         [androidboot.hardware=qcom androidboot.baseband=msm ehci-hcd.park=3 androidboot.bootdevice=msm_sdcc.1\FF]
CHECKSUM        [97e061be8b891081c59d1c81c59d1c81d4dce09f158cdc4b6ac4a4e900000000]
! Could not find zImage gzip piggy, keeping raw kernel
KERNEL_FMT      [zimage]
RAMDISK_FMT     [gzip]
- Checking ramdisk status
Loading cpio: [ramdisk.cpio]
- Stock boot image detected
- Patching ramdisk
Loading cpio: [ramdisk.cpio]
Add entry [init.real] (0750)
Create directory [overlay.d] (0750)
Create directory [overlay.d/sbin] (0750)
Add entry [overlay.d/sbin/magisk32.xz] (0644)
Patch with flag KEEPVERITY=[true] KEEPFORCEENCRYPT=[false]
Loading cpio: [ramdisk.cpio.orig]
Backup mismatch entry: [init.real] -> [.backup/init.real]
Record new entry: [overlay.d] -> [.backup/.rmlist]
Record new entry: [overlay.d/sbin] -> [.backup/.rmlist]
Record new entry: [overlay.d/sbin/magisk32.xz] -> [.backup/.rmlist]
Create directory [.backup] (0000)
Add entry [.backup/.magisk] (0000)
Dump cpio: [ramdisk.cpio]
- Repacking boot image
Parsing boot image: [/dev/block/mmcblk0p4]
HEADER_VER      [0]
KERNEL_SZ       [5459680]
RAMDISK_SZ      [10701753]
SECOND_SZ       [0]
EXTRA_SZ        [0]
PAGESIZE        [2048]
NAME            []
CMDLINE         [androidboot.hardware=qcom androidboot.baseband=msm ehci-hcd.park=3 androidboot.bootdevice=msm_sdcc.1\FF]
CHECKSUM        [97e061be8b891081c59d1c81c59d1c81d4dce09f158cdc4b6ac4a4e900000000]
! Could not find zImage gzip piggy, keeping raw kernel
KERNEL_FMT      [zimage]
RAMDISK_FMT     [gzip]
Repack to boot image: [new-boot.img]
HEADER_VER      [0]
KERNEL_SZ       [5459680]
RAMDISK_SZ      [10956752]
SECOND_SZ       [0]
EXTRA_SZ        [0]
PAGESIZE        [2048]
NAME            []
CMDLINE         [androidboot.hardware=qcom androidboot.baseband=msm ehci-hcd.park=3 androidboot.bootdevice=msm_sdcc.1\FF]
CHECKSUM        [164d2d0c170818b6ce1f25bfc549adae65b2ad0141ef9f087cbe21b9343b535b]
- Flashing new boot image
Cleaning up...
- Unmounting partitions
- Done
 
about to run program [/tmp/boot_bridge/boot_bridge.sh] with 1 args
  - Restoring the boot bridge...
Writing boot.img updated with kernel
dd: writing '/dev/block/platform/msm_sdcc.1/by-name/Kernel': No space left on device
40961+0 records in
40960+0 records out
20971520 bytes (20.0MB) copied, 2.898367 seconds, 6.9MB/s
32332+1 records in
32332+1 records out
16554001 bytes (15.8MB) copied, 3.778391 seconds, 4.2MB/s
  - Cleaning temporary files...
 
  Installation completed!
 
script succeeded: result was [ ]I:Updater process ended with RC=0
I:Legacy property environment disabled.
I:Install took 54 second(s).
Updating partition details...
I:Data backup size is 203MB, free: 1756MB.
I:Unable to mount '/usb-otg'
I:Actual block device: '', current file system: 'auto'
...done
I:Set page: 'flash_done'
I:eek:peration_end - status=0
I:Set overlay: 'slideout'
I:Set overlay: ''
I:Set page: 'clear_vars'
I:Set page: 'install'
I:Set page: 'main'
I:Set page: 'clear_vars'
I:Set page: 'main2'
I:Set page: 'advanced'
I:Set page: 'terminalcommand'
Truncating string cache entries.
Truncating string cache entries.
Truncating string cache entries.
Truncating string cache entries.
Truncating string cache entries.
Edit: Attached full recovery.log
 
Last edited:
Isn't it deprecated for very long time?
Which one? The phone itself is ancient in smartphone years. Sony only had Jelly Bean I think as it's last update, but CM/LOS has extended its lifespan considerably.

If you mean Boot Bridge, it's referenced in [ROM][BETA][11] LineageOS 18.1 for Xperia T/TX/V under Tools required for bootimage patches such as root.

I'll see what happens if I try without bootbridge, but the right solution is to repartition a bit. I'm going to do that anyways to do the user data unification, so might as well.
 
  • Like
Reactions: Lubakabra

Top Liked Posts

  • There are no posts matching your filters.
  • 79
    logo.png


    Code:
    #include <std_disclaimer.h>
    /*
     * Your warranty is now void.
     *
     * I am not responsible for bricked devices, dead SD cards,
     * thermonuclear war, or you getting fired because the alarm app failed. Please
     * do some research if you have any concerns about features included in this ROM
     * before flashing it! YOU are choosing to make these modifications, and if
     * you point the finger at me for messing up your device, I will laugh at you.
     */


    About the project
    Boot Bridge for Sony ELF is born out of an idea to create support
    of systemless tools like SuperSU on the Sony ELF bootimages.

    The structure being different from regular Android boot partitions,
    these tools never worked to edit the content of the boot image
    present on devices like the Xperia SP, T, TX, V, ...

    Boot Bridge for Sony ELF allows you to choose the systemless zip
    by simply replacing the file install/install.zip with the one to flash.

    Warning: BootBridge for Sony ELF is meant to be used on custom ROMs.
    For stock ROMs, you'd need to patch the ROM (bootimage securities) first.
    Please refer to the currently supported devices list in the second post.

    When you flash the Boot Bridge zip, a fake regular bootimage is created
    with the contents of the original ELF partition, mapped in the fstab,
    then the install.zip is automatically flashed as if you did yourself,
    and finally the ELF partition is updated accordingly.

    Boot Bridge for Sony ELF also supports being used with MultiROM secondary ROMs.

    The project is an extension of the libbootimg originally created by Tasssadar,
    that I then reworked to add Sony ELF boot support for Xperia MultiROM.​



    Downloads (Unlocked Bootloader only)


    Preview of the installation
    preview.png


    OPTION 1) Root with Magisk by topjohnwu
    Magisk (Latest version) : https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445

    • Rename the downloaded zip to install.zip
    • Open the Boot Bridge zip with a zip manager
    • Replace the file install/install.zip with the new one
    • Flash the new Boot Bridge zip in the TWRP recovery
    • Reboot to Android


    OPTION 2) Root with SuperSU by Chainfire
    In order to get root access on AOSP based ROMs (2.78 SR5 or newer for 7.1.x),
    you need to download the SuperSU project by Chainfire.

    SuperSU zip (Latest version) : http://forum.xda-developers.com/apps/supersu

    • Rename the downloaded zip to install.zip
    • Open the Boot Bridge zip with a zip manager
    • Replace the file install/install.zip with the new one
    • Flash the new Boot Bridge zip in the TWRP recovery
    • Reboot to Android


    OPTION 3) Root with phhSuperUser by phhusson
    In order to get root access on AOSP based ROMs (7.1.1 included),
    you need to download the phhSuperUser project by phhusson.

    superuser.zip : http://forum.xda-developers.com/android/software-hacking/wip-selinux-capable-superuser-t3216394

    • Rename the downloaded zip to install.zip
    • Open the Boot Bridge zip with a zip manager
    • Replace the file install/install.zip with the new one
    • Flash the new Boot Bridge zip in the TWRP recovery
    • Reboot to Android
    • Install the phh's SuperUser application


    Source code
    Project sources - https://github.com/AdrianDC/android_boot_bridge (branch master)
    libbootimg sources - https://github.com/AdrianDC/multirom_libbootimg (branch master)
    MultiROM sources - https://github.com/AdrianDC/multirom_core (branch master)


    Boot Bridge for Sony ELF created also thanks to :
    - Tasssadar for the original libbootimg / MultiROM sources
    - The XperiaMultiROM team for our evolution of MultiROM
    - Chainfire for the flashable OUTFD export and boot detection
    - Everyone involved in testing it​


    XDA:DevDB Information
    Android Boot Bridge for Sony ELF, Tool/Utility for the OEM Cross Device Development

    Contributors
    Adrian DC

    Version Information
    Status: No Longer Updated

    Created 2016-11-25
    Last Updated 2020-08-29
    41
    Reserved

    Changelog
    Code:
    Boot Bridge for Sony ELF - 26/12/2018
    ======================================
    * Resolve compatibility with Magisk v17+ due to an
      internal evolution of its boot partitions detection
    
    Boot Bridge for Sony ELF - 28/05/2017
    ======================================
    * Use android_boot as potential bridge to fix SuperSU
    
    Boot Bridge for Sony ELF - 20/12/2016
    ======================================
    * Fix the 32/64 bits dual support
    
    Boot Bridge for Sony ELF - 18/12/2016
    ======================================
    * Added support for Sony Stock ELF (64 bits) bootimages
    * libbootimg changes from my recent updates
    
    Boot Bridge for Sony ELF - 29/11/2016
    ======================================
    * Fix the boot partition detection with symlinks
    * Restore phhSuperuser support
    
    Boot Bridge for Sony ELF - 27/11/2016
    ======================================
    * Add support for newer Sony ELF partitions
    * Allows to root Stock Sony ROMs on the Xperia Z2
    * Updated in collaboration with Alexander Diewald
    
    Boot Bridge for Sony ELF - 25/11/2016
    ======================================
    * Initial public release on XDA


    Devices supported
    Code:
    Sony Xperia SP (Huashan): Magisk, SuperSU, phhSuperSU
    Sony Xperia T/TX/V (Mint, Hayabusa, Tsubasa): Magisk, SuperSU, phhSuperSU
    Sony Xperia Z2 (Sirius): SuperSU on Stock ROMs
    Sony Xperia X Performance (Dora): Stock ROM patching
    ...
    12
    As pointed out by Klaus above, I released a minor update
    that resolves support for Magisk v17+ installation.

    The issue being that its boot partitions detection script
    has evolved away from what we used to have with SuperSU and Magisk's initial derivative of it,
    and the "Boot" partition we have is now being accepted by Magisk's "boot" search
    as it became case insensitive instead of filtered.

    Our Sony ELF bootimages are in "Kernel", and I used to create "android_boot"
    through BootBridge as a standard bootimage as it met all requirements up until now.
    The name "boot" is now being used to bypass the new Magisk insensitive search.
    11
    Thanks for your mail that pointing me on this thread.

    No problem.

    Normally the full port of Sony ELF partitions I made inside libbootimg for MultiROM
    is compatible with all bootimages structures from these series of Sony devices.

    I invite you to have your ROM's boot.img flashed into boot directly,
    then flash my Boot Bridge as it is, even without a rooting zip, like in my screenshot,
    and let it run to see the bridge creation then restore perform.

    If anything goes wrong and the bootimage is not readable,
    the process will stop and nothing will be done.

    In the very worst case, the rebuilt boot image doesn't start
    and you simply fastboot the image you came from.

    Also recently I worked with Diewi (Alexander) to extend ELF support
    to the newer version of Sony's last ELF devices, the 8974 (Z2) boot
    that had ELF Stock images but also support for Android normal ones.
    Once fully tested and confirmed, the update will be done on this project too.

    On a side note, about root, SuperSU works fine on my devices on 6.0 & less,
    for 7.1 the installation is fine too but the root features failed (with sepolicies totally fixed),
    this is apparently common / randomly affecting some devices,
    Chainfire is aware of it, so do not be surprised if that happens on yours,
    and give phhSuperUser a go too as it is the fully working method on my AOSP 7.1 now.

    Bye !
    8
    Boot Bridge updated to support newer Sony ELF devices,
    including the Stock Sony ROMs, allowing an easy SuperSU root process.