How to Go Back to Stock Kernel from Custom Kernel [Pixel 7 Pro]

Go Back to Stock Kernel from Custom Kernel Pixel 7 pro: In this guide, we will show you how to go back to stock kernel from the custom kernel on your Google Pixel 7 Pro. If you have ever installed a custom kernel on your Android device, then you might know that it comes with a few benefits.

But there are also some disadvantages of using a custom kernel. One of the biggest disadvantages is that you can not install OTA updates on your device if you are using a custom kernel. So, if you want to install an OTA update on your Google Pixel 7 Pro, then you will first need to go back to stock kernel.

What is Stock Kernel?

A stock kernel is a pre-compiled version of the Linux kernel that is distributed by a device’s manufacturer. It is typically customized for the specific hardware it will be running on and is designed to provide a stable, reliable, and secure operating environment.

Go Back to Stock Kernel from Custom Kernel
Go Back to Stock Kernel from Custom Kernel

Custom kernels, on the other hand, are often created by third-party developers and can offer additional features or performance enhancements not found in the stock kernel. However, they can also be less stable and more prone to security vulnerabilities.

For these reasons, it is sometimes necessary to return to the stock kernel after having used a custom kernel. This can be done using either fastboot or Odin (depending on your device).

What is Custom Kernel?

If you’ve ever used a custom kernel on your Android device, you know that they offer a lot of benefits and features over the stock kernel. However, there are also some disadvantages to using a custom kernel, such as the potential for stability issues. If you’re having problems with your custom kernel, or if you just want to go back to the stock kernel for any reason, here’s how to do it on the Google Pixel 7 Pro.

First, you’ll need to download the stock kernel for your device. You can find this by searching for “stock kernel” + your device name on Google. Once you’ve downloaded the file, transfer it to your device’s storage.

Next, boot into recovery mode. On most devices, you can do this by holding down the power button + volume up/down buttons while the device is powered off.

Once in recovery mode, use the volume buttons to navigate to the “wipe cache partition” option and select it with the power button. This will wipe your device’s cached data, which is often one of the main causes of stability issues with custom kernels.

After that, navigate to the “factory reset” option and select it. This will erase all of your data and restore your device to its factory state.

Finally, navigate to the “install zip from storage” option and select it. Choose the stock kernel ZIP file that you transferred to your device earlier, and confirm that you

Reasons for Going Back to Stock Kernel

There are several reasons why you might want to go back to the stock kernel on your Google Pixel 7 Pro or Pixel XL smartphone. Maybe you’re experiencing issues with your current custom kernel, or maybe you just want to try out a different kernel. Either way, it’s fairly easy to flash a new kernel on your device, so you can always experiment with different kernels to find the perfect one for your needs.

In this guide, we’ll show you how to flash a stock kernel on your Google Pixel 7 pro . We’ll also provide a few tips on choosing the right kernel for your needs.

So, if you’re ready to learn how to go back to the stock kernel on your Google Pixel 7 pro , let’s get started!

How to Go Back to Stock Kernel on Pixel 7 Pro

If you’ve installed a custom kernel on your Google Pixel 7 Pro, and you want to go back to the stock kernel for any reason, here’s how to do it.

First, download the factory image for your device from the Google Developers website. Then, unzip the file and open the “flash-all” script in a text editor.

Next, find the line that says “fastboot -w update image-filename.zip” and replace “image-filename.zip” with the name of the factory image file you downloaded. Save your changes and close the file.

Now, connect your Pixel 7 Pro to your computer via USB and boot it into fastboot mode. To do this, press and hold the volume down + power buttons until you see the fastboot screen appear.

Finally, run the “flash-all” script by double-clicking it. This will flash the stock kernel to your device and reboot it automatically.

Go Back to Stock Kernel from Custom Kernel [Pixel 7 Pro]

If you’re looking to go back to a stock kernel from a custom one on your Google Pixel 7 Pro, here’s how to do it.

First, download the factory image for your device from the Google Developers website. Next, boot your device into fastboot mode by holding down the power and volume-up buttons simultaneously.

Then, connect your device to your computer via USB and open a command prompt or terminal. Navigate to the location of the factory image file and extract it using 7-zip or another similar program. Once extracted, open the folder and delete everything except for the “bootloader” folder and “flash-all.bat” file.

Now, open the “flash-all.bat” file with a text editor and add the following line at the end of the file: fastboot -w updateimage flashall skip_setupwizard true

Save and close the file, then run it by double-clicking on it. This will flash the stock kernel to your device and wipe all user data, so make sure you’ve backed up anything you want to keep first!

