Inline permission methods from AbstractDaemonTest Change-Id: Ia2cc6bc74cfa16ba334f9bc4ad21821bf7657489