yashsingh1/xdaforums huggingface dataset:
[XPERIA X8 Android Development] X1111:
don't know exactly :confused:

there is a "reboot into recovery" option but doesn't work

these are the same....

does it mean that's our mistake ? :(
[XPERIA X8 Android Development] DooMLoRD:
ok... since u guys cant flash that update.zip

i am attaching a modified chargemon script (flash this via recovery):

rbt_rec_mod_X8_froyobread_v006.zip

its for X8 froyobread v006 (its only chargemon)

u will need to separately install app (v1.0.2):

com.xcharge.apk

either place it on sdcard and then use some file manager/explorer to install it or use adb:

adb install com.xcharge.apk
[XPERIA X8 Android Development] X1111:
absolutly fine working now...

sorry to can't press thanks button again ,on limited five thanks per day :D

do u think it requires to inform rom cooker about these change in chargemon ?

i mean is this change necessary to apply on his rom ?

thanks for your support....
[XPERIA X8 Android Development] DooMLoRD:
ya if possible please request them to make their chargemons as universal as possible and replace:

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

with

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

as the above is used in FlashTool v0.2.9.1
[XPERIA X8 Android Development] X1111:
"Power Off" option does not work ,

it goes to progress with the message but after many minutes nothing happens
[XPERIA X8 Android Development] DooMLoRD:
interesting... i am using a "reboot" binary i found which supports poweroff via "reboot -p"

can u please check this:

ls -l /data/local/tmp/

and post results back here?
[XPERIA X8 Android Development] Imppy:
Same problem as above
[XPERIA X8 Android Development] Imppy:
How do I do that doom?
[XPERIA X8 Android Development] DooMLoRD:
have u used adb before?

do this:

adb shell "ls -l /data/local/tmp/"

or u can download terminal emulator from market and try:

ls -l /data/local/tmp/

if possible please post screenshot of output

thank you!
[XPERIA X8 Android Development] Imppy:
this is what it looks like after I enter whatever you said
[XPERIA X8 Android Development] DooMLoRD:
its LS in small caps ;)
[XPERIA X8 Android Development] Imppy:
edited look above
[XPERIA X8 Android Development] DooMLoRD:
oh ok... good u already in "su"

now can u try this?

su
cd /data/local/tmp
./reboot -p

ideally ur device should poweroff (NOT REBOOT)

P.S.: dont connect ur usb-cable/charger to phone during this
[XPERIA X8 Android Development] c0dex:
i dont think it works for the stock rom, i have another x8 with gingerfroyo, and it works, while the stock rom cant flash it and with error
[XPERIA X8 Android Development] Imppy:
here it is!
[XPERIA X8 Android Development] X1111:
some pics :

edited....
[XPERIA X8 Android Development] DooMLoRD:
thank you guys...

it seem the binary of reboot which i am using is not working well on ur devices (ARM6)...

can u also try the following in terminal emulator

su
which reboot
ls -l /system/bin/reboot
ls -l /system/xbin/reboot

after this save a screenshot then enter the following:

reboot -p

now hopefully ur device should power down and NOT reboot, also please keep the usb-cable/charger disconnected...

THANK YOU!
[XPERIA X8 Android Development] X1111:
tnx again for your best support

yes ,the devise power off

i think mini should be the same

do u think it will be solve in next version of your app/widget ?
[XPERIA X8 Android Development] DooMLoRD:
thank you for testing...

yes thats the idea ;)

can u please do one last test?

in terminal emulator:

su -c 'toolbox reboot -p'

now hopefully ur device should power down and NOT reboot, also please keep the usb-cable/charger disconnected...

if this works i will add multiple power off commands to the app (atleast one of them will work)

THANK YOU!
[XPERIA X8 Android Development] X1111:
yes it works ,the devise power off :)

su -c 'toolbox reboot -p'
[XPERIA X8 Android Development] Imppy:
Cool,

