Fix the permissions prompt selection

Change-Id: I6dac7960d32c381158eaf4f8be7c454673f66fdb
diff --git a/deploy.py b/deploy.py
index 31495d6..d70e26d 100755
--- a/deploy.py
+++ b/deploy.py
@@ -41,11 +41,12 @@
 
 # Grant the permissions through the UI
 def configure_perms(dut):
-    prompt = dut(resourceId='android:id/content') \
+    dut() \
         .child_by_text('You need to grant access for the Permissions Group '
                 'Calendar Camera Contacts Microphone SMS Storage Telephone Location',
-                className='android.widget.LinearLayout') \
-        .child(text='OK', className='android.widget.Button').click()
+                resourceId='android:id/content') \
+        .child(text='OK', className='android.widget.Button') \
+        .click()
 
     # Accept any permission that is asked for
     prompt = dut(resourceId='com.android.packageinstaller:id/permission_allow_button',