Skip to content
This repository has been archived by the owner on Feb 2, 2021. It is now read-only.

Commit

Permalink
fzip: adding support to flash "build.prop"
Browse files Browse the repository at this point in the history
Signed-off-by: sunilpaulmathew <sunil.kde@gmail.com>
  • Loading branch information
sunilpaulmathew committed Jan 20, 2018
1 parent ecd4815 commit e31c9bf
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/output/
/working/
*.apk
*.img
*.zip
Expand Down
1 change: 1 addition & 0 deletions META-INF/com/google/android/updater-script
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ set_perm_priv5(1000, 1000, 0644, "priv-apk5");
# set_perm_jar(1000, 1000, 0644, "/system/framework/./**/*.jar");
# set_perm-bootanimation(1000, 1000, 0644, "/system/media/bootanimation.zip");
# set_perm-fwr(1000, 1000, 0644, "/system/framework/framework-res.apk");
# set_perm-buildprop(1000, 1000, 0644, "/system/build.prop");
run_program("/sbin/busybox", "umount", "/system");
ui_print(" ");
ui_print("Installation complete, enjoy !");
Expand Down
8 changes: 8 additions & 0 deletions fzip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,14 @@ else
fi
fi

# build.prop

if [ -e $PROJECT_ROOT/working/build.prop ]; then
sed -i "s;# set_perm-buildprop;set_perm;" $PROJECT_ROOT/META-INF/com/google/android/updater-script;
echo -e $COLOR_GREEN"\n copying 'build.prop' into 'system/' directory... \n"$COLOR_GREEN
cp $PROJECT_ROOT/working/build.prop $PROJECT_ROOT/system/
fi

# lib
if [ "y" == "$LIBRARY" ]; then
sed -i "s;# set_perm_lib;set_perm;" $PROJECT_ROOT/META-INF/com/google/android/updater-script;
Expand Down

0 comments on commit e31c9bf

Please sign in to comment.