part 8: give Gallery permission to use the hardware video decoder