[Barnes & Noble Nook Tablet] slaxor:
linux and mac

i wrote a permroot script for linux - which basically does the same job - since its bash it should be working with mac os as well. i haven't tested it though. beware it does only ask once if you want to allow it to go about its business. ok here it comes (with all usual disclaimers i am sorry if it breaks your device, causes bad weather or nuclear strikes etc.)

You should never EVER run something you don't understand so read this before running it, since i can only say it worked for ME

----------8<----------8<---------- NookAndZergy.sh ----------8<----------8<----------

#!/bin/bash

set -e

main() {

read -n 1 -p "Do you want to continue? (y/n) " GOON

if [ "$GOON" = "y" ] ; then

check

verify

root_it

install_gapps

finish

else

echo 'Pheew, that was close...'

exit

fi

}

check() {

adb devices 2>&1 >/dev/null || bail

}

verify() {

adb wait-for-device

echo -n 'verifying that your device is a Nook tablet...'

rm -f build.prop

adb pull system/build.prop

grep -q "ro.product.device=blaze" build.prop || bail

echo 'yepp'

}

root_it() {

adb push zergRush /data/local/zergy

adb shell 'chmod 755 /data/local/zergy;cd /data/local/;./zergy'

adb wait-for-device install Superuser.apk

adb remount

adb push su /data/local/tmp/

adb shell 'cd /data/local/tmp;chmod 777 su;cd /;mount -o remount,rw -t rootfs rootfs /'

adb push su /system/bin/su

adb shell chmod 4755 /system/bin/su

adb install busyboxinstall.apk

}

install_gapps() {

read -n 1 -p "would you like to install gApps? " INSTALL_GAPPS

if [ "$INSTALL_GAPPS" = "y" ] ; then

adb remount

adb push system/app/CarHomeGoogle.apk /system/app/

adb shell chmod 644 /system/app/CarHomeGoogle.apk

adb push system/app/FOTAKill.apk /system/app/

adb shell chmod 644 /system/app/FOTAKill.apk

adb push system/app/GenieWidget.apk /system/app/

adb shell chmod 644 /system/app/GenieWidget.apk

adb push system/app/GoogleBackupTransport.apk /system/app/

adb shell chmod 644 /system/app/GoogleBackupTransport.apk

adb push system/app/GoogleCalendarSyncAdapter.apk /system/app/

adb shell chmod 644 /system/app/GoogleCalendarSyncAdapter.apk

adb push system/app/GoogleContactsSyncAdapter.apk /system/app/

adb shell chmod 644 /system/app/GoogleContactsSyncAdapter.apk

adb push system/app/GoogleFeedback.apk /system/app/

adb shell chmod 644 /system/app/GoogleFeedback.apk

adb push system/app/GooglePartnerSetup.apk /system/app/

adb shell chmod 644 /system/app/GooglePartnerSetup.apk

adb push system/app/GoogleQuickSearchBox.apk /system/app/

adb shell chmod 644 /system/app/GoogleQuickSearchBox.apk

adb push system/app/GoogleServicesFramework.apk /system/app/

adb shell chmod 644 /system/app/GoogleServicesFramework.apk

adb push system/app/LatinImeTutorial.apk /system/app/

adb shell chmod 644 /system/app/LatinImeTutorial.apk

adb push system/app/MarketUpdater.apk /system/app/

adb shell chmod 644 /system/app/MarketUpdater.apk

adb push system/app/MediaUploader.apk /system/app/

adb shell chmod 644 /system/app/MediaUploader.apk

adb push system/app/NetworkLocation.apk /system/app/

adb shell chmod 644 /system/app/NetworkLocation.apk

adb push system/app/OneTimeInitializer.apk /system/app/

adb shell chmod 644 /system/app/OneTimeInitializer.apk

adb push system/app/Talk.apk /system/app/

adb shell chmod 644 /system/app/Talk.apk

adb push system/app/Vending.apk /system/app/

adb shell chmod 644 /system/app/CarHomeGoogle.apk

adb push system/etc/permissions/com.google.android.maps.xml /system/etc/permissions/

adb push system/etc/permissions/features.xml /system/etc/permissions/

adb push system/framework/com.google.android.maps.jar /system/framework/

adb push system/lib/libvoicesearch.so /system/lib/

adb reboot

fi

}

finish() {

echo "all seemed to have worked according to plan, now go to the market and install whatever you want"

echo "thank you for choosing slaxors shellscript to root the nook tablet"

exit

}

bail() {

echo "Your rooting adventure failed"

exit 1

}

main

---------->8---------->8---------- EOF ---------->8---------->8----------

good luck and see you on the other side ;)