[G1 Android Development] shawn1224:
Thanks for the taking the time out to look at it.

This is what I got

C:\AndroidSDK\android-sdk-windows\tools>adb shell
# su
su
# sh /sdcard/diaglwp.txt
sh /sdcard/diaglwp.txt
crw-rw-rw- 1 root root 10, 52 May 11 16:02 /dev/msm_hw3dc
crw-rw---- 1 system graphics 10, 53 May 11 16:02 /dev/msm_hw3dm
-rwx------ 1 root root 640 May 11 11:44 /data/local/userinit.d/
15GPU_perms
#!/system/bin/sh
# restrictive Perms for GPU - Firerat 2010-05-05
# NB, see also /system/etc/permissions/hw3d.xml
if [ -e /dev/msm_hw3dc ];
then
#dumb down gpu permisions
chmod 660 /dev/msm_hw3d*
chown root.graphics /dev/msm_hw3d*
fi
# Check for Neocore, this has no Android Permissions, so make it the owner o
f /dev/msm_hw3d*
# NB, this is a bit ugly
#nc#packages=/data/system/packages.xml
#nc#if [ `grep -q com.qualcomm.qx.neocore ${packages};echo $?` = "0" ];
#nc#then
#nc#neocoreUID=`grep com.qualcomm.qx.neocore ${packages}|cut -d " "
-f7|cut -d \" -f2`
#nc#chown ${neocoreUID} /dev/msm_hw3d*
#nc#fi

-rw-r--r-- 1 root root 1235 May 11 11:44 /system/etc/permissions
/hw3d.xml
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2008 The Android Open Source Project

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

See the License for the specific language governing permissions and
limitations under the License.
-->

<!-- This file is used to define the mappings between lower-level system
user and group IDs and the higher-level permission names managed
by the platform.

Be VERY careful when editing this file! Mistakes made here can open
big security holes.
-->
<permissions>
<!-- ================================================================== -->
<!-- give WRITE_EXTERNAL_STORAGE ( Gallery3D and Most games ) access to
graphics
- Firerat 2010-05-03 -->
<permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
<group gid="sdcard_rw" />
<group gid="graphics" />
</permission>
</permissions>
-rwxr-x--- 1 root shell 1028 May 11 11:44 /system/etc/init.d/20us
erinit
#!/system/bin/sh
# call a userinit.sh script if it's present on the sdcard

if [ "$SD_EXT_DIRECTORY" = "" ];
then
SD_EXT_DIRECTORY=/sd-ext;
fi;

if [ -e $SD_EXT_DIRECTORY/userinit.sh ];
then
log -p i -t userinit "Executing $SD_EXT_DIRECTORY/userinit.sh";
busybox chmod +x $SD_EXT_DIRECTORY/userinit.sh;
logwrapper /system/bin/sh $SD_EXT_DIRECTORY/userinit.sh;
setprop cm.userinit.active 1;
fi;

if [ -d $SD_EXT_DIRECTORY/userinit.d ];
then
logwrapper busybox run-parts $SD_EXT_DIRECTORY/userinit.d;
setprop cm.userinit.active 1;
fi;
# Firerat patching userinit to use /data/local/
# target being setups with no ext partition e.g. mt3g
if [ -z "`getprop cm.userinit.active`" != "1" ];
then
if [ -e /data/local/userinit.sh ];
log -p i -t userinit "Executing /data/local/userinit.sh"
logwrapper /system/bin/sh /data/local/userinit.sh
setprop cm.userinit.active 1
fi

if [ -d /data/local/userinit.d ];
then
logwrapper busybox run-parts /data/local/userinit.d
setprop cm.userinit.active 1
fi
fi