Commit Graph

5 Commits

Author SHA1 Message Date
LuK1337
0c92f3709f sdm845-common: Check strncmp return value properly
* Apparently Android's strcmp returns <0 on mismatched length.
* Also it's not like this check was smart anyway, we should be checking == 0.

Change-Id: I34d8a79f3c73c293d16a15736ff32c2223f45144
2020-08-23 21:13:55 +01:00
Bruno Martins
583ba0b070 sdm845-common: Move back to TZ version assertions
Since Xiaomi stopped providing developer builds, this now looks
a more generic and at the same time accurate way of checking
if the needed firmware is installed in the target devices.

Change-Id: Ia057ae1a34746a5cc47bd29d1bac5fb7013a1004
2020-04-04 23:27:40 +02:00
Bruno Martins
2aefff1da8 sdm845-common: Drop vendor image asserts
Change-Id: I5c4434cb1568ea34101e786e2ec680d4ea7f71eb
2019-08-01 00:35:48 +01:00
Akhil Narang
9c4a6ca5ec sdm845-common: Additionally assert on vendor build date and VNDK version
This adds vendor image version assertions, so that the OTA package
is not installed unless the recommended vendor (and matching firmware)
or newer is present in the device.

The checks that are now in place are: modem timestamp, vendor build date
(in UTC format) and corresponding VNDK version.

Change-Id: I1aef57d03ee86040f2eb3a02f79cc3f00ae9cda3
Signed-off-by: Akhil Narang <akhilnarang.1999@gmail.com>
2018-11-18 16:20:47 +01:00
TheScarastic
efc832d629 sdm845-common: Add assertions on modem version
* Based off android_device_xiaomi_msm8996-common

Change-Id: Ib578c77492cc3060915b12fad10d023b3ab38875
2018-11-18 15:01:07 +00:00