Lol. Yes, at least you can play with xposed. Idk why the toggle script doesnt work on yours....
i find it odd you can manually rename folder, but get some kind of shell error using automate...
unless your device has some kind of security setting or app preventing it, the script should work.
Im running lollipop 5.02.... which version android are you running?
The script just uses check if folder exists, rename /data/data/folder_name commands. And toast messages. Thats all.
Script requires ( in automate ) 2 installed privileges: superuser & read sd card.
are these privileges installed & enabled for the toggle script?
Perhaps the script cant read root/system folders/files and gives error.
* in addition, your supersu must grant automate root privileges also.
there is no cd command being used.... i will research your error....
Question? Are you using SuperUser or SuperSU app, or are you running a custom ROM?
Im running SuperSU on stock rom.... i read superuser or built-in superuser on custom roms may not work well with automate. If you dont have SuperSU, perhaps try that.
Another thing that could cause java.lang.IllegalStateException errors is if you have multiple profiles on android... you must be primary user.