I am developing an iOS application for jailbroken iPhone. Being a launch daemon it needs to run when the phone starts. So here is the problem, the plist for the daemon has been placed in /System/Library/LaunchDaemons, and the .app in /Applications, by Cydia, when the package is downloaded. When the phone is rebooted the application does NOT run.
Am I missing something or doing something wrong?
P.S. The application runs perfectly on phone reboot, when I manually place the files using SSH.
Found the problem! Permissions of both the .app and the .plist get changed from root user to normal user when the application is packaged to a .deb for Cydia upload.
The solution:Add a script to change the permissions to root when the package is installed in the device.