22 lines
579 B
Shell
22 lines
579 B
Shell
#!/system/bin/sh
|
|
|
|
remove_redundancies() {
|
|
local SED=$(which gnused)
|
|
[ -z "$SED" ] && return
|
|
|
|
local ROM_SDK=$(getprop "orangefox.rom.sdk");
|
|
[ -z "$ROM_SDK" ] && return
|
|
|
|
# remove the app manager if SDK version > Android 10
|
|
if [ $ROM_SDK -gt 29 ]; then
|
|
echo "I: OrangeFox: Android 11+ ROM - removing the App Manager"
|
|
local XML=/twres/pages/advanced.xml
|
|
# this depends on certain lines not changing in the xml file - else a bootloop may result
|
|
$SED -i '/name="{@appmgr_title}"/I,+3 d' $XML
|
|
rm -f /sbin/aapt
|
|
fi
|
|
}
|
|
|
|
remove_redundancies;
|
|
exit 0;
|
|
#
|