lamda 3.135__tar.gz → 3.138__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. {lamda-3.135 → lamda-3.138}/PKG-INFO +1 -1
  2. {lamda-3.135 → lamda-3.138}/README.md +6 -0
  3. {lamda-3.135 → lamda-3.138}/lamda/__init__.py +1 -1
  4. {lamda-3.135 → lamda-3.138}/lamda/client.py +8 -0
  5. {lamda-3.135 → lamda-3.138}/lamda/rpc/services.proto +1 -0
  6. {lamda-3.135 → lamda-3.138}/lamda/rpc/uiautomator.proto +6 -0
  7. {lamda-3.135 → lamda-3.138}/lamda.egg-info/PKG-INFO +1 -1
  8. {lamda-3.135 → lamda-3.138}/lamda.egg-info/requires.txt +3 -3
  9. {lamda-3.135 → lamda-3.138}/setup.py +3 -3
  10. {lamda-3.135 → lamda-3.138}/lamda/bcast.proto +0 -0
  11. {lamda-3.135 → lamda-3.138}/lamda/const.py +0 -0
  12. {lamda-3.135 → lamda-3.138}/lamda/exceptions.py +0 -0
  13. {lamda-3.135 → lamda-3.138}/lamda/google/protobuf/any.proto +0 -0
  14. {lamda-3.135 → lamda-3.138}/lamda/google/protobuf/api.proto +0 -0
  15. {lamda-3.135 → lamda-3.138}/lamda/google/protobuf/compiler/plugin.proto +0 -0
  16. {lamda-3.135 → lamda-3.138}/lamda/google/protobuf/descriptor.proto +0 -0
  17. {lamda-3.135 → lamda-3.138}/lamda/google/protobuf/duration.proto +0 -0
  18. {lamda-3.135 → lamda-3.138}/lamda/google/protobuf/empty.proto +0 -0
  19. {lamda-3.135 → lamda-3.138}/lamda/google/protobuf/field_mask.proto +0 -0
  20. {lamda-3.135 → lamda-3.138}/lamda/google/protobuf/source_context.proto +0 -0
  21. {lamda-3.135 → lamda-3.138}/lamda/google/protobuf/struct.proto +0 -0
  22. {lamda-3.135 → lamda-3.138}/lamda/google/protobuf/timestamp.proto +0 -0
  23. {lamda-3.135 → lamda-3.138}/lamda/google/protobuf/type.proto +0 -0
  24. {lamda-3.135 → lamda-3.138}/lamda/google/protobuf/wrappers.proto +0 -0
  25. {lamda-3.135 → lamda-3.138}/lamda/rpc/application.proto +0 -0
  26. {lamda-3.135 → lamda-3.138}/lamda/rpc/debug.proto +0 -0
  27. {lamda-3.135 → lamda-3.138}/lamda/rpc/file.proto +0 -0
  28. {lamda-3.135 → lamda-3.138}/lamda/rpc/policy.proto +0 -0
  29. {lamda-3.135 → lamda-3.138}/lamda/rpc/proxy.proto +0 -0
  30. {lamda-3.135 → lamda-3.138}/lamda/rpc/settings.proto +0 -0
  31. {lamda-3.135 → lamda-3.138}/lamda/rpc/shell.proto +0 -0
  32. {lamda-3.135 → lamda-3.138}/lamda/rpc/status.proto +0 -0
  33. {lamda-3.135 → lamda-3.138}/lamda/rpc/types.proto +0 -0
  34. {lamda-3.135 → lamda-3.138}/lamda/rpc/util.proto +0 -0
  35. {lamda-3.135 → lamda-3.138}/lamda/rpc/wifi.proto +0 -0
  36. {lamda-3.135 → lamda-3.138}/lamda/types.py +0 -0
  37. {lamda-3.135 → lamda-3.138}/lamda.egg-info/SOURCES.txt +0 -0
  38. {lamda-3.135 → lamda-3.138}/lamda.egg-info/dependency_links.txt +0 -0
  39. {lamda-3.135 → lamda-3.138}/lamda.egg-info/not-zip-safe +0 -0
  40. {lamda-3.135 → lamda-3.138}/lamda.egg-info/top_level.txt +0 -0
  41. {lamda-3.135 → lamda-3.138}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lamda
3
- Version: 3.135
3
+ Version: 3.138
4
4
  Summary: Android reverse engineering & automation framework
5
5
  Home-page: https://github.com/rev1si0n/lamda
6
6
  Author: rev1si0n
@@ -1467,6 +1467,12 @@ d.dump_window_hierarchy().getvalue()
1467
1467
  d.wait_for_idle(5*1000)
1468
1468
  ```
1469
1469
 
1470
+ > 获取最近的 toast
1471
+
1472
+ ```python
1473
+ d.get_last_toast()
1474
+ ```
1475
+
1470
1476
  ## 进阶UI操作
1471
1477
 
1472
1478
  > Selector
@@ -2,4 +2,4 @@
2
2
  #
3
3
  # Distributed under MIT license.
4
4
  # See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
5
- __version__ = "3.135"
5
+ __version__ = "3.138"
@@ -693,6 +693,12 @@ class UiAutomatorStub(BaseServiceStub):
693
693
  获取此 watcher 是否启用
694
694
  """
695
695
  return self.watchers.get(name, {}).get("enable")
696
+ def get_last_toast(self):
697
+ """
698
+ 获取系统中最后一个 toast 消息
699
+ """
700
+ r = self.stub.getLastToast(protos.Empty())
701
+ return r
696
702
  def remove_watcher(self, name):
697
703
  """
698
704
  移除一个 watcher
@@ -1758,6 +1764,8 @@ class Device(object):
1758
1764
  return self.stub("UiAutomator").dump_window_hierarchy()
1759
1765
  def wait_for_idle(self, timeout):
1760
1766
  return self.stub("UiAutomator").wait_for_idle(timeout)
1767
+ def get_last_toast(self):
1768
+ return self.stub("UiAutomator").get_last_toast()
1761
1769
  # watcher
1762
1770
  def remove_all_watchers(self):
1763
1771
  return self.stub("UiAutomator").remove_all_watchers()
@@ -148,6 +148,7 @@ service UiAutomator {
148
148
  rpc selectorLongClick(SelectorClickRequest) returns (Boolean) {}
149
149
 
150
150
  rpc selectorExists(SelectorOnlyRequest) returns (Boolean) {}
151
+ rpc getLastToast(google.protobuf.Empty) returns (ToastInfo) {}
151
152
 
152
153
  rpc selectorObjInfo(SelectorOnlyRequest) returns (ObjInfo) {}
153
154
  rpc selectorObjInfoOfAllInstances(SelectorOnlyRequest) returns (ObjInfoList) {}
@@ -369,6 +369,12 @@ message ObjInfo {
369
369
  Bound visibleBounds = 17;
370
370
  }
371
371
 
372
+ message ToastInfo {
373
+ uint64 timestamp = 1;
374
+ string package = 2;
375
+ string message = 3;
376
+ }
377
+
372
378
  message ObjInfoList {
373
379
  repeated ObjInfo objects = 1;
374
380
  }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lamda
3
- Version: 3.135
3
+ Version: 3.138
4
4
  Summary: Android reverse engineering & automation framework
5
5
  Home-page: https://github.com/rev1si0n/lamda
6
6
  Author: rev1si0n
@@ -1,6 +1,6 @@
1
- grpcio-tools<=1.50.0,>=1.35.0
2
- grpc-interceptor<0.14.2,>=0.13.0
3
- grpcio<=1.50.0,>=1.35.0
1
+ grpcio-tools<1.49.0,>=1.35.0
2
+ grpc-interceptor<0.15.0,>=0.13.0
3
+ grpcio<1.49.0,>=1.35.0
4
4
  asn1crypto<2,>=1.0.0
5
5
 
6
6
  [:sys_platform == "win32"]
@@ -20,9 +20,9 @@ setuptools.setup(
20
20
  ],
21
21
  },
22
22
  install_requires= [
23
- "grpcio-tools>=1.35.0,<=1.50.0",
24
- "grpc-interceptor>=0.13.0,<0.14.2",
25
- "grpcio>=1.35.0,<=1.50.0",
23
+ "grpcio-tools>=1.35.0,<1.49.0",
24
+ "grpc-interceptor>=0.13.0,<0.15.0",
25
+ "grpcio>=1.35.0,<1.49.0",
26
26
  "asn1crypto>=1.0.0,<2",
27
27
  ],
28
28
  classifiers = [
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes