View Single Post
  #34 (permalink)  
Old 05-27-2010, 10:34 PM
OMJ's Avatar
OMJ
Retired Staff
Offline
Location: MN
 
Join Date: Jun 2007
Posts: 4,767
Reputation: 20305
OMJ can't get a higher reputation levelOMJ can't get a higher reputation levelOMJ can't get a higher reputation levelOMJ can't get a higher reputation levelOMJ can't get a higher reputation levelOMJ can't get a higher reputation levelOMJ can't get a higher reputation levelOMJ can't get a higher reputation levelOMJ can't get a higher reputation levelOMJ can't get a higher reputation levelOMJ can't get a higher reputation level
Mentioned: 11 Post(s)
Tagged: 0 Thread(s)
Re: Sprint HTC Evo 4G Shipped ROM

Quote:
Originally Posted by stroths View Post
Thanks for the link. Here is another good one I found that gives detailed instructions on setting it up on a virtual machine and running the kitchen. It also includes info on pulling the rom image files from the stock image (which we now have).

LINK

They describe VirtualBox, but I used VMware and used Linux Mint as my OS (nicer version of Ubuntu IMO). I ran the kitchen using the EVO rom image and I made my own ROM.

Do you know how I apply the unlock in the kitchen? The kitchen had the option, but I suspect this isn't made for the EVO at this time.
when u say unlock, are you referring to the "add root permissions" option?

if so, this is the script to add root:

Code:
scripts/ensure_boot_extracted

if [ -d WORKING_* ]
then
  clear
else
  exit 0
fi

echo
echo ROOTING
echo ----------------------------------------------------
echo 
echo The following will be done for root:
echo - Add /system/bin/su
echo - Add /system/app/Superuser.apk
echo - Add su entry to update-script file
echo - Edit default.prop in the ramdisk
echo - Build new boot.img
echo 
echo "Optional (will ask before proceeding):"
echo - Add /system/xbin/busybox 
echo - Add busybox entries to current update-script file
echo 

echo "Press Enter when you are ready"
read enterKey
echo

cd WORKING_*

if [ -e system/bin/su ] 
then
  echo "/system/bin/su already present"
else
  echo "Adding /system/bin/su"
  cp ../tools/su system/bin/
  chmod 04755 system/bin/su
fi

echo


if [ -e system/app/Superuser.apk ] 
then
  echo "/system/app/Superuser.apk already present"
else
  echo "Adding /system/app/Superuser.apk"
  cp ../tools/Superuser.apk system/app/
fi

echo


cd ..
scripts/add_su_to_update_script



echo
cd BOOT-EXTRACTED/boot.img-ramdisk

changed=0
echo
echo "Checking default.prop ..."

if [ "`grep -om 1 ro.secure=1 default.prop`" == "ro.secure=1" ]
then
  echo "Set: ro.secure=0"
  perl -pi -e 's/ro.secure=1/ro.secure=0/g' default.prop
  changed=1
fi

if [ "`grep -om 1 ro.debuggable=0 default.prop`" == "ro.debuggable=0" ]
then
  echo "Set: ro.debuggable=1"
  perl -pi -e 's/ro.debuggable=0/ro.debuggable=1/g' default.prop
  changed=1
fi

if [ "`grep -om 1 persist.service.adb.enable=0 default.prop`" == "persist.service.adb.enable=0" ]
then
  echo "Set: persist.service.adb.enable=1"
  perl -pi -e 's/persist.service.adb.enable=0/persist.service.adb.enable=1/g' default.prop
  changed=1
fi

if [ $changed == 1 ]
then
  echo
  echo New default.prop:
  more default.prop
  echo

  if [ -e default.prop.bak ]
  then
    rm default.prop.bak
  fi

  cd ../..
  scripts/build_boot_img

else
  echo "No changes to default.prop required"
  cd ../..
  rm -rf BOOT-EXTRACTED
fi



cd WORKING_*

if [ -e system/xbin/busybox ]
then
  if [ "`grep -om 1 busybox META-INF/com/google/android/update-script`" == "0" ]
  then
    echo -n
  else
    cd ..
    echo
    echo "busybox already installed"
    echo 
    echo "Completed rooting!"
    echo
    exit 0
  fi
fi

cd ..


echo
echo
echo ---------------------------------------------------------------
echo
echo "The script will now try to install busybox and update your"
echo "update-script with busybox entries.  Busybox is required"
echo "for certain root applications, such as Titanium Backup and"
echo "apps2sd."
echo 
echo ---------------------------------------------------------------
echo -n "Proceed with install (y/n)? (default: y): "
read proceedBB

if [ "$proceedBB" == "" ] || [ "$proceedBB" == "y" ]
then
  scripts/add_busybox
else
  echo "Busybox not installed"
fi
  
echo 
echo "Completed rooting!"
echo
__________________
Reply With Quote
This post has been thanked 4 times.