Giter Club home page Giter Club logo

ftvlaunchx's Introduction

FTVLaunchX — README

About

FTVLaunchX is a simple helper application to allow custom launchers on Amazon Fire TV devices.

It is inspired by the famous LauncherHijack of @BaronKiko and tries to overcome several issues relating to it.


NOTE: due to changes in FireOS 6.2.7.2+ FTVLaunchX is no longer working!

I am trying to find a fix but I can't promise anything just yet... :-/

Stay tuned at issue #4.


So far FTVLaunchX has been tested on:

  • Fire TV Stick 2nd Generation (Fire OS 5.2.7.2, Android 5.1)
  • Fire TV Stick 4K (Fire OS 6.2.6.8, Android 7.1)
  • Fire TV Cube 2nd Generation (Fire OS 7.2.0.6, Android 9.0)
  • Nvidia Shield 2017 (Shield Android TV 8.0.1)
  • Sony XG 9505 TV (Android 9.x)
  • Toshiba TV Fire TV Edition (Fire OS 6.2.6.9)

Please let me know if you are using it successfully on any other devices.

You can find me at the official discussion thread on XDA.

A word To Amazon: we all understand that you want to display some ads, present your content and sell Amazon Prime but the current incarnation of the Fire TV home screen is just too bloated and barely usable by young children or elderly people.

Amazon, please, before trying to kill this project, think about giving us a way to customize and clean up the home screen – presenting 50 pieces of information on one screen is just not a good user experience! Thank you!

Features

  • Reliably intercepts any & all presses of the home button.

  • Starts the selected launcher on boot (note that this can take up to a minute on older devices).

  • Starts the selected launcher when waking up from sleep.

  • Allows use of the original long-press-on-home functionality by holding down the menu key in parallel.

  • Works with any launcher or other app like e.g.

Known Limitations

  • When a screensaver is running then the home button does not cause the screensaver to exit, all other buttons do work though.

  • Long-pressing the home button had to be replaced by a custom key combination (holding down the menu key in parallel).

Please let me know if you find any other issues by opening a bug report at the issue tracker here at GitHub – you are also very welcome to send in any feature requests.

Donations

FTVLaunchX is and will always be totally free and without ads.

But if you want to say Thank You and would like to support any further development then feel free to send me a buck via PayPal or Bitcoin:

You can also help me out by downloading & using the Brave browser or, when you are already using Brave, by tipping me some BAT directly at my personal GitHub profile.

Note: you will have to use Brave minimally for at least one month so that I get credited the referral bonus.

Documentation

Setup

Downloads

All releases of FTVLaunchX can be downloaded as installable APKs from the release page.

If you are using Aptoide TV on your Fire TV device you can also download it directly from there.

Quick Installation Overview

FTVLaunchX needs the WRITE_SECURE_SETTINGS permission to enable an accessibility service on your Fire TV device.

If you know what you are doing then simply grant this permission by executing the following command in an ADB shell on your device:

$ pm grant de.codefaktor.ftvlaunchx android.permission.WRITE_SECURE_SETTINGS

For a step-by-step guide and more information on how to connect to your Fire TV device via ADB, follow the detailed installation instructions below.

Note to users of Fire TV Cube 2nd Generation: the WRITE_SECURE_SETTINGS permission seems to have been removed by Amazon; please manually enable the accessibility service of FTVLaunchX via the following two commands:

$ settings put secure enabled_accessibility_services de.codefaktor.ftvlaunchx/de.codefaktor.ftvlaunchx.HomeService
$ settings put secure accessibility_enabled 1

Detailed Installation Instructions

There are three ways to install FTVLaunchX: either directly on your Fire TV device via e.g. the Downloader app or, alternatively with the help of ADB from a mobile phone running Android or a desktop PC.

Pre-Requisites
  1. From the main screen of your Fire TV select Settings
  2. Select My Fire TV > Developer Options
  3. Turn on ADB Debugging
  4. Turn on Apps from Unknown Sources
  5. Go back to My Fire TV > About > Network
  6. Note the IP address of your device; you will need this later on
