[GUIDE][ROOT] Play Store on Fire TV

Search This thread

Bracket-

Member
Jul 8, 2015
10
8
Requirements:
  • TWRP recovery or equivalent
  • Root access
  • Android Debug Bridge (adb)
  • Know how to connect to device through adb (USB, network)
  • Ability to extract tar, lz and zip archives (7-Zip, Lzip)
  • Allowed apps from unknown sources through Fire OS
  • Ability to launch system apps (ES File Explorer, FireStarter)
  • USB or bluetooth mouse helps but is not required

Installation:
  1. Install Xposed and the HDXPosed module
  2. Download and install Open GApps ARM64, 5.1, pico using TWRP recovery
  3. Download Google Play Store (Android TV) and rename APK to Phonesky.apk
  4. Create a temporary folder on your Fire TV:
    Code:
    adb shell mkdir -p /sdcard/gtmp/lib/
  5. Push Phonesky.apk to your Fire TV:
    Code:
    adb push Phonesky.apk /sdcard/gtmp/
  6. Extract Core/gmscore-arm64.tar.lz and Core/gsflogin-all.tar.lz from the Open GApps archive obtained during step #2
  7. Extract the contents of gmscore-arm64.tar.lz and gsflogin-all.tar.lz
  8. Push these newly extracted files to your Fire TV:
    Code:
    adb push gsflogin-all/nodpi/priv-app/GoogleLoginService/GoogleLoginService.apk /sdcard/gtmp/
    adb push gmscore-arm64/nodpi/priv-app/PrebuiltGmsCore/PrebuiltGmsCore.apk /sdcard/gtmp/
    adb push gmscore-arm64/common/priv-app/PrebuiltGmsCore/lib/arm64/* /sdcard/gtmp/lib/
  9. Enter adb shell and run su for root
  10. Mount the /system partition with rw access
    Code:
    mount -o remount,rw /system
  11. Create missing directories that Open GApps failed to create:
    Code:
    mkdir /system/priv-app/Phonesky
    mkdir /system/priv-app/GoogleLoginService
    mkdir -p /system/priv-app/PrebuiltGmsCore/lib/arm64
  12. Copy the missing APKs and libraries to their proper locations:
    Code:
    cp /sdcard/gtmp/Phonesky.apk /system/priv-app/Phonesky/
    cp /sdcard/gtmp/GoogleLoginService.apk /system/priv-app/GoogleLoginService/
    cp /sdcard/gtmp/PrebuiltGmsCore.apk /system/priv-app/PrebuiltGmsCore/
    cp /sdcard/gtmp/lib/* /system/priv-app/PrebuiltGmsCore/lib/arm64/
  13. Change the permissions for the newly created files and directories:
    Code:
    chmod 755 /system/priv-app/{GoogleLoginService/,Phonesky/,PrebuiltGmsCore/,PrebuiltGmsCore/lib/,PrebuiltGmsCore/lib/arm64/}
    chmod 644 /system/priv-app/Phonesky/Phonesky.apk
    chmod 644 /system/priv-app/GoogleLoginService/GoogleLoginService.apk
    chmod 644 /system/priv-app/PrebuiltGmsCore/PrebuiltGmsCore.apk
    chmod 644 /system/priv-app/PrebuiltGmsCore/lib/arm64/*
  14. Remove the temporary folder:
    Code:
    rm -r /sdcard/gtmp/
  15. Exit adb shell
  16. Download Google Play services (Android TV), variant 846 (8 for Android TV, 4 for arm64-v8a, 6 for 320 dpi) and rename APK to com.google.android.gms.apk
  17. Download Google Account Manager 4.4.4 and rename APK to com.google.android.gsf.login_4.4.4.apk
  18. Install Google Play services (Android TV) and Google Account Manager 4.4.4 using adb:
    Code:
    adb install 'com.google.android.gms.apk'
    adb install -r -d 'com.google.android.gsf.login_4.4.4.apk'
  19. Disconnect adb and reboot Fire TV
  20. Connect to adb, enter adb shell and run su
  21. Mount the /system partition as ro
    Code:
    mount -o remount,ro /system
  22. Exit adb shell and disconnect adb

Play Store Setup:
  1. Launch Google Play Store. Play Store is a system app and requires a program such as ES File Explorer or FireStarter to launch.
  2. Login to your Google account. You should be able to fully navigate this version of Google Account Manager with the Fire remote, but a mouse can be helpful.
  3. Play Store should have launched and you can now install Android TV apps and use apps that require Play Store or Google accounts.

Credits:
AFTVnews for their Play Store guide
guyHalestorm for his updated AFTVnews Play Store guide
 
Last edited:

Bracket-

Member
Jul 8, 2015
10
8
I created this because guyHalestorm's guide was getting pretty outdated and wanted a better guide for the next time I have to install Play Store instead of referencing multiple guides, comments and updating commands.

Notes:
  • I omitted some very, very basic things from the guide such as how to use adb, extract archives, and launch system apps from specific apps due to the guide already being very long and most XDA users should be familiar with these or can be easily learned from Google.
  • Windows users may have to replace forward slashes (/) with back slashes (\) in paths depending on their shell.
  • I only tested this on my Fire TV 2 but I don't see why this wouldn't work on other Fire TV devices with root. I didn't personally test this 1:1 since I already installed Play Store, so let me know there's problems.
 
Last edited:
  • Like
Reactions: Kramar111

Bracket-

Member
Jul 8, 2015
10
8
Made a couple changes to the guide which are hopefully the last:
  • Fixed minor typos
  • Fixed Phonesky.apk source directory path in cp command (command would have failed)
  • Greatly simplified push and copy commands which should also improve future Open GApps compatibility
  • Corrected directory and file permissions (chmod) which may have worked before but were incorrect and possibly insecure. If you've followed the guide before, do step 9 & 10, 13 and then 21 & 22
 
Last edited:

rainman74

Senior Member
Jul 31, 2016
720
309
Munich
First of all thank you @Bracket- for the guide :good:

I have done Everything exactly like the guide
but i can't open the playstore.
When i open it, it loads for few seconds and then it close.
Do you have or anybody else here have an idea why this happens?
My system: Fire TV 2, 5.2.6.2 rooted, xposed and hdxposed installed

If you already have root, this guide is much too complicated :eek:

Simply modify build.prop and then install the appropriate GApps and you have the complete Play Store & Services available.

Take a look around: here

You only need these steps:
  • 2. Customize build.prop
  • 4. Install Open Google apps for Android TV (the newest version works fine)
  • 5. Allow Google registration (NoTouchAuthDelegate)

Prerequisites:
XposedInstaller-3.1.5.apk (install Xposed v89+)
HDXPosed-1.3.apk
BusyBox
 
Last edited:
  • Like
Reactions: chris-89
If you already have root, this guide is much too complicated :eek:

Simply modify build.prop and then install the appropriate GApps and you have the complete Play Store & Services available.

Take a look around: here

You only need these steps:
2. Customize build.prop
4. Install Open Google apps for Android TV (the newest version works fine)
5. Allow Google registration (NoTouchAuthDelegate)


Prerequisites:
XposedInstaller-3.1.5.apk (install Xposed v89+)
HDXPosed-1.3.apk
BusyBox

Thanks for you help :good:
I will do this tomorrow.
Short question: do i need also the gapps-config.txt or not?
And when i need it, what did i need for using only the playstore and services?
 

rainman74

Senior Member
Jul 31, 2016
720
309
Munich
Thanks for you help :good:
I will do this tomorrow.
Short question: do i need also the gapps-config.txt or not?
And when i need it, what did i need for using only the playstore and services?

yes, you need gapps-config.txt
Code:
forceclean
skipswypelibs
skipvendorlibs
GoogleAssistant

+extsharedstock
+keyboardstock
+provision
+packageinstallerstock
+webviewstock
+notouchauthdelegate

Include

gappspico
 
  • Like
Reactions: chris-89

rainman74

Senior Member
Jul 31, 2016
720
309
Munich
Thanks, playstore works now :victory:

Btw whats the different between the notouchauthdelegate.apk from the gapps package and your tv-notouchgsf.apk? and why we need yours and not the one from the package? I ask just for my understanding

The package com.google.android.gsf.notouch of Open GApps (TV-Stock version) does not work on Fire TV so that the AndroidManifest.xml had to be modified.
 
Last edited:
  • Like
Reactions: chris-89

Seika85

New member
Dec 1, 2010
3
5
Dresden
I followed the guide as exactly as I could:
  • I did not install Xposed and the HDXPosed module, because it is nowhere stated what it is for.
  • Open Gapps arm64 releases of 5 September 2018 are the last containing Core/gsflogin-all.tar.lz. So I used:
    open_gapps-arm64-5.1-pico-20180905.zip.
  • my /system ran out of memory, so I had to create a symlink:
    Code:
    ln -s /data/priv-app/PrebuiltGmsCore /system/priv-app/PrebuiltGmsCore
    and continued without any error from there.

But when I run Google Play Store app and try to login, I get Error [RH-01].
 

Top Liked Posts

  • There are no posts matching your filters.
  • 5
    Requirements:
    • TWRP recovery or equivalent
    • Root access
    • Android Debug Bridge (adb)
    • Know how to connect to device through adb (USB, network)
    • Ability to extract tar, lz and zip archives (7-Zip, Lzip)
    • Allowed apps from unknown sources through Fire OS
    • Ability to launch system apps (ES File Explorer, FireStarter)
    • USB or bluetooth mouse helps but is not required

    Installation:
    1. Install Xposed and the HDXPosed module
    2. Download and install Open GApps ARM64, 5.1, pico using TWRP recovery
    3. Download Google Play Store (Android TV) and rename APK to Phonesky.apk
    4. Create a temporary folder on your Fire TV:
      Code:
      adb shell mkdir -p /sdcard/gtmp/lib/
    5. Push Phonesky.apk to your Fire TV:
      Code:
      adb push Phonesky.apk /sdcard/gtmp/
    6. Extract Core/gmscore-arm64.tar.lz and Core/gsflogin-all.tar.lz from the Open GApps archive obtained during step #2
    7. Extract the contents of gmscore-arm64.tar.lz and gsflogin-all.tar.lz
    8. Push these newly extracted files to your Fire TV:
      Code:
      adb push gsflogin-all/nodpi/priv-app/GoogleLoginService/GoogleLoginService.apk /sdcard/gtmp/
      adb push gmscore-arm64/nodpi/priv-app/PrebuiltGmsCore/PrebuiltGmsCore.apk /sdcard/gtmp/
      adb push gmscore-arm64/common/priv-app/PrebuiltGmsCore/lib/arm64/* /sdcard/gtmp/lib/
    9. Enter adb shell and run su for root
    10. Mount the /system partition with rw access
      Code:
      mount -o remount,rw /system
    11. Create missing directories that Open GApps failed to create:
      Code:
      mkdir /system/priv-app/Phonesky
      mkdir /system/priv-app/GoogleLoginService
      mkdir -p /system/priv-app/PrebuiltGmsCore/lib/arm64
    12. Copy the missing APKs and libraries to their proper locations:
      Code:
      cp /sdcard/gtmp/Phonesky.apk /system/priv-app/Phonesky/
      cp /sdcard/gtmp/GoogleLoginService.apk /system/priv-app/GoogleLoginService/
      cp /sdcard/gtmp/PrebuiltGmsCore.apk /system/priv-app/PrebuiltGmsCore/
      cp /sdcard/gtmp/lib/* /system/priv-app/PrebuiltGmsCore/lib/arm64/
    13. Change the permissions for the newly created files and directories:
      Code:
      chmod 755 /system/priv-app/{GoogleLoginService/,Phonesky/,PrebuiltGmsCore/,PrebuiltGmsCore/lib/,PrebuiltGmsCore/lib/arm64/}
      chmod 644 /system/priv-app/Phonesky/Phonesky.apk
      chmod 644 /system/priv-app/GoogleLoginService/GoogleLoginService.apk
      chmod 644 /system/priv-app/PrebuiltGmsCore/PrebuiltGmsCore.apk
      chmod 644 /system/priv-app/PrebuiltGmsCore/lib/arm64/*
    14. Remove the temporary folder:
      Code:
      rm -r /sdcard/gtmp/
    15. Exit adb shell
    16. Download Google Play services (Android TV), variant 846 (8 for Android TV, 4 for arm64-v8a, 6 for 320 dpi) and rename APK to com.google.android.gms.apk
    17. Download Google Account Manager 4.4.4 and rename APK to com.google.android.gsf.login_4.4.4.apk
    18. Install Google Play services (Android TV) and Google Account Manager 4.4.4 using adb:
      Code:
      adb install 'com.google.android.gms.apk'
      adb install -r -d 'com.google.android.gsf.login_4.4.4.apk'
    19. Disconnect adb and reboot Fire TV
    20. Connect to adb, enter adb shell and run su
    21. Mount the /system partition as ro
      Code:
      mount -o remount,ro /system
    22. Exit adb shell and disconnect adb

    Play Store Setup:
    1. Launch Google Play Store. Play Store is a system app and requires a program such as ES File Explorer or FireStarter to launch.
    2. Login to your Google account. You should be able to fully navigate this version of Google Account Manager with the Fire remote, but a mouse can be helpful.
    3. Play Store should have launched and you can now install Android TV apps and use apps that require Play Store or Google accounts.

    Credits:
    AFTVnews for their Play Store guide
    guyHalestorm for his updated AFTVnews Play Store guide
    2
    Made a couple changes to the guide which are hopefully the last:
    • Fixed minor typos
    • Fixed Phonesky.apk source directory path in cp command (command would have failed)
    • Greatly simplified push and copy commands which should also improve future Open GApps compatibility
    • Corrected directory and file permissions (chmod) which may have worked before but were incorrect and possibly insecure. If you've followed the guide before, do step 9 & 10, 13 and then 21 & 22
    1
    I created this because guyHalestorm's guide was getting pretty outdated and wanted a better guide for the next time I have to install Play Store instead of referencing multiple guides, comments and updating commands.

    Notes:
    • I omitted some very, very basic things from the guide such as how to use adb, extract archives, and launch system apps from specific apps due to the guide already being very long and most XDA users should be familiar with these or can be easily learned from Google.
    • Windows users may have to replace forward slashes (/) with back slashes (\) in paths depending on their shell.
    • I only tested this on my Fire TV 2 but I don't see why this wouldn't work on other Fire TV devices with root. I didn't personally test this 1:1 since I already installed Play Store, so let me know there's problems.
    1
    First of all thank you @Bracket- for the guide :good:

    I have done Everything exactly like the guide
    but i can't open the playstore.
    When i open it, it loads for few seconds and then it close.
    Do you have or anybody else here have an idea why this happens?
    My system: Fire TV 2, 5.2.6.2 rooted, xposed and hdxposed installed

    If you already have root, this guide is much too complicated :eek:

    Simply modify build.prop and then install the appropriate GApps and you have the complete Play Store & Services available.

    Take a look around: here

    You only need these steps:
    • 2. Customize build.prop
    • 4. Install Open Google apps for Android TV (the newest version works fine)
    • 5. Allow Google registration (NoTouchAuthDelegate)

    Prerequisites:
    XposedInstaller-3.1.5.apk (install Xposed v89+)
    HDXPosed-1.3.apk
    BusyBox
    1
    Thanks for you help :good:
    I will do this tomorrow.
    Short question: do i need also the gapps-config.txt or not?
    And when i need it, what did i need for using only the playstore and services?

    yes, you need gapps-config.txt
    Code:
    forceclean
    skipswypelibs
    skipvendorlibs
    GoogleAssistant
    
    +extsharedstock
    +keyboardstock
    +provision
    +packageinstallerstock
    +webviewstock
    +notouchauthdelegate
    
    Include
    
    gappspico