STEP 1: Install Android SDK

Install Android SDK
Install Android SDK

If you’re using a custom kernel on your Google Pixel 7 Pro, you might want to go back to the stock kernel for better stability. Here’s how:

1. Install the Android SDK from Google.

2. Connect your Pixel Pro to your computer via USB cable.

3. Open a command prompt and navigate to the Android SDK directory.

4. Type the following into the command prompt: adb reboot bootloader

5. Your Pixel 7 Pro will reboot into fastboot mode.

6. Type the following into the command prompt: fastboot flash boot boot_stock.img

7. Once the flashing process is complete, type the following into the command prompt: fastboot reboot

8. Your Pixel Pro will now reboot with the stock kernel!

STEP 2: Enable USB Debugging and OEM Unlocking

Enabling USB Debugging and OEM Unlocking allows you to return your phone to a stock kernel from a custom one. These are both developer options, so you’ll need to enable them in the Developer Options settings first. Once they’re enabled, follow these steps:

USB Debugging
USB Debugging

1. Connect your phone to your computer with a USB cable.

2. Open the Developer Options settings on your phone.

3. Tap on the USB Debugging option. You may need to confirm this action on your phone.

4. Tap on the OEM Unlocking option. Again, you may need to confirm this action on your phone.

5. Your phone is now ready for returning to a stock kernel from a custom one!

STEP 3: Unlock Bootloader on the Pixel 7/Pro

If you want to go back to the stock kernel from a custom kernel on the Pixel 7/Pro, you will first need to unlock the bootloader. This can be done by running the following command:

unlock bootloader on Google pixel 7 pro
unlock bootloader on Google pixel 7 pro

fastboot flashing unlock

Once the bootloader is unlocked, you can then flash the stock kernel image. Simply download the image from Google’s website and then use fastboot to flash it:

fastboot flash boot

STEP 4: Extract Stock Partition Files

Extract Stock Partition Files
Extract Stock Partition Files

Now You have to Extract Stock partition files, For that first of all download the Stock Files given below:

Pixel 7 Pro [cheetah]: Download Link
Pixel 7 [panther]: Download Link

Once Downloaded, You have to extract both the files. 
After that Find Image.zip file
Now Transfer 3 files to Platform tools (boot, vendor_kernel_boot, dtbo, and vendor_dlkm.img)

STEP 5: Boot to Fastboot Mode

Assuming you’ve already followed the steps in the previous section and have your device booted back into Android, the next thing you’ll need to do is boot into Fastboot Mode.

boot into fastboot mode
boot into fastboot mode

To do this, power off your device completely, then press and hold the Volume Up + Power button simultaneously. After a few seconds, you should see the Fastboot Mode screen appear.

Once you’re in Fastboot Mode, connect your device to your computer via USB cable. Then open a Command Prompt or Terminal window and navigate to the location of your Fastboot tool (usually in the Platform-tools folder of your Android SDK).

From here, you can now run anyFastboot commands. In order to flash the stock kernel image, simply type the following command:

Now Simply Give the Following Command, Typing this command will make your device boot in fastboot mode:

boot into fastboot mode

And that’s it! Once the kernel has been flashed, reboot your device and it should now be running on the stock kernel.

STEP 6: Flash boot, dtbo, vendor_kernel_boot

Now that you have your stock kernel flashed and your dtbo and vendor_kernel_boot files, it’s time to flash the boot image. This can be done using Fastboot:

1. Connect your device to your computer using a USB cable.

2. Open a command prompt or terminal on your computer.

3. Navigate to the folder where you downloaded the boot image file.

4. Type the following command into the command prompt or terminal window:

fastboot flash boot boot.img
fastboot flash dtbo dtbo.img
fastboot flash vendor_kernel_boot vendor_kernel_boot.img

STEP 7: Flash vendor_dlkm in FastbootD

If you want to go back to the stock kernel from a custom one, you will need to flash the vendor_dlkm in FastbootD. This can be done by running the following command:

fastboot reboot fastboot

Now paste the Follwoing Command In CMD Window to Flash vendor_dlkm
fastboot flash vendor_dlkm vendor_dlkm.img
Now Simply Reboot your Device by Executing The below given command:
fastboot reboot

Once the vendor_dlkm has been flashed, you will need to reboot your device. After your device reboots, it should be running on the stock kernel.

Conclusion

We hope this guide on how to go back to the stock kernel from a custom kernel on the Pixel 7 Pro was helpful. If you have any further questions or concerns, please feel free to reach out to us in the comments below.

Leave a Comment