firmware_loader: Add /vendor/firmware and /odm/firmware to search paths

* Add both /vendor/firmware and /odm/firmware to firmware loader search
  paths because Oplus like to store their firmware in /odm, also add
  the /vendor path so we don't need to specify /vendor/firmware in
  firmware_class.path boot arg.
This commit is contained in:
j7b3y 2025-01-13 13:57:30 +09:00
parent a83e8e51cf
commit 8744e80bcb

View File

@ -481,12 +481,12 @@ static const char * const fw_path[] = {
fw_path_para[7],
fw_path_para[8],
fw_path_para[9],
"/vendor/firmware",
"/odm/firmware",
"/lib/firmware/updates/" UTS_RELEASE,
"/lib/firmware/updates",
"/lib/firmware/" UTS_RELEASE,
"/lib/firmware",
"/odm/firmware",
"/vendor/firmware",
};
static char strpath[PATH_SIZE * CUSTOM_FW_PATH_COUNT];