Git Product home page Git Product logo

Comments (32)

ProgrammingPleb avatar ProgrammingPleb commented on May 23, 2024 5

can you just send me the correct bat thingy so we could all live in peace

The main reason why rom1v asked you to do this is to actually pinpoint where the problem is.
There's no such thing as the perfect/correct bat file that can actually work with every single problem that is unique to each user.

If it closes immediately, then it can't start VLC for some reason.

Open a terminal (Win+r, cmd.exe), cd C:........\sndcpy, and execute sndcpy.bat (it will not close the terminal and show the error message).

This is called a "troubleshooting step", so we know what exactly your problem is and we can find the solution for that problem.
Every problem has a different solution, so if you would just let us know what this outputs, then we could help a little bit more to as what the problem is at hand.

from sndcpy.

rom1v avatar rom1v commented on May 23, 2024 2

It seems that your device ROM does not give the expected permissions to shell (probably modified by the vendor).

As a workaround, remove -g here:

%ADB% %serial% install -t -r -g %SNDCPY_APK% || (

from sndcpy.

ProgrammingPleb avatar ProgrammingPleb commented on May 23, 2024 1

bruh, when i connect that snd thingy it outputs nothing.. it should give a sound on my pc right? or im wrong

Copy the text from the command prompt, it should show you something.
This is a visual step on how I can get the output log: https://v.ezz.moe/1124/17-20-53.mp4
What we want is what's gonna be shown here: https://img.ezz.moe/1124/17-28-17.png
You can copy the text from there or take a screenshot of it.
Open a terminal first (Windows Key + R, "cmd" in the Run window) to make sure the window doesn't close when it fails.

from sndcpy.

rom1v avatar rom1v commented on May 23, 2024 1

The filenames have extensions, it's just that Windows by default hides them.

Random link to unhide them: https://www.howtogeek.com/205086/beginner-how-to-make-windows-show-file-extensions/

from sndcpy.

Gabrielezi0 avatar Gabrielezi0 commented on May 23, 2024

hi
i get this message below

Waiting for device...
1763 KB/s (91689 bytes in 0.050s)
Success
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.rom1v.sndcpy/.MainActivity }
Press Enter once audio capture is authorized on the device to start playing...

when i press enter the cmd closes can you help me?

from sndcpy.

Gabrielezi0 avatar Gabrielezi0 commented on May 23, 2024

It's okay bro I changed the enviormental variable and its working fine now. Thank you for this bro. you made my life keep up the good work and thank you so much.

from sndcpy.

DiSavi avatar DiSavi commented on May 23, 2024

It seems that your device ROM does not give the expected permissions to shell (probably modified by the vendor).

As a workaround, remove -g here:

%ADB% %serial% install -t -r -g %SNDCPY_APK% || (

should that be copied when you start the cmd or what

from sndcpy.

DiSavi avatar DiSavi commented on May 23, 2024

image

happening nothing

from sndcpy.

rom1v avatar rom1v commented on May 23, 2024

Did you press Enter in the console?

from sndcpy.

DiSavi avatar DiSavi commented on May 23, 2024

Did you press Enter in the console?

i did.. nothing happens.. console disappear

from sndcpy.

rom1v avatar rom1v commented on May 23, 2024

i did.. nothing happens.. console disappear

Do you have VLC installed at the correct location? #5

from sndcpy.

DiSavi avatar DiSavi commented on May 23, 2024

i did.. nothing happens.. console disappear

Do you have VLC installed at the correct location? #5

yes sir

from sndcpy.

rom1v avatar rom1v commented on May 23, 2024

If it closes immediately, then it can't start VLC for some reason.

Open a terminal (Win+r, cmd.exe), cd C:\........\sndcpy, and execute sndcpy.bat (it will not close the terminal and show the error message).

from sndcpy.

DiSavi avatar DiSavi commented on May 23, 2024

If it closes immediately, then it can't start VLC for some reason.

Open a terminal (Win+r, cmd.exe), cd C:\........\sndcpy, and execute sndcpy.bat (it will not close the terminal and show the error message).

do i need VLC in same folder as snd? or what.. you need to simple thing not to confuse me more mate

from sndcpy.

rom1v avatar rom1v commented on May 23, 2024

Please read #5.

from sndcpy.

DiSavi avatar DiSavi commented on May 23, 2024

Please read #5.

can you just send me the correct bat thingy so we could all live in peace

from sndcpy.

DiSavi avatar DiSavi commented on May 23, 2024

can you just send me the correct bat thingy so we could all live in peace

The main reason why rom1v asked you to do this is to actually pinpoint where the problem is.
There's no such thing as the perfect/correct bat file that can actually work with every single problem that is unique to each user.

If it closes immediately, then it can't start VLC for some reason.
Open a terminal (Win+r, cmd.exe), cd C:........\sndcpy, and execute sndcpy.bat (it will not close the terminal and show the error message).

This is called a "troubleshooting step", so we know what exactly your problem is and we can find the solution for that problem.
Every problem has a different solution, so if you would just let us know what this outputs, then we could help a little bit more to as what the problem is at hand.

bruh, when i connect that snd thingy it outputs nothing.. it should give a sound on my pc right? or im wrong

from sndcpy.

DiSavi avatar DiSavi commented on May 23, 2024

dude dude dude.. i made it.. works.. just have a minor delay..

from sndcpy.

rom1v avatar rom1v commented on May 23, 2024

just have a minor delay..

Edit the .bat with this change (replace 50 by 0): 39bd8c7

from sndcpy.

DiSavi avatar DiSavi commented on May 23, 2024

just have a minor delay..

Edit the .bat with this change (replace 50 by 0): 39bd8c7

thanks a bunch friend.. you the best guys

from sndcpy.

jhonathannc avatar jhonathannc commented on May 23, 2024

It seems that your device ROM does not give the expected permissions to shell (probably modified by the vendor).

As a workaround, remove -g here:

%ADB% %serial% install -t -r -g %SNDCPY_APK% || (

I had to remove it on line 18 as well. It worked for me.

%ADB% %serial% install -t -g %SNDCPY_APK% || goto :error

from sndcpy.

Nungki1999 avatar Nungki1999 commented on May 23, 2024

It seems that your device ROM does not give the expected permissions to shell (probably modified by the vendor).

As a workaround, remove -g here:

%ADB% %serial% install -t -r -g %SNDCPY_APK% || (

I have followed the steps but still, no change

from sndcpy.

qwertyuiop251 avatar qwertyuiop251 commented on May 23, 2024

It seems that your device ROM does not give the expected permissions to shell (probably modified by the vendor).

As a workaround, remove -g here:

%ADB% %serial% install -t -r -g %SNDCPY_APK% || (

Where to find the file? i also have this problem

from sndcpy.

rom1v avatar rom1v commented on May 23, 2024

It's sndcpy.bat in the release.

from sndcpy.

qwertyuiop251 avatar qwertyuiop251 commented on May 23, 2024

do i need to download the files? i only downloaded the sndcpy-with-adb

from sndcpy.

rom1v avatar rom1v commented on May 23, 2024

It's in the archive sndcpy-with-adb.zip.

from sndcpy.

qwertyuiop251 avatar qwertyuiop251 commented on May 23, 2024

sorry, i don't understand.
i downloaded the file and it contains

adb
AdbWinApi.dll
AdbWinUsbApi.dll
sndcpy
sndcpy
sndcpy

for the first installation open the sndcpy file that is windows batch file right?

from sndcpy.

qwertyuiop251 avatar qwertyuiop251 commented on May 23, 2024

The filenames have extensions, it's just that Windows by default hides them.

Random link to unhide them: https://www.howtogeek.com/205086/beginner-how-to-make-windows-show-file-extensions/

ok i've installed them
now after i clicked and authorized from my phone i need to click enter, but after i did that there's no sound coming through..

The filenames have extensions, it's just that Windows by default hides them.

Random link to unhide them: https://www.howtogeek.com/205086/beginner-how-to-make-windows-show-file-extensions/

Thanks! got it working after following ur guide up top where the sndcpy.bat cannot find the vlc.exe just need to change the address and it works. again thank you

from sndcpy.

rom1v avatar rom1v commented on May 23, 2024

@rivldy #64 (and please don't post screenshot of text, just post the text as text in a code block with ```)

from sndcpy.

raaron773 avatar raaron773 commented on May 23, 2024

Having this same issue on Linux.
I tried removing -g from sndcpy on line 15 and even tried commenting out line 18 like mentioned. It did not work. After digging a bit deeper there was something about enabling "install via USB" but this option is not available on OnePlus Nord 2. I am not sure what else I am missing.
Here's the error: https://pastebin.com/5i63hMrs

from sndcpy.

raaron773 avatar raaron773 commented on May 23, 2024

@AzharArzk Sure. here you go

set -e
ADB=${ADB:-adb}
VLC=${VLC:-vlc}
SNDCPY_APK=${SNDCPY_APK:-sndcpy.apk}
SNDCPY_PORT=${SNDCPY_PORT:-28200}

serial=
if [[ $# -ge 1 ]]
then
    serial="-s $1"
    echo "Waiting for device $1..."
else
    echo 'Waiting for device...'
fi

"$ADB" $serial wait-for-device
"$ADB" $serial install -t -r "$SNDCPY_APK" ||
{
    echo 'Uninstalling existing version first...'
    "$ADB" $serial uninstall com.rom1v.sndcpy
    "$ADB" $serial install -t "$SNDCPY_APK"
}

"$ADB" $serial shell appops set com.rom1v.sndcpy PROJECT_MEDIA allow
"$ADB" $serial forward tcp:$SNDCPY_PORT localabstract:sndcpy
"$ADB" $serial shell am start com.rom1v.sndcpy/.MainActivity

sleep 2

echo Playing audio...
"$VLC" -Idummy --demux rawaud --network-caching=0 --play-and-exit tcp://localhost:"$SNDCPY_PORT"

That about it. I only removed the -g so.. It still isn't working. Kind of frustrating tbh. I even tried removing the -Idummy but then it just existed

from sndcpy.

Denis50921 avatar Denis50921 commented on May 23, 2024

Hi a have problem,only audio,but i need see screen
изображение

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.