Help needed, installing stock firmware on a LG / Google Nexus 5X (bullhead)”

OK … of course this is untested, but your it seems that your “older” phone and build is not recognising the modern fastboot which comes with this adb version.

You might want to sleep on whether you think this is a good idea, but seems fairly safe to me as the phone appears unusable as is … maybe you think this would only be a last resort (??).

Please open flash-all.sh in a text editor and SaveAs flash-all-original.sh in the original location.

Below is a modified flash-all.sh where there is no check for fastboot version.


Should you choose to proceed

  • copy and paste my modified flash-all.sh below into your text editor
  • and SaveAs flash-all.sh in the original location.

Review: you have replaced the Google flash-all.sh by the aibd flash-all.sh.

flash-all.sh without fastboot version check
#!/bin/sh

# Copyright 2012 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#### Edited by aibd - hash out lines 17,18,19,20
#if ! grep -q dtbo.sig $(which fastboot); then
#  echo "fastboot too old"
#  exit 1
#fi
fastboot flash bootloader bootloader-bullhead-bhz32c.img
fastboot reboot-bootloader
sleep 5
fastboot flash radio radio-bullhead-m8994f-2.6.42.5.03.img
fastboot reboot-bootloader
sleep 5
fastboot -w update image-bullhead-opm7.181205.001.zip

Now run with the modified script by

chmod +x flash-all.sh 

followed by

./flash-all.sh