Skip to content

Commit

Permalink
Base variables on built props
Browse files Browse the repository at this point in the history
Previously it was crawling extracted images which isn't needed anymore since it is run after the props has been built.
  • Loading branch information
0x11DFE committed Feb 15, 2024
1 parent 3438d4a commit 7d68d05
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions build_magisk_module.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,13 @@

# Extract device information
result_base_name=$(basename "$dir")
vendor_path="$dir/extracted/vendor/build.prop"
system_path="$dir/extracted/system/system/build.prop"

device_name=$(grep_prop "ro.product.model" "$system_path")
device_build_id=$(grep_prop "ro.build.id" "$system_path")
device_code_name=$(grep_prop "ro.product.vendor.name" "$vendor_path")
device_build_android_version=$(grep_prop "ro.vendor.build.version.release" "$vendor_path")
device_build_security_patch=$(grep_prop "ro.vendor.build.security_patch" "$vendor_path")
system_prop_path="$dir/system.prop"

device_name=$(grep_prop "ro.product.model" "$system_prop_path")
device_build_id=$(grep_prop "ro.build.id" "$system_prop_path")
device_code_name=$(grep_prop "ro.product.vendor.name" "$system_prop_path")
device_build_android_version=$(grep_prop "ro.vendor.build.version.release" "$system_prop_path")
device_build_security_patch=$(grep_prop "ro.vendor.build.security_patch" "$system_prop_path")
device_code_name_title=${device_code_name^}

# Construct the base name
Expand Down

0 comments on commit 7d68d05

Please sign in to comment.