├── APK └── AndroidAerial.apk ├── LICENSE ├── README.md └── ScreenSaver ├── app ├── build.gradle ├── proguard-rules.pro └── src │ └── main │ ├── AndroidManifest.xml │ ├── java │ └── com │ │ └── moaapps │ │ └── screensaver │ │ ├── MainActivity.kt │ │ └── ScreenSaverService.kt │ └── res │ ├── drawable │ ├── app_icon_your_company.png │ ├── default_background.xml │ └── movie.png │ ├── layout │ ├── activity_main.xml │ └── screen_saver_layout.xml │ ├── mipmap-hdpi │ └── ic_launcher.png │ ├── mipmap-mdpi │ └── ic_launcher.png │ ├── mipmap-xhdpi │ └── ic_launcher.png │ ├── mipmap-xxhdpi │ └── ic_launcher.png │ ├── mipmap-xxxhdpi │ └── ic_launcher.png │ └── values │ ├── colors.xml │ ├── strings.xml │ └── themes.xml ├── build.gradle ├── gradle.properties ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle /APK/AndroidAerial.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/barrycraig/AndroidAerial/98bc9f3633ee2ca375d93c66f9a9ba23dd65de82/APK/AndroidAerial.apk -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Creative Commons Legal Code 2 | 3 | CC0 1.0 Universal 4 | 5 | CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE 6 | LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN 7 | ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS 8 | INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES 9 | REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS 10 | PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM 11 | THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED 12 | HEREUNDER. 13 | 14 | Statement of Purpose 15 | 16 | The laws of most jurisdictions throughout the world automatically confer 17 | exclusive Copyright and Related Rights (defined below) upon the creator 18 | and subsequent owner(s) (each and all, an "owner") of an original work of 19 | authorship and/or a database (each, a "Work"). 20 | 21 | Certain owners wish to permanently relinquish those rights to a Work for 22 | the purpose of contributing to a commons of creative, cultural and 23 | scientific works ("Commons") that the public can reliably and without fear 24 | of later claims of infringement build upon, modify, incorporate in other 25 | works, reuse and redistribute as freely as possible in any form whatsoever 26 | and for any purposes, including without limitation commercial purposes. 27 | These owners may contribute to the Commons to promote the ideal of a free 28 | culture and the further production of creative, cultural and scientific 29 | works, or to gain reputation or greater distribution for their Work in 30 | part through the use and efforts of others. 31 | 32 | For these and/or other purposes and motivations, and without any 33 | expectation of additional consideration or compensation, the person 34 | associating CC0 with a Work (the "Affirmer"), to the extent that he or she 35 | is an owner of Copyright and Related Rights in the Work, voluntarily 36 | elects to apply CC0 to the Work and publicly distribute the Work under its 37 | terms, with knowledge of his or her Copyright and Related Rights in the 38 | Work and the meaning and intended legal effect of CC0 on those rights. 39 | 40 | 1. Copyright and Related Rights. A Work made available under CC0 may be 41 | protected by copyright and related or neighboring rights ("Copyright and 42 | Related Rights"). Copyright and Related Rights include, but are not 43 | limited to, the following: 44 | 45 | i. the right to reproduce, adapt, distribute, perform, display, 46 | communicate, and translate a Work; 47 | ii. moral rights retained by the original author(s) and/or performer(s); 48 | iii. publicity and privacy rights pertaining to a person's image or 49 | likeness depicted in a Work; 50 | iv. rights protecting against unfair competition in regards to a Work, 51 | subject to the limitations in paragraph 4(a), below; 52 | v. rights protecting the extraction, dissemination, use and reuse of data 53 | in a Work; 54 | vi. database rights (such as those arising under Directive 96/9/EC of the 55 | European Parliament and of the Council of 11 March 1996 on the legal 56 | protection of databases, and under any national implementation 57 | thereof, including any amended or successor version of such 58 | directive); and 59 | vii. other similar, equivalent or corresponding rights throughout the 60 | world based on applicable law or treaty, and any national 61 | implementations thereof. 62 | 63 | 2. Waiver. To the greatest extent permitted by, but not in contravention 64 | of, applicable law, Affirmer hereby overtly, fully, permanently, 65 | irrevocably and unconditionally waives, abandons, and surrenders all of 66 | Affirmer's Copyright and Related Rights and associated claims and causes 67 | of action, whether now known or unknown (including existing as well as 68 | future claims and causes of action), in the Work (i) in all territories 69 | worldwide, (ii) for the maximum duration provided by applicable law or 70 | treaty (including future time extensions), (iii) in any current or future 71 | medium and for any number of copies, and (iv) for any purpose whatsoever, 72 | including without limitation commercial, advertising or promotional 73 | purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each 74 | member of the public at large and to the detriment of Affirmer's heirs and 75 | successors, fully intending that such Waiver shall not be subject to 76 | revocation, rescission, cancellation, termination, or any other legal or 77 | equitable action to disrupt the quiet enjoyment of the Work by the public 78 | as contemplated by Affirmer's express Statement of Purpose. 79 | 80 | 3. Public License Fallback. Should any part of the Waiver for any reason 81 | be judged legally invalid or ineffective under applicable law, then the 82 | Waiver shall be preserved to the maximum extent permitted taking into 83 | account Affirmer's express Statement of Purpose. In addition, to the 84 | extent the Waiver is so judged Affirmer hereby grants to each affected 85 | person a royalty-free, non transferable, non sublicensable, non exclusive, 86 | irrevocable and unconditional license to exercise Affirmer's Copyright and 87 | Related Rights in the Work (i) in all territories worldwide, (ii) for the 88 | maximum duration provided by applicable law or treaty (including future 89 | time extensions), (iii) in any current or future medium and for any number 90 | of copies, and (iv) for any purpose whatsoever, including without 91 | limitation commercial, advertising or promotional purposes (the 92 | "License"). The License shall be deemed effective as of the date CC0 was 93 | applied by Affirmer to the Work. Should any part of the License for any 94 | reason be judged legally invalid or ineffective under applicable law, such 95 | partial invalidity or ineffectiveness shall not invalidate the remainder 96 | of the License, and in such case Affirmer hereby affirms that he or she 97 | will not (i) exercise any of his or her remaining Copyright and Related 98 | Rights in the Work or (ii) assert any associated claims and causes of 99 | action with respect to the Work, in either case contrary to Affirmer's 100 | express Statement of Purpose. 101 | 102 | 4. Limitations and Disclaimers. 103 | 104 | a. No trademark or patent rights held by Affirmer are waived, abandoned, 105 | surrendered, licensed or otherwise affected by this document. 106 | b. Affirmer offers the Work as-is and makes no representations or 107 | warranties of any kind concerning the Work, express, implied, 108 | statutory or otherwise, including without limitation warranties of 109 | title, merchantability, fitness for a particular purpose, non 110 | infringement, or the absence of latent or other defects, accuracy, or 111 | the present or absence of errors, whether or not discoverable, all to 112 | the greatest extent permissible under applicable law. 113 | c. Affirmer disclaims responsibility for clearing rights of other persons 114 | that may apply to the Work or any use thereof, including without 115 | limitation any person's Copyright and Related Rights in the Work. 116 | Further, Affirmer disclaims responsibility for obtaining any necessary 117 | consents, permissions or other rights required for any use of the 118 | Work. 119 | d. Affirmer understands and acknowledges that Creative Commons is not a 120 | party to this document and has no duty or obligation with respect to 121 | this CC0 or use of the Work. 122 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # AndroidAerial 2 | A 4k Video Android TV Screensaver 3 | 4 | # -THIS PROJECT- 5 | 6 | I am not a developer, I have no experience, skill or ability in this space whatsoever. I am however very frustrated by what seems like a simple problem without a solution: "Play 4k videos from a local folder as a screensaver on Android TV". I decided to put my money where my mouth is and commission a bare bones app to do just that. AndroidAerial is probably as far from perfect as it's possible to be but it does just about work. I have reached the limit of what I can/will pay for development so I decided to dump everything on Github to see if anyone more competent than me is interested in taking over. 7 | 8 | PS. I also dont really know anything about Github so apologies for the mess that is this repo. Just keep in mind that I know nothing. 9 | 10 | -------- 11 | 12 | 13 | # -BACKGROUND- 14 | 15 | I've long coveted the Aerial videos screensaver on the Apple TV. There are options to mimic this on Android TV, but they both have their problems. I wanted an app that would allow me to download the publicly accessable Apple Screensaver video files, drop them on my Nvidia Shield and have them play in a randomised loop. 16 | 17 | -------- 18 | 19 | # -CURRENT OPTIONS- 20 | 21 | Option 1 22 | Aerial Dream 23 | 24 | This is certainly the most polished Android option out there, FAR more polished that this BETA. It's key problem is that there is no support for Local files or Offline Caching meaning whenever your screensaver is active there are huge files being streamed over the internet. 25 | 26 | Option 2 27 | Photo Gallery and Screensaver 28 | 29 | I believe this app is basically abandonware, there hasn't been an update since Dec 2019 and the dev is totally non-responsive. It does have local video support but the implementation is very clunky. Support for 4k Videos is also extremely limited and despite much experimenting I haven't been able to find a way to get it to play smoothly and reliably. 30 | 31 | NOTE, I have been made aware of a third option, a fork of Aerial Dream by Theothernt. This app solves almost all the problems present in the original Aerial Dream, the only current downside is that it only supports the official List of 2019 Apple videos. If you are only interested in playing the Apple TV videos then this is a much better option than my app. 32 | 33 | -------- 34 | 35 | # -HOW TO USE- 36 | 37 | The app is very limited in it's functionality. It will only play ".mov" files and it will only scan a single fixed local folder. It has also only been tested on a 2019 Nvidia shield. 38 | 39 | 1. Install the APK on your Android TV. 40 | 2. Create the following folder: "Storage/emulated/0/Screensaver" 41 | 3. Launch the app and grant it permission to access your filesystem. 42 | 4. Put any .mov videos into that folder to include them in the screensaver. 43 | 5. Select AndroidAerial from screensaver settings. 44 | 45 | All the Apple aerial videos are publicly available to download and can be accessed via the urls in this document 46 | 47 | https://docs.google.com/spreadsheets/d/1bboTohF06r-fafrImTExAPqM9m6h2m2lgJyAkQuYVJI/edit#gid=1684411812 48 | 49 | -------- 50 | 51 | # -ISSUES- 52 | 53 | - Not possible to manually select source folder 54 | - Any non-video files in the folder seem to break the screensaver 55 | - If other media is paused, screensaver will fail to launch. 56 | -------------------------------------------------------------------------------- /ScreenSaver/app/build.gradle: -------------------------------------------------------------------------------- 1 | plugins { 2 | id 'com.android.application' 3 | id 'kotlin-android' 4 | } 5 | 6 | android { 7 | compileSdkVersion 30 8 | buildToolsVersion "30.0.3" 9 | 10 | defaultConfig { 11 | applicationId "com.moaapps.screensaver" 12 | minSdkVersion 21 13 | targetSdkVersion 30 14 | versionCode 1 15 | versionName "1.0" 16 | 17 | } 18 | 19 | buildTypes { 20 | release { 21 | minifyEnabled false 22 | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' 23 | } 24 | } 25 | 26 | compileOptions { 27 | targetCompatibility JavaVersion.VERSION_1_8 28 | } 29 | } 30 | 31 | dependencies { 32 | 33 | implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" 34 | implementation 'androidx.core:core-ktx:1.3.2' 35 | implementation 'androidx.leanback:leanback:1.0.0' 36 | implementation 'androidx.appcompat:appcompat:1.2.0' 37 | 38 | implementation 'pub.devrel:easypermissions:3.0.0' 39 | implementation 'lib.kashif:folderpicker:2.4' 40 | 41 | implementation 'com.google.android.exoplayer:exoplayer:2.12.2' 42 | 43 | } -------------------------------------------------------------------------------- /ScreenSaver/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile -------------------------------------------------------------------------------- /ScreenSaver/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | 12 | 15 | 16 | 22 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /ScreenSaver/app/src/main/java/com/moaapps/screensaver/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.moaapps.screensaver 2 | 3 | import android.Manifest 4 | import android.app.Activity 5 | import android.content.Intent 6 | import android.net.Uri 7 | import android.os.Bundle 8 | import android.os.Environment 9 | import android.util.Log 10 | import android.widget.Button 11 | import android.widget.TextView 12 | import lib.folderpicker.FolderPicker 13 | import pub.devrel.easypermissions.EasyPermissions 14 | import java.io.File 15 | 16 | import java.net.URLConnection 17 | 18 | 19 | class MainActivity : Activity() { 20 | 21 | override fun onCreate(savedInstanceState: Bundle?) { 22 | super.onCreate(savedInstanceState) 23 | setContentView(R.layout.activity_main) 24 | 25 | 26 | 27 | // findViewById