Method 1: directly on Fire TV
  1. Install the Downloader app from the Amazon App Store on your Fire TV device
  2. Open Downloader and navigate to github.com/codefaktor/FTVLaunchX/releases
  3. Find, download and install the latest release of FTVLaunchX
  4. Open Downloader and navigate to troypoint.com/radb
  5. The download should start automatically; click Install, then Open
  6. Follow the on-screen instructions and enter the IP address of your device when asked (see 6. in Pre-Requisites above)
  7. When presented with a command-line within the Remote ADB Shell application, enter and run the following command:
    pm grant de.codefaktor.ftvlaunchx android.permission.WRITE_SECURE_SETTINGS
    
    or on devices based on Fire OS 7 (e.g. Fire TV Cube 2nd Generation):
    settings put secure enabled_accessibility_services de.codefaktor.ftvlaunchx/de.codefaktor.ftvlaunchx.HomeService
    settings put secure accessibility_enabled 1
    
  8. Open FTVLaunchX, select a launcher and press the home button – enjoy!
Method 2: via ADB from an Android phone
  1. Use a browser to download the latest release of FTVLaunchX from the release page to your phone
  2. Install the Easy Fire Tools application from Google Play on your phone
  3. Install the Remote ADB Shell application from Google Play on your phone
  4. Open Easy Fire Tools, discover & connect to your Fire TV and install the downloaded release of FTVLaunchX
  5. Open Remote ADB Shell, connect to your Fire TV by using the IP address of your device (see 6. in Pre-Requisites above) and run the following command:
    pm grant de.codefaktor.ftvlaunchx android.permission.WRITE_SECURE_SETTINGS
    
    or on devices based on Fire OS 7 (e.g. Fire TV Cube 2nd Generation):
    settings put secure enabled_accessibility_services de.codefaktor.ftvlaunchx/de.codefaktor.ftvlaunchx.HomeService
    settings put secure accessibility_enabled 1
    
  6. Open FTVLaunchX on your Fire TV device, select a launcher and press the home button – enjoy!
Method 3: via ADB from a desktop PC or laptop
  1. Use a browser to download the latest release of FTVLaunchX from the release page to your computer
  2. Install ADB and connect to your Fire TV by using the IP address of your device (see 6. in Pre-Requisites above), see here for detailed instructions on how to do this
  3. Install the downloaded release of FTVLaunchX by executing one of the following commands (make sure to use the actual name of the downloaded file):
    • For devices running Fire OS 5 (e.g. Fire TV Stick 2nd Generation)
    adb install FTVLaunchX-x.y.z.apk
    adb shell pm grant de.codefaktor.ftvlaunchx android.permission.WRITE_SECURE_SETTINGS
    
    • For devices running Fire OS 6 (e.g. Fire TV Stick 4K)
    adb install -g FTVLaunchX-x.y.z.apk
    
    • For devices running Fire OS 7 (e.g. Fire TV Cube 2nd Generation)
    adb install FTVLaunchX-x.y.z.apk
    adb shell settings put secure enabled_accessibility_services de.codefaktor.ftvlaunchx/de.codefaktor.ftvlaunchx.HomeService
    adb shell settings put secure accessibility_enabled 1
    
  4. Open FTVLaunchX on your Fire TV device, select a launcher and press the home button – enjoy!

Note: if you are updating FTVLaunchX with this method then you will need to add the -r flag to the adb install commands in step 3.

Usage

Just start FTVLaunchX and select the application to use as your launcher:

From now on, every time you boot your device, wake it up from sleep or press the home button, you will be taken to this application.

As long as no launcher has been selected, FTVLaunchX will open itself.

The long-press-on-home menu

To access the original long-press-on-home menu or to open the settings menu of your Fire TV device, you will have to press and hold the menu and home buttons at the same time.

You can also get to the default Amazon home screen by using this method.

And, of course, you can also still use Alexa to get to the settings menu or the original Amazon home screen: just say "Home" or "Settings".

Lean back & enjoy!

Copyright

Copyright © 2020 Erik Abele.

All rights not explicitly granted by the LICENSE are reserved.

License

Licensed under the Apache License, Version 2.0 (the "License").

A copy of the License is included in the "LICENSE" text file; you may also obtain a copy at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

See the License for the specific language governing permissions and limitations under the License.


ftvlaunchx's People

Contributors

erikabele avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ftvlaunchx's Issues

Long Press home button

The app seems to work correctly on my TV, but I lose access to a long press of home button. I need it to select HDMI input. Is there any way retain that functionality? Thanks. I am on 6.2.6.4.

No longer works on Fire OS 6.2.7.2

App has suddenly stopped working after an automatic update to Fire OS 6.2.7.2 (Insignia Fire TV). Tried to add permissions again to no avail. Home button and startup hijacking no longer work.

HDMI-CEC Home event takes me back to the Amazon home screen

