Quote:
Originally Posted by ktwombley
dude that is a great idea! If you want to look into it and give me a patch or something I can incorporate it. If I have time I can look into it too.
|
Ok, here goes. The script /system/esi/bin/start_epd.sh executes at startup and loads all esi modules, so I've chosen to add permission fix to it. It turned out that fb2 does not exist at the time when the script is finshed. So I had to spawn another script to wait for device file to appear before fixing it.
It could be incorporated in allmine in the following way:
Add the following line somewhere in update.sh:
echo /system/esi/bin/eink_permissions.sh \& >> $ANDROID_ROOT/system/esi/bin/start_epd.sh
and add a file eink_permissions.sh into system/esi/bin/ in allmine.zip with the following contents:
####################
#!/system/esi/bin/busybox sh
while [ ! -e /dev/graphics/fb2 ]; do
sleep 1
done
/system/esi/bin/busybox chmod 666 /dev/graphics/fb2
####################