yashsingh1/xdaforums huggingface dataset:
[XPERIA X10 Android Development] blondprod:
yes it works with the modifications

No custom.zip installed.

result :

# ls -l /system/bin/char*
-rwxr-xr-x root root 856 2011-04-16 17:35 chargemon
-rwxr-xr-x root root 621 2011-04-16 17:35 chargemon.ori
-rwxr-xr-x root root 14356 2011-04-10 23:13 charger
[XPERIA X10 Android Development] DooMLoRD:
how could i misss this!!!!

got wht the problem is...

the problem is that the the MTD blocks are getting unmounted before the keycheck is done!!!

so if u see the highlighted text the data partition gets unmounted before the file is checked for... so the script is not able to see the file even tough its actually present!!!

ok do th following changes and then try:

#!/system/bin/busybox sh

/system/bin/charger

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

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

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

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

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

# 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

please try to see if this works... now no need to re-run add-on installer... also please execute the following commmand in terminal emulator/adb shell after u make the above changes to the /system/bin/chargemon file"

chmod 755 /system/bin/chargemon

now try the reboot_recovery in gscript/manually enter the commands...

hope it works...
[XPERIA X10 Android Development] blondprod:
it work with CustomKernel_inCall_SoundFix by Z

Yeah it works :D WELL DONE ^^

Now u can write : works with CustomKernel_inCall_SoundFix by Z

Big thanks DooMLoRD u save me and save my bouton "back" :)
[XPERIA X10 Android Development] CMoney87:
Great work on the script. I made a shortcut with the icon from Z's XRec installer as the image and its just like having a widget on my homescreen. Way faster getting into recovery and as much as I tweak and make backups this is a lifesaver!
[XPERIA X10 Android Development] Crocodile1973:
Doom. any of these work with trips new arc rom?
[XPERIA X10 Android Development] DooMLoRD:
Should work... he still uses xRecovery... also this isn't rom related...

Use universal version... link on first post...
[XPERIA X10 Android Development] Crocodile1973:
done and working. thanks for the reply
[XPERIA X10 Android Development] DooMLoRD:
[19/May/2011] APP/WIDGET Released

[19/May/2011] APP/WIDGET Released >>>>

Xperia Reboot Options

<<<<

enjoy!
[XPERIA X10 Android Development] DooMLoRD:
[20/May/2011] Xperia Reboot Options v1.0.1 released!

[ RELEASE ]

[20/May/2011] Xperia Reboot Options REMOVE BACKUP released!

[20/May/2011] Xperia Reboot Options v1.0.1 released!

[ NOTES ]

REMOVE_BACKUP

ONLY to be used if the chargemon file gets replaced

v1.0.1

changed reboot command to a more universal reboot command "su -c 'toolbox reboot'"

resized widget to 1x1 (72px X 72px)

changed widget_initial_layout.xml to have height & width as 54dp (nicely centered the icon)

added drawable-hdpi/drawable-mdpi/drawable-ldpi icons

Downloads at Post #2 @ Xperia Reboot Options
[XPERIA X10 Android Development] DooMLoRD:
[ RELEASE ]

[25/May/2011] Xperia Reboot Options v1.0.2 released!

[ NOTES ]

v1.0.2

added power-off feature (now its become an alternative to Power Menu)[might call it Xperia PowerMenu]

changed screen layout to accommodate power-off

please uninstall previous version & remove widget from homescreen before flashing this one...

Downloads at Post #2 @ Xperia Reboot Options

DID IT WORK ON THE ROM U CURRENTLY HAVE?

PLEASE PROVIDE FEEDBACK ABOUT THE NEW "POWER-OFF" FEATURE

Thank you!!!!
[XPERIA X10 Android Development] Xs3n:
Tripnmiui iris 2.3.4 v0.2.0

BB. 49

Tested v1.0.2

All is working, THX.
[XPERIA X10 Android Development] Nagarebozhi:
Works on TripNMiUI Froyo to without any problems
[XPERIA X10 Android Development] shedrule:
Great app would be nice to have it incorperated into future ROMs. So you see it in the power down menu.
[XPERIA X10 Android Development] Crowds:
we´ve tryed, belive me.

unfortunately it brakes something along the way (can´t install any app) :(

but i´m sure Doom will get something over the weekend ;) (i hope :D)
[XPERIA X10 Android Development] DooMLoRD:
@rendeiro2005

i think he means incorporating the interface/commands in PowerMenu of ROM... i.e. the menu which comes when u long-press on power button...

btw this app an be incorporated into ANY rom which uses freexperia recovery...
[XPERIA X10 Android Development] shedrule:
/\/\Ye I suppose so, but its XDA where miricals are a daily occurance. :D
[XPERIA X10 Android Development] Crowds:
ohh yes you´re right ;)
[XPERIA X10 Android Development] Crowds:
reboot device - woks

reboot into xrec - works

reboot custom kernel - didn´t try yet (my rom comes with k10 pre-installed) but when i run check_current_kernel.sh on gscript i just got stderr: and nothing else :confused: (from where can i get log from this?

power off - works

edit: i forgot...BlackEditionv1.4
[XPERIA X10 Android Development] shedrule:
Yes DooMLorD thats what I ment. Dont you think this app should go on the market for x10 owners who dont use XDA. Just a thought, quite a few 65p or cents for your great efforts. :D
[XPERIA X10 Android Development] DooMLoRD:
ya "reboot custom kernel" wont work on ur rom cause u dont have custom kernel booting optional... its a hardcoded to be default boot option ;)

also i told u right, ur rom doesnt have "cat" command thats why that script is giving errors...
[XPERIA X10 Android Development] Crowds:
what can i say to that?!

:D:D:D
[XPERIA X10 Android Development] DooMLoRD:
the app is currently not completely independent... it still has to depend on the update.zip to make necessary system modifications if the required code doesnt exist in chargemon...

currently if u use just the apk then the app is ONLY compatible with FreeXperia recovery...

i am working on the system modifications to be included within the app itself so that the app will be completely independent... also a few things still remain to be added (superuser check / busybox check / recovery check)... once all those are in place the app WILL GO LIVE on market...
[XPERIA X10 Android Development] briandevlin:
+1 I would glably put my hand in my pocket for this one, and a great idea incorperating it into the long press power button.
[XPERIA X10 Android Development] MrHassell:
DooMLoRD deserves GeForce GTX 590

AU$3.49 is about the price of a cup of coffee in Australia.. does this seem fair? LOL

Seriously though I want to buy the DooMLoRD an NVidia GFX card because I know that he wants one, uses them like most people can only ever dream of (and I don't mean gaming) and for god's witness would show me true, this man has earned it more than any human being I've ever known :) LEGEND mate!
[XPERIA X10 Android Development] anantshri:
i can smell cuda implementation.. .and yes he does deserve it....

hey MrHassell, any idea if this app could be integrated on long power press then it will truly be a wonder on its own.

Edit : http://stackoverflow.com/questions/3703071/how-to-hook-into-the-power-button-in-android

this has something of your interest i suppose.
[XPERIA X10 Android Development] colossus:
Hi Buddy,

I will chip in my friend, all in a good cause, tell me the best way of doing it and i will sort it out at the weekend.

Request... Can you make me a app to remind me to use this one, its been on my phone a week and my brains still programmed on using the back button.:D
[XPERIA X10 Android Development] DooMLoRD:
;)

thats high praise... not sure i deserve it...

anyways we will see wht to do with this once the app is completely independent...

ya cuda it is but for some other non-android reasons (read distributed parallel algorithms)...

hmmm and the long power press i think its a part of the framework-res.apk...

we dont want to get involved into individual rom aspects... better would be to keep it as separate app... may be it can be kept in background to "hijack" long power press so that the app is executed instead of ROMs power menu...

;)

well on that front we cant really do much... can we?
[XPERIA X10 Android Development] Crocodile1973:
haha, its amazing how the hand goes to the back button everytime, till it enters xrecovery.
[XPERIA X10 Android Development] shedrule:
One of the things I like is the instant resets I've tried most on the market and you are just as quick long press on the power button. Will this reset only work on a rooted X10 with xrecovery?
[XPERIA X10 Android Development] DooMLoRD:
i am sorry i dont quite follow wht u mean by reset? do u mean REBOOT?

and yes this app requires ROOTED device and working recovery (xRecovery / FreeXperia recovery)
[XPERIA X10 Android Development] DooMLoRD:
[ RELEASE ]

[27/May/2011] Xperia Reboot Options v1.0.3 released!

[ NOTES ]

v1.0.3

added compatibility for some X10 mini pro users with flag "/data/local/tmp/xrecovery"

added compatibility for Flashtool v0.2.8 users with flag "/data/local/tmp/flashtool"

added a different 'toolbox' file for x8 (may be MSM7227 in general) compatibility

x10 toolbox MD5HASH: 7fdead031ce8fa58f62f0a82b7fc04cd

x8 toolbox MD5HASH: 37f736805ccadebe984ef7a383d52e46

changed "power off" command to: "su -c '<extractpath>/toolbox reboot -p'"

did some major code cleanup

please uninstall previous version & remove widget from homescreen before flashing this one...

Downloads at Post #2 @ Xperia Reboot Options

DID IT WORK ON THE ROM U CURRENTLY HAVE?

PLEASE PROVIDE FEEDBACK ABOUT THE NEW "POWER-OFF" FEATURE

Thank you!!!!
[XPERIA X10 Android Development] shedrule:
Yes sorry I ment reboot. Its instant on your app.
[XPERIA X10 Android Development] DooMLoRD:
[ RELEASE ]

[12/June/2011] Xperia Reboot Options v1.1.0 released!

[ NOTES ]

v1.1.0

major release

app/widget can now be installed independently, no need to flash thru recovery

installer script integrated into app

added su/busybox/recovery checks at startup

added compatibility for various recovery flags

please uninstall previous version & remove widget from homescreen before flashing this one...

since this is the FIRST independent APP release (no need to flash via recovery) I highly recommend that u take a FULL NANDROID/RECOVERY backup before installing/testing this app

Downloads at Post #2 @ Xperia Reboot Options

DID IT WORK ON THE ROM U CURRENTLY HAVE?

PLEASE PROVIDE FEEDBACK ABOUT THE LATEST VERSION v1.1.0

Thank you!!!!
[XPERIA X10 Android Development] sve1313:
On 2.1.A.0.435 BB 2.1.67 v1.1.0 works fine.

Good job.
[XPERIA X10 Android Development] DooMLoRD:
[ RELEASE ]

[14/June/2011] Xperia Reboot Options v1.2.0 released!

[ SCREENSHOT ]

[ NOTES ]

v1.2.0

major release (GFX & App Drawer)

added nice GFX thanks to lzyllp

finally the app is "visible" in APP Drawer ;)

added About App menu

please uninstall previous version & remove widget from homescreen before flashing this one...

I highly recommend that u take a FULL NANDROID/RECOVERY backup before installing/testing this app

Now that the app is fairly complete and independently working, Donations are welcome!!!

if u feel that this app has helped u OR u think that the work i, along with others, put into making this app is worthy of donations, then click on the following link for buying me some coffee/beer/etc ;)

PAYPAL DONATION LINK

Downloads at Post #2 @ Xperia Reboot Options

DID IT WORK ON THE ROM U CURRENTLY HAVE?

PLEASE PROVIDE FEEDBACK ABOUT THE LATEST VERSION v1.2.0

Thank you!!!!

P.S.: may be we can now release it on Android Market???
[XPERIA X10 Android Development] Lockon Stratos:
V1.2.0 works on Wolf's v7.1 rom running 3.52 custom kernel. I flashed the v3 zip and worked like a charm. Thanks again Doom. btw any suggestions on how to make a widget for this and where is the app? I can't find it for some reason.

Edit: Found the app. Can't believe I missed it. :D:D:D I don't know what possessed me to follow the old link but I ended up using the v3 zip and creating the shortcuts manually with gscript. That also works just to let everyone know. Then I found the v1.2.0 app which also works like a champ.
[XPERIA X10 Android Development] DooMLoRD:
[ RELEASE ]

[26/June/2011] Xperia Reboot Options v1.3.0 (UNIVERSAL) released!

[ SCREENSHOT ]

TOO MANY NEW SCREENSHOTS CHECK FIRST POST OF APP THREAD

[ NOTES ]

v1.3.0 (UNIVERSAL)

MAJOR release

UNIFIED VERSION FOR ALL XPERIA ANDROIDS! (XPERIA 2010 & 2011 LINEUP)

added device detection

some reboot options are device specific so depending on your device model u will see those specific ones

replaced "touch" command with "busybox touch"

added About App screen

added content to Help screen

added reboot into fastboot mode (for Arc/Play/Neo ONLY)

removed onSelect TOAST commands

removed "confirm on exit" message

Please uninstall older versions of this app before installing this one

Now that the app is fairly complete and independently working, Donations are welcome!!!

if u feel that this app has helped u OR u think that the work i, along with others, put into making this app is worthy of donations, then click on the following link for buying me some coffee/beer/etc ;)

PAYPAL DONATION LINK

Downloads at Post #2 of APP thread

DID IT WORK ON THE ROM U CURRENTLY HAVE?

PLEASE PROVIDE FEEDBACK ABOUT THIS VERSION

ENJOY!
[XPERIA X10 Android Development] The Gingerbread Man:
Installed on Ericks ewjet sony style 2.1 (released earlier today, very latest release). Device not detected as xperia at first but continued anyway selecting device as x10. I tried reboot into recovery but again just a normal reboot (I'm using latest Z Kernal, not altinitive version for random reboots). I uninstalled previous version and allowed SU permission twice.

Also reboot into fastboot was shown as an option, i believe this should be just for 2011 models.
[XPERIA X10 Android Development] DooMLoRD:
If u can post the logcat it can be helpful...

Also if "reboot into fastboot mode" was shown then the universal reboot into recovery command was called which wont work on xperia 2010 lineup... uninstall app and install it again to get device selection screen back... be sure that u select Xperia X10 as ur device model...

sent from x10 CM7 (FreeXperia Project)
[XPERIA X10 Android Development] The Gingerbread Man:
Sure, kind of forgotten I was meant to try and get that log file for you. Am not at work tomorrow so hopefully shouldn't be too much trouble. Sorry man

Edit,

Remind me in 12 hours incase it slips my mind but will my best to remember
[XPERIA X10 Android Development] Crocodile1973:
doom 1.3.0 is not booting into recovery for me. using trips arc 0.9 rom
[XPERIA X10 Android Development] DooMLoRD:
Please post logcat.... I have made a lot of effort into dumping tons of info/error messages to logcat... please attach it along with your post...

sent from x10 CM7 (FreeXperia Project)
[XPERIA X10 Android Development] DooMLoRD:
[ INTRO ]

this is a small PC based package to get logcat of my app

[ DOWNLOAD ]

get_xperia_reboot_options_logcat.zip

[ HOW TO USE? ]

download the above file and extract it to some location

connect ur Phone (via USB cable) to PC (make sure that u have adb drivers installed, if u have used adb/flashtool any time before then they will be installed)

execute the runme.bat file

a small window will pop up:

now use the app and select which ever option u having problem with

once device powers off/reboots u will get the following window (saying that log capture is DONE):

now close the window (by pressing enter/space bar)

the log file will be called log.txt and will be in same folder as runme.bat file

now please upload this file while posting issues/bug reports

THANK YOU for using our APP!!!​
[XPERIA X10 Android Development] Crocodile1973:
solved:- Not your new build, poor eyes on my side, initial start up with model screen, i just selected with out looking. But with trips arc rom, it identifies it as an ARC. So once i selected to change it to X10 it worked.
[XPERIA X10 Android Development] Lockon Stratos:
V1.3.0 app worked fine on WBs TW 007.1 ROM running zkernel22062011 on bb67. Reboot, power off & reboot to xrec all worked perfectly. Thanks again to everyone involved in developing this app.
[XPERIA X10 Android Development] The Gingerbread Man:
Iv just tried this and it never seems to finish and reach the point where its supposted to finish. Just gets stuck on 'processing'. Iv tried several times and its creating a log.txt but is an empty file? Disconnecting usb and reconnecting after reboot after leaving for a good five mins doesnt help.

Just to be clear im doing this right cos you never know i might be being a idiot here...

1 Connect usb to phone and pc

2 open and run the runme

3 open widget/app

4 hit reboot to recovery

5 allow phone to reboot

6 runme should then say finished and then post the log.text

step 6 just isnt happening here for me. running ericks ewjet 2.1 'sony style' with latest Z kernal inculded in the rom and kernal tweak pckage by erick using a crappy windows xp sp3 pc. Real sorry doom, really was hoping to get this file for you now iv actually had a few mins to try :-(
[XPERIA X10 Android Development] gregbradley:
After running v1.3 since it came out I can report the same as quoted from lockon stratos...same kernel, same baseband, all working fine.

I have not tried it on the 2.1 dualboot yet as I have not seen the recommendation to do do yet..but if you think its ok I well test it there as well
[XPERIA X10 Android Development] DooMLoRD:
DONT TRY IT ON THE dualboot 2.1 rdannar one posted by me (for baseband 2.0.52)... u will get stuck in recovery (thats wht happened to me)...

thats wht i corrected in the EWJET 2.1 dualboot rom (bb 2.1.xx)...
[XPERIA X10 Android Development] gregbradley:
Ok, Testing on your new dualboot
[XPERIA X10 Android Development] gregbradley:
Ok.

When i tried it on ewjet 2.1 it initially said non xperia device.

I changed to x10 and clicked on chage but then i got a warning saying.

No recovery installed ...

the app will now exit.

I ran the logcat program but the log is empty because the device does not power off...

wolf 2.2 v007.1 bb67 zkernel 22062011

?
[XPERIA X10 Android Development] DooMLoRD:
yes thats expected! cause i have used original chargemon for the dualboot EWJET 2.1 rom...

btw if the logcat prog doent post anything just press CTRL+C to terminate batch job and now u should see logcat...
[XPERIA X10 Android Development] The Gingerbread Man:
Would this be the same for what I said last night? About ctrl + C to get the file then post
[XPERIA X10 Android Development] DooMLoRD:
ya u can.. but i am guess that the problem is much bigger...

http://xdaforums.com/showpost.php?p=15182672&postcount=2981
[XPERIA X10 Android Development] The Gingerbread Man:
But recovery is not broken for me, i can get in pressing back no problems. I'm not dual booting either.
[XPERIA X10 Android Development] Lockon Stratos:
v1.3.0 app works perfectly on WBs TW 007.1 ROM (bb67) running NEW zKernel_23062011 with FreeX10-beta4 ramdisk. Reboot, power off & reboot to xrec all worked fine.

I'll test on my wife's x10 running Erick's 2.1 ewjet once I find time to update the rom. :D:D:D

Thank you to everyone for their hard work.
[XPERIA X10 Android Development] gregbradley:
Recovery is not broken for me.

I can enter it any time I reboot, and if i use this app from wolfs rom it works.

I will try ctrl + C when i get some time.
[XPERIA X10 Android Development] gregbradley:
I tried it because i thought you meant that you had fixed the 2.1 rom to be able to run the app, not just that you fixed the recovery bootloop....
[XPERIA X10 Android Development] Lockon Stratos:
I did a fresh install of Erick's 2.1 rom with stock kernel running bb67 on my wife's x10 and then I tested v1.3.0. It didn't detect the device just as previously reported but I continued anyway. Tried reboot, reboot to xrec & power off and all 3 worked fine.

Then I uninstalled the app, modified build.prop and changed 2 lines that showed device X10X to X10a, rebooted then reinstalled the app. Now device is detected properly and all 3 options still worked perfectly.

I will test Erick's rom with custom kernels later on then run some more tests.
[XPERIA X10 Android Development] The Gingerbread Man:
Seems the kernal is the cause for incorrect detection and reboot to recovery going by above post, im using ericks 2.1 but we custom kernal.
[XPERIA X10 Android Development] DooMLoRD:
i disabled it cause i am making a special version of the App specifically for dual boot ;)

just doing some testing...
[XPERIA X10 Android Development] DooMLoRD:
arkedk got it working on that ROM with custom kernel... may be he can help u...
[XPERIA X10 Android Development] The Gingerbread Man:
Hopefully, i saw the posts in the other thread and asked for help.
[XPERIA X10 Android Development] G-FACE:
@DooMLoRD, I'm wondering how can i use the Reboot to custom kernel function?

I mean...I'm on zKernel, but for example if want to switch from custom to stock and vice versa is this function convenient for this?
[XPERIA X10 Android Development] Crocodile1973:
doom i have a major issue, when i reboot into xrecovery, and then try to reboot, i am stuck at the sony ericsson screen. Not using any mod kernel. I have restored and pinpointed this as the issue. I can reboot phone without issue. But once reboot into recovery, the phone just sits and doesn't start. the logcat is prior to attempting it again, as i cannot gain access back in
[XPERIA X10 Android Development] DooMLoRD:
its actually useful if u follow the custom kernel testing method... so u can reboot into custom kernel just for checking... and once u are done checking u just need to reboot to get back to stock ;)

thanks but this logcat u posted isnt helping much... if u can please post the logcat DURING THE REBOOT INTO RECOVERY option being pressed may be i can try to find out whts the issue...

also is ur recovery currently broken? if so i am extremely sorry for the inconvenience!

also which ROM were u trying this on? which rom version? cause this is the FIRST reported MAJOR problem in ~2000 app downloads...

thank you very much for testing!!!
[XPERIA X10 Android Development] Crocodile1973:
how do i do that, once it reboots, that is it, i have to restore. its trips arc rom
[XPERIA X10 Android Development] DooMLoRD:
so is recovery working at all? or is recovery broken??
[XPERIA X10 Android Development] Crocodile1973:
it works to reboot into first time, then when rebooting from it, it gets as far as the sony ericsson screen. i can then pull battery, and get back in to restore. same happens again if i re-run it.

must be issue with trips 1.0 arc rom
[XPERIA X10 Android Development] Lockon Stratos:
Tested v1.3.0 app on Nasif's Froyo Ultima 5 with zkernel22062011. Reboot, reboot to xrec & shutdown worked fine. I'm still trying to sort out Ewjet with custom kernel. Can't get that rom working no matter what but the stock version installed with no problems. Will report back soon.
[XPERIA X10 Android Development] Lockon Stratos:
Also tested v1.3.0 app on ThJaps v1.5.1 ThGo with Tkymgr's moded Th#12 kernel. Reboot, reboot to xrec & shutdown all worked fine.
[XPERIA X10 Android Development] The Gingerbread Man:
Still no joy for me, again on ericks 2.1 rom latest release from yesterday. Flashed this chargemon xRec default CUSTOM.zip in 0.3 xrecovery and attempted to reboot to recovery and just normal reboot. Then i tried using get xperia reboot options logcat and that still never reaches the point of saying 'done' unless i terminate the program manually. A log.text file is generate, always empty, 0 bites. Il upload it anyway, perhaps my PC is blind or retarded or something......

http://dl.dropbox.com/u/22324879/log.txt is all i get every time.
[XPERIA X10 Android Development] G-FACE:
DooM, which lines in Achotjan's v05 chargemon file do I need to edit in order to make your app working?
[XPERIA X10 Android Development] DooMLoRD:
can u guys post the current /system/bin/chargemon file from ur phone here?