android_gym/gym_android/envs/android_device.py
def _fetch_new_view_hierarchy(emulator_id):
        """
        Pull the view hierarchy from the emulator with emulator_id
        """
        os.system("adb -s {0} shell rm /sdcard/window_dump.xml".format(emulator_id))
        os.system("rm window_emulator_{0}.xml".format(emulator_id))
        os.system("adb -s {0} shell uiautomator dump".format(emulator_id))
        time.sleep(0.1)
        os.system("adb -s {0} pull /sdcard/window_dump.xml window_emulator_{0}.xml".format(emulator_id))
        time.sleep(0.1)

        Pull the view hierarchy from the emulator with emulator_id
        
Pull the view hierarchy from the emulator with emulator_id
Pull the view hierarchy from the emulator with emulator_id
def _fetch_new_view_hierarchy(emulator_id):
        os.system("adb -s {0} shell rm /sdcard/window_dump.xml".format(emulator_id))
        os.system("rm window_emulator_{0}.xml".format(emulator_id))
        os.system("adb -s {0} shell uiautomator dump".format(emulator_id))
        time.sleep(0.1)
        os.system("adb -s {0} pull /sdcard/window_dump.xml window_emulator_{0}.xml".format(emulator_id))
        time.sleep(0.1)
def _fetch_new_view_hierarchy ( emulator_id ) : os . system ( "adb -s {0} shell rm /sdcard/window_dump.xml" . format ( emulator_id ) ) os . system ( "rm window_emulator_{0}.xml" . format ( emulator_id ) ) os . system ( "adb -s {0} shell uiautomator dump" . format ( emulator_id ) ) time . sleep ( 0.1 ) os . system ( "adb -s {0} pull /sdcard/window_dump.xml window_emulator_{0}.xml" . format ( emulator_id ) ) time . sleep ( 0.1 )
Pull the view hierarchy from the emulator with emulator_id
Pull the view hierarchy from the emulator with emulator_id
"""
        Pull the view hierarchy from the emulator with emulator_id
        """
emulator_id