Fix debug traces
Test application with correct permissions in manifest (privileged app). Also, application package generation in the Makefile