Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pixel Experience 13 sideload failed #432

Closed
Blcktape opened this issue Sep 26, 2023 · 2 comments
Closed

Pixel Experience 13 sideload failed #432

Blcktape opened this issue Sep 26, 2023 · 2 comments
Assignees
Labels
bug/limitation elsewhere Bug/limitation in the ROM or another project

Comments

@Blcktape
Copy link

Blcktape commented Sep 26, 2023

Device: Oneplus 6
ROM: Pixel Experience 13 (Plus) (August)
Recovery: Pixel Experience Recovery
BCR: Version 1.52
Root: False

When flashing unrooted i followed the following commands:

BCR-1.52-release

PS C:\Data\platform-tools> .\adb.exe devices
List of devices attached
d289030a        device

PS C:\Data\platform-tools> .\adb reboot bootloader
PS C:\Data\platform-tools> .\adb.exe devices
List of devices attached
d289030a        sideload

PS C:\Data\platform-tools> .\adb.exe sideload C:\Data\BCR\BCR-1.52-release.zip
Total xfer: 0.08x

I pulled the recovery.log
recovery.log

[   29.489805] minadbd I 08-16 02:17:36   577   583 minadbd_services.cpp:111] sideload-host file size 1918455, block size 65536
[   30.490186] unknown fuse request opcode 2016
[   30.618272] I:current maximum temperature: 75000
[   30.618317] Supported API: 3
[   30.636311] Finding update package...
[   30.669386] I:Update package id: /sideload/package.zip
[   30.752884] Installing update...
[   30.822948] I:[libfs_mgr]Created logical partition odm_a on device /dev/block/dm-0
[   30.823601] I:[libfs_mgr]Created logical partition product_a on device /dev/block/dm-1
[   30.824202] I:[libfs_mgr]Created logical partition system_a on device /dev/block/dm-2
[   30.824820] I:[libfs_mgr]Created logical partition system_ext_a on device /dev/block/dm-3
[   30.825490] I:[libfs_mgr]Created logical partition vendor_a on device /dev/block/dm-4
[   30.843553] + ui_print 'Mounting system'
[   30.843637] + >/proc/self/fd/22 
[   30.844088] + printf 'ui_print %s\nui_print\n' 'Mounting system'
[   30.854054] + getprop ro.boot.dynamic_partitions
[   30.859418] + ui_print '- Device uses dynamic partitions'
[   30.859495] + >/proc/self/fd/22 
[   30.859564] + printf 'ui_print %s\nui_print\n' '- Device uses dynamic partitions'
[   30.869463] + getprop ro.boot.slot_suffix
[   30.875707] + slot=_a 
[   30.875728] + block_dev=/dev/block/mapper/system_a 
[   30.875733] + blockdev --setrw /dev/block/mapper/system_a
[   30.883030] blockdev: /dev/block/mapper/system_a: No such file or directory
[   31.032591] ERROR:   recovery: Error in /sideload/package.zip (status 1)

BCR-1.51-release

PS C:\Data\platform-tools> .\adb.exe sideload C:\Data\BCR\BCR-1.51-release.zip
Total xfer: 0.08x
PS C:\Data\platform-tools> .\adb pull /tmp/recovery.log
/tmp/recovery.log: 1 file pulled, 0 skipped. 13.9 MB/s (42256 bytes in 0.003s)
PS C:\Data\platform-tools>

recovery.log

