• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root Galaxy/Stock android on behold 2 - It flies!

kam187

Android Expert
Aug 3, 2009
1,320
46
UK
EDIT: CONSIDER USING THIS INSTEAD:

http://androidforums.com/samsung-behold-2/46614-port-galaxy-behold-2-123-install-done-right.html
--


Thanks to Mastermind278, droiddev, mobileband, My420Time, rkhalil2009, kam187

(in no particular oder)

Everything you need to do is in this first post. There's no need to read all the pages of this thread unless you want to.

EDIT:
MrAndroid made a nice totorial here: http://www.myhangoutonline.com/2010/02/02/galaxy-firmware-on-behold-2/

If you get stuck or mess up, you'll need to odin the stock firmware back - See the section at the bottom: How to Undo/return to the original firmware. This is a work in progress, and although everything we tested works, some stuff might not.

Issues/Not Working:

- to get adb to work after this is installed, you have to toggle usb debugging.
- The standard android app is used for the camera. It works completly (ignore the firmware message) - working on porting the fancy behold one.
- Vibration does not work


Instructions

** You will need an external SD card - at least temporarily **

You will need to unzip and copy all the files to your sdcard:
http://shrunk.me/killtouchwiz.zip

http://shrunk.me/AudioVolume.zip

EDIT: Use the system.img from this file instead - its the latest galaxy system.
http://drop.io/i7500zhil3

Now reboot your phone and adb shell in. You may need to disable mass
storage mode and enable usb debugging.

If you're sure all the files are in the right place, you can paste the commands in blocks. I have marked them block 1,2,3,4 etc. Just highlight everything in block 1 (including the # lines) and just paste it into your cmd window. Press enter a few times to check its finished and u get # back, and paste the next block. If you dont understand what I mean, just paste one line at a time.

adb shell

# ** BLOCK 1 **
# Get Root
cat /sdcard/try3 > /data/local/try3
chmod 777 /data/local/try3
/data/local/try3 /system/bin/sh

# ** BLOCK 2 **
# Remount system read write
mount -o rw,remount /dev/st9 /system

# Make Root persistant after restore
cat /sdcard/try3 > /system/bin/try3
chmod 777 /system/bin/try3

# Copy unyaffs and busybox
cat /sdcard/unyaffs > /data/local/unyaffs
chmod 777 /data/local/unyaffs
cat /sdcard/busybox > /system/bin/busybox

chmod 4755 /system/bin/busybox
/system/bin/busybox --install -s /system/bin/
cd /system/bin
busybox cp -s busybox cp

# backup etc
cd /system
mv etc etc.b2
mkdir libmodules.b2
cp -pr libmodules/* libmodules.b2

# remove behold apps etc and unyaffs galaxy ones
rm -R app

# ** BLOCK 3 **
/data/local/unyaffs /sdcard/system

# ** BLOCK 4 **
rm -r etc
mv etc.b2 etc

cat /sdcard/busybox > /system/bin/busybox
cd /system/bin
busybox cp -s busybox cp

cd /system

cp -pr libmodules.b2/* libmodules

cat /etc/AudioVolume.txt > /etc/AudioVolume.old
cat /sdcard/AudioVolume.txt > /etc/AudioVolume.txt

####### THESE TWO LINES ONLY IF YOU DID NOT PERSISTANT ROOT ALREADY
cat /system/bin/playlogo > /system/bin/playlogo_real
/system/bin/chmod 0755 /system/bin/playlogo_real
#######

# Take care the following must be typed consecutively. I suggest u copy/paste it
echo "#!/system/bin/sh
/system/bin/try3 /system/bin/sh
mount -o rw,remount /dev/st9 /system
cat /system/bin/sh > /system/bin/su
chmod 04755 /system/bin/su
mount -o rw,remount rootfs /
mkdir /data/dbdata
mkdir /data/dbdata/databases
mkdir /data/dbdata/databases/com.android.providers.media
mkdir /data/dbdata/databases/com.android.providers.contacts
chmod 777 /data/dbdata
chmod 777 /data/dbdata/databases
chmod 777 /data/dbdata/databases/com.android.providers.media
chmod 777 /data/dbdata/databases/com.android.providers.contacts
ln -s /data/dbdata /dbdata
/system/bin/playlogo_real" > /system/bin/playlogo

# finally reboot
reboot

----------------------------------

A Factory Reset is REQUIRED after this. Or it just wont work.

Once you're done you should do 'Update1' from below to fix sending of MMS.

UPDATE1:

To fix sending MMS use use this:

http://shrunk.me/BH2-GALAZY-MMS-FIX.zip

Put the mms.apk in your adb folder then:

adb shell

cat /sdcard/try3 > /data/local/try3
chmod 777 /data/local/try3
/data/local/try3 /system/bin/sh
mount -o rw,remount /dev/st9 /system
rm /system/app/Mms.apk
exit
exit

then:

adb install Mms.apk


How to Undo/return to the original firmware

If you want to undo this you need to use odin to flash the original
files. You can find tuorials in alot of places. The Flash files
you'll need are here:
http://shrunk.me/uvij6.zip
 
Just wanted to pop in and say this rocks! I am My420Time on IRC btw Kam. ;) If anyone needs help log on to IRC and join #behold2. Kam got this working on my phone earlier today and it freaking rocks. So far all that needs to be done is fix the camera(works fine, takes pictures) as it currently pops up saying wrong firmware version when started and to fix speaker phone but I am working on that right now.
 
Upvote 0
So I was able to install the galaxy rom just fine. So far it's amazingly fast.

One thing I did notice (don't know if this is just my phone) is that the vibration doesn't seem to work. I tried turning on the vibration function on every setting menu I could find and not even incoming calls cause the phone to vibrate.
 
Upvote 0
Ok, I think I f***ed up. I got to the part cat /sdcard/unyaffs > /data/local/unyaffs and then it didn't work and now my phone got stuck at the android boot screen. If anyone have any solution of how to get my phone back to factory condition will be great. I already tried factory restore but didn't work. Any help will be great.... Thanks...
To get phone back to stock mode just put the phone in download mode and load the original odin files.
 
Upvote 0
In my rush yesterday i forgot to thank MobileBand and My420Time for their help yesterday :)

RE the camera. The behold has newer firmware than the samsung. You should copy out the behold camera before the rm -R app:

cd /system
mv app/Camera.apk Camera.apk
mv app/Camera.odex Camera.odex

and right at the end

cd /system
rm app/Camera.apk
rm app/Camera.odex
mv Camera.apk app/Camera.apk
mv Camera.odex app/Camera.odex

Updated the first post. We really could shorten those instructions down, but i'm too tired to do it now :)
 
Upvote 0
so theoretically, can we flash the galaxy bootloader with this method?

At this point in time, no. We've had to retain the behold bootloader as the galaxy one won't boot the phone. As soon as the bootloader (and ultimately, the playlogo) execute, you're galaxy from there out.

What it should mean is a more concerted effort into rom development since it overlaps quite a bit with the galaxy.

Cheers-
MB
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones