+
     Gi  c                   sP    ^ RI t ^ RIt^ RIHt ^ RIHt RtRt^t^t	^ t
^t^tR tR# )i    N)helpers)GLibzlineageos.waydroid.IUserMonitorZwaydroidusermonitorc                 s  a aaaa \         P                  P                  S 4        \        P                  ! R S P
                  ,           S P                  S P                  4      oVVV3R lpV VV3R lpSP                  \        V4      o\        P                  ! 4       S n        V! 4        SP                  V4      pV'       d/   S P                  P                  4        SP!                  V4       >R# \"        P$                  ! RP'                  V4      4       R#   \         d+    \        P                  ! R S P
                  ,           4      o Li ; i)z/dev/c                 s  < \         P                  ! R P                  \        V4      4       V P	                  4       pS
P                  4       pV\        8X  d0   VP                  4       w  rVS! V4       VP                  ^ 4       V^ 3# V\        8X  dS   VP                  4       w  rVVP                  4       pVP                  4       w  rXS	! WgV4       VP                  ^ 4       V^ 3# VR3# )z{}: Received transaction: {}iay)loggingZdebugformatSERVICE_NAMEZinit_readerZ	new_replyTRANSACTION_userUnlockedZ
read_int32Zappend_int32TRANSACTION_packageStateChangedZread_string16)ZreqZcodeZflagsZreaderZlocal_responsestatusZarg1Zarg2Zarg3packageStateChangedresponseuserUnlockeds   &&&      2/usr/lib/waydroid/tools/interfaces/IUserMonitor.pyresponse_handlerZ%add_service.<locals>.response_handler   s    *11,E	G"!++-++!,,.LF''* q   44!,,.LF'')D!,,.LFD1''* q   "6))    c                  s   < SP                  4       '       dg   SP                  \        S4      p V '       dG   \        P                  ! R P                  \        V 4      4       SP                  P                  4        R# R# R# )zFailed to add service {}: {}N)Z
is_presentZadd_service_syncr   r   errorr   userMonitorLoopZquit)r   argsr	   serviceManagers    r   binder_presenceZ$add_service.<locals>.binder_presence,   sb    $$&&#44\8LF<CC &* +$$))+  'r   z"Failed to add presence handler: {}N)r    ZdriversZloadBinderNodesgbinderZServiceManagerZBINDER_DRIVERZSERVICE_MANAGER_PROTOCOLZBINDER_PROTOCOLZ	TypeErrorZnew_local_object	INTERFACEr   ZMainLoopr   Zadd_presence_handlerZrunZremove_handlerr   r   r   )r   r
   r   r   r   r   r	   r   s   fff   @@r   add_servicer      s   OO##D)N //$:L:L0LdNkNkmq  nB  nB  C!(, ..y:JKH==?D00AF  "%%f-:AA&IJS  N //$:L:L0LMNs   =D 2EE)r   r   Ztoolsr    Zgi.repositoryr   r   r   r   r   ZPACKAGE_ADDEDZPACKAGE_REMOVEDZPACKAGE_UPDATEDr   ) r   r   <module>r      s>        .	$ "# -Kr   