Added debug and manifest permissions.