theothernt / AerialViews

A screensaver for Android TV devices including Nvidia Shield, Fire TV, and Chromecast with Google TV. Inspired by Apple TV's video screensaver.
GNU General Public License v3.0
418 stars 32 forks source link

ADB Command problem #94

Closed Akhenaten121 closed 1 year ago

Akhenaten121 commented 1 year ago

When i tried to run the command from my mac "adb shell settings put secure screensaver_components com.neilturner.aerialviews/.ui.screensaver.DreamActivity"

i got this zsh: command not found: adb

how can i fix this?

theothernt commented 1 year ago

Just to confirm, have you installed the Android SDK platform tools for macOS (platform-tools_r34.0.1-darwin.zip) ?

Akhenaten121 commented 1 year ago

Yes i did and connected to my device via USB cable nvidia ahield tv

theothernt commented 1 year ago

Ok, assuming you downloaded that .zip file to your Downloads folder, then extracted the files to platform-tools...

  1. Open a new Terminal window
  2. Type cd Downloads/platform-tools then press Return
  3. Now type ./adb and press Return

If that works, it means ADB is ok to use. Now you can type...

./adb shell settings put secure screensaver_components com.neilturner.aerialviews/.ui.screensaver.DreamActivity

Akhenaten121 commented 1 year ago

T he extracted folder is on my desktop and i cd into the folder without a problem, thr problem is the shell command cannot be found

theothernt commented 1 year ago

Ok, can you try this tool instead, it might be a bit easier to get working (I may update the instructions to use it instead)...

http://jocala.com/adblink2.html

Akhenaten121 commented 1 year ago

That software not detecting my device

theothernt commented 1 year ago

On your Nvidia Shield...

  1. Make sure Developer Mode is enabled
  2. Restart your Nvidia Shield
  3. Find the IP address of your Nvidia Shield

Also, no cable is required. If your Mac and Nvidia Shield are on the same wifi or network, you should be fine.

In ADBLink2...

  1. In the "Ad Hoc IP" box, type in your IP address (usually something like 192.168.1.x)
  2. Then click on the Connect button - on your Nvidia Shield, you will have to allow the connection.
  3. Go back to ADBLink2 and click on Connect again
  4. If it's working, you'll see "IP connection" in the "Connection Status" area.
  5. Now click on the "ADB Shell" button and you should be able to run the ADB command you mentioned at the start on this thread
Akhenaten121 commented 1 year ago

Now i'm getting this ./adb: inaccessible or not found

theothernt commented 1 year ago

Can you try copy the ADBLink2 app into the platform-tools folder on your desktop and try again?

Akhenaten121 commented 1 year ago

Still getting adb: inaccessible or not found, if i have USB connected do i still need to input the ip address?

theothernt commented 1 year ago

No, I don't think the USB connection will work without another piece of software installed.

On the Nvidia Shield, can you go into the Developer options menu and make sure that USB debugging is enabled?

Also, in the platform-tools folder on your Desktop, is there an adb file?

Akhenaten121 commented 1 year ago

take a look at this: ./adb shell settings put secure screensaver_components com.neilturner.aerialviews/.ui.screensaver.DreamActivity

did it work?

Akhenaten121 commented 1 year ago

No, I don't think the USB connection will work without another piece of software installed.

On the Nvidia Shield, can you go into the Developer options menu and make sure that USB debugging is enabled?

Also, in the platform-tools folder on your Desktop, is there an adb file?

USB debugging is enabled and there is a terminal looking file name adb in the platform-tool folder

theothernt commented 1 year ago

take a look at this: ./adb shell settings put secure screensaver_components com.neilturner.aerialviews/.ui.screensaver.DreamActivity

  • daemon not running; starting now at tcp:5037
  • daemon started successfully

did it work?

That means the ADB command is working. To confirm the connection...

  1. Type ./adb connect ip where "ip" is the IP address of your Nvidia Shield
  2. To confirm the connection type ./adb devices which should list something like...

List of devices attached 192.168.1.7:5555 device

  1. If that works, you can try ./adb shell settings put secure screensaver_components com.neilturner.aerialviews/.ui.screensaver.DreamActivity again
Akhenaten121 commented 1 year ago

3. ./adb shell settings put secure screensaver_components com.neilturner.aerialviews/.ui.screensaver.DreamActivity

i got that ./adb shell settings put secure screensaver_components com.neilturner.aerialviews/.ui.screensaver.DreamActivity adb: more than one device/emulator

theothernt commented 1 year ago

Ok, try this...

  1. Try ./adb disconnect (disconnect from all devices)
  2. Then ./adb connect 192.168.1.x (connect to your Nvidia Shield only)

Then try the command above again?

Akhenaten121 commented 1 year ago

3. ./adb shell settings put secure screensaver_components com.neilturner.aerialviews/.ui.screensaver.DreamActivity

Still getting that more than 1 device emulator

theothernt commented 1 year ago

When to type ./adb devices, what does it show?

Akhenaten121 commented 1 year ago

3. ./adb shell settings put secure screensaver_components com.neilturner.aerialviews/.ui.screensaver.DreamActivity

Ok how do i know if it works? i tried again and got this. ./adb shell settings put secure screensaver_components com.neilturner.aerialviews/.ui.screensaver.DreamActivity

theothernt commented 1 year ago

Actually, I should have asked... have you looked for the screensaver options on your Nvidia Shield?

https://www.nvidia.com/en-us/shield/support/shield-tv/sleep-timing-and-screen-saver/

Akhenaten121 commented 1 year ago

Actually, I should have asked... have you looked for the screensaver options on your Nvidia Shield?

https://www.nvidia.com/en-us/shield/support/shield-tv/sleep-timing-and-screen-saver/

Backdrop, Aerial Views and Colors those are the options i have in screensaver

theothernt commented 1 year ago

Ok, you can just pick Aerial Views from that menu and that will set the screensaver as default.

Apologies for not mentioning this sooner, some devices don't have that menu which is why ADB commands are required - but not for the Nvidia Shield.

Akhenaten121 commented 1 year ago

Ok, you can just pick Aerial Views from that menu and that will set the screensaver as default.

Apologies for not mentioning this sooner, some devices don't have that menu which is why ADB commands are required - but not for the Nvidia Shield.

What file extension should the videos be in?

theothernt commented 1 year ago

Most of the common formats such as MOV, MKV and MP4.

By default, the app streams videos from the Apple's servers. You can turn this off and download the videos yourself from...

https://aerial-videos.netlify.app/

Akhenaten121 commented 1 year ago

Most of the common formats such as MOV, MKV and MP4.

By default, the app streams videos from the Apple's servers. You can turn this off and download the videos yourself from...

https://aerial-videos.netlify.app/

I eventually got it to work after turning of access to apple and other screensavers, thank you very much for the help greatly appreciated

theothernt commented 1 year ago

Glad to hear that!

Feel free to create a new issue if you have questions in the future.