lineageos4microg / docker-lineage-cicd

Docker microservice for LineageOS Continuous Integration and Continous Deployment
https://hub.docker.com/r/lineageos4microg/docker-lineage-cicd
GNU General Public License v3.0
490 stars 193 forks source link

Semi-bricked Pixel XL with locked bootloader #556

Closed archandanime closed 7 months ago

archandanime commented 8 months ago

I was using LineageOS 20(repartitioned) on Pixel XL 128GB(marlin), and did the following:

Result: The phone boots up, shows: "Your device has loaded another operating system", then Google logo for 25 seconds. Then the phone reboots and the behavior repeats. Boot animation is never displayed.

I am not able to unlock the bootloader, it seems that when I factory reset the phone from Settings, the OEM unlock option is turned off automatically.

Recovery is still accessible for me to siderload OTA zip. Using adb commands from recovery, the /data partition is empty:

marlin:/ # mount /dev/block/sda35 -t ext4 /data                                                                      
marlin:/ # ls -lia /data                                                                                             
total 20
 2 drwxr-xr-x  3 root root  4096 1970-12-26 12:04 .
 2 drwxrwxrwt 33 root root  1220 1970-12-26 20:52 ..
11 drwx------  2 root root 16384 1970-12-26 12:04 lost+found
marlin:/ # df -h /data                                                                                               
Filesystem       Size Used Avail Use% Mounted on
/dev/block/sda35 107G  24K  107G   1% /data

I believe there is something wrong with the Verified boot. As the Verified boot is avb 1.0 which the documentation is no longer available, plus that I don't have LineageOS for MicroG OTA and avb keys to make a valid OTA to fix it.

May I ask for your help? Please kind ask if I need to provide extra information.

archandanime commented 8 months ago

/tmp/recovery.log contents when booted to Recovery:

