badabing2005 / PixelFlasher

Pixel™ phone flashing GUI utility with features.
GNU General Public License v3.0
1.25k stars 106 forks source link

OTA flashing did not properly switch slots. #218

Closed asamofal closed 2 months ago

asamofal commented 2 months ago

Hi! Failed to flash. Tried v6.9.8.0 and v6.9.6.0.

2024-07-04 17:15:49 User Pressed Ok.

==============================================================================
 2024-07-04 17:15:49 PixelFlasher 6.9.8.0              Flashing Phone    
==============================================================================
Android Platform Tools Version: 35.0.1-11580240

2024-07-04 17:15:49 Getting device: 28161FDH2000ZJ state  ...
Currently the device is in adb mode.

2024-07-04 17:15:49 Getting device: 28161FDH2000ZJ state  ...
Rebooting device: 28161FDH2000ZJ to sideload ...
ADB waiting for device: 28161FDH2000ZJ for sideload ...

2024-07-04 17:16:12 Getting device: 28161FDH2000ZJ state  ...
Device is now in sideload mode.
2024-07-04 17:16:13 Flashing device: 28161FDH2000ZJ ...
Current active Slot is: [a]
Current inactive Slot is: [a]
serving: '/Users/anton/data/GooglePixel/platform-tools-35.0.1/panther-ota-ap2a.240705.004-5ce14c35.zip'  (~0%)
serving: '/Users/anton/data/GooglePixel/platform-tools-35.0.1/panther-ota-ap2a.240705.004-5ce14c35.zip'  (~1%)
serving: '/Users/anton/data/GooglePixel/platform-tools-35.0.1/panther-ota-ap2a.240705.004-5ce14c35.zip'  (~2%)
serving: '/Users/anton/data/GooglePixel/platform-tools-35.0.1/panther-ota-ap2a.240705.004-5ce14c35.zip'  (~3%)
serving: '/Users/anton/data/GooglePixel/platform-tools-35.0.1/panther-ota-ap2a.240705.004-5ce14c35.zip'  (~4%)
serving: '/Users/anton/data/GooglePixel/platform-tools-35.0.1/panther-ota-ap2a.240705.004-5ce14c35.zip'  (~5%)
serving: '/Users/anton/data/GooglePixel/platform-tools-35.0.1/panther-ota-ap2a.240705.004-5ce14c35.zip'  (~6%)
serving: '/Users/anton/data/GooglePixel/platform-tools-35.0.1/panther-ota-ap2a.240705.004-5ce14c35.zip'  (~7%)
serving: '/Users/anton/data/GooglePixel/platform-tools-35.0.1/panther-ota-ap2a.240705.004-5ce14c35.zip'  (~8%)
serving: '/Users/anton/data/GooglePixel/platform-tools-35.0.1/panther-ota-ap2a.240705.004-5ce14c35.zip'  (~9%)
serving: '/Users/anton/data/GooglePixel/platform-tools-35.0.1/panther-ota-ap2a.240705.004-5ce14c35.zip'  (~10%)
serving: '/Users/anton/data/GooglePixel/platform-tools-35.0.1/panther-ota-ap2a.240705.004-5ce14c35.zip'  (~11%)
serving: '/Users/anton/data/GooglePixel/platform-tools-35.0.1/panther-ota-ap2a.240705.004-5ce14c35.zip'  (~12%)
serving: '/Users/anton/data/GooglePixel/platform-tools-35.0.1/panther-ota-ap2a.240705.004-5ce14c35.zip'  (~13%)
serving: '/Users/anton/data/GooglePixel/platform-tools-35.0.1/panther-ota-ap2a.240705.004-5ce14c35.zip'  (~14%)
serving: '/Users/anton/data/GooglePixel/platform-tools-35.0.1/panther-ota-ap2a.240705.004-5ce14c35.zip'  (~15%)
serving: '/Users/anton/data/GooglePixel/platform-tools-35.0.1/panther-ota-ap2a.240705.004-5ce14c35.zip'  (~16%)
serving: '/Users/anton/data/GooglePixel/platform-tools-35.0.1/panther-ota-ap2a.240705.004-5ce14c35.zip'  (~17%)
serving: '/Users/anton/data/GooglePixel/platform-tools-35.0.1/panther-ota-ap2a.240705.004-5ce14c35.zip'  (~18%)
serving: '/Users/anton/data/GooglePixel/platform-tools-35.0.1/panther-ota-ap2a.240705.004-5ce14c35.zip'  (~19%)
serving: '/Users/anton/data/GooglePixel/platform-tools-35.0.1/panther-ota-ap2a.240705.004-5ce14c35.zip'  (~20%)
serving: '/Users/anton/data/GooglePixel/platform-tools-35.0.1/panther-ota-ap2a.240705.004-5ce14c35.zip'  (~21%)
serving: '/Users/anton/data/GooglePixel/platform-tools-35.0.1/panther-ota-ap2a.240705.004-5ce14c35.zip'  (~22%)
serving: '/Users/anton/data/GooglePixel/platform-tools-35.0.1/panther-ota-ap2a.240705.004-5ce14c35.zip'  (~23%)
serving: '/Users/anton/data/GooglePixel/platform-tools-35.0.1/panther-ota-ap2a.240705.004-5ce14c35.zip'  (~24%)
serving: '/Users/anton/data/GooglePixel/platform-tools-35.0.1/panther-ota-ap2a.240705.004-5ce14c35.zip'  (~25%)
serving: '/Users/anton/data/GooglePixel/platform-tools-35.0.1/panther-ota-ap2a.240705.004-5ce14c35.zip'  (~26%)
serving: '/Users/anton/data/GooglePixel/platform-tools-35.0.1/panther-ota-ap2a.240705.004-5ce14c35.zip'  (~27%)
serving: '/Users/anton/data/GooglePixel/platform-tools-35.0.1/panther-ota-ap2a.240705.004-5ce14c35.zip'  (~28%)
serving: '/Users/anton/data/GooglePixel/platform-tools-35.0.1/panther-ota-ap2a.240705.004-5ce14c35.zip'  (~29%)
serving: '/Users/anton/data/GooglePixel/platform-tools-35.0.1/panther-ota-ap2a.240705.004-5ce14c35.zip'  (~30%)
serving: '/Users/anton/data/GooglePixel/platform-tools-35.0.1/panther-ota-ap2a.240705.004-5ce14c35.zip'  (~31%)
serving: '/Users/anton/data/GooglePixel/platform-tools-35.0.1/panther-ota-ap2a.240705.004-5ce14c35.zip'  (~32%)
serving: '/Users/anton/data/GooglePixel/platform-tools-35.0.1/panther-ota-ap2a.240705.004-5ce14c35.zip'  (~33%)
serving: '/Users/anton/data/GooglePixel/platform-tools-35.0.1/panther-ota-ap2a.240705.004-5ce14c35.zip'  (~34%)
serving: '/Users/anton/data/GooglePixel/platform-tools-35.0.1/panther-ota-ap2a.240705.004-5ce14c35.zip'  (~35%)
serving: '/Users/anton/data/GooglePixel/platform-tools-35.0.1/panther-ota-ap2a.240705.004-5ce14c35.zip'  (~36%)
serving: '/Users/anton/data/GooglePixel/platform-tools-35.0.1/panther-ota-ap2a.240705.004-5ce14c35.zip'  (~37%)
serving: '/Users/anton/data/GooglePixel/platform-tools-35.0.1/panther-ota-ap2a.240705.004-5ce14c35.zip'  (~38%)
serving: '/Users/anton/data/GooglePixel/platform-tools-35.0.1/panther-ota-ap2a.240705.004-5ce14c35.zip'  (~39%)
serving: '/Users/anton/data/GooglePixel/platform-tools-35.0.1/panther-ota-ap2a.240705.004-5ce14c35.zip'  (~40%)
serving: '/Users/anton/data/GooglePixel/platform-tools-35.0.1/panther-ota-ap2a.240705.004-5ce14c35.zip'  (~41%)
serving: '/Users/anton/data/GooglePixel/platform-tools-35.0.1/panther-ota-ap2a.240705.004-5ce14c35.zip'  (~42%)
serving: '/Users/anton/data/GooglePixel/platform-tools-35.0.1/panther-ota-ap2a.240705.004-5ce14c35.zip'  (~43%)
serving: '/Users/anton/data/GooglePixel/platform-tools-35.0.1/panther-ota-ap2a.240705.004-5ce14c35.zip'  (~44%)
serving: '/Users/anton/data/GooglePixel/platform-tools-35.0.1/panther-ota-ap2a.240705.004-5ce14c35.zip'  (~45%)
serving: '/Users/anton/data/GooglePixel/platform-tools-35.0.1/panther-ota-ap2a.240705.004-5ce14c35.zip'  (~46%)
serving: '/Users/anton/data/GooglePixel/platform-tools-35.0.1/panther-ota-ap2a.240705.004-5ce14c35.zip'  (~47%)
Total xfer: 1.00x
2024-07-04 17:18:37 Done flash script execution!
Sleeping 10 seconds ...

2024-07-04 17:18:47 Getting device: 28161FDH2000ZJ state retry [4] times ...
Currently the device is in recovery mode.
Updating connected devices ...

=======================================
Selected Device on 2024-07-04 17:18:48:
=======================================
    Device ID:                       28161FDH2000ZJ
    Device Model:                    
    Device Active Slot:              
    Device Mode:                     sideload
    Has init_boot partition:         False
    Device Bootloader Version:       
    Device is Rooted:                False
    Device Build:                    
    Device API Level:                
    Device Architecture:             
    Device Kernel:                   None
    Device Kernel Version:           
    Device KMI:                      
    sys_oem_unlock_allowed:          
    ro.boot.flash.locked:            
    ro.boot.vbmeta.device_state:     
    ro.product.first_api_level:      
    ro.boot.veritymode:              
    ro.boot.verifiedbootstate:       
    ro.secure:                       
    ro.zygote:                       
    ro.vendor.product.cpu.abilist:   
    ro.vendor.product.cpu.abilist32: 
    Magisk Manager Version:          :
        Checked for Package:         com.topjohnwu.magisk
    KernelSU App Version:            :
    APatch App Version:              :

2024-07-04 17:18:48 Getting device: 28161FDH2000ZJ state  ...
Rebooting device: 28161FDH2000ZJ to bootloader ...
Fastboot waiting for device: 28161FDH2000ZJ for bootloader ...
device: 28161FDH2000ZJ is now in bootloader mode.
Updating connected devices ...

