[Nook Touch Themes and Apps] straygecko:
Nook Touch Google Apps Attack aka NTGAppsAttack

Custom Menu Addon for NookManager

Google Apps Installer for Nook Simple Touch & Nook Simple Touch Glow firmware 1.2.0 , 1.2.1

Highlights

Improved GApps install that uses the setup wizard to register eliminating the YouTube / GMail dance.

Market update enabled so Market updates to latest version including in-app purchases.

New patching method that should allow quick releases for new firmware versions.

What apps does it install?

Installs Google apps to NST/NSTG running firmware 1.20 or 1.2.1 rooted with NookManager

Google Market (Play Store)

Automatically updates to latest Market for NST/NSTG Android version. Includes in-app purchases.

GMail & GMail sync

Google Contacts sync

Google Calendar & Calendar sync

Google Talk

Google News & Weather

Calculator

What system files get modified?

/system/build.prop - set device fingerprint and turns on checkin

/data/system/packages.xml - clears signatures so new apps will install properly

/system/framework/framework.jar - patches to generate device id & phone type to allow market registration

/system/framework/services.jar - patch to start Backup Manager so setup wizard works

Getting ready to Install

Root your NST/NSTG using NookManager

Make a backup!!

Download NTGAppsAttack 0.5.0 for NookManager 0.5.0 (attached at end of post)

If you have a reader installed that uses Adobe DRM (Aldiko, Mantano, etc.) and you have authorized it with your Adobe ID you should deauthorize it before installing GApps and reauthorize it afterwards. If you don't the change to your Android Id that happens as part of the GApps install process will invalidate your Adobe authorization and force you to reauthorize. This counts against your device limit for Adobe authorizations (6 authorized devices). If you forget to deauthorize first and you run up against the limit you will need to contact Adobe to reset your device authorizations.

Do not disable BN Apps or reenable them before installing NTGAppsAttack

If you use Googles 2 step authorization, create and have ready an application specific password since when registering your Nook it won't redirect to the page where you add a generated pin from the Authenticator app.

Connect to wireless before powering off and installing NTGAppsAttack so that when you boot up after installing you'll be connected and ready to register your Nook.

** Warning **

I have tested this on my Nook Simple Touch. It works for me. I think it will work for you. But it might not. It might brick your Nook.

You must root your Nook using NookManager before installing NTGAppsAttack. Using NTGAppsAttack on a Nook rooted using any other method will probably break some stuff you like. Maybe even your Nook.

I haven't tested this on a Nook Simple Touch Glow. But the XDA forum talk is that it runs the same firmware as the Nook Simple Touch from 1.2.0 forward. NookManager roots a NSTG same as a NST and all seems rosy. So I assume NTGAppsAttack will work fine on a NSTG. But it might not.

Install at your own risk.

** Warning **

** Important **

Your version number of NTGappsAttack should match the version of NookManager you are using as NTGappsAttack replaces a file that is patched by NookManager. If your versions don't match things might not work when you're done. Updates to NTGappsAttack for the same version of NookManager will add a suffix to the NookManager version. For example the first NTGAppsAttack release for NookManger version 0.5.0 is NTGppsAttack version 0.5.0. An update to NTGappsAttack for NookManager 0.5.0 will be NTGppsAttack version 0.5.0.1 or 0.5.0.2, etc.

** Important **

** Important **

** Important **

** Important **

Make a backup before you get started! NookManager makes it easy. Thanks jeff_kz!

Make a backup before you get started! NookManager makes it easy. Thanks jeff_kz!

Make a backup before you get started! NookManager makes it easy. Thanks jeff_kz!

** Important **

** Important **

** Important **

OK, I'm ready to Install

Make sure your NookManager and NTGAppsAttack versions match (see above).

Make sure your have rooted your Nook with NookManager and all is working correctly.

Deauthorize any readers you have installed and authorized with your Adobe ID.

Unzip the NTGAppsAttack zip file into the the root of your NookManager microSD card

Power off your Nook

Insert NookManager microSD card into your Nook

Power on your Nook and let NookManager load

From the main NookManager screen select More, then Custom, then Install NTGappsAttack

If all goes well, select Back, Back, Exit, eject your microSD card and let your Nook boot

** Important **

Once your Nook has booted you need to follow the next steps without delay. You don't need to rush but you need to move through them without interruption. Your Nook will be downloading an update to the Market while you are doing these steps. You need to be done before the update is installed. Otherwise when you open the Market you'll get a "server error" message. If that happens tap Cancel on the message and the Market will close. Go back to ReLaunch. Long press on the Market and select Uninstall and let it uninstall the update. When its done Market will still be there in ReLaunch. Immediately open the Market and pick up at step 14 again. And don't get interrupted this time. :) If the "server error" message persists try restoring your backup and try registering using a different GMail account.

Why didn't I preinstall the update? For some reason it doesn't work and won't communicate with the Google servers.

** Important **

Touch the Android to begin

Skip the tutorial

Tap Sign In

Enter your gmail account and password and tap Sign In

Leave location tracking boxes checked and tap Next

Uncheck Backup Settings to My Google Account box and tap Finish (You can try leaving backup checked but I haven't tested it as I use Titanium Backup)

Go back to ReLaunch and open the Market

Accept the Terms & Conditions

Tap on Apps

Tap on All applications

Tap on Top Free

Tap on one of the Apps and install it. Any one of them, it doesn't matter which, you can uninstall it later.

Exit the Market.

You're not quite done yet. Keep reading.

This gets the process of connecting your Nook with the Google Market servers going. At this point you are hooked up with Gmail, Contacts and Calendar syncing to your Nook. Try Gmail and Calendar out. You'll see your appointments in the Calendar and contacts in Gmail but the Contacts app isn't installed because it doesn't work on the NST/NSTG. Try Go Contacts EX once the Market is up and working. Now you need to take a break to let Google's servers get all cozy with your Nook before the Market will work properly. For me it usually takes less than an hour but it might take longer. As long as 24 hours+ has been reported for other GApps install methods. I think the installing of the free app speeds things up so I don't think you'll have to wait that long.

To see if the Market is ready:

Go to http://play.google.com - its most reliable to do this from your PC

Search for SearchMarket

Click on Install

Open the Send To dropdown. You should see a device called "phone". Thats your Nook. Select it and click Install. If it responds "the app will be downloaded to your device shortly" your Nook and Google have cozied up nicely. If you dont't see "phone", it won't let you select "phone" or gives you an "Oops we had trouble with this request" error when you click install you need to wait longer. Once it says it will be downloaded, back on your Nook open the Market again. It should look different. You've been automagically upgraded to the most current version of the Market app supported on our Nooks. It supports in-app purchases if you care. You should see a notification balloon in your status bar. Tap on it and the message should say SearchMarket has been installed. Now you can use SearchMarket on your Nook to find apps and install them (search in the Market app is broken). If you don't get the installed notification continue on.

Open the Market on your Nook.

Tap on My Apps.

Tap on SearchMarket to install it.

Missing and/or Broken Stuff

Market Search doesn't work - Use SearchMarket from the Market per above instructions

No Contacts app - try Go Contacts EX from the Market - default and iPhone themes are decent on our eInk displays

No Google Books - see this thread on Google Books[/URL]

No YouTube, Maps, etc. - download them from the Market

How to change sync settings - Go into Gmail, open the menu and tap on Add Account. Add your same Google account again and you'll get a screen that will let you select what you want synced. Don't worry, it won't really add the account twice.

Thanks to:

jeff_kz - NookManager NST/NSTG 1.20+ firmware rooter

GabrialDestruir - for working examples of how its done TouchNooter and GlowNooter

Decad3nce - doc of how to patch framework.jar

clockworx - original development of framework.jar patch

Mistar Muffin - getting gapps to work on Nook Color

nookdevs - nook color calendar sync / how to get to account & sync settings

CyanogenMod - archive of old gapps files

For Developers:

Source is on github for my patches and build system Feel free to use any of it in your rooters or other tools.

I got the setup wizard to work with a patch to services.jar to start the Backup Manager. It was looking to populate its checkbox for backing up apps & data up to Google.

The patch is written as an awk script to eliminate problems with line number and baksmali label changes with firmware changes. I rewrote the patch to framework.jar as an awk script as well.

I had to pull the MarketUpdater.apk from a different gapps package to get a matched pair of vending.apk and MarketUpdater.apk signed with the same cert. Otherwise MarketUpdater would fail. I tried just using everything from the EPF30 package but it seemed a bit flaky in its communications with the Google servers. YMMV.

Cert mismatches may have been why I added a sed to delete the certs for uid.shared in packages.xml as well as the usual uid.system. After dozens of reinstalls I can't remember. It looks like now a different shared user id is added to packages.xml and the one the certs are removed from doesn't have any certs added to it. So maybe this isn't needed with my final selection of GApps apk's but it doesn't hurt either.