Replacing permissions with macros

Replacing all the permissions with macros
Allow all domians except untrusted_app to access diag_device
Restrict untrusted_app to access diag_device

Change-Id: Ibad902746f25a23f10840fae3c0bac65b2ff74e0
95 files changed