[ 1554.579648] Now send the package you want to apply
[ 1554.579650] to the device with "adb sideload <filename>"...
[ 1554.709066] minadbd I 08-16 02:43:01   648   649 usb_ffs.cpp:275] opening control endpoint /dev/usb-ffs/adb/ep0
[ 1554.709834] minadbd I 08-16 02:43:01   648   649 usb.cpp:152] UsbFfsConnection constructed
[ 1554.710097] minadbd I 08-16 02:43:01   648   650 usb.cpp:259] UsbFfs-monitor thread spawned
[ 1554.713437] minadbd I 08-16 02:43:01   648   650 usb.cpp:298] USB event: FUNCTIONFS_BIND
[ 1554.968393] minadbd I 08-16 02:43:01   648   650 usb.cpp:298] USB event: FUNCTIONFS_ENABLE
[ 1554.968474] minadbd I 08-16 02:43:01   648   652 usb.cpp:405] UsbFfs-worker thread spawned
[ 1555.205168] minadbd I 08-16 02:43:01   648   648 adb.cpp:171] UsbFfs: already offline
[ 1555.205186] minadbd I 08-16 02:43:01   648   648 adb.cpp:388] authentication not required
[ 1569.135359] minadbd I 08-16 02:43:15   648   653 minadbd_services.cpp:111] sideload-host file size 1918509, block size 65536
[ 1570.135743] unknown fuse request opcode 2016
[ 1570.268280] I:current maximum temperature: 75000
[ 1570.268324] Supported API: 3
[ 1570.352375] Finding update package...
[ 1570.456999] I:Update package id: /sideload/package.zip
[ 1570.774021] Installing update...
[ 1571.003198] + ui_print 'Mounting system'
[ 1571.003277] + >/proc/self/fd/23 
[ 1571.003649] + printf 'ui_print %s\nui_print\n' 'Mounting system'
[ 1571.014061] + getprop ro.boot.dynamic_partitions
[ 1571.019203] + ui_print '- Device uses dynamic partitions'
[ 1571.019281] + >/proc/self/fd/23 
[ 1571.019346] + printf 'ui_print %s\nui_print\n' '- Device uses dynamic partitions'
[ 1571.028534] + getprop ro.boot.slot_suffix
[ 1571.034150] + slot=_a 
[ 1571.034164] + block_dev=/dev/block/mapper/system_a 
[ 1571.034169] + blockdev --setrw /dev/block/mapper/system_a
[ 1571.042456] + ui_print '- System block device: /dev/block/mapper/system_a'
[ 1571.042485] + >/proc/self/fd/23 
[ 1571.042490] + printf 'ui_print %s\nui_print\n' '- System block device: /dev/block/mapper/system_a'
[ 1571.051043] + mount_point=/mnt/system 
[ 1571.051059] + root_dir=/mnt/system 
[ 1571.051064] + ui_print '- System mount point: /mnt/system'
[ 1571.051068] + >/proc/self/fd/23 
[ 1571.051073] + printf 'ui_print %s\nui_print\n' '- System mount point: /mnt/system'
[ 1571.059532] + ui_print '- Root directory: /mnt/system'
[ 1571.059550] + >/proc/self/fd/23 
[ 1571.059555] + printf 'ui_print %s\nui_print\n' '- Root directory: /mnt/system'
[ 1571.067718] + mountpoint -q /mnt/system
[ 1571.076021] + mount /dev/block/mapper/system_a /mnt/system
[ 1571.090362] + ui_print 'Extracting files'
[ 1571.090386] + >/proc/self/fd/23 
[ 1571.090391] + printf 'ui_print %s\nui_print\n' 'Extracting files'
[ 1571.099724] + unzip -p /sideload/package.zip module.prop
[ 1571.100336] + grep '^id='
[ 1571.105490] unknown fuse request opcode 2016
[ 1571.108250] + cut '-d=' -f2
[ 1571.117031] + app_id=com.chiller3.bcr 
[ 1571.117050] + rm -rf /mnt/system/system/priv-app/com.chiller3.bcr
[ 1571.127488] + unzip -o /sideload/package.zip 'system/*' -d /mnt/system
[ 1571.132649] unknown fuse request opcode 2016
[ 1571.134586] unzip: couldn't extract directory /mnt/system/system/addon.d/: No space left on device
[ 1571.134656] Archive:  /sideload/package.zip
[ 1572.707609] ERROR:   recovery: Error in /sideload/package.zip (status 1)
[ 1572.975024]
[ 1573.395958] I:current maximum temperature: 75000
[ 1573.396063] I:/sideload/package.zip
[ 1573.396067] 0
[ 1573.396068] time_total: 3
[ 1573.396070] retry: 0
[ 1573.396071] temperature_start: 75000
[ 1573.396073] temperature_end: 75000
[ 1573.396074] temperature_max: 75000
[ 1573.396075]
[ 1573.396246] I:Command 0 finished with 0
[ 1574.398358] minadbd W 08-16 02:43:20   648   648 sockets.cpp:279] timeout expired while flushing socket, closing
[ 1574.398867] minadbd I 08-16 02:43:20   648   653 minadbd_services.cpp:159] revents: 16
[ 1574.433783] I:Socket has been closed
[ 1574.472370]
[ 1574.472386] Install completed with status 1.
[ 1574.769455] Installation aborted.
@chenxiaolong
Copy link
Owner

Thanks for the logs!

I'm not sure why 1.52 failed to flash. If you extract 1.51 and 1.52 and compare the files, everything is completely identical aside from BCR's apk. I'm not sure why the install script would work on 1.51, but not 1.52. Hopefully it's just a one-off issue.

For 1.51, the issue is this:

[ 1571.134586] unzip: couldn't extract directory /mnt/system/system/addon.d/: No space left on device

I downloaded the ROM you're running from https://get.pixelexperience.org/enchilada and took at a look at the system partition:

[13:23:19] cxl-desktop-1 …/scratch/oneplus
❯ avbroot ota extract -i PixelExperience_Plus_enchilada-13.0-20230925-2242-OFFICIAL.zip -d extracted -a
[*] Extracting from the payload: boot, dtbo, odm, product, system, system_ext, vbmeta, vendor

[13:23:23] cxl-desktop-1 …/scratch/oneplus
❯ cd extracted

[13:25:00] cxl-desktop-1 …/oneplus/extracted
❯ mkdir mnt

[13:25:04] cxl-desktop-1 …/oneplus/extracted
❯ sudo mount -o ro system.img mnt

[13:25:30] cxl-desktop-1 …/oneplus/extracted
1 ❯ df -B 1 mnt
Filesystem     1B-blocks      Used Available Use% Mounted on
/dev/loop0     905740288 902995968         0 100% /media/scratch/oneplus/extracted/mnt

It looks like Pixel Experience was built in a way that leaves exactly 0 bytes of free space on the system partition. Unfortunately, there's not really anything you can do about that. If you want to use BCR, you'll have to root with Magisk and install it as a module.

@chenxiaolong chenxiaolong self-assigned this Sep 26, 2023
@chenxiaolong chenxiaolong added the bug/limitation elsewhere Bug/limitation in the ROM or another project label Sep 26, 2023
@2shrestha22
Copy link

Pixel experience does not support addon.d so BCR will be lost after each OTA so better use as Magisk module,

@chenxiaolong chenxiaolong closed this as not planned Won't fix, can't repro, duplicate, stale Sep 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/limitation elsewhere Bug/limitation in the ROM or another project
Projects
None yet
Development

No branches or pull requests

3 participants