1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-26 14:21:16 +00:00
syncthing-android/wiki/Android-TV-preparations.md
Catfriend1 5351e23732
Optimize onboarding screen to fit on screens and improve texts (fixes #126) (fixes #192) (#196)
* Update desc_padding to 20dp

* Update dimens

* Update welcome wizard texts

* Remove unused dimen

* Update welcome slide layouts

* Add dimen: grant_button_padding

* Welcome slides: use dimen/dots_height as marginBottom

* Update ic_location

* Add @dimen/welcome_title

* Remove res-auto/autoSizeTextType

Add @dimen/slide_desc

* Add dimen for 540dp TV displays

* Add FirstStartActivity#isRunningOnTV detection

* Updated translations

* Increase default slide_desc textSize to 16sp (fixes #126)

* Add dimens for devics with at least 320dp

* Update dimens defintions

* Detect missing "ignore doze" dialog on Android TV's (fixes #192)
2019-01-05 15:08:10 +01:00

31 lines
1.7 KiB
Markdown

nVidia Shield TV's Android OS seem to lack the "regular" battery optimization consent and settings dialogs as they are known from mobile phones and tablets. Because of the missing functionality, you can't setup Syncthing-Fork on those TV's without making some steps to prepare the installation of the Syncthing-Fork app first.
The following instructions to solve the problem by preparing the Android TV for running the app have been contributed by @o-l-a-v :
* Enable Developer options (rapidly tab build info inside Settings > About)
* Enable "USB debugging" and then "Network debugging" inside Developer options
* Wait for ip:port to show
* Locate / Download Google platform-tools, navigate to folder where adb.exe resides. Open Command Prompt here
* Type the following:
*adb start-server*
*adb connect ip:port* (example: *adb connect 192.168.1.76:5555*)
* Enable "Allow Network debugging" on the prompt that pops up on the nVidia Shield Android TV
* Then type the following to check weather you are successfully connected. Should state one device, and "connected"
*adb devices*
* To whitelist Syncthing-Fork from doze / Android Battery Optimization, type the following
*adb shell dumpsys deviceidle whitelist +com.github.catfriend1.syncthingandroid*
*adb shell dumpsys deviceidle whitelist +com.github.catfriend1.syncthingandroid.debug*
* If you ever want to revert this change, type the following in ADB
*adb shell dumpsys deviceidle whitelist -com.github.catfriend1.syncthingandroid*
*adb shell dumpsys deviceidle whitelist -com.github.catfriend1.syncthingandroid.debug*
Related:
- [GitHub issue](https://github.com/Catfriend1/syncthing-android/issues/192)
- [nVidia GeForce forum topic](https://forums.geforce.com/default/topic/1092750)