Diff
checker
Texte
Texte
Images
Documents
Excel
Dossiers
Legal
Enterprise
Application de bureau
Prix
Se connecter
Télécharger Diffchecker Desktop
Comparer le texte
Trouver la différence entre deux fichiers texte
Outils
Historique
Affichage
Vue
Divisé
Unifié
Éditeur live
Masquer les espaces
Cacher identiques
Sans retour à la ligne
Niveau de précision
Intelligent
Syntaxe
Aucun
Modifier l’apparence
Traitement
Ignorer
Transformer le texte
Aller au premier écart
Modifier l'entrée
Diffchecker Desktop
La façon la plus sécurisée d'utiliser Diffchecker. Obtenez l'application Diffchecker Desktop : vos diffs ne quittent jamais votre ordinateur !
Obtenir Desktop
Untitled diff
Créé
il y a 8 ans
Le diff n'expire jamais
Effacer
Exporter
Partager
Expliquer
142 suppressions
Lignes
Total
Supprimé
Caractères
Total
Supprimé
Pour continuer à utiliser cette fonctionnalité, passez à
Diff
checker
Pro
Voir les prix
168 lignes
Copier tout
15 ajouts
Lignes
Total
Ajouté
Caractères
Total
Ajouté
Pour continuer à utiliser cette fonctionnalité, passez à
Diff
checker
Pro
Voir les prix
42 lignes
Copier tout
[adb.adb_commands] Now inside def Shell(self, command, timeout_ms=None) (line 378)
[adb.adb_commands] Now inside def Shell(self, command, timeout_ms=None) (line 378)
[adb.adb_commands] command: dumpsys power | grep "Display Power"
[adb.adb_commands] command: dumpsys power | grep "Display Power"
[adb.adb_commands] timeout_ms: None
[adb.adb_commands] timeout_ms: None
[adb.adb_protocol] Inside StreamingCommand(cls, usb, service, command='', timeout_ms=None) (line 518)
[adb.adb_protocol] Inside StreamingCommand(cls, usb, service, command='', timeout_ms=None) (line 518)
[adb.adb_protocol] command before type test: dumpsys power | grep "Display Power" (<class 'str'>)
[adb.adb_protocol] command before type test: dumpsys power | grep "Display Power" (<class 'str'>)
[adb.adb_protocol] cls: <class 'adb.adb_protocol.AdbMessage'>
[adb.adb_protocol] cls: <class 'adb.adb_protocol.AdbMessage'>
[adb.adb_protocol] usb: <adb.common.TcpHandle object at 0x7fb494cf5c18>
[adb.adb_protocol] usb: <adb.common.TcpHandle object at 0x7fb494cf5c18>
[adb.adb_protocol] service: b'shell'
[adb.adb_protocol] service: b'shell'
[adb.adb_protocol] command after type test: b'dumpsys power | grep "Display Power"' (<class 'bytes'>)
[adb.adb_protocol] command after type test: b'dumpsys power | grep "Display Power"' (<class 'bytes'>)
[adb.adb_protocol] timeout_ms: None
[adb.adb_protocol] timeout_ms: None
[adb.adb_protocol] Now inside def Open (line 429)
[adb.adb_protocol] Now inside def Open (line 429)
[adb.adb_protocol] destination: b'shell:dumpsys power | grep "Display Power"'
[adb.adb_protocol] destination: b'shell:dumpsys power | grep "Display Power"'
[adb.adb_protocol] cls: <class 'adb.adb_protocol.AdbMessage'>
[adb.adb_protocol] cls: <class 'adb.adb_protocol.AdbMessage'>
[adb.adb_protocol] usb: <adb.common.TcpHandle object at 0x7fb494cf5c18>
[adb.adb_protocol] usb: <adb.common.TcpHandle object at 0x7fb494cf5c18>
Copier
Copié
Copier
Copié
[adb.adb_protocol] Sending msg: <adb.adb_protocol.AdbMessage object at
0x7fb45822f860
>
[adb.adb_protocol] Sending msg: <adb.adb_protocol.AdbMessage object at
0x7fb494b63d30
>
[adb.adb_protocol] Now inside def Pack(self) (line 251)
[adb.adb_protocol] Now inside def Pack(self) (line 251)
[adb.adb_protocol] self.format: b'<6I'
[adb.adb_protocol] self.format: b'<6I'
[adb.adb_protocol] self.command: 1313165391
[adb.adb_protocol] self.command: 1313165391
[adb.adb_protocol] self.arg0: 1
[adb.adb_protocol] self.arg0: 1
[adb.adb_protocol] self.arg1: 0
[adb.adb_protocol] self.arg1: 0
[adb.adb_protocol] len(self.data)): 43
[adb.adb_protocol] len(self.data)): 43
[adb.adb_protocol] self.checksum: 3973
[adb.adb_protocol] self.checksum: 3973
[adb.adb_protocol] self.magic: 2981801904
[adb.adb_protocol] self.magic: 2981801904
[adb.adb_protocol] packed: b'OPEN\x01\x00\x00\x00\x00\x00\x00\x00+\x00\x00\x00\x85\x0f\x00\x00\xb0\xaf\xba\xb1'
[adb.adb_protocol] packed: b'OPEN\x01\x00\x00\x00\x00\x00\x00\x00+\x00\x00\x00\x85\x0f\x00\x00\xb0\xaf\xba\xb1'
[adb.adb_protocol] Now inside def Unpack (line 271)
[adb.adb_protocol] Now inside def Unpack (line 271)
[adb.adb_protocol] cls: <class 'adb.adb_protocol.AdbMessage'>
[adb.adb_protocol] cls: <class 'adb.adb_protocol.AdbMessage'>
Copier
Copié
Copier
Copié
[adb.adb_protocol] message: b'CLSE\xedk\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba'
[adb.adb_protocol] message: b'WRTE\
xf8k
\x00\x00\x01\x00\x00\x00\x1
8
\x00\x00\x00
b
\x08\x00\x00\xa8\xad\xab\xba'
[adb.adb_protocol] cmd: 1163086915
[adb.adb_protocol] arg0: 27629
[adb.adb_protocol] arg1: 1
[adb.adb_protocol] data_length: 0
[adb.adb_protocol] data_checksum: 0
[adb.adb_protocol] unused_magic: 3131880380
[adb.adb_protocol] Now inside def Read (line 296)
[adb.adb_protocol] msg: b'CLSE\xedk\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba'
[adb.adb_protocol] cmd: 1163086915
[adb.adb_protocol] arg0: 27629
[adb.adb_protocol] arg1: 1
[adb.adb_protocol] data_length: 0
[adb.adb_protocol] data_checksum: 0
[adb.adb_protocol] command: b'CLSE'
[adb.adb_protocol] expected_cmds: [b'CLSE', b'OKAY']
[adb.adb_protocol] Received following results from cls.Read. Now back inside Open
[adb.adb_protocol] cmd: b'CLSE'
[adb.adb_protocol] remote_id: 27629
[adb.adb_protocol] their_local_id: 1
[adb.adb_protocol] _: b''
[adb.adb_protocol] Inside if cmd == b'CLSE': (line 450)
[adb.adb_protocol] Now inside def Unpack (line 271)
[adb.adb_protocol] cls: <class 'adb.adb_protocol.AdbMessage'>
[adb.adb_protocol] message: b'OKAY\xeek\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6'
[adb.adb_protocol] cmd: 1497451343
[adb.adb_protocol] arg0: 27630
[adb.adb_protocol] arg1: 1
[adb.adb_protocol] data_length: 0
[adb.adb_protocol] data_checksum: 0
[adb.adb_protocol] unused_magic: 2797515952
[adb.adb_protocol] Now inside def Read (line 296)
[adb.adb_protocol] msg: b'OKAY\xeek\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6'
[adb.adb_protocol] cmd: 1497451343
[adb.adb_protocol] arg0: 27630
[adb.adb_protocol] arg1: 1
[adb.adb_protocol] data_length: 0
[adb.adb_protocol] data_checksum: 0
[adb.adb_protocol] command: b'OKAY'
[adb.adb_protocol] expected_cmds: [b'CLSE', b'OKAY']
[adb.adb_protocol] cmd: b'OKAY'
[adb.adb_protocol] remote_id: 27630
[adb.adb_protocol] their_local_id: 1
[adb.adb_protocol] _: b''
[adb.adb_protocol] connection: <adb.adb_protocol._AdbConnection object at 0x7fb458115c88>
[adb.adb_protocol] Now inside _AdbConnection class def ReadUntil (line 143)
[adb.adb_protocol] self.usb: <adb.common.TcpHandle object at 0x7fb494cf5c18>
[adb.adb_protocol] expected_cmds: (b'CLSE', b'WRTE')
[adb.adb_protocol] self.timeout_ms: None
[adb.adb_protocol] Now inside def Unpack (line 271)
[adb.adb_protocol] cls: <class 'adb.adb_protocol.AdbMessage'>
[adb.adb_protocol] message: b'WRTE\
xeek
\x00\x00\x01\x00\x00\x00\x1
9
\x00\x00\x00
\xa0
\x08\x00\x00\xa8\xad\xab\xba'
[adb.adb_protocol] cmd: 1163154007
[adb.adb_protocol] cmd: 1163154007
Copier
Copié
Copier
Copié
[adb.adb_protocol] arg0: 276
3
0
[adb.adb_protocol] arg0: 276
4
0
[adb.adb_protocol] arg1: 1
[adb.adb_protocol] arg1: 1
Copier
Copié
Copier
Copié
[adb.adb_protocol] data_length:
25
[adb.adb_protocol] data_length:
24
[adb.adb_protocol] data_checksum:
2208
[adb.adb_protocol] data_checksum:
2146
[adb.adb_protocol] unused_magic: 3131813288
[adb.adb_protocol] unused_magic: 3131813288
[adb.adb_protocol] Now inside def Read (line 296)
[adb.adb_protocol] Now inside def Read (line 296)
Copier
Copié
Copier
Copié
[adb.adb_protocol] msg: b'WRTE\
xeek
\x00\x00\x01\x00\x00\x00\x1
9
\x00\x00\x00
\xa0
\x08\x00\x00\xa8\xad\xab\xba'
[adb.adb_protocol] msg: b'WRTE\
xf8k
\x00\x00\x01\x00\x00\x00\x1
8
\x00\x00\x00
b
\x08\x00\x00\xa8\xad\xab\xba'
[adb.adb_protocol] cmd: 1163154007
[adb.adb_protocol] cmd: 1163154007
Copier
Copié
Copier
Copié
[adb.adb_protocol] arg0: 276
3
0
[adb.adb_protocol] arg0: 276
4
0
[adb.adb_protocol] arg1: 1
[adb.adb_protocol] arg1: 1
Copier
Copié
Copier
Copié
[adb.adb_protocol] data_length:
25
[adb.adb_protocol] data_length:
24
[adb.adb_protocol] data_checksum:
2208
[adb.adb_protocol] data_checksum:
2146
[adb.adb_protocol] command: b'WRTE'
[adb.adb_protocol] command: b'WRTE'
Copier
Copié
Copier
Copié
[adb.adb_protocol] expected_cmds:
(
b'CLSE',
b'WRTE')
[adb.adb_protocol] expected_cmds:
[
b'CLSE',
b'OKAY']
[adb.adb_protocol] Back inside _AdbConnection class def ReadUntil (line 149) after returning from AdbMessage.Read(...)
[adb.adb_protocol] cmd: b'WRTE'
[adb.adb_protocol] remote_id: 27630
[adb.adb_protocol] local_id: 1
[adb.adb_protocol] data: b'Display Power: state=OFF\n'
[adb.adb_protocol] self.remote_id: 27630
[adb.adb_protocol] Inside class _AdbConnection(object) def _Send (line 115)
[adb.adb_protocol] command: b'OKAY'
[adb.adb_protocol] arg0: 1
[adb.adb_protocol] arg1: 27630
[adb.adb_protocol] data: b''
[adb.adb_protocol] message: <adb.adb_protocol.AdbMessage object at 0x7fb458115748>
[adb.adb_protocol] Now inside def Pack(self) (line 251)
[adb.adb_protocol] self.format: b'<6I'
[adb.adb_protocol] self.command: 1497451343
[adb.adb_protocol] self.arg0: 1
[adb.adb_protocol] self.arg1: 27630
[adb.adb_protocol] len(self.data)): 0
[adb.adb_protocol] self.checksum: 0
[adb.adb_protocol] self.magic: 2797515952
[adb.adb_protocol] packed: b'OKAY\x01\x00\x00\x00\xeek\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6'
[adb.adb_protocol] Now inside _AdbConnection class def ReadUntilClose (line 170) after turning from self.ReadUntil(...)
[adb.adb_protocol] cmd: b'WRTE'
[adb.adb_protocol] data: b'Display Power: state=OFF\n'
[adb.adb_protocol] data.decode('utf8') (line 532): Display Power: state=OFF
[adb.adb_protocol] Now inside _AdbConnection class def ReadUntil (line 143)
[adb.adb_protocol] self.usb: <adb.common.TcpHandle object at 0x7fb494cf5c18>
[adb.adb_protocol] expected_cmds: (b'CLSE', b'WRTE')
[adb.adb_protocol] self.timeout_ms: None
[adb.adb_protocol] Now inside def Unpack (line 271)
[adb.adb_protocol] cls: <class 'adb.adb_protocol.AdbMessage'>
[adb.adb_protocol] message: b'CLSE\xeek\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba'
[adb.adb_protocol] cmd: 1163086915
[adb.adb_protocol] arg0: 27630
[adb.adb_protocol] arg1: 1
[adb.adb_protocol] data_length: 0
[adb.adb_protocol] data_checksum: 0
[adb.adb_protocol] unused_magic: 3131880380
[adb.adb_protocol] Now inside def Read (line 296)
[adb.adb_protocol] msg: b'CLSE\xeek\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba'
[adb.adb_protocol] cmd: 1163086915
[adb.adb_protocol] arg0: 27630
[adb.adb_protocol] arg1: 1
[adb.adb_protocol] data_length: 0
[adb.adb_protocol] data_checksum: 0
[adb.adb_protocol] command: b'CLSE'
[adb.adb_protocol] expected_cmds: (b'CLSE', b'WRTE')
[adb.adb_protocol] Back inside _AdbConnection class def ReadUntil (line 149) after returning from AdbMessage.Read(...)
[adb.adb_protocol] cmd: b'CLSE'
[adb.adb_protocol] remote_id: 27630
[adb.adb_protocol] local_id: 1
[adb.adb_protocol] data: b''
[adb.adb_protocol] self.remote_id: 27630
[adb.adb_protocol] Now inside _AdbConnection class def ReadUntilClose (line 170) after turning from self.ReadUntil(...)
[adb.adb_protocol] cmd: b'CLSE'
[adb.adb_protocol] data: b''
[adb.adb_protocol] About to self._Send(b'CLSE', arg0=self.local_id, arg1=self.remote_id) from ReadUntilClose(self) (line 174)
[adb.adb_protocol] self.local_id: 1
[adb.adb_protocol] self.remote_id: 27630
[adb.adb_protocol] Inside class _AdbConnection(object) def _Send (line 115)
[adb.adb_protocol] command: b'CLSE'
[adb.adb_protocol] arg0: 1
[adb.adb_protocol] arg1: 27630
[adb.adb_protocol] data: b''
[adb.adb_protocol] message: <adb.adb_protocol.AdbMessage object at 0x7fb458115748>
[adb.adb_protocol] Now inside def Pack(self) (line 251)
[adb.adb_protocol] self.format: b'<6I'
[adb.adb_protocol] self.command: 1163086915
[adb.adb_protocol] self.arg0: 1
[adb.adb_protocol] self.arg1: 27630
[adb.adb_protocol] len(self.data)): 0
[adb.adb_protocol] self.checksum: 0
[adb.adb_protocol] self.magic: 3131880380
[adb.adb_protocol] packed: b'CLSE\x01\x00\x00\x00\xeek\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba'
Différences enregistrées
Texte d'origine
Ouvrir un fichier
[adb.adb_commands] Now inside def Shell(self, command, timeout_ms=None) (line 378) [adb.adb_commands] command: dumpsys power | grep "Display Power" [adb.adb_commands] timeout_ms: None [adb.adb_protocol] Inside StreamingCommand(cls, usb, service, command='', timeout_ms=None) (line 518) [adb.adb_protocol] command before type test: dumpsys power | grep "Display Power" (<class 'str'>) [adb.adb_protocol] cls: <class 'adb.adb_protocol.AdbMessage'> [adb.adb_protocol] usb: <adb.common.TcpHandle object at 0x7fb494cf5c18> [adb.adb_protocol] service: b'shell' [adb.adb_protocol] command after type test: b'dumpsys power | grep "Display Power"' (<class 'bytes'>) [adb.adb_protocol] timeout_ms: None [adb.adb_protocol] Now inside def Open (line 429) [adb.adb_protocol] destination: b'shell:dumpsys power | grep "Display Power"' [adb.adb_protocol] cls: <class 'adb.adb_protocol.AdbMessage'> [adb.adb_protocol] usb: <adb.common.TcpHandle object at 0x7fb494cf5c18> [adb.adb_protocol] Sending msg: <adb.adb_protocol.AdbMessage object at 0x7fb45822f860> [adb.adb_protocol] Now inside def Pack(self) (line 251) [adb.adb_protocol] self.format: b'<6I' [adb.adb_protocol] self.command: 1313165391 [adb.adb_protocol] self.arg0: 1 [adb.adb_protocol] self.arg1: 0 [adb.adb_protocol] len(self.data)): 43 [adb.adb_protocol] self.checksum: 3973 [adb.adb_protocol] self.magic: 2981801904 [adb.adb_protocol] packed: b'OPEN\x01\x00\x00\x00\x00\x00\x00\x00+\x00\x00\x00\x85\x0f\x00\x00\xb0\xaf\xba\xb1' [adb.adb_protocol] Now inside def Unpack (line 271) [adb.adb_protocol] cls: <class 'adb.adb_protocol.AdbMessage'> [adb.adb_protocol] message: b'CLSE\xedk\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' [adb.adb_protocol] cmd: 1163086915 [adb.adb_protocol] arg0: 27629 [adb.adb_protocol] arg1: 1 [adb.adb_protocol] data_length: 0 [adb.adb_protocol] data_checksum: 0 [adb.adb_protocol] unused_magic: 3131880380 [adb.adb_protocol] Now inside def Read (line 296) [adb.adb_protocol] msg: b'CLSE\xedk\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' [adb.adb_protocol] cmd: 1163086915 [adb.adb_protocol] arg0: 27629 [adb.adb_protocol] arg1: 1 [adb.adb_protocol] data_length: 0 [adb.adb_protocol] data_checksum: 0 [adb.adb_protocol] command: b'CLSE' [adb.adb_protocol] expected_cmds: [b'CLSE', b'OKAY'] [adb.adb_protocol] Received following results from cls.Read. Now back inside Open [adb.adb_protocol] cmd: b'CLSE' [adb.adb_protocol] remote_id: 27629 [adb.adb_protocol] their_local_id: 1 [adb.adb_protocol] _: b'' [adb.adb_protocol] Inside if cmd == b'CLSE': (line 450) [adb.adb_protocol] Now inside def Unpack (line 271) [adb.adb_protocol] cls: <class 'adb.adb_protocol.AdbMessage'> [adb.adb_protocol] message: b'OKAY\xeek\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' [adb.adb_protocol] cmd: 1497451343 [adb.adb_protocol] arg0: 27630 [adb.adb_protocol] arg1: 1 [adb.adb_protocol] data_length: 0 [adb.adb_protocol] data_checksum: 0 [adb.adb_protocol] unused_magic: 2797515952 [adb.adb_protocol] Now inside def Read (line 296) [adb.adb_protocol] msg: b'OKAY\xeek\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' [adb.adb_protocol] cmd: 1497451343 [adb.adb_protocol] arg0: 27630 [adb.adb_protocol] arg1: 1 [adb.adb_protocol] data_length: 0 [adb.adb_protocol] data_checksum: 0 [adb.adb_protocol] command: b'OKAY' [adb.adb_protocol] expected_cmds: [b'CLSE', b'OKAY'] [adb.adb_protocol] cmd: b'OKAY' [adb.adb_protocol] remote_id: 27630 [adb.adb_protocol] their_local_id: 1 [adb.adb_protocol] _: b'' [adb.adb_protocol] connection: <adb.adb_protocol._AdbConnection object at 0x7fb458115c88> [adb.adb_protocol] Now inside _AdbConnection class def ReadUntil (line 143) [adb.adb_protocol] self.usb: <adb.common.TcpHandle object at 0x7fb494cf5c18> [adb.adb_protocol] expected_cmds: (b'CLSE', b'WRTE') [adb.adb_protocol] self.timeout_ms: None [adb.adb_protocol] Now inside def Unpack (line 271) [adb.adb_protocol] cls: <class 'adb.adb_protocol.AdbMessage'> [adb.adb_protocol] message: b'WRTE\xeek\x00\x00\x01\x00\x00\x00\x19\x00\x00\x00\xa0\x08\x00\x00\xa8\xad\xab\xba' [adb.adb_protocol] cmd: 1163154007 [adb.adb_protocol] arg0: 27630 [adb.adb_protocol] arg1: 1 [adb.adb_protocol] data_length: 25 [adb.adb_protocol] data_checksum: 2208 [adb.adb_protocol] unused_magic: 3131813288 [adb.adb_protocol] Now inside def Read (line 296) [adb.adb_protocol] msg: b'WRTE\xeek\x00\x00\x01\x00\x00\x00\x19\x00\x00\x00\xa0\x08\x00\x00\xa8\xad\xab\xba' [adb.adb_protocol] cmd: 1163154007 [adb.adb_protocol] arg0: 27630 [adb.adb_protocol] arg1: 1 [adb.adb_protocol] data_length: 25 [adb.adb_protocol] data_checksum: 2208 [adb.adb_protocol] command: b'WRTE' [adb.adb_protocol] expected_cmds: (b'CLSE', b'WRTE') [adb.adb_protocol] Back inside _AdbConnection class def ReadUntil (line 149) after returning from AdbMessage.Read(...) [adb.adb_protocol] cmd: b'WRTE' [adb.adb_protocol] remote_id: 27630 [adb.adb_protocol] local_id: 1 [adb.adb_protocol] data: b'Display Power: state=OFF\n' [adb.adb_protocol] self.remote_id: 27630 [adb.adb_protocol] Inside class _AdbConnection(object) def _Send (line 115) [adb.adb_protocol] command: b'OKAY' [adb.adb_protocol] arg0: 1 [adb.adb_protocol] arg1: 27630 [adb.adb_protocol] data: b'' [adb.adb_protocol] message: <adb.adb_protocol.AdbMessage object at 0x7fb458115748> [adb.adb_protocol] Now inside def Pack(self) (line 251) [adb.adb_protocol] self.format: b'<6I' [adb.adb_protocol] self.command: 1497451343 [adb.adb_protocol] self.arg0: 1 [adb.adb_protocol] self.arg1: 27630 [adb.adb_protocol] len(self.data)): 0 [adb.adb_protocol] self.checksum: 0 [adb.adb_protocol] self.magic: 2797515952 [adb.adb_protocol] packed: b'OKAY\x01\x00\x00\x00\xeek\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' [adb.adb_protocol] Now inside _AdbConnection class def ReadUntilClose (line 170) after turning from self.ReadUntil(...) [adb.adb_protocol] cmd: b'WRTE' [adb.adb_protocol] data: b'Display Power: state=OFF\n' [adb.adb_protocol] data.decode('utf8') (line 532): Display Power: state=OFF [adb.adb_protocol] Now inside _AdbConnection class def ReadUntil (line 143) [adb.adb_protocol] self.usb: <adb.common.TcpHandle object at 0x7fb494cf5c18> [adb.adb_protocol] expected_cmds: (b'CLSE', b'WRTE') [adb.adb_protocol] self.timeout_ms: None [adb.adb_protocol] Now inside def Unpack (line 271) [adb.adb_protocol] cls: <class 'adb.adb_protocol.AdbMessage'> [adb.adb_protocol] message: b'CLSE\xeek\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' [adb.adb_protocol] cmd: 1163086915 [adb.adb_protocol] arg0: 27630 [adb.adb_protocol] arg1: 1 [adb.adb_protocol] data_length: 0 [adb.adb_protocol] data_checksum: 0 [adb.adb_protocol] unused_magic: 3131880380 [adb.adb_protocol] Now inside def Read (line 296) [adb.adb_protocol] msg: b'CLSE\xeek\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' [adb.adb_protocol] cmd: 1163086915 [adb.adb_protocol] arg0: 27630 [adb.adb_protocol] arg1: 1 [adb.adb_protocol] data_length: 0 [adb.adb_protocol] data_checksum: 0 [adb.adb_protocol] command: b'CLSE' [adb.adb_protocol] expected_cmds: (b'CLSE', b'WRTE') [adb.adb_protocol] Back inside _AdbConnection class def ReadUntil (line 149) after returning from AdbMessage.Read(...) [adb.adb_protocol] cmd: b'CLSE' [adb.adb_protocol] remote_id: 27630 [adb.adb_protocol] local_id: 1 [adb.adb_protocol] data: b'' [adb.adb_protocol] self.remote_id: 27630 [adb.adb_protocol] Now inside _AdbConnection class def ReadUntilClose (line 170) after turning from self.ReadUntil(...) [adb.adb_protocol] cmd: b'CLSE' [adb.adb_protocol] data: b'' [adb.adb_protocol] About to self._Send(b'CLSE', arg0=self.local_id, arg1=self.remote_id) from ReadUntilClose(self) (line 174) [adb.adb_protocol] self.local_id: 1 [adb.adb_protocol] self.remote_id: 27630 [adb.adb_protocol] Inside class _AdbConnection(object) def _Send (line 115) [adb.adb_protocol] command: b'CLSE' [adb.adb_protocol] arg0: 1 [adb.adb_protocol] arg1: 27630 [adb.adb_protocol] data: b'' [adb.adb_protocol] message: <adb.adb_protocol.AdbMessage object at 0x7fb458115748> [adb.adb_protocol] Now inside def Pack(self) (line 251) [adb.adb_protocol] self.format: b'<6I' [adb.adb_protocol] self.command: 1163086915 [adb.adb_protocol] self.arg0: 1 [adb.adb_protocol] self.arg1: 27630 [adb.adb_protocol] len(self.data)): 0 [adb.adb_protocol] self.checksum: 0 [adb.adb_protocol] self.magic: 3131880380 [adb.adb_protocol] packed: b'CLSE\x01\x00\x00\x00\xeek\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba'
Texte modifié
Ouvrir un fichier
[adb.adb_commands] Now inside def Shell(self, command, timeout_ms=None) (line 378) [adb.adb_commands] command: dumpsys power | grep "Display Power" [adb.adb_commands] timeout_ms: None [adb.adb_protocol] Inside StreamingCommand(cls, usb, service, command='', timeout_ms=None) (line 518) [adb.adb_protocol] command before type test: dumpsys power | grep "Display Power" (<class 'str'>) [adb.adb_protocol] cls: <class 'adb.adb_protocol.AdbMessage'> [adb.adb_protocol] usb: <adb.common.TcpHandle object at 0x7fb494cf5c18> [adb.adb_protocol] service: b'shell' [adb.adb_protocol] command after type test: b'dumpsys power | grep "Display Power"' (<class 'bytes'>) [adb.adb_protocol] timeout_ms: None [adb.adb_protocol] Now inside def Open (line 429) [adb.adb_protocol] destination: b'shell:dumpsys power | grep "Display Power"' [adb.adb_protocol] cls: <class 'adb.adb_protocol.AdbMessage'> [adb.adb_protocol] usb: <adb.common.TcpHandle object at 0x7fb494cf5c18> [adb.adb_protocol] Sending msg: <adb.adb_protocol.AdbMessage object at 0x7fb494b63d30> [adb.adb_protocol] Now inside def Pack(self) (line 251) [adb.adb_protocol] self.format: b'<6I' [adb.adb_protocol] self.command: 1313165391 [adb.adb_protocol] self.arg0: 1 [adb.adb_protocol] self.arg1: 0 [adb.adb_protocol] len(self.data)): 43 [adb.adb_protocol] self.checksum: 3973 [adb.adb_protocol] self.magic: 2981801904 [adb.adb_protocol] packed: b'OPEN\x01\x00\x00\x00\x00\x00\x00\x00+\x00\x00\x00\x85\x0f\x00\x00\xb0\xaf\xba\xb1' [adb.adb_protocol] Now inside def Unpack (line 271) [adb.adb_protocol] cls: <class 'adb.adb_protocol.AdbMessage'> [adb.adb_protocol] message: b'WRTE\xf8k\x00\x00\x01\x00\x00\x00\x18\x00\x00\x00b\x08\x00\x00\xa8\xad\xab\xba' [adb.adb_protocol] cmd: 1163154007 [adb.adb_protocol] arg0: 27640 [adb.adb_protocol] arg1: 1 [adb.adb_protocol] data_length: 24 [adb.adb_protocol] data_checksum: 2146 [adb.adb_protocol] unused_magic: 3131813288 [adb.adb_protocol] Now inside def Read (line 296) [adb.adb_protocol] msg: b'WRTE\xf8k\x00\x00\x01\x00\x00\x00\x18\x00\x00\x00b\x08\x00\x00\xa8\xad\xab\xba' [adb.adb_protocol] cmd: 1163154007 [adb.adb_protocol] arg0: 27640 [adb.adb_protocol] arg1: 1 [adb.adb_protocol] data_length: 24 [adb.adb_protocol] data_checksum: 2146 [adb.adb_protocol] command: b'WRTE' [adb.adb_protocol] expected_cmds: [b'CLSE', b'OKAY']
Trouver la différence