Giter Site home page Giter Site logo

Comments (12)

AlexTCGPro avatar AlexTCGPro commented on May 18, 2024 1

Well. It's working now! Thanks.
Replacing the adb files and removing the -g did the trick

from sndcpy.

rom1v avatar rom1v commented on May 18, 2024

Does adb devices show your device?

https://github.com/Genymobile/scrcpy/blob/master/FAQ.md#device-not-detected

from sndcpy.

AlexTCGPro avatar AlexTCGPro commented on May 18, 2024

I just ran adb.exe through cmd with the commant get-state. No device is found

from sndcpy.

rom1v avatar rom1v commented on May 18, 2024

That's the problem then. Try to install the drivers (see previous link).

from sndcpy.

AlexTCGPro avatar AlexTCGPro commented on May 18, 2024

Well, tried to update drivers from multiple sources, including oem.
Sadly, the problem persist.

No device is ever found.

from sndcpy.

rom1v avatar rom1v commented on May 18, 2024

Check on stackoverflow how to make your specific device detected by adb.

from sndcpy.

AlexTCGPro avatar AlexTCGPro commented on May 18, 2024

I have an update.
I just tried the Vysor app, which too mirrors the phone in a very similar way.

It does detect the phone, asks for debugging permission and can install its app from the computer.
Doesn't seem to be a driver problem after all. It must be something with adb as you say

from sndcpy.

AlexTCGPro avatar AlexTCGPro commented on May 18, 2024

Replaced sndcpy adb files with theirs. They were different.
It succesfully detects the phone.
But brings out this error:

Waiting for device...
Performing Streamed Install
adb: failed to install sndcpy.apk: Security exception: You need the android.permission.INSTALL_GRANT_RUNTIME_PERMISSIONS permission to use the PackageManager.INSTALL_GRANT_RUNTIME_PERMISSIONS flag

java.lang.SecurityException: You need the android.permission.INSTALL_GRANT_RUNTIME_PERMISSIONS permission to use the PackageManager.INSTALL_GRANT_RUNTIME_PERMISSIONS flag
        at com.android.server.pm.PackageInstallerService.createSessionInternal(PackageInstallerService.java:542)
        at com.android.server.pm.PackageInstallerService.createSession(PackageUninstalling existing version first...
Success
Performing Streamed Install
adb: failed to install sndcpy.apk: Security exception: You need the android.permission.INSTALL_GRANT_RUNTIME_PERMISSIONS permission to use the PackageManager.INSTALL_GRANT_RUNTIME_PERMISSIONS flag

java.lang.SecurityException: You need the android.permission.INSTALL_GRANT_RUNTIME_PERMISSIONS permission to use the PackageManager.INSTALL_GRANT_RUNTIME_PERMISSIONS flag
        at com.android.server.pm.PackageInstallerService.createSessionInternal(PackageInstallerService.java:542)
        at com.android.server.pm.PackageInstallerService.createSession(PackageFailed with error #1.

from sndcpy.

rom1v avatar rom1v commented on May 18, 2024

Replaced sndcpy adb files with theirs. They were different.

What is the result of adb --version?

java.lang.SecurityException: You need the android.permission.INSTALL_GRANT_RUNTIME_PERMISSIONS permission to use the PackageManager.INSTALL_GRANT_RUNTIME_PERMISSIONS flag

See #39

from sndcpy.

AlexTCGPro avatar AlexTCGPro commented on May 18, 2024

Just downloaded adb files directly from google servers, they appear to be the same as the Vysor app.

Android Debug Bridge version 1.0.41
Version 30.0.4-6686687

from sndcpy.

sinichi19 avatar sinichi19 commented on May 18, 2024

Well. It's working now! Thanks.
Replacing the adb files and removing the -g did the trick

Sir @AlexTCGPro and @rom1v requesting for your kind assistance where can i download the adb files? thank you

from sndcpy.

Kalebesamuel avatar Kalebesamuel commented on May 18, 2024

423 / 5000
Resultados de tradução
In my case, the same error appeared.
I tried to run the .bat file in the same directory as my apk in debug mode, but the following error appeared:
INSTALL_CANCELED_BY_USER
So I enabled these options on my device, in developer options:
Install Via USB
USB debugging (Security settings)

I didn't run the .bat file again I just ran
npx react-native run-android with the device plugged in, and then it worked.

Redmi 9C

from sndcpy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.