gpt4 book ai didi

Android SH 外壳脚本

转载 作者:行者123 更新时间:2023-11-30 05:09:56 25 4
gpt4 key购买 nike

我尝试在 Android 设备上运行 sh 脚本。我使用的代码是:

am force-stop com.firenav.dsoft.firenav
pm install -r /internal_Storage/download/firenav_dev.apk
am start -n com.firenav.dsoft.firenav/.SplashScreen

当我手动运行这些命令时,它们运行良好。当我将它们放入 .sh 文件时,出现错误。

: not found[1]: !#/system/bin/sh
pkg: /internal_Storage/download/firenav_dev.apk
Failure [INSTALL_FAILED_INVALID_URI]
}arting: Intent { cmp=com.firenav.dsoft.firenav/.SplashScreen
Error type 3
} does not exist.lass {com.firenav.dsoft.firenav/com.firenav.dsoft.firenav.SplashScreen

我在这里错过了什么?我通过 adb 登录

最佳答案

如果您在 Android 设备上运行显示为脚本的代码,问题是您必须在调用 之前将文件 /internal_Storage/download/firenav_dev.apk 复制到设备>pm 安装

关于Android SH 外壳脚本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53908353/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com