FORUMS
Remove All Ads from XDA

[ROOT][GUIDE][2018] Enable Google Play Services and Play Store

469 posts
Thanks Meter: 175
 
By rainman74, Senior Member on 8th June 2018, 01:33 PM
Post Reply Email Thread


The following steps installs the newest Google Play Services and Play Store without using Leanback Launcher.

This manual is only possible with a rooted device! Please do not use restricted profiles from Google for this modification, as errors may occur.
  • Tested on a rooted Fire TV 4k box
  • Tested on a rooted Fire Stick 1st gen (thanks to @Antieco)
  • Firmware 5.2.6.2

Prerequisites: Install Xposed framework, HDXposed and BusyBox
XposedInstaller-3.1.5.apk (install Xposed v89+)
HDXPosed-1.3.apk
BusyBox

Main instructions:
Copy all files in the appendix to C:\adb\

1. Customize build.prop
mod-build.prop.sh
Code:
adb shell su -c mount -o remount,rw /system

adb push C:\adb\mod-build.prop.sh /sdcard/
adb shell su -c sh /sdcard/mod-build.prop.sh
adb shell su -c rm /sdcard/mod-build.prop.sh

adb shell su -c mount -o remount,ro /system
2. Install Open Google apps for Android TV
Download the matching zip file and copy it to the sdcard (I use current open_gapps arm64-5.1-tvstock-20180705).

Open GApps for ARM (Fire TV sticks & 1st gen boxes)
Open GApps for ARM64 (Fire TV 4k boxes)

Insert this code to new "gapps-config.txt" and copy it to the same directory as the GApps on the sdcard.
Code:
forceclean
skipswypelibs
skipvendorlibs
GoogleAssistant

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

Include

gappspico
Then install the GApps zip via TWRP and restart the device. Please don't sign up for Google Play Store yet!

3. Allow Google registration (NoTouchAuthDelegate)
Tv-NoTouchGsf.apk
Code:
adb shell su -c mount -o remount,rw /system

adb push C:\adb\Tv-NoTouchGsf.apk /sdcard/
adb shell su -c mkdir /system/app/NoTouchAuthDelegate/
adb shell su -c chmod 755 /system/app/NoTouchAuthDelegate/
adb shell su -c rm /system/app/NoTouchAuthDelegate/NoTouchAuthDelegate.apk
adb shell su -c cp /sdcard/Tv-NoTouchGsf.apk /system/app/NoTouchAuthDelegate/NoTouchAuthDelegate.apk
adb shell su -c chmod 644 /system/app/NoTouchAuthDelegate/NoTouchAuthDelegate.apk
adb shell su -c chown root:root /system/app/NoTouchAuthDelegate/NoTouchAuthDelegate.apk
adb shell su -c rm /sdcard/Tv-NoTouchGsf.apk

adb shell su -c mount -o remount,ro /system
4. Finish
Now restart the device and then sign in to Google Play Store.


Examples of apps you could use directly from the Google Play Store
  • Google app for Android TV (Android TV)
  • Google Play Movies & TV (Android TV)
  • Google Play Games (Android TV)
  • Google Play Music (Android TV)
  • YouTube for Android TV (Android TV)

Apps you have to sideload
You are using the Amazon TV Launcher?
If so, you will not see the Play Store because the launcher does not display any system apps. Please try instead of AppStarter or HALauchner or start the Play Store via adb.
Code:
adb shell am start -n com.android.vending/com.google.android.finsky.activities.TvMainActivity

If you get Google Error "0"
Install and configure Xinstaller from this thread.


Remove Google Account and sign in with another account or new or with the same one
TvSettings does not allow you to log out and login to your Google Account. With this script you can log out, so that you are asked to log in again via Google Play Store.
Code:
adb shell su -c mount -o remount,rw /system

adb shell su -c rm /data/system/users/0/accounts.db
adb shell su -c rm /data/system/users/0/accounts.db-journal
adb shell su -c rm /data/system/users/0/photo.png
adb shell su -c rm /data/system/sync/accounts.xml
adb shell su -c rm /data/system/sync/pending.xml
adb shell su -c rm /data/system/sync/stats.bin
adb shell su -c rm /data/system/sync/status.bin

adb shell su -c pm clear com.android.packageinstaller
adb shell su -c pm clear com.android.providers.downloads
adb shell su -c pm clear com.android.vending
adb shell su -c pm clear com.google.android.backuptransport
adb shell su -c pm clear com.google.android.gms
adb shell su -c pm clear com.google.android.gsf

