yashsingh1/xdaforums huggingface dataset:
[Fire TV Q&A, Help & Troubleshooting] vrl2:
hint: log into google play via adb with "tap" command

I saw that the guide recommends a "remote mouse" app to log in remotely. Instead, when the time comes to click the "next" button (after entering email & password), just open a terminal and (after connecting to your AFTV via adb) type:

adb shell input tap 1800 1000

The last two values (the x and y coordinates for the "next" button) are approximate, but work fine on my 1080p display.

Any more thoughts on the 976 error? I've tried fully wiping all partitions, re-installing, and following the guide, but the same error occurs for the Leanback Play Store as well as sideloaded Play Store 5.1.11 (search works and the file downloads but then throws a 976 error).

In my case, it doesn't eliminate the 976 error if I use the modded gapps posted in this form ("open_gapps-arm64-5.1-nano-20160207.zip"). If I flash an unmodified zip of gapps (and then uninstall Play Store from System Apps with ES Explorer, and then side-load an .apk of the play store after) it gives me the same outcome as the modded zip. Renaming the play store before flashing ("Phonesky.apk") doesn't help. I also get the same results if I'm using Markethelper.

Later I will check to see if downgrading from TWRP 3.0.0-2 to 3.0.0-1 makes any difference, unless someone can already confirm whether TWRP version plays a role.

I'd appreciate any thoughts! Thank you all!
[Fire TV Q&A, Help & Troubleshooting] BagiMT:
Here is the link to Wukong remote https://play.google.com/store/apps/details?id=com.wukongtv.wkhelper.en&hl=en. It also works with the regular play store if somebody wants to keep testing that. I have never had the 976 error so can't help with that. Next step will be to look at error logs and see what is going on. Hopefully at some point we can figure out how to get the leanback Play Store fully working (with the widgets) or even get the regular play store working.
[Fire TV Q&A, Help & Troubleshooting] dk1keith:
Thanks. Worked for me. For some reason my k400 didn't work to select Accept.
[Fire TV Q&A, Help & Troubleshooting] elliwigy:
i have the 5.10 leanback apk in priv app folder and no play store at app in app folder but it updated to 6.0.5 i believe it is.. it will launch but immediately closes
[Fire TV Q&A, Help & Troubleshooting] elliwigy:
well thatd be my issue then.. i had 5.10 store in my priv app folder instead of app folder.. i will try moving to regular app to see if it will not update automatically..

I do have a test rom ready i just need to make into an useable img file..

unless someone wants to creat or provide an update script/bibary to just flash it in twrp lol
[Fire TV Q&A, Help & Troubleshooting] vrl2:
could "isFireTvNotification" be responsible for 976 error?

Thanks for all the work assembling the guide on how to flash gapps with HDXposed, etc. Just posting my most recent results attempting to get the play store to install apps (ends with 976 error), along with the last part of 'adb logcat' just before the installation crashes (6.02-leanback) below. The installation ends with:

I ran the steps in the guide with the newest version of Open Gapps Nano for ARM64 (open_gapps-arm64-5.1-nano-20160210). I then used ES File Explorer to uninstall Play Store (in System Apps) and sideloaded each of the following versions of the Google Play Store:

6.0.0, 5.12.10, 5.9.12, 5.12.9, 6.0.5

Play store starts. I'm able to browse and search, but the play store exits back to launcher when click "install" on an app (with no error message)

6.1.12, 6.2.10

App doesn't start. Error: "This version of the app isn't compatible with your device."

5.1.11, 6.0.2-leanback, 5.10.31-leanback, 5.10.30-leanback

Play store starts. I'm able to browse, search, and the download completes if I click "install" on an app." Installation aborts with error: "App can't be installed. Try again, and if the problem continues, get help troubleshooting. Error code: 976"

Thanks everyone for all the work. Looking forward to hearing any thoughts on how to get the play store to install apps.

Cheers,
[Fire TV Q&A, Help & Troubleshooting] BagiMT:
Are you doing this on a FTV 1 (buelller)? What rom version? If you are on FTV 1 that might be the issue.
[Fire TV Q&A, Help & Troubleshooting] vrl2:
It's an FTV2 (sloane). Using rbox's pre-rooted rom 5.0.4_r2
[Fire TV Q&A, Help & Troubleshooting] vrl2:
BuellerDeviceService.apk and Play Store Error 976

I'm now wondering whether this APK is found on all AFTV2s, and what it does aside from (potentially) blocking Play Store from installing apps. "BuellerDeviceService.apk" appears twice in System Apps. I can't run either .apk, but the associated package name is "com.amazon.bueller.notification." When the play store stops the installation with the 976 error, it appears to involve this package:

