[Kindle Fire HDX 7" & 8.9" General] GSLEON3:
{CLOSED} [TUT] 1/11/2014 HDX8.9 Working Play Store, GAPPS & PARTIAL Amz Services...

I am no longer updating this thread. Currently, you best bet for everything working is SafeStrap, rom slot, Hashcode's Stock Fire Rom, Xposed module & the flashable gapps from Cpasjuste. I currently have a work load that precludes me from investigating anything further. Not too mention it seems other have the time & a better grasp on everything than I do. I will continue to help those stuck in bootloops or with issues as time permits. I recommend starting anew with your device, restoring the factory firmware, & then using safestrap & the other items mentioned above to get Play Store & Amazon working together.

Edited on 1/11/2014 - Added a fixed version of wget to the hdx.7z file to correct the gapps download rename issue.

READ ME FIRST OR YOUR DEVICE WILL EXPLODE, SCORCHING YOUR EYEBALLS!

If you have never modified an Android Device, if you have no idea what ADB is, how it is used & nearly every command memorized because you have been participating at xda for years or lurking for half a decade, if you do not know what the SDK, ANT, IDE or Ubuntu is, if you cannot afford to possibly throw away $300 to $600, then do yourself a favor & leave your Kindle alone. This is not a simple process, nor does it seem to work the same for everyone. I am NOT a developer. I also have a family & a career, which is very time consuming. I lost over a week in vacation days this past year because I rarely have time for myself, so that should tell you about how much time I am going to have for you if you break something. Sure, I will try to help WHEN I HAVE TIME, but if you are messing with things & then sending me a one line PM saying "I brick it" without any specifics about EVERYTHING you have done, well, I am not even going to respond. So, now you know, if you still want to mess around & possibly break some stuff, go right ahead.

EDIT:

It seems if some Amazon services do fail to work for most people. books work fine for me, but not most others & the Amazon App store is not working 100% either. I am working on a fix.

Okay, firstly, I have to thank [MENTION=5621721]Ptiwee[/MENTION] who was the first to really bring all of the scattered data & info together, discovering the location in the Java/Smali, where the issue in getting Play Store to function correctly resided.

You will also find a lost pf tips & fixes in post #2. I will add to it as developments arise.

This is a step by step guide for the newer member that wants to learn. I have tried to be as precise as possible & list out every step, along with a few tips on getting your Android adventure started successfully. There are no dumb questions, except for those you should have asked. So ask away & we'll try to get you an answer you'll understand.

Now, we must thank [MENTION=3060808]CrashThump[/MENTION] who took Ptiwee's solution & instead of relying on the notoriously unreliable apktool & dependecies, he took the time to recompile a fixed binary in the form of new services.odex. This is exactly what I had been looking to do, but I have been having some troubles with aapt & apktool & he just probably knows a lot more than I do. Either way, it's here now & it works.

Be sure to hit thanks to those guys, for without there help, you would still be bootlooping & cursing Amazon under your breath.

This is NOT an easy or clean way to install GAPPS package, but it works perfectly & I for one have NOT lost a single Amazon service. It is relatively low risk if you follow directions & test that things are working before jumping in head first.

Here is what you need to do to install the Play Store & GAPPS (for now), until I or another member has the time to properly compile everything into an easy to use utility. The root & signature verification parts of this tool work well. The install GAPPS script can fail occasionally, but it will not hurt anything.

This guide is for use on windows, though I will later also present a terminal command version for Linux & possibly Mac. It will be a manual version for now & I will not get to it until later. Feel free to take the data here & compile it into whatever tool or utility you want. I don't think anyone would have an issue with that, just be sure to thank everyone mentioned in this post. you can also easily open the script & just manually do everything in the script for linux. Just make sure you also grabbed the tools like SED from Ptiwee's original script tool.

For this to work, you must be rooted & have busybox installed, along with completing the steps & requirements listed below. The script from CrashDump in the HDX.7z file can root your device, as well as install gapps, fix for signature checking & the wallpaper issue. I recommend downloading everything ahead of time, including the attached busybox installer. If you are already rooted, you can skip some steps, otherwise follow the directions closely.

1. Download the Windows batch file & the necessary scripts & binary from CrashDump named hdx.7z. It can be found below in the attachments.

EDIT (1/11/2014) - Added a different version of wget to fix the download rename issue..

Download & install a BusyBox installer on your device.

2. Ensure you have the latest Java SDK installed. The JDK can be found here: http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

Make certain you install the version for your operating System, i.e. 32-bit or 64-bit.

For 32-bit (x86), the JDK you want is titled: jdk-7u45-windows-i586.exe

For 64-bit (x64), the JDK you want is titled: jdk-7u45-windows-x64.exe

I recommend installing it to the default directory.

Once you have this installed, make sure to add it to you PATH in Environmental Variables.

To do this, hit the Windows button (like you are going to open an app), or launch the file explorer & RIGHT CLICK on "Computer" & select "Properties".

.Go to "Advanced System Settings" & select the "Advanced" tab.

Select the "Environmental Variables" button towards the bottom right side of the window.

In the second window, "System Variables", scroll to "Path" & select edit.

Add your systems path to the recently installed version of the Java SDK (JDK) to "Variable Value:", it should look something like this:

C:\Program Files\Java\jdk1.6.0_33\bin; (make sure yours reflects your correct version & path to the JDK Bin directory. DO NOT JUST COPY/PASTE MINE). Also take care to have a semi-colon (;) both before & after your path & DO NOT ALTER ANY OF THE OTHER VALUES.

I also recommend you add these file types to the entry below, called (PATHEXT):

.BAT;.CMD;.JS;.JSE;.SH

These two steps allow you to use these tools from any directory, telling tools & applications where to find the resources they need.

After installing the Java SDK (JDK), make sure you also have a "System Variable" entry called "JAVA_HOME" with a value that is the same as your environmental variable, pointing to your Java SDK Bin directory. Mine is "C:\Program Files\Java\jdk1.6.0_33\bin" (again, you need to have YOUR installed location, not mine, so do not copy/paste from here).

3. Ensure you have installed the Android SDK. You do NOT need Eclipse, just the SDK. It can be found here: http://dl.google.com/android/installer_r22.3-windows.exe

Install the SDK somewhere simple & avoid spaces in directory names. My SDK (when I bother to use Windows anymore, is C:/Android/

I use Eclipse, so for me, my directury tree is "C:/Android/sdk & C:/Android/eclipse" this is where all the important Android tools live, like ADP & AAPT & Fastboot, in /sdk/tools & /sdk/platform-tools.

4. The script & utilities used by CrashDump need several Linux based tools, like SED & a few others. Fortunately, the GnuWin32 package exists & can be downloaded here: http://sourceforge.net/projects/getgnuwin32/files/

This is a set of packages designed to work with Windows, It will download an executable & you will open it, paying attention to where it is downloading & extracting the packages. Once it is finished, you will go to what ever directory you selected for the "GetGnuWin32" folder & you will click on a script batch file named "download.bat. This will download all the GnuWin32 packages. Follow the instructions & let it download the updates as it goes.

Once this is complete, you will then go back into your "GetGnuWin32" folder. Now you will double click (execute/run) the script batch file named "install.bat".

This process takes about 15 to 30 minutes depending on your machine & your download speed.

5. Connect your device to the USB port & give it time to install the proper drivers. Next, open a cmd window & enter: adb devices

If successful, you should see your device serial number listed, similar to this:

C:\Users\gleon>adb devices

List of devices attached

B0xxxxxxxxxSH device

If your device was recognized & you see something similar to the above, congratulations, you have installed the SDK successfully & are now ready for some action. If not, you may need to install the HDX adb drivers. If you are here, you have most likely already done most of the steps above anyways.

7. Extract the file HDX.7z to somewhere simple like C:/ or in your Android SDK directory.

Double click on the "HDX.bat" script & a terminal window will open with the following data:

Only for Kindle Fire HDX 8.9

WARNING ! All the manipulations here are dangerous.

Your tablet may become unstable or unusable.

Nobody except you will be considered as responsible.

What do you wanna do ?

1. Root my Kindle Fire HDX 8.9

2. Remove Amazon ads on lockscreen and some Amazon applications

3. Remove signature check (Requisite for Google Apps)

4. Install Google Apps

5. Fix wallpaper

6. Quit

Choice :

Select option #1 if you are NOT yet rooted. Once you root, open up the Superuser app & give it a minute. Make sure it is working & then install the attached busybox installer on your device & make sure to open it & install busybox & the applets. I suggest using the "Smart Install" feature. It will take a minute or two for it to load & install busybox, but please wait & ensure it installs successfully.

To install busybox, you can transfer it to your device & use a file explorer to navigate to the apk, OR you can use your newly installed SDK & open a cmd prompt in the folder you downloaded or extracted the bb installer & issue the following command (just the part in quotes, WITHOUT the quotes of course): c:\Android> "adb install busybox.apk"

It will say "successful" once busybox is installed. Open the app & let it setup. Then click on the "install" button & let it do its thing.

Once you are rooted, have busybox & Superuser installed, or If you are already rooted with both installed, you can move to the script tool's option # 3, "Remove signature check <Requisite for Google Apps>

This is going to replace the services.odex file from your devices /system/framework directory. It will restart the SystemUI, which means it will look like it has reboot, but do not panic, it will not boot loop your device, it will resume normally in a moment.

Once it is has restarted the SystemUI & the screen comes back on, you can now use option #4 "Install Google Apps".

Congratulations, you now have an Amazon HDX 8.9 with fully functioning GAPPS, including Play Store & you have all Amazon Services working.

Take wht you have learned & pass it along. This is a forum about sharing ideas & knowledge. Pay it forward.

I know this is written fairly simply, but I do this so that nobody will misunderstand. i know many of you know what you are doing, but there are new users & members here every day. I will do whatever I can to help you if you have issues & as you have seen, I have already been able to fix 2 types of soft bricks, so your risk is much more limited than even a few weeks ago.