I'm trying to copy an .apk to a non-rooted galaxy s4 mini both though adb install
(with development mode on) and through windows explorer and in both cases it hangs on uploading the apk.
Is there a way to change this to allow uploading apks? Only rooting?
(An obvious workaround is to copy apks over dropbox but ideally I want to be able to use adb install
for debugging my apks)
Edit:
I have unknown sources
allowed, I've a couple of apps I've installed by downloading the APKs bypassing Google Play
I've tried with a couple of APKs with the same result. I've successfully installed the same APKs by sharing them via Dropbox and installing on the phone from a file explorer
I'm on windows but the same adb
executable works fine with my Kindle Fire (rooted) tablet installing the same APK without a problem
adb install application.apk
just hangs for a while until I terminate it
Occasionally after I terminate it and try to restart it would give me the following:
error: protocol fault (no status)
error: protocol fault (no status)
error: device not found
- waiting for device -
rm failed for /data/local/tmp/application.apk, No such file or directory
Then adb install application.apk
hangs again when restarted.
The phone is recognized with adb devices
I cannot check if I have /data/app-lib/application
or /data/data/applicaiton.apk
as I don't have root access (I can navigate around with adb shell
but get access denied trying to ls
contents of /data/app-lib
and /data/data
), but I think this is unlikely (I've tried with APKs I've never had installed on the phone before)
adb install -r application.apk
and adb install -s application.apk
hang the same way as adb install application.apk
adb push application.apk /sdcard
gives me protocol failure
Installing from sdcard with a file explorer (for apks previously downloaded from the internet) does work but I would like to be able to install and debug them with adb
(through Android Studio)