Default [Q] set_perm_recursive with init.d script?

I can't figure out how to set 777 permissions to a folder and every folder and file inside it using a init.d script..

Folders are /data/AndroidData/ and /data/obb/
Phone: Sony Xperia U
Rooted?: Yes
ROM: GingerBeanSS v3.5
Bootloader: Locked (Not-unlockable)