add permissions for media
move media engine init to OPHelper in sdk