Skip to content

Commit

Permalink
7.0b5
Browse files Browse the repository at this point in the history
  • Loading branch information
rev1si0n committed Oct 2, 2023
1 parent 9ef0dfc commit 109a42d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1868,6 +1868,7 @@ t = 切换到 /data/local/tmp

```
* lamda (自身)
* cv2 (opencv)
* capstone (反汇编引擎)
* keystone_engine (汇编引擎)
* unicorn (CPU模拟引擎)
Expand Down
2 changes: 1 addition & 1 deletion lamda/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
#
# Distributed under MIT license.
# See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
__version__ = "7.0b3"
__version__ = "7.0b5"
16 changes: 9 additions & 7 deletions lamda/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1002,13 +1002,6 @@ def remove_from_doze_mode_whitelist(self):
req = protos.ApplicationRequest(name=self.applicationId)
r = self.stub.removeFromDozeModeWhiteList(req)
return True
def install_from_local_file(self, fpath):
"""
安装设备上的 apk 文件(注意此路径为设备上的 apk 路径)
"""
req = protos.ApplicationRequest(path=fpath)
r = self.stub.installFromLocalFile(req)
return r
def is_installed(self):
"""
检查应用是否已经安装
Expand Down Expand Up @@ -1056,6 +1049,13 @@ def start_activity(self, **activity):
req.extras.update(extras)
r = self.stub.startActivity(req)
return r.value
def install_app_file(self, fpath):
"""
安装设备上的 apk 文件(注意此路径为设备上的 apk 路径)
"""
req = protos.ApplicationRequest(path=fpath)
r = self.stub.installFromLocalFile(req)
return r
def __call__(self, applicationId):
return ApplicationOpStub(self.stub, applicationId)

Expand Down Expand Up @@ -1844,6 +1844,8 @@ def file_chmod(self, fpath, mode=0o644):
def file_stat(self, fpath):
return self.stub("File").file_stat(fpath)
# 快速调用: Application
def install_app_file(self, rpath):
return self.stub("Application").install_app_file(rpath)
def current_application(self):
return self.stub("Application").current_application()
def enumerate_all_pkg_names(self):
Expand Down

0 comments on commit 109a42d

Please sign in to comment.