rom1v / sndcpy

Android audio forwarding (scrcpy, but for audio)
MIT License
3.28k stars 301 forks source link

Error with APK? Can't install (Windows and redmi note 7) #31

Open oellado opened 4 years ago

oellado commented 4 years ago
Waiting for device...
Performing Streamed Install
adb: failed to install sndcpy.apk: Failure [INSTALL_FAILED_USER_RESTRICTED: Invalid apk]
Uninstalling existing version first...
Exception occurred while executing:
java.lang.IllegalArgumentException: Unknown package: com.rom1v.sndcpy
    at com.android.server.pm.Settings.isOrphaned(Settings.java:4307)
    at com.android.server.pm.PackageManagerService.isOrphaned(PackageManagerService.java:21723)
    at com.android.server.pm.PackageManagerService.deletePackageVersioned(PackageManagerService.java:18460)
    at com.android.server.pm.PackageInstallerService.uninstall(PackageInstallerService.java:751)
    at com.android.server.pm.PackageManagerShellCommand.runUninstall(PackageManagerShellCommand.java:1486)
    at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:193)
    at android.os.ShellCommand.exec(ShellCommand.java:103)
    at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:21980)
    at android.os.Binder.shellCommand(Binder.java:634)
    at android.os.Binder.onTransact(Binder.java:532)
    at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:2809)
    at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:4023)
    at android.os.Binder.execTransact(Binder.java:735)
Failed with error #255.
Press any key to continue . . .
rom1v commented 4 years ago

https://stackoverflow.com/questions/47239251/install-failed-user-restricted-android-studio-using-redmi-4-device

oellado commented 4 years ago

https://stackoverflow.com/questions/47239251/install-failed-user-restricted-android-studio-using-redmi-4-device

tried that and I get this when I run sndcpy on the command line:

Waiting for device...

rom1v commented 4 years ago
adb devices

Your device must be detected by adb.

fguille94 commented 4 years ago

It's giving me an error about newer SDK required (29, current 28).

image

Win10 image image

Followed all steps from the stackoverflow thread above and I guess all permissions from my end are as they should.

rom1v commented 4 years ago

Your device runs Android 9, sndcpy requires Android 10.

fguille94 commented 4 years ago

Your device runs Android 9, sndcpy requires Android 10.

Oh, I hadn't noticed. Got here from Genymobile/scrcpy and thought that kind of requirements would match. My bad, thanks.