"BuellerDeviceService( 682): isFireTvNotification(): stock Android notification, id=-1050172287, title='CBS Sports', passing on..."

Would anyone happen to know offhand if this is crucial for anything on the AFTV2, or whether it's safe to attempt to disable BuellerDeviceService.apk?
[Fire TV Q&A, Help & Troubleshooting] rbox:
As long as recovery is working, you can just rename it so it doesnt end in apk. If it breaks, boot back to recovery and rename it back.
[Fire TV Q&A, Help & Troubleshooting] vrl2:
Thanks for your excellent work so far [MENTION=3991724]rbox[/MENTION] - TWRP on the AFTV2 has been incredibly useful (the icing on the cake is that it even plays well with the arrow keys on the mele airmouse I'm using, so I don't have to plug in a USB keyboard)! I'll wait for your unbrick image, then I'll then report back about whether renaming the system app BuellerDeviceService.apk gets around installation error 976 in the leanback play store.

Cheers,
[Fire TV Q&A, Help & Troubleshooting] elliwigy:
i was able to get v4a working great with selinux enforcing
[Fire TV Q&A, Help & Troubleshooting] elliwigy:
i also tried "Disable Services" from the play store but not sure what to disable within google play to keep it from updating
[Fire TV Q&A, Help & Troubleshooting] Somvang`:
I was stuck in the same situation as you... finally got it to work though. I flashed the pre-rooted stock, unmodded gapps, xposed installer, rebooted.

Then I installed xposed.apk, HDXPosed.apk and activated it in the xposed app, restarted.

Moved the "com.android.vending_5.10.31-leanback-80403186_minAPI21\(nodpi\).apk" in to /system/priv-app/Phonesky and deleted the file that was in there.

Renamed the file I just moved to Phonesky.apk and restarted.

I'm just happy its working now.
[Fire TV Q&A, Help & Troubleshooting] deanr1977:
When I move the file do can i do with adb fire or use cmd to do this? What commands would I need to use & also the command to change the name to phonesky.apk like you just done? If you wouldn't mind that would be very helpful to all of us
[Fire TV Q&A, Help & Troubleshooting] elliwigy:
use a root browser lol
[Fire TV Q&A, Help & Troubleshooting] deanr1977:
Ha ha my bad since not having root its the first time I've had access inside the system files, ok so I moved the leanback store Into the location but first deleted the Phonesky.apk & renamed the leanback to Phonesky.apk, rebooted & now when I open the store It bounces me back out after 2 or 3 seconds?
[Fire TV Q&A, Help & Troubleshooting] elliwigy:
you did set permissions and reboot device so the changes kick in?
[Fire TV Q&A, Help & Troubleshooting] deanr1977:
I'm checking the permissions now, & rebooted (what do I need to set the permissions to?), it looked like it where gonna work then but it just booted me out after I tried to install YouTube
[Fire TV Q&A, Help & Troubleshooting] Somvang`:
I used ES File Explorer, simply deleted the Phonesky.apk and renamed the leanback to Phonesky, didn't set/change any permissions.
[Fire TV Q&A, Help & Troubleshooting] elliwigy:
permissions for an apk should be set to rw-r-r
[Fire TV Q&A, Help & Troubleshooting] deanr1977:
Moved to the system/priv apps section, no joy, I moved to the system/apps section like someone else tried, also no joy, rebooted inbetween testing different methods, wiped cache & data on apk too, but still getting "Error code 976" ? Wow this is frustrating haha
[Fire TV Q&A, Help & Troubleshooting] elliwigy:
yea.. especially when you know it works lol
[Fire TV Q&A, Help & Troubleshooting] deanr1977:
Yeah I know, it just gets to the same bit of the download everytime now & then throws up that error? Has anyone else whos had that error got around this?
[Fire TV Q&A, Help & Troubleshooting] Somvang`:
Do you have market helper installed by any chance? When I had that installed, my play store would close itself in like 2-3 seconds, but when I uninstalled it, works without a problem.
[Fire TV Q&A, Help & Troubleshooting] deanr1977:
No I haven't tried it? I may give it a go another day or try redoing the whole thing again? Erm is there a md5 for this download? Maybe that could be the problem that only a few of us are getting?
[Fire TV Q&A, Help & Troubleshooting] KainanMaki:
I finally did, helped by almost every answer in this thread :D

The steps on the next post.

---------- Post added at 05:15 AM ---------- Previous post was at 04:30 AM ----------

How to solve Google Play Store Error Code 976?

PLEASE READ EVERYTHING ONCE BEFORE STARTING (I´m not responsible for any results)

1) Copy your 5.0.4 Rom zip file on your external micro SD card

2) Launch Recovery

3) Choose Wipe and then Advanced Wipe,

4) CAREFUL HERE! Check every box besides Micro SDCard and USB and DON'T REBOOT after wipe is finished

5) Use the back arrow twice to get to main menu

6) Now hit Install, Select Storage and choose Micro SDCard, and flash your 5.0.4 ROM.

7) Reboot, then complete the usual first time steps to get to the main menu.

8) Check ADB Debbuging and Unknown Applications as usual on the Developer Options section.

9) Download the ARM64 5.1 Nano version of GAPPS from http://opengapps.org/

10) Download v80 SDK 22 ARM64 zip from http://xdaforums.com/showthread.php?t=3034811

11) Push both files to the FTV to any folders you like.

12) Launch recovery again and flash both files, after that reboot.

13) Download and Install Xposed Installer Alpha 4 http://xdaforums.com/showthread.php?t=3034811

14) Download and Install HDX http://xdaforums.com/showthread.php?t=2618158

15) Reboot to get HDX working

16) Download (don't install) play store 5.10.31 leanback http://www.apkmirror.com/apk/google-inc/google-play-store/

17) Don't install this APK, just push it to any folder you like of the FTV.

18) Install RootExplorer (or any other program that can change permissions and cut/copy/paste)

19) Using RootExplorer, cut the APK we just pushed and paste it on /System/priv-app/Phonesky/

20) It will ask to remount and Root access to perform this steps so accept both.

20) In this Phonesky folder we have to delete the file Phonesky.apk

20) Check the box of the pasted file and then rename it to "Phonesky.apk" (the rename options is on the 3 dots icon)

21) Now we need to change the permissions of the file to rw-r--r-- (step 22)

22) Having the file with its box checked, hit the 3 dots and choose permissions.

23) Check the 3 boxes on Read column, and just the first box on Write column, leave the other 5 unchecked.

24) After hitting OK reboot the FTV (not sure if necessary but just in case).

25) Download and install Wukong remote server on your FTV (https://apkpure.com/wukong-remote-server-for-tv/com.wukongtv.wkhelper.en)

26) Enter the app and grant Root.

27) Install the Wukong client on your phone/tablet (google wukong tv remote on play store)

28) Open the app and introduce your FTV IP address.

29) Install your 3rd Pary prefered launcher (mine is TVLauncher on play store). You need it to open Play Store.

30) Enter your launcher and open Play Store from there

31) Open play store and log-in using the Mouse Mode on the Wukong Client to click next at every step.

31) Uncork champagne and enjoy!
[Fire TV Q&A, Help & Troubleshooting] dk1keith:
Finally got Google Play working. Still not seeing many apps in the Playstore though. Even using the Markethelper. Play Store opens and I can search, but very few results come up. Tried setting Markethelper to Android TV, but that made no difference.
[Fire TV Q&A, Help & Troubleshooting] Ludacrisvp:
Will look at doing the 31 step process later today (maybe) but I noticed the HDX thread mentions that it is obsolete (dead) and they are using something called safestrap v4 now... is that something we need to look at on the FTV2?

http://xdaforums.com/showpost.php?p=63635562&postcount=104
[Fire TV Q&A, Help & Troubleshooting] liam08:
I'm trying to install Xposed through recovery, but it just won't install. I'm constantly getting a message saying;

Any ideas? Probably me being an idiot. Thanks.
[Fire TV Q&A, Help & Troubleshooting] elliwigy:
lmao safestrap has nothing at all to do with xposed modules.. safestrap is a psuedo recovery similar to flashfire and is typically for devices that dont have twrp or similar recoveries (mostly locked BL devices)
[Fire TV Q&A, Help & Troubleshooting] Ludacrisvp:
Sorry for being a noob, I'm mainly an Apple guy. last time I really used android it was 1.5/2.0 days and was booting it up from my windows phone (the touch pro 2) and then I had the HTC One M7 for a few months but that worked pretty easy, however the only thing I liked about the phone even with various custom ROMs was the speakers, I hated using it to make calls as the cut of the device wasn't comfortable and it always pulled my hair out of the side of my head (would get caught between the display and speaker grill). With the M7 i was running CM10 and had unlocked bootloader so life was way easy.

The FireTV Stick FireTV2 are my only real long term investments in the android world these days, and with the stick we couldn't do much as no software root was available.

The way i was reading the thread made it sound like the xposed module was old and outdated and therefore wasn't doing all that was needed to get the play store to work with amazon devices. So that we would want to incorporate whatever they were doing with safestrap to get it done, I didn't realize that it was just another form of recovery.
[Fire TV Q&A, Help & Troubleshooting] elliwigy:
i see.. theres a few posts in here with instructions weve been successful at and twrp is way more efficient than using safestrap
[Fire TV Q&A, Help & Troubleshooting] Ludacrisvp:
So I followed the 31 step program, except I didn't do anything that involved "wukong". As I have a wireless keyboard with touchpad to do what that app seems to have been for.

Still error 976.

Wiping cache / Dalvik does take a long time (10+ minutes) fwiw.

Not really sure what replacing Phonesky.apk is gaining me... the app store still needs to be installed / run even if it is called phonesky.apk and lives in /system/priv-apps/
[Fire TV Q&A, Help & Troubleshooting] rbox:
Wiping cache a) isn't necessary b) shouldn't take a long time. Try doing an advanced wipe of cache from the wipe menu in recovery. 10+ minutes could mean there is something wrong with it.
[Fire TV Q&A, Help & Troubleshooting] Ludacrisvp:
Both times that I've done the cache wipe has taken about the same time.

One time I had done the basic cache and dalvik wipe, the second time it as the advanced method as part of that 31 step process.

Both spent 99% of their time in the formatting stage. Which I guess is the expected place but still it was insanely longer to complete than I had remembered from my days with the HTCOne.
[Fire TV Q&A, Help & Troubleshooting] rbox:
Advanced wipe of Cache should only take a few seconds.
[Fire TV Q&A, Help & Troubleshooting] elliwigy:
he was saying it shouldnt take that long and its not necessary regardless of anything lol

you should however report if the store worked or not for you

edit: you stated store did not work for you.

edit 2: Not sure why ppl cant get ut to work.. either instructions are flawed or you did something wrong lol
[Fire TV Q&A, Help & Troubleshooting] BagiMT:
Here a few more thoughts on the infamous 976 error based on trials and errors over the last couple of days. While initially the leanback Play Store was working fine on my box, at some point I started getting the 976 error. I flashed the Gapps again and (after some issues with /cache getting corrupted) Play Store was working again. Then I removed they Play Store from the system apps and installed it as a regular app and was back to the 976 error. Copying the leanback Play Store over to priv-app solved the issue. So it seems that in order for it to work the Play Store needs to be installed as a system app in Android 5.1 in order to get permission to install apps. The name of the apk and the folder does not matter (mine is currently com.android.vending) as long as you remove the version that was installed with Gapps. Very important, make sure the folder permissions for your play store folder in priv-app is set to drwxr_xr_x (chmod 755), else it won't work. So it seems that the 31 step process might be an overkill if you already have Gapps, Xposed, and HDXposed setup and just want to fix the 976 issue. All you need to do is make sure the Play Store is installed as a system app with the correct permissions. I hope that helps.
[Fire TV Q&A, Help & Troubleshooting] vrl2:
I can confirm that google play store (leanback version 6.0.2) fully works on pre-rooted 5.0.5 -- however, no version of the Play Store that I've tested supports the mouse anymore (mouse cursor was visible in the play store under 5.0.4, but not under 5.0.5). Play store version 5.1.11 also works, downloads, and installs - however, since the mouse cursor is invisible, navigation is a challenge.

EDIT:

Haven't figured out a way to disable updates. Still updates to play store 6.0.5 after reboot. Uninstalling the update brings back leanback play store.
[Fire TV Q&A, Help & Troubleshooting] Hoggels:
I can not press accept

I have installed the pre-rooted Image V3

here a video with my problem by starting google playstore

https://youtu.be/7BvSIY9wni0

you can replay in english or better in german ;)

thx for helping
[Fire TV Q&A, Help & Troubleshooting] deanr1977:
just open a terminal and (after connecting to your AFTV via adb) type:

adb shell input tap 1800 1000

The last two values (the x and y coordinates for the "next" button) are approximate, but work fine on my 1080p display.
[Fire TV Q&A, Help & Troubleshooting] Hoggels:
Great .. its runnung !!! very thx ... next problem error code 976...
[Fire TV Q&A, Help & Troubleshooting] deanr1977:
No problem someone told me about the terminal cmd's. Ha ha join the club.... the 976club!
[Fire TV Q&A, Help & Troubleshooting] bula1ca:
Got a quick question:

Once playstore is installed and functional does everything needs to be reinstalled once a new rom (i.e. 5.0.5 r3) is flashed through? Thank you
[Fire TV Q&A, Help & Troubleshooting] deanr1977:
Yes the same as you need to enable xposed/busybox & what ever else once you put a new rom on.
[Fire TV Q&A, Help & Troubleshooting] rbox:
Someone just needs to write an addon.d script to backup/restore on flashing. You can google to find one already written for xposed. And gapps comes with one.
[Fire TV Q&A, Help & Troubleshooting] Largewoodenspoon:
Ok. So how do I go about installing playstore as a system app. Put it in private app? Just the apk or the whole folder? Change permissions to rw r r? Oh and uninstall playstore as user app first? Can't seem to get it to show up in Firestarter...
[Fire TV Q&A, Help & Troubleshooting] deanr1977:
I can't say I've got it "fully working" but what your doing is right, the only thing I'd say is after changing permissions you need to do a reboot to see the playstore in firestarter, some have said you need to use market helper & also tv launcher to make it work? I've tried everything but using market helper & adding tv launcher as your "main launcher" which means deleting your amazon launcher & adding a rbox installer mod (after installing a new launcher) (that which I'm not prepared to do yet!). I get as far as getting the playstore to stick without sending me back to firestarter & won't let me install or update any apps which throws back an error 976 code?

Hope this helps If so press that thanks button
[Fire TV Q&A, Help & Troubleshooting] KainanMaki:
Market Helper is not mandatory, it should help seeing more in apps in Play Store.

Adding TVLauncher or any other 3rd Party Launcher will let you open Play Store (can´t do that with amazon launcher)

Installing a 3rd Party launcher won´t delete Amazon Launcher. In fact, you´ll be able to add a "Home" shortcut (or App) on the 3rd party launcher that opens Amazon Fire TV main menu (and you can access everything from there including settings).

You can also have both launchers without forcing the 3rd party launcher to be the default one.

Just don´t install Rbox module on xposed.

Even if you do install the rbox module and a 3rd party launcher, you can always go back to stock launcher by either disabling rbox module or uninstalling the 3rd party launcher.

---------- Post added at 12:58 AM ---------- Previous post was at 12:48 AM ----------

Also, using QuickShortcutMaker (paired with for e.g TVLauncher), you can even create shortcuts to almost every amazon setting without even opening the menu. For example you can set a shortcut to WiFi Selection and every time you choose it, a small pop-up window opens and you get to choose the network.

Of course it also works with actions of other apps and not just system stuff.
[Fire TV Q&A, Help & Troubleshooting] bird333:
Anybody have another source for Youtube leanback? I can't seem to download it from the link earlier in the thread.

EDIT: Ok I got it downloaded, but every time I open it I get an error but after I click ok it seems to play videos ok. Is there a fix for that?
[Fire TV Q&A, Help & Troubleshooting] dbdoshi:
Sorry to resurrect this thread.. But, I just updated my FTV2 to the latest pre-rooted ROM (after wiping it clean first). All is good. But, for some reason I do not see the Google Play Store app. My steps:

1. Flashed "xposed-v88.2-sdk22-arm64.zip" via TWRP.

2. Reboot

3. Installed "XposedInstaller_3.1.4.apk" via ADB.

4. Installed "HDXPosed_v1.3.apk" via ADB.

5. Reboot

6. Enabled HDXPosed in XPosed Installer app.

7. Reboot

8. Flashed "open_gapps-arm64-5.1-nano-20170829.zip" (from OpenGapps) via TWRP.

9. Reboot

No errors anywhere in the previous steps. The problem is, I do not see any "/system/priv-app/Phonesky" folder (or com.android.vending folder) either via shell or ES File Manager app (has root access)... Also, ES File Manager shows no Google Play Store app installed (in system or user space). I also don't see the Google Services Framework app as well.

I have flashed couple of different version of the nano gapps, but I don't see the Google Play Store app... I must be doing something very wrong. Any ideas would be highly appreciated. Thanks.

EDIT: This thread seems to refer to the issue of not being able to access /sdcard ( https://xdaforums.com/showpost.php?p=69121318&postcount=12) But, I can access the /sdcard folder fine. Or do I need to apply this zip to the FTV to fix my problem? I get the exact error listed on the thread, but I am not sure about it being applicable to my problem (There is no "Phonesky" folder in "/system/priv-app" on my FTV and the error message seems to reflect that accurately on my FTV). If someone can confirm that my issue is related to this, I can try that. But I am jittery about flashing files "willy-nilly"... especially when I am not even seeing the initial default install of Google Play Store installed by GApps (or HDXposed?) as a system app.