This script essentially just scrapes avc denials from logcat, and forms sepolicy rules to fix them.
If you don't have python3 on your android device you can use your PC. Clone the repo to your computer, connect your phone to it, and run form_rules.sh
. Install python3 and adb beforehand. Then just do what the script says.
If you use something like Termux and can get python3 on your device, you can use form_rules_phone.sh for direct usage. All you have to do is clone the repo and execute it.
git clone https://github.com/uditkarode/ADF.git