+
     Gi  c                   s    ^ RI t^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RI	t	^ RI
t
]P                  ^ ,          tRtR tR tR tR tR tR tR# )	i    Nzwaydroid-bugreport.tar.xzc           	      s    \        V R 4      ;_uu_ 4       p\        P                  ! R\        R.V\        P
                  RR7      uuRRR4       #   + '       g   i     R# ; i)w+sudologcatNstdoutstderrstdin)open
subprocessPopenWAYDROIDsysr   output_pathfd   & ,/usr/lib/waydroid/tools/actions/bugreport.pyr   r      sC    	k4	 	 B8 <RPSPZPZbfg 
!	 	 	 s   /AA 	c           	      s    \        VR 4      ;_uu_ 4       p\        P                  ! . ROV ,           W"RR7      uuRRR4       #   + '       g   i     R# ; i)r    Nr   )r   dmesgz-T)r   r   r	   )Zparamsr   r   s   && r   r   r      s9    	k4	 	 B 7& @^bc 
!	 	 	 s   "AA	c           
      s    \        V R 4      ;_uu_ 4       p\        P                  ! \        RR.WRRR7      uuRRR4       #   + '       g   i     R# ; i)r    sessionZstartNT)r   r   r   Zstart_new_session)r   r   r	   r
   r   r   r   waydroid_sessionr      s=    	k4	 	 B9g >r\`txy 
!	 	 	 s   !AA	c                  sD    \         P                  P                  R 4       R# )z[2KN)r   r   write     r   
clear_liner      s    JJZ r   c                 s   ^2pRp. R	Op^ p^ p WP8  d   W4\        V4      ,          ,          p\        W,          V ,          4      p\        P                  P	                  RRV,           RW,
          ,           RV R24       \        P                  P                  4        \        P                  ! V4       WR,          pV^,          pK  \        4        R#   \         d    \        4        \        R4        R# i ; i)
i2   g?Z[Z=Z z] ZzInterrupted.N)Z|Z/Z-Z\)ZlenZintr   r   r   ZflushtimeZsleepr   ZKeyboardInterruptprint)ZsecondsZ
bar_lengthZtime_incrementZspinner_charsZ	iterationZ
time_sleptZspinner_charZfilled_lengths   &       r   sleep_progressr   !   s    JN)MIJ"(S5G)GHL
 77 BCMJJq}!4 5cZ=W6X5YY[\h[iiklmJJJJ~&(JNI ns   CC  C76C7c                 sL  a
a \         P                  ! 4       o\        R 4       \        R4        \        P                  ! RR.4       \        4        . p. o
T
T3R lpRp \
        P                  P                  P                  4       P                  4       pT'       gn   \        R4       TP                  \        T! R4      4      4       \        ^
4        \
        P                  P                  P                  4       P                  4       pT'       dZ   \        R4       TP                  \        T! R	4      4      4       TP                  \!        R
.T! R4      4      4       \        R4       M\        R4       \!        . T! R4      4      pT F  pTP#                  4        K  	  T F  pTP%                  4        K  	  \        R4        \&        P(                  ! \*        R^	R7      ;_uu_ 4       p. ROS
,           pT F5  p TP-                  T\.        P0                  P3                  T4      RR7       K7  	  RRR4       \<        P>                  ! S4       \        R\*         R24       R#     R# ; i  \        P                   d     ELi ; i  \        P                   d     ELi ; i  \4         d1   p	\6        P8                  ! RT R\;        T	4       24        Rp	?	K  Rp	?	ii ; i  + '       g   i     L; i  \4         d   p	T	hRp	?	ii ; i  \<        P>                  ! S4       i ; i)a"  The following information will be collected:
  - System kernel logs (kmsg)
  - Android system and user logs (logcat)
  - Waydroid container manager logs (/var/lib/waydroid/waydroid.log)
  - Waydroid configuration files (/var/lib/waydroid/*)

The information will be stored on your machine.
zBPlease authenticate as administrator in order to read system logs.r   z-vNc                 sj   < \         P                  P                  SV 4      pSP                  V4       V# )N)ospathZjoinappend)ZnameZfilelogfilestmps   & r   logfileZbugreport.<locals>.logfileO   s(    ww||C&r   z2Waydroid session not found. Trying to start one...zsession.txtz
[1mPlease try to reproduce the problem now.[0m
Waydroid will collect logs for up to 5 minutes. You may interrupt this operation earlier.
z
logcat.txtz-wz	dmesg.txtzSession did not start
zCreating archive...zw:xz)ZpresetT)ZarcnameZ	recursivezFailed to archive z: zCreated [1mz[0mi,  )z/var/lib/waydroid/waydroid.logz/var/lib/waydroid/waydroid.cfgz$/var/lib/waydroid/waydroid_base.propz/var/lib/waydroid/waydroid.propz/var/lib/waydroid/lxc) tempfileZmkdtempr   r   ZruntoolsZhelpersZipcZDBusContainerServiceZ
GetSessiondbusZDBusExceptionr   r   r   r   r   Z	terminateZwaittarfiler   TARBALLZaddr   r   ZbasenameZ	ExceptionloggingZdebugZreprshutilZrmtree)ZargsZprocsr    r   Zdmesg_processZpZtarZfilesZfZer   r   s   &         @@r   	bugreportr(   9   s   



C	   

NO~& EH
 G--##88:EEG BC%gm&<=>r	mm''<<>IIKG   	 	VGL123UD67;#789v'(b'+"67	 	  

 \\'6!44 E GGGArww'7'7':dGK  5$ 	c	OG9G
,-C   !! 		F ! GMM$6qcDG9"EFFG 54   	cs   "I% 6I- 6J	 %K6 +K#=1J%.K#2K6 %I*-JJ	J"!J"%K 	0%K	K#K 	 K##K3	.K6 2L 3K6 6LLLL L#)Ztools.configr"   r#   r&   r   r'   r   r   r$   r!   r   Zargvr
   r%   r   r   r   r   r   r(   r   r   r   <module>r)      sY       	   
   88A;
%hdz!0R.r   