Skip to content

Instantly share code, notes, and snippets.

@ryands
Created December 5, 2011 17:21
Show Gist options
  • Save ryands/1434449 to your computer and use it in GitHub Desktop.
Save ryands/1434449 to your computer and use it in GitHub Desktop.
Hopefully boot your nook...
#!/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
@ryands
Copy link
Author

ryands commented Dec 5, 2011

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment