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:
2 files changed
+2
-2
No files matched your search
@@ -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;
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
# Dummy file; update-binary is a shell script (DO NOT CHANGE)
|
||||
#
|
||||
#
|
||||
# AK_BASE_VERSION=20230120
|
||||
# AK_BASE_VERSION=20230208
|
||||
Reference in new issue
Block a user