Backend: correct build.prop locations for getprop replacement

- system_ext and odm only have build.prop in /<partition>/etc
- product may have build.prop in /product and/or /product/etc
This commit is contained in:
osm0sis committed 2023-02-08 12:56:54 -04:00
1 parent c2e33f95d1
commit 398b9631df
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -209,7 +209,7 @@ setup_env() {
if [ ! "$(getprop 2>/dev/null)" ]; then
getprop() {
local propdir propfile propval;
for propdir in / /system_root /system /vendor /product /system_ext /odm; do
for propdir in / /system_root /system /vendor /product /product/etc /system_ext/etc /odm/etc; do
for propfile in default.prop build.prop; do
if [ "$propval" ]; then
break 2;
+1 -1
View File
@@ -3,4 +3,4 @@
# Dummy file; update-binary is a shell script (DO NOT CHANGE)
#
#
# AK_BASE_VERSION=20230120
# AK_BASE_VERSION=20230208