View Single Post
  #2819 (permalink)  
Old 06-12-2010, 02:07 PM
peterm20's Avatar
peterm20
PPCGeeks Regular
Offline
Location: SE Kansas
 
Join Date: May 2008
Posts: 162
Reputation: 185
peterm20 is keeping up the good workpeterm20 is keeping up the good work
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: Linux/Android on CDMA Touch Pro -- Now working on Verizon! And with GPS!

Quote:
Originally Posted by sfhub View Post
Here is the context diff of the changes I made and tested.

Code:
*** init-orig Sat Jun 12 08:41:42 2010
--- init-fix Sat Jun 12 09:30:39 2010
***************
*** 7,13 ****
 
  /bin/mount -o remount,rw / /
 
! PATH=/sbin:/system/sbin:/system/bin:/bin:/system/xbin:/system/xbin/bb:/data/local/bin
 
  /bin/echo "Rootfs loaded."
 
--- 7,20 ----
 
  /bin/mount -o remount,rw / /
 
! # Looping X animation fix
! # change PATH to put /bin in front of /system/bin to fix looping X animation
! # bug. /system/bin versions of some commands were being run which appear to
! # accept restricted options causing commands to fail and therefore not setup
! # the system properly.  User would see errors on the console like
! # "no such user '-R'" or "no such user '1000:1000'"
! #
! PATH=/sbin:/bin:/system/sbin:/system/bin:/system/xbin:/system/xbin/bb:/data/local/bin
 
  /bin/echo "Rootfs loaded."
 
***************
*** 156,167 ****
  cp -a /system/etc/* /etc
  cp -ar /init.etc/* /etc/
 
- #Possible fix for looping animation. stinebd/gm112
- #First push by babijoee :)
- chown 1002:1002 /etc/dbus.conf
- chmod 440 /etc/dbus.conf
- 
- 
  LCDDENSITY=`/bin/grep -o "lcd.density=.*" /proc/cmdline | /bin/sed -e "s/.*lcd.density=//g" -e "s/ .*//g"`
 
  if [ "$LCDDENSITY" != "" ] ; then
--- 163,168 ----
***************
*** 513,516 ****
--- 514,524 ----
  mknod /dev/msm_camera/frame0 c 250 2
  chmod a+s /bin/pppd
 
+ # Looping X animation fix
+ # Change PATH back to original in case the change is required for init.android
+ # whether for security purposes or just for it to run properly.  See earlier
+ # change above.
+ #
+ PATH=/sbin:/system/sbin:/system/bin:/bin:/system/xbin:/system/xbin/bb:/data/local/bin
+ 
  exec /init.android
And that is why i support open source over anything. I was getting there to figure out why but first i was trying to get it to work, good find man. you should start working on the camera.

So the restricted commands is why chown wasn't accepting the UID of a nonexistant user then?
__________________
Sprint Touch Pro (Ralph800) - (2.01.651MR)/1.12.34F
Android: XDANDROID-5-31-10/gps rootfs update
XDAdroid Fan page

Last edited by peterm20; 06-12-2010 at 02:23 PM.
Reply With Quote