Created
December 5, 2011 17:21
-
-
Save ryands/1434449 to your computer and use it in GitHub Desktop.
Hopefully boot your nook...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
GL_FILES="libGLESv1_CM_POWERVR_SGX530_125.so libGLESv2_POWERVR_SGX530_125.so libEGL_POWERVR_SGX530_125.so" | |
HW_FILES="gralloc.omap3.so overlay.omap3.so" | |
if [[ $(adb devices | wc -l) -lt 3 ]]; then | |
echo Device not found | |
exit 1 | |
fi | |
# remove the GL files and HW files | |
for gl in ${GL_FILES}; do | |
adb shell rm /system/lib/egl/${gl} | |
done | |
for hw in ${HW_FILES}; do | |
adb shell rm /system/lib/hw/${hw} | |
done | |
# framebuffer driver | |
adb push ${HOME}/android/encore/libGLES_android.so /system/lib/egl/ | |
#adb shell chmod 777 /system/bin/pvrsrvinit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yeah, ghetto way of detecting (adb wait-for-device didn't seem to work as intended in most cases, else it would have been a great option)
I should add a format /data + /cache option/switch/something... I hate manually repeating steps :)