Skip to content

Commit

Permalink
Add sys.slpi.firmware.version property.
Browse files Browse the repository at this point in the history
Bug: 38240024
Test: Verified value of sys.spli.firmware.version property.  See details in
testing done comment in
https://googleplex-android-review.git.corp.google.com/2442584 .
Change-Id: Ief04cbfac4efd71c8ff22057fc286645fbadf44d
  • Loading branch information
estaats-google committed Jun 23, 2017
1 parent 32f9c61 commit 44f0902
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions init.qcom.devstart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@
echo 1 > /sys/kernel/boot_adsp/boot
echo 1 > /sys/kernel/boot_slpi/boot
setprop sys.qcom.devup 1

version=`grep -ao "OEM_IMAGE_VERSION_STRING[ -~]*" \
/vendor/firmware/slpi_v2.b04 | \
sed -e s/OEM_IMAGE_VERSION_STRING=SLPI.version.// -e s/\(.*\).//`
setprop sys.slpi.firmware.version "$version"
3 changes: 3 additions & 0 deletions sepolicy/vendor/init-devstart-sh.te
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ init_daemon_domain(init-qcom-devstart-sh)
allow init-qcom-devstart-sh vendor_shell_exec:file rx_file_perms;
allow init-qcom-devstart-sh vendor_toolbox_exec:file rx_file_perms;

# execute grep
allow init-qcom-devstart-sh vendor_file:file rx_file_perms;

# Set the sys.qcom.devup property
set_prop(init-qcom-devstart-sh, system_prop)

Expand Down

0 comments on commit 44f0902

Please sign in to comment.