No, there is no application that can run from another place on the internal storage. No app is allowed to be installed in another place except the APP folder. The factory reset wipes Data and APP folder automatically. There is no known application to install itself in deep layers of the operating system to avoid deletion upon using Factory Reset.