Browse Source

neversleep: Add README to NEVER USE THIS

eh also satisfy my ocd and cleanup a lil
master
Felix 1 year ago
parent
commit
9522e58f5a
  1. 1
      neversleep/Android.bp
  2. 6
      neversleep/README.md
  3. 1
      neversleep/sepolicy/sepolicy.mk
  4. 1
      neversleep/sepolicy/vendor/file_contexts
  5. 1
      neversleep/sepolicy/vendor/neversleep.te
  6. 1
      neversleep/sepolicy/vendor/property.te
  7. 1
      neversleep/sepolicy/vendor/property_contexts
  8. 1
      neversleep/sepolicy/vendor/shell.te
  9. 1
      neversleep/sepolicy/vendor/system_app.te
  10. 1
      neversleep/sepolicy/vendor/vendor_init.te

1
neversleep/Android.bp

@ -4,4 +4,3 @@ cc_prebuilt_binary {
srcs: ["neversleep.sh"],
init_rc: ["neversleep.rc"],
}

6
neversleep/README.md

@ -0,0 +1,6 @@
# NeverSleep
In case you want to annoy Angelo.
Don't actually use this, please, this was a stopgap solution to a problem we
later solved properly.

1
neversleep/sepolicy/sepolicy.mk

@ -1,3 +1,2 @@
BOARD_VENDOR_SEPOLICY_DIRS += \
$(LOCAL_VENDOR_PATH)/neversleep/sepolicy/vendor

1
neversleep/sepolicy/vendor/file_contexts

@ -1,3 +1,2 @@
# HACK: Little helper script to set default neversleep option
/(system/vendor|vendor)/bin/neversleep\.sh u:object_r:neversleep_exec:s0

1
neversleep/sepolicy/vendor/neversleep.te

@ -11,4 +11,3 @@ allow neversleep {
vendor_shell_exec
vendor_toolbox_exec
}:file rx_file_perms;

1
neversleep/sepolicy/vendor/property.te

@ -1,2 +1 @@
type vendor_neversleep_prop, property_type;

1
neversleep/sepolicy/vendor/property_contexts

@ -1,3 +1,2 @@
persist.vendor.neversleep u:object_r:vendor_neversleep_prop:s0
persist.vendor.neversleep. u:object_r:vendor_neversleep_prop:s0

1
neversleep/sepolicy/vendor/shell.te

@ -1,2 +1 @@
set_prop(shell, vendor_neversleep_prop)

1
neversleep/sepolicy/vendor/system_app.te

@ -1,3 +1,2 @@
# ExtendedSettings "Deep sleep" preference
set_prop(system_app, vendor_neversleep_prop)

1
neversleep/sepolicy/vendor/vendor_init.te

@ -1,4 +1,3 @@
# Write to /sys/power/wake_lock and wake_unlock for neversleep
# avc: denied { block_suspend } for comm="init" capability=36 scontext=u:r:vendor_init:s0 tcontext=u:r:vendor_init:s0 tclass=capability2 permissive=1
allow vendor_init self:capability2 block_suspend;

Loading…
Cancel
Save