+
     Gi  c                   s<    ^ RI Ht ^ RIt^ RIt^ RItR tR tR tR# )i    )whichNc                st   \        R4      '       g   \        R4      h\        P                  P                  P                  V RR.4       \        4       pV'       g   \        R4      h\        P                  P                  P                  V RRV.4       \        P                  ! RP                  V4      4       R# )z
Creates an android debugging connection from the host system to the
Waydroid device, if ADB is found on the host system and the device
has booted.
adbCould not find adbzstart-serverz2Unknown container IP address. Is Waydroid running?Zconnectz4Established ADB connection to Waydroid device at {}.N)
r    RuntimeErrortoolshelpersrunuserget_device_ip_addressloggingZinfoZformatZargsZip   & &/usr/lib/waydroid/tools/helpers/net.pyadb_connectr      s     <</00 
MM4%!89		 BOPP	MM4%B!78LLGNNrRS    c                 s    \        R 4      '       g   \        R4      h\        4       pV'       g   \        R4      h\        P                  P
                  P                  V R RV.4       R# )r   r   z8Unknown container IP address. Was Waydroid ever running?Z
disconnectN)r    r   r   r   r   r   r   r
   r   r   adb_disconnectr      sO    <</00		 BUVV	MM4%r!:;r   c                  s    R p  \        V 4      ;_uu_ 4       p\        P                  ! RVP                  4       4      P	                  4       P                  4       uuRRR4       #   + '       g   i     R# ; i    R# ; i)z&/var/lib/misc/dnsmasq.waydroid0.leasesz(\d{1,3}\.){3}\d{1,3}\sN)ZopenreZsearchZreadZgroupZstrip)Z
lease_fileZfs     r   r   r   &   sX    9J*997BHHJPPR s)   A7 AA#
A7 #A4	.A7 4A7 7A<)	Zshutilr    Ztools.helpers.runr   r	   r   r   r   r   ) r   r   <module>r      s#       	T(<r   