Thanks for your work
[XPERIA X8 Android Development] DooMLoRD:
can u please send me ur toolbox binary?

should be at /system/bin/toolbox

u can pull the file via adb then zip it and post it here

thank you!
[XPERIA X8 Android Development] X1111:
here you are :
[XPERIA X8 Android Development] Imppy:
mines powered off too! thanks a lot

here is the zip
[XPERIA X8 Android Development] DooMLoRD:
thank you guys!!!

i will include this in the app and release a TEST version for X8 users...

btw the 'reboot into recovery' option is working fine right? only 'power off' was the issue?
[XPERIA X8 Android Development] Imppy:
yup everything worked except the power off

no we should say thank you :)
[XPERIA X8 Android Development] X1111:
confirm ,

'reboot into recovery' works properly with correct chargemon

i think this problem may be in others ROMs too ,i checked some chargemon....

however thanks a lot again
[XPERIA X8 Android Development] Imppy:
hey x111 which screenshot program u use?
[XPERIA X8 Android Development] X1111:
"Screenshot It"
[XPERIA X8 Android Development] Imppy:
I use that too but sometimes I get Screen cut off
[XPERIA X8 Android Development] X1111:
maybe sometimes ,

but with using full version and later's one it can be teeny
[XPERIA X8 Android Development] DooMLoRD:
u guys can use this free screenshot app:

https://market.android.com/details?id=com.geeksoft.screenshot&feature=search_result
[XPERIA X8 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 X8 Android Development] X1111:
tested on FroyoBread.v006 with corrected and not corrected chargemon ,both worked all options

i istalled "com.xcharge.apk" manually

because the .zip package didn't install again ;)

THANK YOU
[XPERIA X8 Android Development] Imppy:
works like a charm

could install it manually

thanks man
[XPERIA X8 Android Development] DooMLoRD:
thanks guys...

btw the 'Power Off' thing happens immediately or is there some time gap?

also do u see the messages "x10" / "x8" on screen just before it powers down?
[XPERIA X8 Android Development] X1111:
yes ,immediately

i didn't see any such messages ,"powering off now!!!" message then immediately happens

/

i think we are both on FroyoBread.v006 ,does in necessary to test with another roms ?
[XPERIA X8 Android Development] DooMLoRD:
if it is possible for u please do so...

since i dont have an X8 i really dont know wht is the current scenario of roms for X8...

u can try stock SE rom, a good froyo & GB rom...

please post ur findings/results when u are able to test all the options (reboot/reboot into recovery/power off)

thanks once again!
[XPERIA X8 Android Development] X1111:
I tested "reboot into recovery/power off" on some roms but forgot to test reboot option ,because i forgot it :D

but tried on some of them and worked ,probably it work fine on others .

result on MiniCM7-2.0.0 Alpha Ginger Cyanogen 7.0.3 : only reboot into recovery worked

result on Racht's cm7-85 Ginger Cyanogen 7.0.3 : both worked

result on DX's FroyoBread v006 Froyo Cyanogen 6.2.0 : both worked

result on MiniCM6-1.0.1 Froyo Cyanogen 6.1.3 : both worked

result on floyo-0.20 Froyo Cyanogen 6.1.3 : both worked

result on Stock f**kin SE's Elicar : both not worked !!! i see that messages "x10" / "x8"....
[XPERIA X8 Android Development] Imppy:
Also 2.3.4 GinX Rom (Running on Cyanogen 7) works
[XPERIA X8 Android Development] DooMLoRD:
thats ok 'reboot into recovery' use the same reboot command ;)

hmmm... do u know how to use logcat? the Xperia Reboot Options app will send lots of debug outputs to logcat...

can u please use logcat to capture the events after u launch the app and when u click on the 'reboot into recovery'/power off options?

use adb:

when u launch the app execute the following command in adb with device connected to pc

adb logcat > temp_log.txt

and then click on the options (reboot into recovery/power off) the log file will be dumped if the device reboots/powers up... in case the device doenst reboot/power off jsut use CTRL+C to abort the logcat dump and please post the logcats here...

also if possible can u try the following commands in terminal emulator:

su -c "/system/bin/toolbox reboot -p"

^^^ this is for 'power off'

as for reboot-into-recovery are u sure u flashed the update.zip via recovery on the stock SE 2.1 rom?
[XPERIA X8 Android Development] X1111:
what do u mean of this?

if u mean that did i install your app/widget in 2.1 , i must tell absolutely no ,

i have second partition on my sdcard and your app/widget has installed on it

in all tested rom - that are recognize second partition - "xperia reboot option" was on widget list

in some of them without this ability , i forced to set it up again .

in my 2.1 backup i had installed App2sd module and reinstalling wasn't needed .

but if your purpose is the 2.1 has xRecovery ,answer is ;)

now i on "FroyoBread" and for logcat and more test on 2.1 i need more time to shoot from my college pressure !!!

certainly in first opportunity i will do that

EDIT ONE :

hey DooMLoRD, i tested again "MiniCM7-2.0.0 Alpha Ginger Cyanogen 7.0.3"

the two options work corectly.... :confused:

i hate but now i'm going to stock one .

EDIT TWO :

it seems my phone was bricked on the sh*t stock rom :mad:

need more opportunity to flash 2.1 using Update Service ,maybe tomorrow

going back to FroyoBread

EDIT THREE :

i had forgotten FlashTool :D

now i'm sure the widget doesn't work on stock 2.1.1.0.6

these are tow attachments here .
[XPERIA X8 Android Development] X1111:
prior post edited....
[XPERIA X8 Android Development] DooMLoRD:
can u please execute the following commands on some roms that there are for this device:

getprop ro.product.board

alternately u can just look at the build.prop for "ro.product.board=" in the update.zip (system/ directory) of the ROM packages

please post the results here...

P.S.: this will be used in th future versions of the app for device identification
[XPERIA X8 Android Development] DooMLoRD:
thanks for ur testing and providing the logcats they were really useful!!!

ok can u tell me one thing:

are u installing the app by flashing the update.zip which i posted via recovery?

OR

are u installing the app by extracting the apk and then installing it the usual way?
[XPERIA X8 Android Development] X1111:
happy with helping you ,learn something new

i didn't install with your update.zip ,i told it wasn't match with x8 ,some abort error on recovery .

i installed it manually by extract your "com.xcharge.apk" and usual way....
[XPERIA X8 Android Development] DooMLoRD:
ah thats why!!

the modification was never applied... so the device was just rebooting cause the 'reboot into recovery' file was never checked...
[XPERIA X8 Android Development] X1111:
so how can i solve that ?

i did the same manner for all roms because of update.zip error . the widget worked well on them !

do you mean copy "placeholder" in "system" is enough ? or edit update.zip

sorry if i understand wrong ....
[XPERIA X8 Android Development] DooMLoRD:
actually the reason i posted this app in an update.zip was that a special modification needs to be done in the chargemon file...

u can have a look at the install_mod script in the update.zip

thats the install script which opens the /system/bin/chargemon file and does the necessary modifications to it right from within recovery...
[XPERIA X8 Android Development] X1111:
hi ,i tried again "stock E15i_2.1.1.A.0.6" rom with "FlashTool_0.2.9.1 xRecovery"

"power off" didn't work but "reboot to recovery" option worked as well this time
[XPERIA X8 Android Development] DooMLoRD:
can u please try out the following on the stock FW via terminal emulator:

su
which toolbox
ls -l /system/bin/toolbox
ls -l /system/xbin/toolbox
toolbox reboot -p

the last command should hopefully power off ur device... so please take screenshot before u enter the last command...

also if power off works then please pull the toolbox file from either /system/bin/toolbox OR /system/xbin/toolbox and post it here
[XPERIA X8 Android Development] X1111:
sure ,but i'm on FroyoBread again :D

let me go back to it at first opportunity ,test the code ,and post the result here ,maybe tonight
[XPERIA X8 Android Development] X1111:
i dont know why do i face to brick when i restore the stock's backup :confused:

the power off occurred ,toolbax.zip is attached .

EDIT:

DooMLoRD, dont forgot "reboot into rec" worked on "FreeXperia Recovery 001"

for usual Recovery it works none .
[XPERIA X8 Android Development] DooMLoRD:
ya the app (only .apk) is completely compatible with all FreeXperia recovery versions :)
[XPERIA X8 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 X8 Android Development] dbts25:
It works on FroyoBread v012
[XPERIA X8 Android Development] biscoitu:
Recovery mode doesn´t work to me on Hackdroid Based one of Kuyagaol :(
[XPERIA X8 Android Development] DooMLoRD:
can u please post logcat when u are running the app?

does it reboot?

or is just stuck at "rebooting now"?

does power-off work?
[XPERIA X8 Android Development] biscoitu:
It power off normally, and when I try to boot on recovery, it just reboot the phone, like I have chosen the normal reboot, not the recovery option :/
[XPERIA X8 Android Development] DooMLoRD:
ok can u please post logcat when the phone reboots using the app?
[XPERIA X8 Android Development] biscoitu:
Sry...I read carefully the post, and saw that I´ve got a question. Is the version 1.1.0 needs something special, as it is and apk file, and not flashed on the phone? I was thinking that as installed this, the options showed on power off menu of phone should work. My mistake :D.... sry... downloading v1.0.3 to flash on phone for tests :)

Edit: LoL, just got stucked on SE screen... the zip file is not for X8, isn´t it? :D
[XPERIA X8 Android Development] DooMLoRD:
v1.1.0 is the best version of the lot...

i recommend that u use ONLY THAT ONE...

cause i have been checking some chargemon scripts used on X8/X10mini/x10minipro and it seems that MANY devs use non-standard chargmeon... this is wht is causing the problem...

anyways can u just use v1.1.0 and post logcat when u select "reboot into recovery"???
[XPERIA X8 Android Development] biscoitu:
at the moment it is not possible :P, I´ve just changed the rom, hehehhe, but...I coudn´t find the widget after installing the APK on KuyaDroid v.96, it doesn´t appeared to me :/
[XPERIA X8 Android Development] dbts25:
I tested it on kuyaDROID 1.0.96 while ago and it works without problems
[XPERIA X8 Android Development] DooMLoRD:
this is a standard app (with widget) u will be able to add widget as soon as installation is over...

are u sure u installed it correctly?
[XPERIA X8 Android Development] DooMLoRD:
can u please uninstall older versions of this app and try the latest version v1.1.0? as it is a major release...

thank u!
[XPERIA X8 Android Development] biscoitu:
Sure, I got the apk, saved on SD card and then installed. Looked at the installed apps and there were showed the app, but didn´t show the widget :/

but np, Now it´s ok and working :)
[XPERIA X8 Android Development] dbts25:
I have only latest version
[XPERIA X8 Android Development] DooMLoRD:
thanks!

(out of thanks for the day)
[XPERIA X8 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 X8 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 X8 Android Development] codfreak:
The latest version nearly works perfect on my X8 with miniCM6 1.0.2 and CWM-recovery.

There is just one bug:

When I started the app the first time, it says my device is non-xperia, but it´s just a small bug.
[XPERIA X8 Android Development] DooMLoRD:
thank you for testing!

its not a Bug!

i try to identify device using the following tags from build.prop:

ro.product.board

ro.product.model

ro.product.device

generally some rom devs/cooks modify one of these entries... thats why i check for 3 instead of 1...

but if ur rom dev changes all these then i cant really do much...

BTW... X8 is identified/internal model number/name is "E15" right?
[XPERIA X8 Android Development] DooMLoRD:
And the app is released to market!!!

we are finally ready with a new version and its directly released to market!!!

get it here:

xCharge Reboot Options [a.k.a. Xperia Reboot Options]

its a paid app for 2$

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.:

the older versions v1.3.0 & below will NOT be removed! they will still be kept available for XDA users for free :)
[Sony Ericsson XPERIA X10 Mini] DooMLoRD:
DooMLoRD & MrHassell proudly present to u...

xCharge Reboot Options [a.k.a. Xperia Reboot Options]

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

and to my good friend MrHassell for doing the xcharge base coding, teaching & guiding me to develop android apps....

thanks to everyone who has done the testing and provided invaluable feedback/comments

we are finally ready with a new version and its directly released to market!!!

get it here:

xCharge Reboot Options

its a paid app for 2$

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... :)

Requirements:

Any of the following supported devices

Phone needs to be rooted with Busybox installed

Any Working Version of Recovery

[Xperia Arc/Play/Neo ONLY] For "Reboot into FASTBOOT mode" u need to connect device (via USB) to PC and have fastboot drivers installed

Supported Devices:

Xperia X10

Xperia X8

Xperia X10 Mini

Xperia X10 Mini Pro

Xperia Arc

Xperia Play

Xperia Neo

Lots of other non Xperia devices too!!! check this post for all supported devices
[Sony Ericsson XPERIA X10 Mini] necrohades:
i attached here both xRecovery and the original chargemon (here, named 'charger').

hope this could help

by the way, these are coming from U20i (x10 mini pro).

stock SE firmware 2.1.1.A.0.6
[Sony Ericsson XPERIA X10 Mini] DooMLoRD:
thank you.... can u also mention the exact name and version of the custom rom u have taken the files from?
[Sony Ericsson XPERIA X10 Mini] necrohades:
U20i (x10 mini pro).

stock SE firmware 2.1.1.A.0.6

i would like to try out your script, but my xRecovery was manually installed (root explorer method). so, do i have to remove it first and install it thru the FlasherTool or would it be just fine as it is?
[Sony Ericsson XPERIA X10 Mini] DooMLoRD:
do not remove ur current xrecovery... few files on ur devices are different... until i prepare flashable update.zips for ur device please use the manual way to edit those files...
[Sony Ericsson XPERIA X10 Mini] necrohades:
ok. i will watch this thread then and help out. but i'm no dev though, so all i can do is to be a tester :)
[Sony Ericsson XPERIA X10 Mini] DJxSpeedy:
i wait for an update.zip..
[Sony Ericsson XPERIA X10 Mini] DooMLoRD:
i need the following file (/system/bin/chargemon) from the rom u using... also while posting those files mention the exact name and version of the custom rom u have taken the file from...
[Sony Ericsson XPERIA X10 Mini] DJxSpeedy:
http://xdaforums.com/showpost.php?p=12431722&postcount=2

the same rom i have :D
[Sony Ericsson XPERIA X10 Mini] Nitroboy77:
hi,

this is my chargemon file. i use xCyanogenMod 6 (Floyo) v3.4 on my mini pro.

Thank you for doing this :)
[Sony Ericsson XPERIA X10 Mini] DooMLoRD:
can u please reupload the file... it seems to be corrupted
[Sony Ericsson XPERIA X10 Mini] jeremyward420:
Hey bro,

Im using the same rom as the other guy who posted his chargemon ([ROM] xCyanogenPro - Floyo - v3.4) so here is my chargemon. hope this helps since the other was corrupt or something.

Cheers,

Jeremy.
[Sony Ericsson XPERIA X10 Mini] Biodegradable:
i'll be waiting for this one.
[Sony Ericsson XPERIA X10 Mini] DooMLoRD:
till i get the universal version sorted out u can try the manual way... some users have reported it to be working...

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

please read the complete 1st post in that thread atleast twice before trying anything..