Merge pull request #130 from root-intruder/master

push apk to /data/local/tmp/ instead of sdcard, otherwise packagemanager cannot install from sdcard
This commit is contained in:
Samuel Carlsson 2020-09-25 09:12:58 +00:00 committed by GitHub
commit 60a070132e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,7 +49,7 @@ public class PackageManager {
}
private void install(File apkFile, List<String> extraArguments) throws IOException, JadbException {
RemoteFile remote = new RemoteFile("/sdcard/tmp/" + apkFile.getName());
RemoteFile remote = new RemoteFile("/data/local/tmp/" + apkFile.getName());
device.push(apkFile, remote);
List<String> arguments = new ArrayList<>();
arguments.add("install");