Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions Magisk Template/customize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,20 @@ if [ -d "$MODPATH/system/vendor/lib64" ]; then
set_perm_recursive $MODPATH/system/vendor/lib64 0 0 0755 0644 u:object_r:same_process_hal_file:s0
fi

# Ensure specific GPU library subdirectories have the correct context (redundant but safe for MagiskHide)
if [ -d "$MODPATH/system/vendor/lib/egl" ]; then
set_perm_recursive $MODPATH/system/vendor/lib/egl 0 0 0755 0644 u:object_r:same_process_hal_file:s0
fi
if [ -d "$MODPATH/system/vendor/lib/hw" ]; then
set_perm_recursive $MODPATH/system/vendor/lib/hw 0 0 0755 0644 u:object_r:same_process_hal_file:s0
fi
if [ -d "$MODPATH/system/vendor/lib64/egl" ]; then
set_perm_recursive $MODPATH/system/vendor/lib64/egl 0 0 0755 0644 u:object_r:same_process_hal_file:s0
fi
if [ -d "$MODPATH/system/vendor/lib64/hw" ]; then
set_perm_recursive $MODPATH/system/vendor/lib64/hw 0 0 0755 0644 u:object_r:same_process_hal_file:s0
fi

ui_print " - Success 🌍"
ui_print " "
ui_print " - Final step for GPU Cache Cleaner by tryigitx"
Expand Down
5 changes: 5 additions & 0 deletions Magisk Template/system.prop
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,8 @@ ro.zygote.disable_gl_preload=true
# Disable ANGLE driver loading by clearing the rules
# This ensures native Adreno drivers are used instead of ANGLE
debug.angle.rules=""

# Force Adreno driver usage for EGL and Vulkan
# This ensures the system explicitly looks for adreno drivers (vulkan.adreno.so, etc)
ro.hardware.vulkan=adreno
ro.hardware.egl=adreno
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,6 @@ You will need to learn how to use the **Adreno Profile Tools**. You can also dow

## Known Issues
- [x] Kernelsu compatibility
- [ ] Magiskhide map conflict (improved with better permission structure and properties)
- [x] Magiskhide map conflict (improved with better permission structure and properties)
> [!NOTE]
> The prop code `ro.zygote.disable_gl_preload=true` helps fix the magiskhide EGL issue. Additional compatibility properties have been added to `system.prop`.
28 changes: 28 additions & 0 deletions tests/verify_prop.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/bash

PROP_FILE="Magisk Template/system.prop"

echo "Checking properties in $PROP_FILE..."

if [ ! -f "$PROP_FILE" ]; then
echo "FAIL: $PROP_FILE not found"
exit 1
fi

REQUIRED_PROPS=(
"ro.zygote.disable_gl_preload=true"
"ro.hardware.vulkan=adreno"
"ro.hardware.egl=adreno"
)

RET=0
for prop in "${REQUIRED_PROPS[@]}"; do
if grep -Fq "$prop" "$PROP_FILE"; then
echo "PASS: Found $prop"
else
echo "FAIL: Missing $prop"
RET=1
fi
done

exit $RET