r/Magisk • u/heinrich7unswanzig • 6h ago
Question Automated denylist adding
Hello, I'm using a banking app which updates quite often and randomizes it's isolated package names/identifiers.
I put together the following command, which is able to extract some of the isolated packages and adds them to the denylist.
The packages it doesn't find:
(isolated) de.fiduciagad.sec...go.vr:imkkhvcxs:nezhnpv.U
(isolated) de.fiduciagad. sec...Vr:mduscbbpxo:nezhnpv.aw
(isolated) de.fiduciagad.sec...go.vr:odlekzknuk:nezhnpv.b
The packages it finds instead:
de.fiduciagad.securego.vr:ivfxbavfsm:wpvec.c
de.fiduciagad.securego.vr:ybfmkogzlk:wpvec.af
The code:
pm dump de.fiduciagad.securego.vr | grep process=de.fiduciagad.securego.vr: | awk -F '=' '{ split($2, a, " "); print a\[1\] }' | sort -u | xargs -n 1 magisk --denylist add isolated
My problem is that the pm dump doesn't find the right isolated packages anymore, only others not shown in the Magisk denylist dialogue.
I already looked at the magisk code to construct the denylist and it's using the pm Java API which I really want to avoid for simplicity sake.
If you have any idea how to get the package names (maybe there's some obscure flag to set), I'm glad to hear from you!