mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-12-03 09:51:53 +00:00
Use our own function to parse int
This commit is contained in:
@@ -120,7 +120,7 @@ static void main_daemon() {
|
||||
parse_prop_file("/system/build.prop", [](auto key, auto val) -> bool {
|
||||
if (key == "ro.build.version.sdk") {
|
||||
LOGI("* Device API level: %s\n", val.data());
|
||||
SDK_INT = atoi(val.data());
|
||||
SDK_INT = parse_int(val);
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user