=======================================
Selected Device on 2024-07-04 17:18:52:
=======================================
    Device ID:                       28161FDH2000ZJ
    Device Model:                    panther
    Device Active Slot:              a
    Device Mode:                     f.b
    Device Name:                     Pixel 7
    Device First API Level:          33
    Device Version End Date:         October 2025
    Device Security Update End Date: October 2027
    Has init_boot partition:         True
    Device Bootloader Version:       cloudripper-14.4-11290827
    Device Unlocked:                 True
    slot-retry-count:a:              
    slot-unbootable:a:               
    slot-successful:a:               
    slot-retry-count:b:              
    slot-unbootable:b:               
    slot-successful:b:               

Getting current slot for device: 28161FDH2000ZJ ...
Current slot: [a]
Comparing the current slot with the previous active slot ...

❌ 2024-07-04 17:18:52 ERROR: It appears that OTA flashing did not properly switch slots.
Aborting ...
badabing2005 commented 2 months ago

This means that there is OTA update (in progress or partial) on your system. That needs to be cancelled first.

If your device is rooted, and you have enabled su access to shell process, then PixelFlasher should detect your device as root (the logs above is not in adb mode for me to know, and you didn't provide support file) then you can go into Device Menu | Cancel OTA Update image

Then sideload again. If your device is not rooted or you cannot get into adb mode, then PixelFlasher cannot perform that operation.

The only other alternative at that point would be to flash factory image, but for that you need your bootloader to be unlocked.

Sorry these are Google's limitations, not the app's.

asamofal commented 2 months ago

@badabing2005 Thank you for such a detailed answer. It seems to be right, I got a notification: a new update is available before I started play with Pixel FLasher. I have already flashed my phone with a factory image. But next time, I will know to stop any updates first.