adb push C:\adb\Tv-NoTouchGsf.apk /sdcard/
adb shell su -c mkdir /system/app/NoTouchAuthDelegate/
adb shell su -c chmod 755 /system/app/NoTouchAuthDelegate/
adb shell su -c rm /system/app/NoTouchAuthDelegate/NoTouchAuthDelegate.apk
adb shell su -c cp /sdcard/Tv-NoTouchGsf.apk /system/app/NoTouchAuthDelegate/NoTouchAuthDelegate.apk
adb shell su -c chmod 644 /system/app/NoTouchAuthDelegate/NoTouchAuthDelegate.apk
adb shell su -c chown root:root /system/app/NoTouchAuthDelegate/NoTouchAuthDelegate.apk
adb shell su -c rm /sdcard/Tv-NoTouchGsf.apk

adb shell su -c mount -o remount,ro /system

adb reboot

Please never log out of your Amazon account and log in again after using this guide, as this will destroy the Google Play Store functionality and the Google voice search. In this case you will need to restore either a backup or factory settings.


If you also want to use Google's Leanback Launcher and much more, then also have a look here.


.
Attached Thumbnails
Click image for larger version

Name:	home1.jpg
Views:	1336
Size:	185.4 KB
ID:	4521273   Click image for larger version

Name:	home2.jpg
Views:	844
Size:	108.0 KB
ID:	4521274  
The Following 6 Users Say Thank You to rainman74 For This Useful Post: [ View ] Gift rainman74 Ad-Free
 
 
9th June 2018, 01:44 AM |#2  
Senior Member
Thanks Meter: 16
 
More
Thank you very much for all you do.
The Following User Says Thank You to BRICK0044 For This Useful Post: [ View ] Gift BRICK0044 Ad-Free
11th June 2018, 11:10 PM |#3  
ryknow27's Avatar
Senior Member
Thanks Meter: 27
 
More
Thanks! Can't wait to try it out!
12th June 2018, 04:19 AM |#4  
Antieco's Avatar
Senior Member
Thanks Meter: 80
 
More
Does it works on fire stick 1?

Enviado desde mi A0001 mediante Tapatalk
12th June 2018, 07:52 AM |#5  
rainman74's Avatar
OP Senior Member
Flag Munich
Thanks Meter: 175
 
More
Quote:
Originally Posted by Antieco

Does it works on fire stick 1?

Enviado desde mi A0001 mediante Tapatalk

If it is rooted, then yes.
13th June 2018, 03:03 PM |#6  
Junior Member
Thanks Meter: 0
 
More
Fire OS 6
Hi.

My device has Fire OS 6. Does anyone know how to root it and if this will work with it?

Thanks.
13th June 2018, 03:21 PM |#7  
rainman74's Avatar
OP Senior Member
Flag Munich
Thanks Meter: 175
 
More
Quote:
Originally Posted by mcardia

Hi.

My device has Fire OS 6. Does anyone know how to root it and if this will work with it?

Thanks.

There is no root option for Fire OS 6.x at the moment and probably there will be none in the future.
13th June 2018, 10:56 PM |#8  
Antieco's Avatar
Senior Member
Thanks Meter: 80
 
More
I get sed: not found on step 1
14th June 2018, 12:44 AM |#9  
rainman74's Avatar
OP Senior Member
Flag Munich
Thanks Meter: 175
 
More
Quote:
Originally Posted by Antieco

I get sed: not found on step 1

Please install BusyBox.
14th June 2018, 12:53 AM |#10  
Antieco's Avatar
Senior Member
Thanks Meter: 80
 
More
i managed to edit build.prop manually with your mod values.
I just cannot see any apps, i think i mess some amazon stuff, it boots, loads the default launcher, but cannot see any apps, so cannot run gapps to use leanback launcher, is there a way to run apps from adb or something? i googled and I read that in order to launch an app i need package name? any help will be welcomed
14th June 2018, 01:13 AM |#11  
rainman74's Avatar
OP Senior Member
Flag Munich
Thanks Meter: 175
 
More
Quote:
Originally Posted by Antieco

i managed to edit build.prop manually with your mod values.
I just cannot see any apps, i think i mess some amazon stuff, it boots, loads the default launcher, but cannot see any apps, so cannot run gapps to use leanback launcher, is there a way to run apps from adb or something? i googled and I read that in order to launch an app i need package name? any help will be welcomed

please write output of "adb shell pm list packages | grep google" and send me the gapps logs:
  • open_gapps_debug_logs.tar.gz
  • open_gapps_log.txt

To start an app use:
adb shell am start -n com.package.name/.MainActivity
You can find out the package names and activities with the App "Activities".

Example:
adb shell am start -n org.xbmc.kodi/.Splash
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes