yashsingh1/xdaforums huggingface dataset:
[XPERIA X10 Android Development] DooMLoRD:
Hey guys I was able to get a script (now an APP) together to reboot into recovery (xRecovery / FreeXperia Recovery) from within the OS.

firstly i would like to thank Bin4ry & Androxyde for the FlashTool and the option to "reboot into xrecovery from flashtool" as this mod/script is based on that..

and tremendouz and wiedz for inspiration...

DO NOT TRY THIS IF U USE DATA2SD... THIS CANNOT WORK, FOR NOW, ALONG WITH DATA2SD...

new features include:

cleaner layout

new UI

working themes!

and u will be entitled to future upgrades :D

Screenshots:

On X10:

On Xperia 2011 / Other Androids:

if u like the app please buy the paid app to support our work :)

P.S.: Older versions are available in 2nd post and will be kept for XDA users... :)

FOR OLDER VERSIONS (which will be kept FREE) please refer to this thread:

http://xdaforums.com/showthread.php?t=1085896

<OLD FILES | For Reference ONLY>
[XPERIA X10 Android Development] sskeleton:
This is great! Good job :)
[XPERIA X10 Android Development] lzyllp:
Only 2.1?work with CM7?
[XPERIA X10 Android Development] lzyllp:
I can't into the xrecovery and still into system when i run it(J's CM7)
[XPERIA X10 Android Development] The Gingerbread Man:
Great idea! This would be even better if you could make it into some kind of apk to be able to do the nessesary changes?

Edit

I misunderstood. So for now reboot to recovery through power menu is still not possible? It would be great if it would be possible to make reboot to recovery possible through an apk or a newer modified recovery menu.
[XPERIA X10 Android Development] MrHassell:
Well done! :-) xlnt
[XPERIA X10 Android Development] DooMLoRD:
hmm i have tested it with freex10-beta4... hmm ok... which version of CM7 rom r u using?

i am flashing CM7RC2 v010 right now for testing it...

in any case upload ur 'chargemon' file from /system/bin/ here... i will do the necessary changes...
[XPERIA X10 Android Development] DooMLoRD:
thanks dude....

the thing is i dont know how to make apps (apk)... if someone can create the apk it will be great!!!
[XPERIA X10 Android Development] lzyllp:
010 i use.I think the xrecovery have some change in CM7.
[XPERIA X10 Android Development] PoTi_96:
xrecovery is in /data/tmp on all roms

freex10 recovery (cm7) is in /system/recovery
[XPERIA X10 Android Development] depulle87:
+1 same here, also CM7 V010 and I can't get into Xrec now
[XPERIA X10 Android Development] DooMLoRD:
actually its in /system/bin/ for most roms.. in cm7 its in /system/recovery/ and if u use flashtool 0.2.8 to install xrecovery (on 2.1 roms) its in /system/recovtools/

but the thing is we are not touching xrec at the moment... i have jsut suggested changes to chargemon file, which will later execute commands to extract xrecovery, so only the 'if' condition is changed and one delete (rm) command added...
[XPERIA X10 Android Development] lzyllp:
you can make it work with CM7?
[XPERIA X10 Android Development] The Gingerbread Man:
Would this be easier if you could make a flashable zip of your modded chargemon and have download links for separete versions like 2.1, 2.2 and 2.3?
[XPERIA X10 Android Development] lzyllp:
Sorry,I miss some word in Script.I will test it with CM7 again.
[XPERIA X10 Android Development] DooMLoRD:
could u atleast boot into cm7?

i am flashing the baseband and file right now... will try it myself...
[XPERIA X10 Android Development] DooMLoRD:
in CM7RC2 v010... the device seems to get stuck up at the SE text logo...

please do not install this on 2.3 roms... till the problems get rectified...

my sincere apologies... :(
[XPERIA X10 Android Development] DooMLoRD:
yes steve i am plannin on doing that... right now tested it myself on 2.2 rom... now testing on 2.3 and 2.1...

will put up the update.zip files in a few hrs...
[XPERIA X10 Android Development] depulle87:
Yes everything else still works no strange things found
[XPERIA X10 Android Development] phoneyericsson:
thanks

Thanks for the direction above. Unfortunately I've tried that too and no luck. I hope that mentioning running OS helps guide others - both new installers and devs.

E10i (X10 Mini)

Gigglebread V6
[XPERIA X10 Android Development] DooMLoRD:
it was working on E10i (X10 Mini) Gigglebread as reported by a user here:

http://xdaforums.com/showthread.php?t=1010435&page=4
[XPERIA X10 Android Development] asmanthebell:
i get xrecovery 0.3 reboot loop
[XPERIA X10 Android Development] DooMLoRD:
which version of the script have u used? can u post a link for it?

can u post the contents of the following file before and after applying this add-on /system/bin/chargemon ?
[XPERIA X10 Android Development] asmanthebell:
The latest one posted on the first post of this thread http://xdaforums.com/showthread.php?p=12504876#post12504876, when i apply the script to reboot into the recovery it reboots into recovery which is fine, but when i reboot after doing backups or applying updates i reboot to get back into the normal android 2.1 OS and it goes back into recovery and repeats that loop until i re-flash the whole device. I will try to dig the file out of the numerous backups i have.
[XPERIA X10 Android Development] DooMLoRD:
ok since u talk about backups let me make one thing clear... this addon has to be applied every time u restore an older backup or use any other ROM... it NOT like u just install this addon and it will work across all roms/all backups, because every ROM/backup replaces the files in /system partition...
[XPERIA X10 Android Development] asmanthebell:
I understood that part. I rebuild the phone with whatever ROM and rebuild the data, i then apply this update, then reboot from the script to recovery to do a backup say weekly which what i do and then it wont boot to android OS only recovery loop.
[XPERIA X10 Android Development] DooMLoRD:
ok..

can u post the contents of the file /system/bin/chargemon from ur CURRENT ROM before and after applying this add-on?
[XPERIA X10 Android Development] asmanthebell:
will do later this evening
[XPERIA X10 Android Development] Crowds:
is there any plans for making a version that can work with trips chargemon?

this is for the new kernel
#!/system/bin/busybox sh

# remount rootfs rw
mount -o remount,rw rootfs /

# Umount MTDs
umount -l /cache
umount -l /data

cat /dev/input/event2 > /dev/keycheck&
sleep 3
kill -9 $!
if [ -s /dev/keycheck ]
then

# Mount recovery partition
cd /
rm -r /sbin
rm -f etc
tar -xf /system/bin/xrecovery.tar

# Umount /system
umount -l /system

# chroot
chroot / /init

fi

/system/bin/charger

mount -o remount,rw rootfs /

insmod /system/lib/modules/dm-mod.ko
insmod /system/lib/modules/dm-crypt.ko
insmod /system/lib/modules/twofish_common.ko
insmod /system/lib/modules/twofish.ko

export MTDBLOCKSYS=`mount | busybox grep /system | busybox awk '{print $1}'`
mount -o remount,rw -t yaffs2 $MTDBLOCKSYS /system

export MTDBLOCKSYS=`mount | busybox grep /data | busybox awk '{print $1}'`
mount -o remount,rw -t yaffs2 $MTDBLOCKSYS /data

export MTDBLOCKSYS=`mount | busybox grep /cache | busybox awk '{print $1}'`
mount -o remount,rw -t yaffs2 $MTDBLOCKSYS /cache

insmod /system/lib/modules/splboot.ko
sync
cat /system/kernel/miniloader > /proc/splboot/image
cat /system/kernel/boot.img > /proc/splboot/boot_img
sleep 2
echo > /proc/splboot/boot

cd /
rm -r /sdcard
rm init*
rm logo.rle
rm default.prop
tar -xf /system/bin/ramdisk.tar

chroot / /init

exit

and this one for the stock one

#!/system/bin/busybox sh

cat /dev/input/event2 > /dev/keycheck&
sleep 3
kill -9 $!
if [ -s /dev/keycheck ]
then

# remount rootfs rw
mount -o remount,rw rootfs /

# Umount MTDs
umount -l /data
umount -l /cache

# Extract recovery
cd /
rm -r /sbin
rm -f etc
tar -xf /system/bin/xrecovery.tar

# Umount system
umount -l /system

chroot / /init

fi

/system/bin/charger

# remount rw
mount -o remount,rw rootfs /

cd /
rm -r /sdcard
rm init*
rm logo.rle
rm default.prop
tar -xf /system/bin/ramdisk.tar

insmod /system/lib/modules/dm-mod.ko
insmod /system/lib/modules/dm-crypt.ko
insmod /system/lib/modules/twofish_common.ko
insmod /system/lib/modules/twofish.ko
insmod /system/lib/modules/io_ex2.ko
insmod /system/lib/modules/splboot.ko

if [ -e /data/data/com.android.providers.telephony/databases/telephony.db ]; then
/system/bin/chroot / /init
exit
fi

chroot / /init
[XPERIA X10 Android Development] DooMLoRD:
Use the latest universal one for any recovery & any xperia device

sent from FreeX10_beta4+CM6 settings
[XPERIA X10 Android Development] Crowds:
I did before post. Just forgot to mention :D
[XPERIA X10 Android Development] DooMLoRD:
have u tried this one? http://xdaforums.com/showthread.php?p=12504876#post12504876

use the latest file v3: reboot_into_rec_univ_xperia_v3.zip

i am pretty sure that one should work... because all that the script does is:

it searches for:

if [ -s /dev/keycheck ]
then

and replaces it with:

if [ -s /dev/keycheck -o -f /data/local/tmp/recoveryboot ]
then
rm -r /data/local/tmp/recoveryboot

if u have already tried it and it failed can u post the outputs which u get when the script is executed?
[XPERIA X10 Android Development] Crowds:
yes my friend that`s exactly the version i`ve tried :confused:

How can i give you the output on this? in fact the phone reboots but withouth entering on xrec...odd
[XPERIA X10 Android Development] DooMLoRD:
can u post the contents of the /system/bin/chargemon file before & after executing add-on_installer.sh script thru gscript app?

also mention any outputs that u get when u execute the scripts via gscipt app..
[XPERIA X10 Android Development] Crowds:
before:

#!/system/bin/busybox sh

# remount rootfs rw
mount -o remount,rw rootfs /

# Umount MTDs
umount -l /cache
umount -l /data

cat /dev/input/event2 > /dev/keycheck&
sleep 3
kill -9 $!
if [ -s /dev/keycheck ]
then

# Mount recovery partition
cd /
rm -r /sbin
rm -f etc
tar -xf /system/bin/xrecovery.tar

# Umount /system
umount -l /system

# chroot
chroot / /init

fi

/system/bin/charger

mount -o remount,rw rootfs /

insmod /system/lib/modules/dm-mod.ko
insmod /system/lib/modules/dm-crypt.ko
insmod /system/lib/modules/twofish_common.ko
insmod /system/lib/modules/twofish.ko

export MTDBLOCKSYS=`mount | busybox grep /system | busybox awk '{print $1}'`
mount -o remount,rw -t yaffs2 $MTDBLOCKSYS /system

export MTDBLOCKSYS=`mount | busybox grep /data | busybox awk '{print $1}'`
mount -o remount,rw -t yaffs2 $MTDBLOCKSYS /data

export MTDBLOCKSYS=`mount | busybox grep /cache | busybox awk '{print $1}'`
mount -o remount,rw -t yaffs2 $MTDBLOCKSYS /cache

insmod /system/lib/modules/splboot.ko
sync
cat /system/kernel/miniloader > /proc/splboot/image
cat /system/kernel/boot.img > /proc/splboot/boot_img
sleep 2
echo > /proc/splboot/boot

cd /
rm -r /sdcard
rm init*
rm logo.rle
rm default.prop
tar -xf /system/bin/ramdisk.tar

chroot / /init

exit

run script and said add-on_installer "ALL DONE" then run xrecovery_installer press on it, phone just reboot :confused:

after:

#!/system/bin/busybox sh
# DooMLoRD: modified chargemon file for reboot options

# DooMLoRD: prioritize offline charging
/system/bin/charger

# remount rootfs rw
mount -o remount,rw rootfs /

# Umount MTDs
umount -l /cache
umount -l /data

cat /dev/input/event2 > /dev/keycheck&
sleep 3
kill -9 $!

# DooMLoRD: check for both hardware key press and reboot file
if [ -s /dev/keycheck -o -f /data/local/tmp/recoveryboot ]
then

# DooMLoRD: remove reboot file
rm -r /data/local/tmp/recoveryboot

# Mount recovery partition
cd /
rm -r /sbin
rm -f etc
tar -xf /system/bin/xrecovery.tar

# Umount /system
umount -l /system

# chroot
chroot / /init

fi

mount -o remount,rw rootfs /

insmod /system/lib/modules/dm-mod.ko
insmod /system/lib/modules/dm-crypt.ko
insmod /system/lib/modules/twofish_common.ko
insmod /system/lib/modules/twofish.ko

export MTDBLOCKSYS=`mount | busybox grep /system | busybox awk '{print $1}'`
mount -o remount,rw -t yaffs2 $MTDBLOCKSYS /system

export MTDBLOCKSYS=`mount | busybox grep /data | busybox awk '{print $1}'`
mount -o remount,rw -t yaffs2 $MTDBLOCKSYS /data

export MTDBLOCKSYS=`mount | busybox grep /cache | busybox awk '{print $1}'`
mount -o remount,rw -t yaffs2 $MTDBLOCKSYS /cache

insmod /system/lib/modules/splboot.ko
sync
cat /system/kernel/miniloader > /proc/splboot/image
cat /system/kernel/boot.img > /proc/splboot/boot_img
sleep 2
echo > /proc/splboot/boot

cd /
rm -r /sdcard
rm init*
rm logo.rle
rm default.prop
tar -xf /system/bin/ramdisk.tar

chroot / /init

exit
[XPERIA X10 Android Development] DooMLoRD:
AH u are using the older version of reboot script... use the newest is "reboot_recovery.sh" (u will need to add it in GScript again)

the older version used to create file /data/local/tmp/flashtool

the newer version ("reboot_recovery.sh") creates the file /data/local/tmp/recoveryboot

dude i just installed TripNMIUI to check this... and the modification works :)
[XPERIA X10 Android Development] Crowds:
holy **** :confused:

ok ill try again. v3, right?

EDIT:

i`ve just try that now. no go. WTF?!

i guess i need some sleep. ill try tomorrow, thks anyway ;)
[XPERIA X10 Android Development] DooMLoRD:
yes...

btw the script will automatically put the newest reboot file "reboot_recovery.sh" in /sdcard/gscript/ so that the GScript app can see it in "add script" menu
[XPERIA X10 Android Development] Crowds:
yeah i know but since i have the paied version of gscript i copy your files from zip to gscript folder on sdcard.

could my problem come because of my gscript? or copied files? i doubt but...
[XPERIA X10 Android Development] Crowds:
ok think i found waht`s going wrong.

Like i said i use Trips moded kernel so this morning i flash my phone again with THIS rom. Copy your files and run both script files on gscript. Everything work as it should after applying but...

...after that i apply kernel file posted on the same post try run again to check and obviously didn`t work since chargemon was changed so i run both script again but this time without success. :confused:
[XPERIA X10 Android Development] DooMLoRD:
ah ok... the thing is the add-on installer script will search for the backup file /system/bin/chargemon.ori and if this file is present it will skip doing any further modifications...

u can just delete the above file and then try running add-on_installer script from within gscript again... it should work now..
[XPERIA X10 Android Development] Crowds:
nop :(

now i`m pissed :mad::p

i delete the .ori file, run add-on script, run xrec installer again, press reboot xrec and once again no go!!! GOD DAMN IT!!!

edit: i just check the files on bin folder but even after i delete the ori file this still appear :confused:
[XPERIA X10 Android Development] DooMLoRD:
hmmmm...

why are u running "run xrec installer again" ???

anyways lets start clean...

remove /system/bin/chargemon.ori file (if present)...

remove/delete all older scripts from gscript...

remove everything from /sdcard/gscript/ folder...

since u dont flash it thru recovery... extract the contents of the update.zip v3 and copy the contents of the folder sdcard/gscript/ to /sdcard/gscript/ folder on ur device... there are 3 files which are important... ( add-on_installer.sh / add-on_uninstaller.sh / reboot_recovery.sh )...

once u load them in gscript just check the text in big box and verify that u are using v3 of the scripts...

remove /system/bin/chargemon.ori file (if present)...

to install addon/modification... execute the following file: add-on_installer.sh

check the contents of /system/bin/chargemon and verify that the modifications have been made (refer to the post u previously made which has the modified chargemon & check for modification tags)

once that is done just execute: reboot_recovery.sh

thats it u just need to run these two scripts... no other script is required to be executed for this to work...
[XPERIA X10 Android Development] Crowds:
let`s go this on parts :)

i try run and not run. since not run didn`t work i try running it to see.

did all previous plus. i check the chargemon and yes, at the beginning a few #DooMLoRD appear so i presume installer runs correctly but still no go. HHHHHAAAAAAAAA!!!! :D:D:D

forget that bro. i really need a new brain and since a long time i didn`t felt so stupid as now :D I use this scripts since you release them without any issues, in fact i include them on my previous release, but this time...with custom kernel...****!!!

well, thanks anyway ;)
[XPERIA X10 Android Development] DooMLoRD:
are u by any-chance reflashing that kernel-addon "activator" zip which trip has? cause that just replaces /system/bin/chargemon and all modifications are lost!!!!

if u want i will upload a modifed kernel-addon "activator" zip (for trips miui rom) which will have the modification for reboot into recovery...
[XPERIA X10 Android Development] Crowds:
Fortunately I'm not the only one who needs a new brain hahahahaha. I said that I use trips moded kernel files in the first place :D We've been changing messages just for fun and realize this. WOW:D

Please do that change. I'll definitely appreciate that.

Thks;)
[XPERIA X10 Android Development] DooMLoRD:
ha ha...

anyways...

here are the files:

TripNKernel_Addon_03_reboot_recovery.zip

TripNKernel_BTS_02_1.0.3_reboot_recovery.zip (has wifi.ko from TripNMiUI 1.0.3)

TripNKernel_BTS_02_1.0.4_reboot_recovery.zip (has wifi.ko from TripNMiUI 1.0.4)

please test it and post ur results :)
[XPERIA X10 Android Development] Crowds:
thks bro ;)

i`m reflashing (once again) and tell you something ;)
[XPERIA X10 Android Development] Crowds:
ok. what i found on trips kernel.

your moded chargemon work but each time i apply the kernel i had to run uninstaller.sh and then installer.sh to work.

if i run the "BTS" there`s no need to do that proccess.

thks it work, even if i had to do one more step ;)

edit: now im gonna try all proccess but with io...ko file in it
[XPERIA X10 Android Development] Crowds:
ok.

with io_ex2.ko file on system/lib/module same bahavior. each time i hac custom kernel i had to uninstall and the install. so there`s no difference here.

i wonder what the hack is that...:confused:

great job. thks;)
[XPERIA X10 Android Development] blondprod:
Hello, my ROM is 2.1.504 with CustomKenerl_CallVolumes_Fix and the script won't works ..

Can u script "reboot into recover" for Z'kernel CallVolume_Fix Please ? :)

i've test himself to modify my chargemon, but i can't sucess :(

my chargemon :

#!/system/bin/busybox sh

# remount rootfs rw
mount -o remount,rw rootfs /

# Umount MTDs
umount -l /cache
umount -l /data

cat /dev/input/event2 > /dev/keycheck&
sleep 3
kill -9 $!

/system/bin/charger

if [ -s /dev/keycheck -o -f /data/local/tmp/flashtool ]
then

#remove tmp file
rm -f /data/local/tmp/flashtool

# Mount recovery partition
cd /
rm -r /sbin
rm -f etc
tar -xf /system/bin/xrecovery.tar

# Umount /system
umount -l /system

# chroot
chroot / /init

fi

/system/bin/charger

# zdzihu: boot custom kernel call volume fix

insmod /system/kernel/splboot.ko
sync
cat /system/kernel/miniloader > /proc/splboot/image
cat /system/kernel/boot.img > /proc/splboot/boot_img
sleep 3
echo > /proc/splboot/bootv

Can you help me ? My back button is out !
[XPERIA X10 Android Development] Crowds:
i think boot.img with soud_fix doesn`t work. am i wrong :confused:
[XPERIA X10 Android Development] lzyllp:
reboot_into_rec_univ_xperia_v3 not work with trip’s miui rom.DooMLoRD has some ideas？
[XPERIA X10 Android Development] Crowds:
i know it`s a few posts but can you read from post 190 your answer appear along the way ;)
[XPERIA X10 Android Development] lzyllp:
I test it with trip’s 1.0.4 with custom kernel but i get system fc and no radio:(
[XPERIA X10 Android Development] DooMLoRD:
whts the exact problem? can u post any outputs which u saw during script execution in gscript app?
[XPERIA X10 Android Development] blondprod:
this script will never work with kernel_sound_Fix ?

:confused:
[XPERIA X10 Android Development] DooMLoRD:
no dont worry... it will work... use the latest version reboot_into_rec_univ_xperia_v3.zip from http://xdaforums.com/showthread.php?p=12504876#post12504876
[XPERIA X10 Android Development] anantshri:
hi All,

i faced a wiered scenario last night i accedentlay modified one line in chargemon and my recovery was gone my device became unstable and finally to get everything back i need to get SEUS flashed back to get my phone to running state.

the line i edited was

cat /dev/input/event2 > /dev/keycheck&

to

cat /dev/input/event2 > /dev/keycheck &

what is the actually change that has occured here....

even if this renders by xrecovery non usable i also lost my root and my phone became unstable can anyone suggest what actually i did with my system
[XPERIA X10 Android Development] blondprod:
ok big thanks :)

Edit : I ve try and doesnt work. Never mind. Great works. Simple script use. (sorry for my english)
[XPERIA X10 Android Development] DooMLoRD:
ok i am a bit confused... finally did it work or not? :confused:
[XPERIA X10 Android Development] blondprod:
I doesnt work but thank u for helping me. U have product a easy and wonderful script. It work with my another config but not with custom kernel by z on my x10i. Perhaps it work on another x10i customized with kernel by z.

Sent from my x10i from XDA app [2.0.A.0.504 with customKernel by Z]
[XPERIA X10 Android Development] DooMLoRD:
if u can tell me exactly the problem that u face (output of script/etc) then may be i can help u out to get it working...
[XPERIA X10 Android Development] blondprod:
the file "chargemon" is modified. The file "recoveryboot" is created in 'data/local/tmp'. But the phone not boot on recovery with the script.

When i try to boot recovery with back button, it work but the file 'recoveryboot' isnt deleted after the normal reboot.

Sent from my x10i from XDA app [2.0.A.0.504 with customKernel by Z]
[XPERIA X10 Android Development] DooMLoRD:
yes some roms dont allow "reboot" command... try

su -c reboot

(accept any Super user requests, click "Allow")

hmmm... can u post the contents of modified /system/bin/chargemon here?
[XPERIA X10 Android Development] MrKingLouie:
works great on firmware XXX.435
[XPERIA X10 Android Development] blondprod:
it's OK

Yes : voilà :p

#!/system/bin/busybox sh
# DooMLoRD: modified chargemon file for reboot options

# DooMLoRD: prioritize offline charging
/system/bin/charger

# remount rootfs rw
mount -o remount,rw rootfs /

# Umount MTDs
umount -l /cache
umount -l /data

cat /dev/input/event2 > /dev/keycheck&
sleep 3
kill -9 $!

# DooMLoRD: check for both hardware key press and reboot file
if [ -s /dev/keycheck -o -f /data/local/tmp/recoveryboot ]
then

# DooMLoRD: remove reboot file
rm -r /data/local/tmp/recoveryboot

# Mount recovery partition
cd /
rm -r /sbin
rm -f etc
tar -xf /system/bin/xrecovery.tar

# Umount /system
umount -l /system

# chroot
chroot / /init

fi

# zdzihu: boot custom kernel

insmod /system/kernel/splboot.ko
sync
cat /system/kernel/miniloader > /proc/splboot/image
cat /system/kernel/boot.img > /proc/splboot/boot_img
sleep 3
echo > /proc/splboot/boot

This part doesnt work:

-o -f /data/local/tmp/recoveryboot ]

then

# DooMLoRD: remove reboot file

rm -r /data/local/tmp/recoveryboot

The file 'recovery' boot is already here, not deleted and the recovery boot not boot if i don't click back button.

have u an idea ?
[XPERIA X10 Android Development] DooMLoRD:
execute the following command in terminal emulator/adb shell before and after pressing reboot_recovery script (even after device reboots) :

ls -l /data/local/tmp/

and please post the output here
[XPERIA X10 Android Development] blondprod:
before reboot :

# su
# ls -l /data/local/tmp
-rw-rw-rw- root root 0 2011-04-16 22:44 recoveryboot

after reboot

# su
# ls -l /data/local/tmp
-rw-rw-rw- root root 0 2011-04-17 10:44 recoveryboot
[XPERIA X10 Android Development] DooMLoRD:
hmmm.... thats odd...

are u able to get into recovery the normal way (pressing back key multiple times at SE text logo) after applying this modification?

also for using custom kernel are u replacing the chargemon file? (some update.zips replace the chargemon so these modifications are lost)

wht are the permissions of the chargemon file? use the following command in terminal emulator/adb shell to find out the permissions:

ls -l /system/bin/char*