Google Pixel Bootloader Lock/Relock error invalid images fix

How to Relock Bootloader on Google Pixel 6/7/8/9 After IMEI Repair or Custom Firmware

Google PiXel & Nexus series full Customization & android development
Post Reply
User avatar
AM
Posts: 191
Joined: Wed Mar 19, 2025 2:12 pm
Location: Pakistan
Mood:
Has thanked: 14 times
Been thanked: 17 times
Gender:
Age: 37
Pakistan

Google Pixel Bootloader Lock/Relock error invalid images fix

#1

Post by AM »

βœ… How to Relock Bootloader on Google Pixel 6/7/8/9 After IMEI Repair or Custom Firmware

If you repaired IMEI or installed custom firmware on your Pixel, some apps (like Google Pay or banking apps) might stop working. The best fix is relocking the bootloader after the job is done.

πŸ”’ Why Should You Relock the Bootloader?

βœ” Google Pay & banking apps work again
βœ” Removes β€œDevice is corrupt” warnings
βœ” Passes SafetyNet & Play Integrity
βœ” Restores full system security

🧰 What You’ll Need

β€’

πŸ“Œ Please login or register to view this link.

β€’
πŸ“Œ Please login or register to view this link.

β€’
πŸ“Œ Please login or register to view this link.

πŸ”§ Steps to Relock the Bootloader

1. Enable Developer Options
β€’ Go to Settings > About phone β†’ tap Build number 7 times
β€’ Then go to Settings > Developer Options
β€’ Enable OEM Unlocking and USB Debugging

2. Boot into Fastboot Mode
β€’ Power off your phone
β€’ Hold Volume Down + Power until Fastboot screen appears
β€’ Connect your phone to PC via USB

3. (Optional) Flash Stock ROM
If your device had IMEI repair or custom firmware, you should flash stock firmware first.
β€’ Extract downloaded firmware
β€’ Place files inside platform-tools folder
β€’ Run:

Please
πŸ“Œ Please login or register to view this link.
or
πŸ“Œ Please login or register to view this link.
to see this code

β€’ Phone will reboot after flashing

4. Relock the Bootloader
β€’ Open the platform-tools folder
β€’ Type cmd in the address bar and hit Enter
β€’ Run this command:

Please
πŸ“Œ Please login or register to view this link.
or
πŸ“Œ Please login or register to view this link.
to see this code

β€’ Use Volume keys on your phone to choose Lock the Bootloader, then press Power to confirm

βœ… Confirm Bootloader is Locked
To verify, use this:

Please
πŸ“Œ Please login or register to view this link.
or
πŸ“Œ Please login or register to view this link.
to see this code

If it shows:

Please
πŸ“Œ Please login or register to view this link.
or
πŸ“Œ Please login or register to view this link.
to see this code

Then your bootloader is successfully relocked!

❗ Common Error Fix

Error: Failed (Remote: 'Invalid Android Image, Skip Locking')
β€’ Flash correct stock firmware
β€’ Reboot to Fastboot and try again

πŸ“Œ FAQs

Will this erase my data?
βœ” Yes, relocking will factory reset your phone.

Can I unlock the bootloader again later?
βœ” Yes, but it will wipe all your data again.

Why are banking apps not working after IMEI repair?
Google blocks rooted/unlocked phones. Relocking restores trust & security.

πŸ’¬ If you're stuck or need help, reply below with your Pixel model and build number.
πŸ“Ή Video guide also available – check comments or PM me.

β€” Posted by AM – gsm6.com
Your Pixel, fixed.

User avatar
mrzed341
Posts: 2
Joined: Fri Sep 19, 2025 12:06 pm
Gender:
Pakistan

#2

Post by mrzed341 »

I downloaded the latest factory image for the Pixel 6 (Dec 2025), but the flash.bat file was missing. I tried downloading it again, and even tried the previous release, but the file was still missing. Could you help me figure out how to fix this issue?

User avatar
AM
Posts: 191
Joined: Wed Mar 19, 2025 2:12 pm
Location: Pakistan
Mood:
Has thanked: 14 times
Been thanked: 17 times
Gender:
Age: 37
Pakistan

#3

Post by AM »

Flash_all.bat is there.. i just downloaded the firmware to verify

Image

πŸ“Œ Please login or register to view this link.

User avatar
Expert_Moin
Posts: 2
Joined: Sun Dec 14, 2025 2:14 pm
Mood:
Gender:
Pakistan

#4

Post by Expert_Moin »

Flash_all.bat not found

πŸ“Œ Please login or register to view this link.

Last edited by Expert_Moin on Sun Dec 14, 2025 4:46 pm, edited 1 time in total.
User avatar
AM
Posts: 191
Joined: Wed Mar 19, 2025 2:12 pm
Location: Pakistan
Mood:
Has thanked: 14 times
Been thanked: 17 times
Gender:
Age: 37
Pakistan

#5

Post by AM »

You have shared AOSP build link.. you can flash that by recovery only
.
Get the correct fastboot builds from here

πŸ“Œ Please login or register to view this link.

User avatar
hassan1131
Posts: 2
Joined: Mon Mar 02, 2026 9:11 am
Mood:
Been thanked: 1 time
Gender:
Pakistan

#6

Post by hassan1131 »

Kindly tell me the method without deleting data and IMEI repair.

User avatar
AM
Posts: 191
Joined: Wed Mar 19, 2025 2:12 pm
Location: Pakistan
Mood:
Has thanked: 14 times
Been thanked: 17 times
Gender:
Age: 37
Pakistan

#7

Post by AM »

πŸ“Œ Please login or register to view this link.
wrote:
πŸ“Œ Please login or register to view this link.
Mon Mar 02, 2026 10:22 am

Kindly tell me the method without deleting data and IMEI repair.

you cannot unlock/relock bootloader without losing data.

Post Reply