Eu estou fazendo um pacote instalável via Cydia que vai escrever com.intelliborn.intelliscreenx para isso:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Hidden</key>
<array>
<string>libactivator</string>
<string>com.aaronash.BarrelSettings</string>
<string>com.iptm.bigboss.sbsettings</string>
</array>
</dict>
</plist>
Mas eu não sei como escrever no script postinst para onde ele é adicionado corretamente e fazer o script postrmv onde ele é removido corretamente.
O hidden.plist deve ficar assim depois de instalar este pacote:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Hidden</key>
<array>
<string>libactivator</string>
<string>com.aaronash.BarrelSettings</string>
<string>com.iptm.bigboss.sbsettings</string>
<string>com.intelliborn.intelliscreenx</string>
</array>
</dict>
Veja como meu postinst & Scripts postrmv:
postinst
#!/bin/bash
declare -a cydia
cydia=($CYDIA)
if [[ $1 == install ]]; then
if [[ ${CYDIA+@} ]]; then
eval "echo 'finish:restart' >&${cydia[0]}"
fi
fi
echo -e "\n\<string>com.intelliborn.intelliscreenx</string>\n" >> /var/mobile/Library/LibHide/hidden.plist
exit 0
postrmv
#!/bin/bash
echo " " >> /var/mobile/Library/LibHide/
sed -i 's/<string>com.intelliborn.intelliscreenx</string>\n" >> /var/mobile/Library/LibHide/hidden.plist
declare -a cydia
cydia=($CYDIA)
if [[ $1 == install ]]; then
if [[ ${CYDIA+@} ]]; then
eval "echo 'finish:restart' >&${cydia[0]}"
fi
fi
exit 0