[    0.000246] W:[libfs_mgr]Warning: unknown flag: verify
[    0.000528] recovery filesystem table
[    0.000541] =========================
[    0.000549]   0 /persist  ext4 /dev/block/platform/soc/624000.ufshc/by-name/persist 0
[    0.006770]   1 /vendor  ext4 /dev/block/platform/soc/624000.ufshc/by-name/vendor_b 0
[    0.008771]   2 /  ext4 /dev/block/platform/soc/624000.ufshc/by-name/system_b 0
[    0.010648]   3 /firmware/radio  vfat /dev/block/platform/soc/624000.ufshc/by-name/modem_b 0
[    0.012524]   4 /data  ext4 /dev/block/platform/soc/624000.ufshc/by-name/userdata 0
[    0.014822]   5 none  swap /dev/block/zram0 0
[    0.015874]   6 /misc  emmc /dev/block/platform/soc/624000.ufshc/by-name/misc 0
[    0.019478]   7 auto  vfat /devices/*/xhci-hcd.0.auto/usb* 0
[    0.019784]   8 /tmp  ramdisk ramdisk 0
[    0.019950]
[    0.020879] W:[libfs_mgr]Warning: unknown flag: verify
[    0.021387] I:Boot command: bootonce-bootloader
[    0.022200] W:[libfs_mgr]Warning: unknown flag: verify
[    0.023246] W:[libfs_mgr]Warning: unknown flag: verify
[    0.024887] Loading make_device from librecovery_ui_ext.so
[    0.025474] I:vkeys: could not open /sys/board_properties/virtualkeys.STM VL53L0 proximity sensor
[    0.025529] I:vkeys: could not open /sys/board_properties/virtualkeys.synaptics_dsxv26
[    0.025939] I:Brightness: 127 (50%)
[    0.030883] Failed to find/open a drm device: No such file or directory
[    0.031100] fb0 reports (possibly inaccurate):
[    0.031112]   vi.bits_per_pixel = 32
[    0.031120]   vi.red.offset   =   0   .length =   8
[    0.031128]   vi.green.offset =   8   .length =   8
[    0.031136]   vi.blue.offset  =  16   .length =   8
[    0.048480] framebuffer: 6 (1440 x 2560)
[    0.087896]           erasing_text: en (488 x 48 @ 712)
[    0.090453]        no_command_text: en (560 x 48 @ 712)
[    0.092670]             error_text: en (472 x 48 @ 712)
[    0.388851] I:Starting recovery (pid 542) on Sat Dec 26 22:31:29 1970
[    0.388875]
[    0.388887] I:locale is [en-US]
[    0.392614] SELinux: Loaded file_contexts
[    0.395151] [libfs_mgr]superblock s_max_mnt_count:65535,/dev/block/platform/soc/624000.ufshc/by-name/userdata
[    0.395272] recovery: [libfs_mgr]Unable to enable quotas on /dev/block/platform/soc/624000.ufshc/by-name/userdata because /system/bin/tune2fs is missing
[    0.403952] [libfs_mgr]check_fs(): mount(/dev/block/platform/soc/624000.ufshc/by-name/userdata,/data,ext4)=0: Success
[    0.462275] [libfs_mgr]umount_retry(): unmount(/data) succeeded
[    0.462391] [libfs_mgr]Not running /system/bin/e2fsck on /dev/block/sda35 (executable not in system image)
[    0.463749] [libfs_mgr]superblock s_max_mnt_count:65535,/dev/block/platform/soc/624000.ufshc/by-name/userdata
[    0.463827] recovery: [libfs_mgr]Unable to set the number of reserved blocks on /dev/block/platform/soc/624000.ufshc/by-name/userdata because /system/bin/tune2fs is missing
[    0.463871] recovery: [libfs_mgr]Unable to enable ext4 encryption on /dev/block/platform/soc/624000.ufshc/by-name/userdata because /system/bin/tune2fs is missing
[    0.472757] [libfs_mgr]__mount(source=/dev/block/platform/soc/624000.ufshc/by-name/userdata,target=/data,type=ext4)=0: Success
[    0.584837] stage is []
[    0.584864] reason is []
[    0.588691] SELinux: Loaded file_contexts
[    0.589935] W:[libfs_mgr]Warning: unknown flag: verify
[    0.604366] W:Failed to bind mount /mnt/staging/emulated/media/0 to /storage/emulated: No such file or directory
[    0.645199] I:VolumeManager initialized
[    0.650132]        installing_text: en (1052 x 48 @ 712)
[    0.656093] Command: "/system/bin/recovery"
[    0.656163]
[    0.656413] aaudio.mmap_policy=2
[    0.656479] aaudio.hw_burst_min_usec=2000
[    0.656536] aaudio.mmap_exclusive_policy=2
[    0.657178] af.fast_track_multiplier=1
[    0.657251] audio.offload.video=true
[    0.657308] audio.deep_buffer.media=true
[    0.657421] persist.audio.fluence.speaker=true
[    0.657479] persist.audio.fluence.voicerec=false
[    0.657536] persist.audio.fluence.voicecall=true
[    0.657592] persist.audio.fluence.voicecomm=true
[    0.657968] bluetooth.le.disable_apcf_extended_features=1
[    0.658036] bluetooth.core.gap.le.privacy.enabled=false
[    0.658094] bluetooth.device.class_of_device=90,2,12
[    0.658152] bluetooth.profile.bas.client.enabled=true
[    0.658209] bluetooth.profile.hfp.ag.enabled=true
[    0.658266] bluetooth.profile.hid.host.enabled=true
[    0.658322] bluetooth.profile.hid.device.enabled=true
[    0.658378] bluetooth.profile.map.server.enabled=true
[    0.658434] bluetooth.profile.opp.enabled=true
[    0.658491] bluetooth.profile.pan.nap.enabled=true
[    0.658546] bluetooth.profile.pan.panu.enabled=true
[    0.658609] bluetooth.profile.sap.server.enabled=true
[    0.658665] bluetooth.profile.a2dp.source.enabled=true
[    0.658721] bluetooth.profile.asha.central.enabled=true
[    0.658777] bluetooth.profile.gatt.enabled=true
[    0.658832] bluetooth.profile.pbap.server.enabled=true
[    0.658889] bluetooth.profile.avrcp.target.enabled=true
[    0.658946] bluetooth.hardware.power.operating_voltage_mv=3300
[    0.659358] ro.boot.qf.st=2
[    0.659425] ro.boot.cid=VZW__001
[    0.659519] ro.boot.msm.hw_ver_id=268824801
[    0.659579] ro.boot.mode=recovery
[    0.659642] ro.boot.flash.locked=1
[    0.659700] ro.boot.theme=0
[    0.659758] ro.boot.fp_src=1
[    0.659814] ro.boot.console=ttyHSL0
[    0.659872] ro.boot.ddrinfo=00000001
[    0.659928] ro.boot.ddrsize=4GB
[    0.659987] ro.boot.baseband=msm
[    0.660045] ro.boot.boottime=1BLL:85,1BLE:622,2BLL:0,2BLE:11701,SW:0,KL:11147
[    0.660102] ro.boot.hardware=marlin
[    0.660157] ro.boot.hardware.ddr=4096MB,Samsung,LPDDR4
[    0.660213] ro.boot.hardware.ufs=128GB,Samsung
[    0.660270] ro.boot.hardware.color=SLV00
[    0.660328] ro.boot.keymaster=1
[    0.660386] ro.boot.bootdevice=624000.ufshc
[    0.660443] ro.boot.bootloader=8996-012001-1908071822
[    0.660500] ro.boot.veritymode=eio
[    0.660556] ro.boot.boot_devices=soc/624000.ufshc
[    0.660611] ro.boot.verifiedbootstate=yellow
[    0.660668] ro.boot.oem_unlock_support=0
[    0.660724] ro.boot.temp_protect_ignore=0
[    0.660780] ro.baseband=msm
[    0.660835] ro.bootmode=recovery
[    0.660891] ro.hardware=marlin
[    0.660946] ro.revision=0
[    0.661001] ro.bootloader=8996-012001-1908071822
[    0.661172] ro.boottime.adbd=10565346974
[    0.661229] ro.boottime.init=4019992237
[    0.661284] ro.boottime.init.selinux=361785677
[    0.661340] ro.boottime.init.first_stage=2073101405
[    0.661396] ro.boottime.init.cold_boot_wait=3191
[    0.661452] ro.boottime.charger=9990414683
[    0.661509] ro.boottime.ueventd=6754051455
[    0.661564] ro.boottime.recovery=9993423016
[    0.661619] ro.boottime.servicemanager=9961436297
[    0.661755] ro.boottime.init.fsck.data=67
[    0.661813] ro.boottime.init.mount.data=8
[    0.662004] ro.product.bootimage.name=lineage_marlin
[    0.662063] ro.product.bootimage.brand=google
[    0.662121] ro.product.bootimage.model=Pixel XL
[    0.662178] ro.product.bootimage.device=marlin
[    0.662234] ro.product.bootimage.manufacturer=Google
[    0.662291] ro.bootimage.build.id=TQ3A.230901.001
[    0.662347] ro.bootimage.build.date=Wed Jan 10 01:02:34 UTC 2024
[    0.662402] ro.bootimage.build.date.utc=1704848554
[    0.662458] ro.bootimage.build.tags=dev-keys
[    0.662513] ro.bootimage.build.type=userdebug
[    0.662570] ro.bootimage.build.version.sdk=33
[    0.662625] ro.bootimage.build.version.release=13
[    0.662682] ro.bootimage.build.version.incremental=eng.root.20240110.010450
[    0.662741] ro.bootimage.build.version.release_or_codename=13
[    0.662800] ro.bootimage.build.fingerprint=google/marlin/marlin:10/QP1A.191005.007.A3/5972272:user/release-keys
[    0.662992] ro.odm.build.date=Wed Jan 10 01:02:34 UTC 2024
[    0.663053] ro.odm.build.date.utc=1704848554
[    0.663110] ro.odm.build.version.incremental=eng.root.20240110.010450
[    0.663167] ro.odm.build.fingerprint=google/marlin/marlin:10/QP1A.191005.007.A3/5972272:user/release-keys
[    0.663224] ro.product.odm.name=lineage_marlin
[    0.663280] ro.product.odm.brand=google
[    0.663335] ro.product.odm.model=Pixel XL
[    0.663402] ro.product.odm.device=marlin
[    0.663459] ro.product.odm.manufacturer=Google
[    0.663517] ro.adb.secure=1
[    0.663573] ro.build.id=TQ3A.230901.001
[    0.663631] ro.build.date=Wed Jan 10 01:02:34 UTC 2024
[    0.663686] ro.build.date.utc=1704848554
[    0.663743] ro.build.host=f5f3c016191d
[    0.663798] ro.build.tags=dev-keys
[    0.663854] ro.build.type=userdebug
[    0.663910] ro.build.user=root
[    0.663967] ro.build.flavor=lineage_marlin-userdebug
[    0.664023] ro.build.display.id=lineage_marlin-userdebug 13 TQ3A.230901.001 eng.root.20240110.010450 dev-keys
[    0.664079] ro.build.product=marlin
[    0.664135] ro.build.version.sdk=33
[    0.664191] ro.build.version.base_os=
[    0.664246] ro.build.version.release=13
[    0.664301] ro.build.version.codename=REL
[    0.664357] ro.build.version.incremental=eng.root.20240110.010450
[    0.664412] ro.build.version.preview_sdk=0
[    0.664473] ro.build.version.all_codenames=REL
[    0.664530] ro.build.version.security_patch=2023-12-05
[    0.664586] ro.build.version.release_or_codename=13
[    0.664643] ro.build.version.preview_sdk_fingerprint=REL
[    0.664698] ro.build.version.min_supported_target_sdk=23
[    0.664754] ro.build.description=marlin-user 10 QP1A.191005.007.A3 5972272 release-keys
[    0.664811] ro.build.characteristics=nosdcard
[    0.664868] ro.build.system_root_image=true
[    0.664924] ro.system.build.id=TQ3A.230901.001
[    0.664982] ro.system.build.date=Wed Jan 10 01:02:34 UTC 2024
[    0.665039] ro.system.build.date.utc=1704848554
[    0.665094] ro.system.build.tags=dev-keys
[    0.665150] ro.system.build.type=userdebug
[    0.665207] ro.system.build.version.sdk=33
[    0.665267] ro.system.build.version.release=13
[    0.665323] ro.system.build.version.incremental=eng.root.20240110.010450
[    0.665379] ro.system.build.version.release_or_codename=13
[    0.665434] ro.system.build.fingerprint=google/marlin/marlin:10/QP1A.191005.007.A3/5972272:user/release-keys
[    0.665498] ro.treble.enabled=false
[    0.665554] ro.product.cpu.abi=arm64-v8a
[    0.665609] ro.product.cpu.abilist=arm64-v8a,armeabi-v7a,armeabi
[    0.665666] ro.product.cpu.abilist32=armeabi-v7a,armeabi
[    0.665721] ro.product.cpu.abilist64=arm64-v8a
[    0.665777] ro.product.name=lineage_marlin
[    0.665834] ro.product.brand=google
[    0.665891] ro.product.model=Pixel XL
[    0.665946] ro.product.device=marlin
[    0.666003] ro.product.system.name=lineage_marlin
[    0.666059] ro.product.system.brand=google
[    0.666115] ro.product.system.model=Pixel XL
[    0.666171] ro.product.system.device=marlin
[    0.666226] ro.product.system.manufacturer=Google
[    0.666283] ro.product.system_ext.name=lineage_marlin
[    0.666339] ro.product.system_ext.brand=google
[    0.666394] ro.product.system_ext.model=Pixel XL
[    0.666450] ro.product.system_ext.device=marlin
[    0.666507] ro.product.system_ext.manufacturer=Google
[    0.666563] ro.product.manufacturer=Google
[    0.666620] ro.system_ext.build.id=TQ3A.230901.001
[    0.666678] ro.system_ext.build.date=Wed Jan 10 01:02:34 UTC 2024
[    0.666735] ro.system_ext.build.date.utc=1704848554
[    0.666792] ro.system_ext.build.tags=dev-keys
[    0.666848] ro.system_ext.build.type=userdebug
[    0.666907] ro.system_ext.build.version.sdk=33
[    0.666964] ro.system_ext.build.version.release=13
[    0.667019] ro.system_ext.build.version.incremental=eng.root.20240110.010450
[    0.667074] ro.system_ext.build.version.release_or_codename=13
[    0.667131] ro.system_ext.build.fingerprint=google/marlin/marlin:10/QP1A.191005.007.A3/5972272:user/release-keys
[    0.667189] ro.actionable_compatible_property.enabled=true
[    0.667246] ro.vendor.build.id=TQ3A.230901.001
[    0.667302] ro.vendor.build.date=Wed Jan 10 01:02:34 UTC 2024
[    0.667358] ro.vendor.build.date.utc=1704848554
[    0.667414] ro.vendor.build.tags=dev-keys
[    0.667469] ro.vendor.build.type=userdebug
[    0.667525] ro.vendor.build.version.sdk=33
[    0.667580] ro.vendor.build.version.release=13
[    0.667637] ro.vendor.build.version.incremental=eng.root.20240110.010450
[    0.667704] ro.vendor.build.version.release_or_codename=13
[    0.667760] ro.vendor.build.fingerprint=google/marlin/marlin:10/QP1A.191005.007.A3/5972272:user/release-keys
[    0.667816] ro.vendor.product.cpu.abilist=arm64-v8a,armeabi-v7a,armeabi
[    0.667872] ro.vendor.product.cpu.abilist32=armeabi-v7a,armeabi
[    0.667928] ro.vendor.product.cpu.abilist64=arm64-v8a
[    0.667987] ro.vendor.api_level=25
[    0.668043] ro.product.board=marlin
[    0.668098] ro.product.vendor.name=lineage_marlin
[    0.668153] ro.product.vendor.brand=google
[    0.668212] ro.product.vendor.model=Pixel XL
[    0.668269] ro.product.vendor.device=marlin
[    0.668325] ro.product.vendor.manufacturer=Google
[    0.668382] ro.product.first_api_level=25
[    0.668656] ro.camera.notify_nfc=1
[    0.668767] persist.camera.eis.enable=1
[    0.668824] persist.camera.tnr.video=1
[    0.668880] persist.camera.tnr.preview=1
[    0.668935] persist.camera.tof.direct=1
[    0.668992] persist.camera.gyro.android=4
[    0.669048] persist.camera.is_type=4
[    0.669299] ro.charger.enable_suspend=true
[    0.669628] ro.cold_boot_done=true
[    0.669929] ro.bionic.arch=arm64
[    0.669990] ro.bionic.2nd_arch=arm
[    0.670046] ro.bionic.cpu_variant=kryo
[    0.670101] ro.bionic.2nd_cpu_variant=kryo
[    0.671345] ro.dalvik.vm.native.bridge=0
[    0.671421] ro.zygote=zygote64_32
[    0.671479] dalvik.vm.isa.arm.variant=kryo
[    0.671534] dalvik.vm.isa.arm.features=default
[    0.671591] dalvik.vm.isa.arm64.variant=kryo
[    0.671648] dalvik.vm.isa.arm64.features=default
[    0.671705] dalvik.vm.dexopt.secondary=true
[    0.671762] dalvik.vm.dexopt.thermal-cutoff=2
[    0.671819] dalvik.vm.usejit=true
[    0.671875] dalvik.vm.madvise.artfile.size=4294967295
[    0.671933] dalvik.vm.madvise.odexfile.size=104857600
[    0.671989] dalvik.vm.madvise.vdexfile.size=104857600
[    0.672045] dalvik.vm.heapsize=512m
[    0.672102] dalvik.vm.lockprof.threshold=500
[    0.672158] dalvik.vm.dex2oat-Xms=64m
[    0.672216] dalvik.vm.dex2oat-Xmx=512m
[    0.672274] dalvik.vm.heapmaxfree=16m
[    0.672329] dalvik.vm.heapminfree=8m
[    0.672385] dalvik.vm.heapstartsize=8m
[    0.672441] dalvik.vm.minidebuginfo=true
[    0.672497] dalvik.vm.appimageformat=lz4
[    0.672553] dalvik.vm.usejitprofiles=true
[    0.672609] dalvik.vm.heapgrowthlimit=256m
[    0.672665] dalvik.vm.image-dex2oat-Xms=64m
[    0.672721] dalvik.vm.image-dex2oat-Xmx=64m
[    0.672777] dalvik.vm.dex2oat-minidebuginfo=true
[    0.672832] dalvik.vm.heaptargetutilization=0.6
[    0.672888] dalvik.vm.systemuicompilerfilter=speed
[    0.672945] dalvik.vm.dex2oat-max-image-block-size=524288
[    0.673002] dalvik.vm.dex2oat-resolve-startup-strings=true
[    0.673157] persist.sys.dalvik.vm.lib.2=libart.so
[    0.673284] debug.sf.hw=1
[    0.673342] debug.egl.hw=1
[    0.673397] debug.atrace.tags.enableflags=0
[    0.673453] debug.gralloc.enable_fb_ubwc=1
[    0.673508] debug.renderengine.backend=skiaglthreaded
[    0.673672] av.debug.disable.pers.cache=true
[    0.673730] bt.max.hfpclient.connections=1
[    0.673786] mm.enable.sec.smoothstreaming=true
[    0.673842] mm.enable.qcom_parser=1048575
[    0.673899] ro.qc.sdk.audio.ssr=false
[    0.673954] ro.qc.sdk.audio.fluencetype=fluencepro
[    0.674010] ro.com.google.clientidbase=android-google
[    0.674068] ro.dbg.coresight.config=stm_events
[    0.674125] ro.nfc.port=I2C
[    0.674180] ro.opa.eligible_device=true
[    0.674235] ro.ota.allow_downgrade=true
[    0.674292] ro.sys.fw.bg_apps_limit=60
[    0.674349] ro.hwui.path_cache_size=32
[    0.674405] ro.hwui.layer_cache_size=48
[    0.674461] ro.hwui.texture_cache_size=72
[    0.674516] ro.hwui.gradient_cache_size=1
[    0.674572] ro.hwui.r_buffer_cache_size=8
[    0.674627] ro.hwui.drop_shadow_cache_size=6
[    0.674683] ro.hwui.text_large_cache_width=2048
[    0.674742] ro.hwui.text_small_cache_width=1024
[    0.674799] ro.hwui.text_large_cache_height=1024
[    0.674857] ro.hwui.text_small_cache_height=1024
[    0.674915] ro.hwui.texture_cache_flushrate=0.4
[    0.674973] ro.wifi.channels=
[    0.675037] ro.allow.mock.location=0
[    0.675135] ro.build.version.known_codenames=Base,Base11,Cupcake,Donut,Eclair,Eclair01,EclairMr1,Froyo,Gingerbread,GingerbreadMr1,Honeycomb,HoneycombMr1,HoneycombMr2,IceCreamSandwich,IceCreamSandwichMr1,JellyBean,JellyBeanMr1,JellyBeanMr2,Kitkat,KitkatWatch,Lollipop,LollipopMr1,M,N,NMr1,O,OMr1,P,Q,R,S,Sv2,Tiramisu
[    0.675193] ro.build.version.release_or_preview_display=13
[    0.675250] ro.kernel.version=4.4
[    0.675306] ro.system.product.cpu.abilist=arm64-v8a,armeabi-v7a,armeabi
[    0.675361] ro.system.product.cpu.abilist32=armeabi-v7a,armeabi
[    0.675416] ro.system.product.cpu.abilist64=arm64-v8a
[    0.675472] ro.lineage.build.version=20.0
[    0.675531] ro.lineage.build.version.plat.rev=0
[    0.675587] ro.lineage.build.version.plat.sdk=9
[    0.675643] ro.lineage.device=marlin
[    0.675698] ro.lineage.display.version=20-20240110-microG-marlin
[    0.675754] ro.lineage.version=20.0-20240110-microG-marlin
[    0.675809] ro.lineage.releasetype=microG
[    0.675865] ro.product.locale=en-US
[    0.675922] ro.qualcomm.cabl=2
[    0.675977] ro.recovery.usb.adb.pid=D001
[    0.676033] ro.recovery.usb.vid=18D1
[    0.676088] ro.recovery.usb.fastboot.pid=4EE0
[    0.676144] ro.telephony.block_binder_thread_on_incoming_calls=false
[    0.676200] ro.modversion=20.0-20240110-microG-marlin
[    0.676256] ro.postinstall.fstab.prefix=/system
[    0.676313] ro.lineagelegal.url=https://lineageos.org/legal
[    0.676371] ro.use_data_netmgrd=true
[    0.676428] ro.support_one_handed_mode=true
[    0.676485] mmp.enable.3g2=true
[    0.676542] sdm.debug.rotator_downscale=1
[    0.676598] sdm.debug.disable_rotator_split=1
[    0.676653] sdm.perf_hint_window=50
[    0.676710] use.voice.path.for.pcm.voip=true
[    0.676768] fmas.hdph_sgain=0
[    0.676824] qcom.hw.aac.encoder=true
[    0.676879] qdcm.only_pcc_for_trans=1
[    0.676934] qdcm.diagonal_matrix_mode=1
[    0.676989] vidc.enc.dcvs.extra-buff-count=2
[    0.677044] vidc.debug.perf.mode=2
[    0.677101] audio.adm.buffering.ms=3
[    0.677156] audio.safx.pbe.enabled=true
[    0.677212] audio.dolby.ds2.enabled=false
[    0.677268] audio.dolby.ds2.hardbypass=false
[    0.677323] audio.parser.ip.buffer.size=262144
[    0.677379] audio.offload.pcm.16bit.enable=true
[    0.677435] audio.offload.pcm.24bit.enable=true
[    0.677491] audio.offload.track.enable=true
[    0.677548] audio.offload.buffer.size.kb=32
[    0.677603] audio.offload.gapless.enabled=true
[    0.677658] audio.offload.multiaac.enable=true
[    0.677713] audio.offload.multiple.enabled=false
[    0.677768] audio.offload.passthrough=false
[    0.677825] media.aac_51_output_enabled=true
[    0.677882] Camera.no_navigation_bar=true
[    0.677937] tunnel.audio.encode=false
[    0.677993] persist.mm.enable.prefetch=true
[    0.678048] persist.cne.feature=1
[    0.678103] persist.hwc.enable_vds=1
[    0.678159] persist.net.doxlat=true
[    0.678214] persist.qfp=false
[    0.678269] persist.data.df.agg.dl_pkt=10
[    0.678324] persist.data.df.agg.dl_size=4096
[    0.678379] persist.data.df.dl_mode=5
[    0.678435] persist.data.df.ul_mode=5
[    0.678491] persist.data.df.dev_name=rmnet_usb0
[    0.678548] persist.data.df.iwlan_mux=9
[    0.678604] persist.data.df.mux_count=8
[    0.678660] persist.data.wda.enable=true
[    0.678715] persist.data.mode=concurrent
[    0.678771] persist.data.iwlan.enable=true
[    0.678827] persist.data.netmgrd.qos.enable=true
[    0.678882] persist.demo.hdmirotationlock=false
[    0.678937] persist.rild.nitz_plmn=
[    0.678992] persist.rild.nitz_long_ons_0=
[    0.679047] persist.rild.nitz_long_ons_1=
[    0.679104] persist.rild.nitz_long_ons_2=
[    0.679160] persist.rild.nitz_long_ons_3=
[    0.679215] persist.rild.nitz_short_ons_0=
[    0.679270] persist.rild.nitz_short_ons_1=
[    0.679325] persist.rild.nitz_short_ons_2=
[    0.679381] persist.rild.nitz_short_ons_3=
[    0.679471] persist.rmnet.data.enable=true
[    0.679573] persist.timed.enable=true
[    0.679629] persist.fuse_sdcard=true
[    0.679684] audio_hal.period_size=192
[    0.679748] audio_hal.period_multiplier=2
[    0.679804] DEVICE_PROVISIONED=1
[    0.681403] drm.service.enabled=true
[    0.681779] ro.config.vc_call_vol_steps=7
[    0.681851] ro.frp.pst=/dev/block/platform/soc/624000.ufshc/by-name/frp
[    0.681909] ro.boot.hardware.revision=PVT
[    0.681967] ro.boot.slot_suffix=_b
[    0.682023] ro.hwui.use_vulkan=
[    0.682079] ro.board.platform=msm8996
[    0.682134] ro.build.ab_update=true
[    0.682193] ro.carrier=unknown
[    0.682314] ro.hardware.power=marlin
[    0.682373] persist.rcs.supported=1
[    0.682615] pm.dexopt.ab-ota=speed-profile
[    0.682677] pm.dexopt.shared=speed
[    0.682733] pm.dexopt.cmdline=verify
[    0.682790] pm.dexopt.install=speed-profile
[    0.682846] pm.dexopt.inactive=verify
[    0.682902] pm.dexopt.bg-dexopt=speed-profile
[    0.682957] pm.dexopt.first-boot=verify
[    0.683013] pm.dexopt.install-bulk=speed-profile
[    0.683070] pm.dexopt.install-fast=skip
[    0.683126] pm.dexopt.install-bulk-secondary=verify
[    0.683182] pm.dexopt.install-bulk-downgraded=verify
[    0.683238] pm.dexopt.install-bulk-secondary-downgraded=extract
[    0.683426] sys.usb.ffs.ready=1
[    0.683525] ro.build.fingerprint=google/marlin/marlin:10/QP1A.191005.007.A3/5972272:user/release-keys
[    0.683840] ro.opengles.version=196610
[    0.683942] ro.gsid.image_running=0
[    0.684000] gsid.image_installed=0
[    0.684588] init.svc.charger=running
[    0.684657] init.svc.ueventd=running
[    0.684714] init.svc.recovery=running
[    0.684769] init.svc.fastbootd=stopped
[    0.684827] init.svc.servicemanager=running
[    0.684932] init.svc.adbd=running
[    0.685056] init.svc_debug_pid.adbd=559
[    0.685113] init.svc_debug_pid.charger=541
[    0.685171] init.svc_debug_pid.ueventd=527
[    0.685227] init.svc_debug_pid.recovery=542
[    0.685283] init.svc_debug_pid.fastbootd=
[    0.685340] init.svc_debug_pid.servicemanager=540
[    0.685472] keyguard.no_require_sim=true
[    0.685908] log.tag.stats_log=I
[    0.686009] ro.logd.size.stats=64K
[    0.686325] media.recorder.show_manufacturer_and_model=true
[    0.686384] media.stagefright.enable-aac=true
[    0.686440] media.stagefright.enable-qcp=true
[    0.686496] media.stagefright.enable-http=true
[    0.686552] media.stagefright.enable-scan=true
[    0.686608] media.stagefright.enable-fma2dp=true
[    0.686663] media.stagefright.enable-player=true
[    0.686831] media.mediadrmservice.enable=true
[    0.686944] ro.boot.mid=G-2PW2100
[    0.687645] ro.oem_unlock_supported=1
[    0.687756] ro.product.ab_ota_partitions=aboot,apdp,boot,bootlocker,cmnlib32,cmnlib64,devcfg,hosd,hyp,keymaster,modem,pmic,rpm,system,tz,vendor,xbl
[    0.687934] ro.cp_system_other_odex=1
[    0.687996] ro.control_privapp_permissions=enforce
[    0.688203] persist.debug.wfd.enable=1
[    0.688265] persist.debug.dalvik.vm.core_platform_api_policy=just-warn
[    0.688535] pm.dexopt.post-boot=extract
[    0.688597] pm.dexopt.boot-after-ota=verify
[    0.688813] ro.property_service.version=2
[    0.688987] qemu.hw.mainkeys=0
[    0.689239] ril.subscription.types=NV,RUIM
[    0.689302] persist.radio.VT_ENABLE=1
[    0.689358] persist.radio.custom_ecc=1
[    0.689415] persist.radio.videopause.mode=1
[    0.689501] persist.radio.data_con_rprt=true
[    0.689558] persist.radio.sib16_support=1
[    0.689614] persist.radio.sw_mbn_update=1
[    0.689671] persist.radio.is_wps_enabled=true
[    0.689728] persist.radio.snapshot_timer=0
[    0.689784] persist.radio.ROTATION_ENABLE=1
[    0.689842] persist.radio.VT_HYBRID_ENABLE=1
[    0.689899] persist.radio.apm_sim_not_pwdn=1
[    0.689954] persist.radio.data_ltd_sys_ind=1
[    0.690009] persist.radio.snapshot_enabled=0
[    0.690066] persist.radio.RATE_ADAPT_ENABLE=1
[    0.690629] ro.boot.serialno=HT77L0201837
[    0.690700] ro.serialno=HT77L0201837
[    0.690835] service.adb.root=1
[    0.690894] security.perf_harden=1
[    0.691094] ro.soc.model=MSM8996
[    0.691156] ro.soc.manufacturer=Qualcomm
[    0.691338] ro.storage_manager.enabled=true
[    0.691507] ro.sf.lcd_density=560
[    0.691935] dev.pm.dyn_samplingrate=1
[    0.692010] dev.mnt.blk.data=
[    0.692066] dev.mnt.dev.data=
[    0.692122] dev.mnt.rootdisk.data=
[    0.692180] net.bt.name=Android
[    0.692238] net.tethering.noprovisioning=true
[    0.692295] sys.games.gt.prof=1
[    0.692351] persist.sys.ssr.restart_level=venus,AR6320,slpi,modem,adsp
[    0.692407] persist.sys.usb.config=none
[    0.692463] persist.sys.wfd.virtual=0
[    0.692519] persist.sys.pd_enable=0
[    0.692574] persist.sys.strictmode.disable=true
[    0.692807] ro.config.ringtone=Orion.ogg
[    0.692865] ro.config.alarm_alert=Hassium.ogg
[    0.692920] ro.config.notification_sound=Argon.ogg
[    0.693015] ro.com.android.dataroaming=true
[    0.693072] ro.telephony.default_network=10
[    0.693127] ro.telephony.default_cdma_sub=0
[    0.693182] telephony.lteOnCdmaDevice=1
[    0.693557] tombstoned.max_tombstone_count=50
[    0.693681] persist.traced.enable=1
[    0.693945] sys.usb.state=adb
[    0.694004] sys.usb.config=adb
[    0.694061] sys.usb.configfs=1
[    0.694117] sys.usb.controller=6a00000.dwc3
[    0.694253] ro.secure=1
[    0.694310] ro.debuggable=1
[    0.695075] ro.vendor.bluetooth.wipower=true
[    0.695146] ro.vendor.bluetooth.emb_wp_mode=true
[    0.695202] vendor.qcom.bluetooth.soc=rome
[    0.696629] ro.odm.build.id=TQ3A.230901.001
[    0.696705] ro.odm.build.tags=dev-keys
[    0.696761] ro.odm.build.type=userdebug
[    0.696817] ro.odm.build.version.sdk=33
[    0.696877] ro.odm.build.version.release=13
[    0.696933] ro.odm.build.version.release_or_codename=13
[    0.696988] ro.odm.product.cpu.abilist=arm64-v8a,armeabi-v7a,armeabi
[    0.697045] ro.odm.product.cpu.abilist32=armeabi-v7a,armeabi
[    0.697100] ro.odm.product.cpu.abilist64=arm64-v8a
[    0.697155] ro.vendor.bt.bdaddr_path=/sys/module/bdaddress/parameters/bdaddress
[    0.697210] ro.vendor.gt_library=libqti-gt.so
[    0.697266] ro.vendor.wl_library=libqti-wl.so
[    0.697323] ro.vendor.extension_library=libqti-perfd-client.so
[    0.698585] ro.vendor.at_library=libqti-at.so
[    0.699404] persist.vendor.radio.mt_sms_ack=30
[    0.699676] vendor.rild.libpath=/vendor/lib64/libril-qc-qmi-1.so
[    0.699885] ro.vendor.build.security_patch=2019-10-06
[    0.700518] vendor.thermal.config=thermal_info_config.json
[    0.701441] ro.crypto.volume.filenames_mode=aes-256-cts
[    0.701514] ro.crypto.scrypt_params=13:3:1
[    0.701995] ro.boot.wificountrycode=US
[    0.702399] persist.sys.zram_enabled=1
[    0.702541]
[    0.733009] W:[libfs_mgr]Warning: unknown flag: verify
[    6.644303] Enabled ADB.
[    6.651646] W:[libfs_mgr]Warning: unknown flag: verify
petefoth commented 8 months ago

I'm sorry you are having a problem. As far as I am aware it is not possible to relock the bootloader on this device and run a custom ROM:

I think that your only course of action may be to restore the stock Android image (can be found here or the full OTA from here

Once you have returned to stock, you should be able to unlock the bootloader and reflash LIneageOS. If that works, do not relock the bootloader

archandanime commented 8 months ago

It was possible for me to re-lock bootloader on LineageOS for MicroG 18.1, which I did, though I didn't understand how it worked.

For AVB 2.0, avbroot can help to create AVB key, create vbmeta image and modify partition footer with new VBMeta struct(if necessary) to meet the AVB 2.0 requirement. Lineage has done almost everything but still disabled AVB purposely to allow users to modify the /system partition(source).

For AVB 1.0 which Pixel XL is using, Google didn't put provide documentation about its specifications back then, though there are still old tutotials(here and here). There is also a blog mentioned how it works. But I really have enough understanding to give any suggestion.


I appreciate the resources that you shared. So I tried flashing stock factory which results in:

> ./flash-all.sh 
Warning: skip copying bootloader_b image avb footer (bootloader_b partition size: 0, bootloader_b image size: 33259520).
Sending 'bootloader_b' (32480 KB)                  OKAY [  0.951s]
Writing 'bootloader_b'                             (bootloader) Command is not supported.
(bootloader) Please unlock device to enable this command.
FAILED (remote: '')
fastboot: error: Command failed
Rebooting into bootloader                          OKAY [  0.045s]
Finished. Total time: 0.095s
Warning: skip copying radio_b image avb footer (radio_b partition size: 0, radio_b image size: 58527744).
Sending 'radio_b' (57156 KB)                       OKAY [  1.653s]
Writing 'radio_b'                                  (bootloader) Command is not supported.
(bootloader) Please unlock device to enable this command.
FAILED (remote: '')
fastboot: error: Command failed
Rebooting into bootloader                          OKAY [  0.045s]
Finished. Total time: 0.095s
--------------------------------------------
Bootloader Version...: 8996-012001-1908071822
Baseband Version.....: 8996-130361-1905270421
Serial Number........: HT77L0201837
--------------------------------------------
extracting android-info.txt (0 MB) to RAM...
Checking 'product'                                 OKAY [  0.049s]
Checking 'version-bootloader'                      OKAY [  0.049s]
Checking 'version-baseband'                        OKAY [  0.049s]
Setting current slot to 'b'                        (bootloader) Command is not supported.
(bootloader) Please unlock device to enable this command.
FAILED (remote: '')
fastboot: error: Command failed

When trying to sideload stock OTA zip from Recovery it says: Signature verification failed Install anyway?. I suspect doing this would hard brick my phone.

petefoth commented 8 months ago

When trying to sideload stock OTA zip from Recovery it says: Signature verification failed Install anyway?. I suspect doing this would hard brick my phone.

No it shouldn't brick your phone. The error message is only because the signature of of the OTA zip (presumabley signed bi Google) is different from the signature of either the currently installed ROM (signed by us) or Recovery (signed by us or LineageOS).

It should be quite safe to agree to the 'Install anyway?` question. (I do it regularly when swapping between different ROMs - los4microg, /e/OS, IodéOS - on my test devices)

archandanime commented 8 months ago

Thank you for the guide! Indeed it didn't hard brick my phone which gave me a relief.

I sideloaded the stock OTA(marlin-ota-qp1a.191005.007.a3-23002a57.zip), the sideload was successful and recovery asked me to Recovery to install "additional packages", I agreed and it booted to stock Recovery. From stock Recovery, I rebooted to system, the Google logo(not boot animation) flashed several times before bringing me back to the boot slot with LineageOS for MicroG.

I tried sideloading one more time but the result was the same.

petefoth commented 8 months ago

I tried sideloading one more time but the result was the same.

You may need to follow the instructions from here to install the factory image using fastboot rather than recovery and adb sideload

archandanime commented 8 months ago

Thank you for the suggestion. I have tried it but flashing factory image won't work with a bootloader locked phone.

(bootloader) Please unlock device to enable this command.

Let me try to flash it with Qualcomm flash tool, there are some tools available but I haven't tried. I'll post an update later.

petefoth commented 8 months ago

flashing factory image won't work with a bootloader locked phone.

The instructions here explain how to unlock the bootloader

  1. If necessary, unlock the device's bootloader using one of the following methods:

    If you are updating a Nexus or Pixel device that is manufactured in 2015 or later (for example, a Nexus 5X, Nexus 6P, Pixel, Pixel XL, Pixel 2 or Pixel 2 XL device), run this command:

fastboot flashing unlock

archandanime commented 8 months ago

Thank you for the suggestion. But the command doesn't work, I believe the only way to unlock it is boot to a working system and enable it with Developer options.

> fastboot flashing unlock
FAILED (remote: 'oem unlock is not allowed')
fastboot: error: Command failed
archandanime commented 7 months ago

I found an old LineageOS for MicroG 18.1 OTA zip on my computer and attempted to downgrade my phone from LineageOS for MicroG 20.0 to 18.1.

Last year, when I upgraded from LineageOS(no MicroG) 18.1 to 20.0, the vendor, system and userdata had to be resized because new partitions are bigger on the newer version and Pixel XL didn't have dynamic partitions(super) to allocate them automatically. In order to downgrade, I had to resize these partitions back to their original sizes.

After resizing the partitions to their original size by running this from Recovery adb shell:

sgdisk --delete=31 /dev/block/sda
sgdisk --delete=32 /dev/block/sda
sgdisk --delete=33 /dev/block/sda
sgdisk --delete=34 /dev/block/sda
sgdisk --delete=35 /dev/block/sda

sgdisk --new=31:73542:150342 --change-name=31:vendor_a --typecode=31:77036CD4-03D5-42BB-8ED1-37E5A88BAA34 /dev/block/sda
sgdisk --new=32:150344:227144 --change-name=32:vendor_b --typecode=32:EBD0A0A2-B9E5-4433-87C0-68B6B72699C7 /dev/block/sda
sgdisk --new=33:227146:751438 --change-name=33:system_a --typecode=33:77036CD4-03D5-42BB-8ED1-37E5A88BAA34 /dev/block/sda
sgdisk --new=34:751440:1275728 --change-name=34:system_b --typecode=34:EBD0A0A2-B9E5-4433-87C0-68B6B72699C7 /dev/block/sda
sgdisk --new=35:1275730:31215428 --change-name=35:userdata --typecode=35:EBD0A0A2-B9E5-4433-87C0-68B6B72699C7 /dev/block/sda

(This is for 128GB model, and the partitions must have 2-block border, sgdisk refuses to create new partitions without border, no idea why)

The LineageOS for MicroG 18.1 OTA zip was sideloaded successfully, I confirmed the vendor, system and userdata partitions were mountable and readable. However when I rebooted the phone, the phone was still bootlooping even though LineageOS for MicroG 18.1 Recovery worked.

I give up now but leave the information here someone else needs. I have another phone so it's alright.