Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing adb install-multiple API #144

Open
skyf0l opened this issue Sep 25, 2024 · 1 comment
Open

Missing adb install-multiple API #144

skyf0l opened this issue Sep 25, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@skyf0l
Copy link

skyf0l commented Sep 25, 2024

Hello, the adb install command is covered by the following install function, but there is no equivalent for the adb install-multiple command.
Without it, I can't install APKs requiring several sub APKs. Do you have any workaround without calling adb install-multiple via a os.system call?

def install(self,
path_or_url: str,
nolaunch: bool = False,
uninstall: bool = False,
silent: bool = False,
callback: typing.Callable[[str], None] = None,
flags: list = ["-r", "-t"]):
"""
Install APK to device
Args:
path_or_url: local path or http url
nolaunch: do not launch app after install
uninstall: uninstall app before install
silent: disable log message print
callback: only two event now: <"BEFORE_INSTALL" | "FINALLY">
flags (list): default ["-r", "-t"]
Raises:
AdbInstallError, BrokenPipeError
"""

@skyf0l skyf0l changed the title adb install-multiple API Missing adb install-multiple API Sep 25, 2024
@codeskyblue
Copy link
Member

you can use adbutils.adb_path() to get full adb path, this might help.

@codeskyblue codeskyblue added the enhancement New feature or request label Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants