Skip to content

Commit

Permalink
Merge pull request #2 from shizhx/feat_support_kernelsu
Browse files Browse the repository at this point in the history
feat: support KernelSU
  • Loading branch information
shizhx authored Aug 26, 2023
2 parents 9d5f34a + 7f247bc commit 2803e30
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
LogDisablerLite.zip
LogDisablerLite*.zip
*.so
10 changes: 9 additions & 1 deletion src/customize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -138,4 +138,12 @@ fi
mkdir -p "${MODPATH}/${TARGET_DIR}" || abort "Failed to create ${MODPATH}/${TARGET_DIR}"
cp -f "${TMPDIR}/${PATCHED_LIB}" "${MODPATH}/${TARGET_DIR}/${TARGET_LIB}" || abort "Failed to copy patched lib to target"

ui_print "Success to patch ${TARGET_DIR}/${TARGET_LIB}, reboot to take effect!"
ui_print "Success to copy patched liblog.so to ${MODPATH}/${TARGET_DIR}/${TARGET_LIB}"

# set SELinux context on KernelSU
if [ "$KSU" ]; then
chcon "u:object_r:system_lib_file:s0" "${MODPATH}/${TARGET_DIR}/${TARGET_LIB}"
ui_print "Success to set SELinux context for liblog.so"
fi

ui_print "Reboot to take effect!"
4 changes: 2 additions & 2 deletions src/module.prop
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
id=logddisablerlite
name=LogDisablerLite
version=1.3
versionCode=4
version=1.4
versionCode=5
author=shizhx@github
description=Disable Logging to logcat

0 comments on commit 2803e30

Please sign in to comment.