After many hours of screaming and shouting (not really), I finally found a fix.
There are some boot images out there that should fix it, but in my case they didn't. So I decided to find a way and apply the fix myself.
You'll probably lose all your data with this
I used Ubuntu 18.04 for this. Since one of the packages I used required Linux and I'm not hipster enough to buy a Mac.
Since applying the fix yourself requires you to unpack en repack the boot image, I used the GIT repository at https://github.com/cfig/Android_boot_image_editor.
They tested it with the original Nexus 5x factory image, so I decided to download it (MDA89E). (https://developers.google.com/android/images#bullhead)
Step 1. Download Factory Image and unpack it (also unpack the zip file within in (containing the actual factory image)
Step 2. Acquire the Android Platform Tools.
sudo apt install android-sdk
Step 3. Acquire Java
sudo apt install default-jre
Step 4. Clone the repository mentioned above
git clone https://github.com/cfig/Android_boot_image_editor.git --depth=1
Step 5. Follow the instructions! (You'll need Android Studio too)
Step 6. Open the bootimg.json file and make sure the following commands are present in the info > cmdline value.
"cmdline" : "console={** other commands are here **} androidboot.hardware=bullhead boot_cpus=0-3 maxcpus=4 cpu_max_a53=1632000 cpu_max_a57=0",
The boot_cpus
command is probably already present. change its value to 0-3
and make sure the maxcpus=4
, cpu_max_a53=1632000
cpu_max_a57=0
are present.
Step 7. Repack your image (Follow instructions!)
sudo ./gradlew pack
Step 8. Move the boot.img.signed file to the unpacked factory image (The actual image mentioned in step 1). So you should overwrite the existing boot.img with the newly packed boot.img.signed (rename it to boot.img and throw away the original)
Step 9. Start ADB server (Maybe reconnect your devices afterwards)
adb devices
Step 10. Make sure your device is connected and visible for 'fastboot devices'. That means it should be in the fastboot mode (Power button + Volume down while booting)
Step 11. Let's go! (All these files are (now) present in the freshly downloaded factory image.
fastboot unlock flashing
fastboot erase userdate
fastboot flash bootloader {bootloader-image.img}
fastboot reboot bootloader
fastboot flash radio {radio-image.img}
fastboot reboot bootloader
Step 12. Flash the rest
fastboot flash boot boot.img
fastboot flash cache cache.img
fastboot flash recovery recovery.img
fastboot flash system system.img
fastboot flash userdata userdata.img
fastboot flash vendor vendor.img
fastboot reboot
Hope this helps anyone.