Issue
HDMI-CEC Home event takes me back to the Amazon home screen.

Context
I like to use my TV's remote control to help manage all devices which is why I have the HDMI CEC functionality enabled. This allows me to not need to use my separate default Amazon Fire Stick remote.

The problem is that pressing the Home button on the TV remote results in going to the default home screen rather than the one selected in FTVLauncherX.

Steps to Reproduce

  1. I'm using a Sony TV, but as long as it permits HDMI-CEC it should work. Hook up your TV via HDMI cable.
  2. Go to Settings > Displays & Sounds
  3. Enable HDMI CEC Device Control
  4. Confirm that it's working, by pressing the directional buttons on your TV
  5. Set up FTVLauncherX by installing the APK, and connect to ADB and run pm grant de.codefaktor.ftvlaunchx android.permission.WRITE_SECURE_SETTINGS
  6. Install something like LeanbackLauncher and link it to FTVLauncherX
  7. Press the Home button on the Amazon Fire -- assert that it goes to the LeanbackLauncher indicating that it's working fine.
  8. Press the Home button on your TV remote

Actual Results
Pressing Home on the TV remote goes back to the Amazon Fire Stick's home screen.

Expected Results
Pressing Home on the TV remote goes to the selected FTVLauncherX home screen.

Thanks for your consideration!

Does This Work In Android TV?

I'm switching away from the Fire TV over the update that bans customer launchers and am wondering if this launcher manager will work on the Google TV Chromecast

Fire OS 5.2.7.4

Seem to also be having issues since this update boot to launcher works but home button doesn't! Anyone else have this issue??

Not working after recent firestick (2nd gen and 4K) OS update

Recently an OS update for the Firestick 2md gen and Firestick 4K seems to have broken FTVLainchX and the home button feature.

  1. When the OS update is installed the user is greeted with a notice of a new accessibility feature
  2. Upon closing this notice the Firestick loads the default launcher and home screen
  3. Running FTVLainchX or applying the ADB shell commands does not cause the device to automatically load the launcher and
    the home button fuction to load the launcher does not work

I have verified this on the following devices and OS
Firestick 2nd Gen (OS 5.2.7.4)
Firestick 4K (OS 6.2.7.3)

Hopefully a quick resolution can be found
Thanks

restart it's worked but home button still back to amazon home

I use FTVlaunchX 3month maybe more . it's never happend like this.
I'm not sure the FireTV4K's ver it's update? now it's 6.2.7.3

restart it's worked .
but home button still back to amazon home.
i try to install again. can't fix it.

how to fix it?

tks.

[FEATURE REQUEST] Better nvidia ShieldTV / AndroidTV support

Nice project!

I just sideload it to my (foster) nvidia ShieldTV pro 2015 device (the one with hdd in it) and it works.
But there are some points:

  • I can no longer used the double-press one home to see my other opened apps

  • I can not use the "menu + home" button option just because shield users normally (there is a brand new remote) does have this menu button on the physical remote

  • The listed apps are not all. Would be nice if a user can choose of all apps. Like system settings and so one. Could be useful. And did you know the app "Activity Launcher". See here https://apkcombo.com/de-de/activity-launcher/de.szalkowski.activitylauncher/
    With this help to launch custom intent we could do a lot more, I think so. For example with this you can start your fav. netflix movie or show:
    https://stackoverflow.com/questions/35556634/movie-deeplink-for-netflix-android-tv-app-com-netflix-ninja

  • Is there no chance on AndroidTV to ask o the device to grant the WRITE_SECURE_SETTINGS permission?

  • Did you ever think about to add more options. Like to give the user the chance to choose which buttons do what. For example I would love to use the mic-button on my remote for the custom-app. Then my home, back buttons have the shield-standard behavior.

THX for your nice app and your mentioned love to shieldtv users ;-)

Still not working?

After updating my Fire TV Stick 2 LaunchX stopped working.
Will there be a fix?

FTVLaunchX a Sony XG9505 Android 9

Hello! I’ve installed FTVLauncherX on a Sony XG 9505 TV with Android 9 Pie for testing. The program works great by switching the original launcher to ATV Launcher Pro. There is only one feature: the volume control on the TV does not work when you hold the button. The volume increases or decreases by only one step per press. It doesn't matter which launcher I switch to. As soon as I activate FTVLauncherX, the volume control stops working properly. I understand that the program was not developed exactly for the Sony TV and Android 9, Is there any solution to the problem?

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.