yashsingh1/xdaforums huggingface dataset:
[XPERIA X10 Android Development] G-FACE:
Achotjan v05 chargemon file!
[XPERIA X10 Android Development] The Gingerbread Man:
Im not expert but to me it looks like data is getting unmounted still before the app can do its thing http://db.tt/evBS93y
[XPERIA X10 Android Development] DooMLoRD:
ur chargemon file is correct!

are u able to boot into custom kernel atleast?

can u try this:

http://www.mediafire.com/?jmsbq50g3mvu1ze
[XPERIA X10 Android Development] The Gingerbread Man:
This option is not shown, I have reboot device, reboot to recovery, reboot to fast boot and power off. Device not getting detected properly as x10 from the app, it shows as non xperia but im manually choosing x10. Would a couple of screenies help?
[XPERIA X10 Android Development] DooMLoRD:
dude i told this to u before... u have not correctly selected ur Device in Device Detection screen!...

if u see "reboot to fast boot" then ur device was incorrectly detected... "reboot in recovery" will never work cause the commands called are different!!!

just uninstall app (that will wipe app data) and reinstall it... and this time be sure to select "Xperia X10" as ur device... that should work...

please check and let me know...

THANKS!
[XPERIA X10 Android Development] The Gingerbread Man:
Dude im really sorry but I did select Xperia x10. Xperia X10 is set at the top if the list on device selection and im just pressing yes this is correct. I uninstalled and downloaded a new copy of 1.3.0. What else can I do if I cant get alogcat from the phone and the pc program thing just keeps giving empty files? There must be something....
[XPERIA X10 Android Development] Crocodile1973:
make sure you hit the change button
[XPERIA X10 Android Development] DooMLoRD:
if ur device was incorrectly detected

then after selection of correct device click on "Change"...

DO NOT CLICK ON "yes this is correct"

about the logcat part... i had talked to MrHassell regarding this... i am still waiting for him to send those modules... the idea was that the logcat would be dumped to disk before shutdown/reboot...
[XPERIA X10 Android Development] The Gingerbread Man:
How did I over look this tiny tiny detail?!?!?!?!!?! I was pressing 'yes this is correct' before which thinking about it was only conforming to the app my device is non xperia, appently. I firstly owe you a big thanks crocodile and sorry to doomlord for giving him a head ache over this! You know when you want the ground to swallow you and kick yourself so hard!!!!!
[XPERIA X10 Android Development] DooMLoRD:
:P

does it work now?
[XPERIA X10 Android Development] The Gingerbread Man:
It seems so obvious now, I do not know how I over looked that but I feel like a right prat now!
[XPERIA X10 Android Development] Crocodile1973:
don't worry about it, i overlooked it, when i first used it too. hope it helps you get sorted.
[XPERIA X10 Android Development] G-FACE:
:bow: You're da man :)

It's working now!
[XPERIA X10 Android Development] DooMLoRD:
hmmm.. i think i will improve the interface for this to avoid such issues...
[XPERIA X10 Android Development] Lockon Stratos:
Hi Doom,

I decided to try again Ericks xkernel Gbread flavor on my wife's X10 and this time around it installed without any hitches. I did a clean flash of stock 2.1 and so on but the app still won't boot to xrec. On install of v1.3.0, the app did not detect the device and I selected change to continue on. I DO NOT see Fastboot option, and it reboots & powers off just fine but still won't boot to XREC.

Here's my chargemon.

sh-3.2# cat /system/bin/chargemon

cat /system/bin/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 $!

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

then

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

/system/bin/charger

# 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

echo > /proc/splboot/bootsh-3.2#
[XPERIA X10 Android Development] The Gingerbread Man:
I posted the correct chargemon in ericks thread for this

Edit, credit to doomlord!
[XPERIA X10 Android Development] Lockon Stratos:
Thanks Gbread Man aka Steve :D. I saw that on Doom's response to G-face but I wasn't sure if it was specific for G-face or if it was generic for everyone. Does this mean we have to flash that file every time Erick updates? I mean we all know how often that happens. :D :D

Anyways thanks again for pointing that out and thanks to Doom for the fix.
[XPERIA X10 Android Development] The Gingerbread Man:
G face was trying to use it on a 2.2 rom so I dont know if its a generic chargemon to use on all roms but id say yes yor need to flash it every time erick updates, unless of course he decides to use this one.
[XPERIA X10 Android Development] Lockon Stratos:
Exactly that's why I didn't bother with it unless someone suggested it. Good thing it worked.
[XPERIA X10 Android Development] The Gingerbread Man:
The one for g face could be a completely different file, iv not looked at it to see. Glad you got it to work though, its taken me a while.
[XPERIA X10 Android Development] Lockon Stratos:
Well it took me a while too cause I had so much trouble with Ericks new custom rom. All the updates & patches he released in June wouldn't install properly and kept giving me wlods on first boot. Then this app wouldn't boot to xrec no matter what. But I am glad its all behind me now.
[XPERIA X10 Android Development] G-FACE:
The file which Doom had cooked for me is for Achotjans' 2.2.3 v.05 and I think it's meant only for that rom!

Sent from my X10i using Papatalk
[XPERIA X10 Android Development] DooMLoRD:
no no

that file is generic for xrecovery 0.0.3 + any rom + default custom kernel booting
[XPERIA X10 Android Development] The Gingerbread Man:
FOR ERICKS 2.1 ROM ONLY!

If anyone is interested iv prepared a build.prop that will be recognised by xperia reboot options to save with all the hassle I had.

1 uninstall any version of xperia reboot options

2 download this chargemon http://db.tt/HKu9Lcr ,flash in recovery (thanks doomlord :-) )

2 download this build.prop http://db.tt/Wfx79uH

3 using root explorer or similar go to system folder and delete your current build.prop and replace it with the one you downloaded.

4 reboot

5 install xperia reboot options again and it should be detected properly now as xperia x10.

I also suspect this will fix the flashtool not detecting the phone as x10. Let me know how you get on :-)

PLEASE NANDROID BACK UP BEFORE TRYING THIS SYSTEM MODIFICATION!
[XPERIA X10 Android Development] DooMLoRD:
@steve

thanks!

actually u should tell Erick abt the build.prop issue... i had seen this a while back... he changed IMP build.prop values to x10x... which cause incorrect detection in flashtool (and even my app) cause MANY tools/apps use those build.prop tags/values to detect device name/model correctly...
[XPERIA X10 Android Development] The Gingerbread Man:
Yeah, I thought id do something about it and perhaps help others. Iv posted those instructions on his thread so all the right people should see. I know its not exactly a difficult mod to make, infact very easy but none the less should help make life easier for me and others :-)
[XPERIA X10 Android Development] Lockon Stratos:
Just did a clean install of Ericks new xkernel X2ex from last night and it looks like he is now using the correct chargemon file. Device detection still failed, nothing a build.prop mod can't fix, but the important thing is it now boots to xrec.
[XPERIA X10 Android Development] G-FACE:
Oh, great. My mistake then ;)
[XPERIA X10 Android Development] Lockon Stratos:
For anyone interested...v1.3 works fine on Erick's GB rom...reboot, reboot to xrec (IMO the most important one) & power off worked like a champ.
[XPERIA X10 Android Development] Crocodile1973:
universal, so it should work on all X10 roms, including 2.3.3 GB
[XPERIA X10 Android Development] Lockon Stratos:
We've had some minor challenges on some custom roms if you read through the last few pages that's why I posted.
[XPERIA X10 Android Development] Crocodile1973:
yeah i know, i read it. apart from that one, works on all others. Take your point though
[XPERIA X10 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 :)
[XPERIA X10 Android Development] Crowds:
this is the worse news :(

had to pay :D:D:D kiddin ;)
[XPERIA X10 Android Development] streamnlnl:
Sorry to ask this.

But you write, if u like the app please buy the paid app to support our work.

Who is our? The xperia team?
[XPERIA X10 Android Development] DooMLoRD:
In this case its me & MrHassell ;)

This app is an independent project...
[XPERIA X10 Android Development] Crowds:
Mrhassel & Doom it self;)
[XPERIA X10 Android Development] The Gingerbread Man:
1.4 working great on wolfbreak 2.3 3 hotfix 5. Was very happy to pay for this release with theme support :-) what if you were to come up with matching icons for widget and launcher for the themes?
[XPERIA X10 Android Development] hasei:
I bought a Nexus One just a while ago and was wondering if this app works on N1 because I got used to this app so much with my X10.

I'm glad that I can use this familiar app on other devices! It's working perfectly on my N1 with stock GB ROM with no options but power-off. Thank you!
[XPERIA X10 Android Development] DooMLoRD:
hi i havent tested this on N1...

i am sorry but i didnt follow wht u mean by "with no options but power-off"?

does that mean some of the options dont work?

can u tell me if u can atleast see the following screen:
[XPERIA X10 Android Development] 10assaye:
Would love to buy this but i only get the option to open and it opens v1.3...

Anyway, well done DooMLoRD, I appreciate your work

Gregbradley
[XPERIA X10 Android Development] DooMLoRD:
hi just uninstall the older version before installing the new one from market
[XPERIA X10 Android Development] hasei:
DooM,

What I meant was that:

(1) I'm not complaining. The app is working as it should with all options being visible and functional on N1.

(2) I was looking for an app like this because I am running an AOSP ROM on N1, and the ROM does not have a built-in option to reboot or get into recovery.

(3) I'm not complaining!

Sorry for the confusion, but I just wanted to let you know that I'm pretty happy with the app.

BTW the screen on my N1 looks identical to what you posted, and nothing is missing.
[XPERIA X10 Android Development] DooMLoRD:
hahahah... thats ok man... i couldnt follow ur post properly ;)

glad u like it!

i am also using it on my SGS2 and loving it :D

ya that screenshot was from my SGS2
[XPERIA X10 Android Development] G-FACE:
Bought the app just now to support your work.

I love it! :)
[XPERIA X10 Android Development] totalundone:
Just bought it...

Niiiice! Keep up the good work.
[XPERIA X10 Android Development] ozzybulldog:
Thanks for this tool. Bought it!

Oz
[XPERIA X10 Android Development] sahibunlimited:
In ur Dual recovery version of kernel,app always takes ur to CWM recovery...

Can app be updated to choose the option between which recovery to reboot in?

(If this happens it will be great and should be kept for purchase only)
[XPERIA X10 Android Development] DooMLoRD:
sure...

thanks for inputs
[XPERIA X10 Android Development] ozzybulldog:
After I have been using xCharge Reboot Options for quite some time on my SE X10i, I just installed it on my Asus TF101 and it works great. Thanks again for this tool.

Oz
[XPERIA X10 Android Development] Nagarebozhi:
Will the zip enable it so you can do it from power menu?

Sent from my ARCified X10i with CM 7.0 RC2 Gingerbread Or my CM 6.1.3 Froyo
[XPERIA X10 Android Development] depulle87:
I think I'm lucky then cause my CM7 still works and after restoring the chargemon file everything is fine again, Xrecovery included
[XPERIA X10 Android Development] DooMLoRD:
hmmm... good atleast the main system is intact... please revert back to the backup of the chargemon file...

i am testing it out right now... will update it soon with a solution if possible...
[XPERIA X10 Android Development] tremendouz:
maybe you can upload the changed chargemon yourself in first post (2.1, 2.2, 2.3, cm6, cm7), seems to be much tricky for some user

edit: sry, to fast posting (i saw youll upload zip's soon), for me no problems with cm7 v010, my device boots up well, after it doesnt work for me i overwrote the bin file in system with the original one
[XPERIA X10 Android Development] lzyllp:
the device seems to get stuck up at the SE text logo and can't into xrecovery restore my backup.You can into xrecovery?
[XPERIA X10 Android Development] DooMLoRD:
for 2.3

nope neither can i... will have to start with flashing stock se FW :(

i am really sorry lzyllp... i will try n find out a solution for this if possible... i really dont know why the device is getting stuck up at the text logo... the script just checks the /data/local/tmp/ folder for a file and then continues the booting/xrecovery process...
[XPERIA X10 Android Development] depulle87:
Any idea why mine doen't get stuck ? I'm pretty sure I typed everything ok and saved the file, I'm glad mine is fine but it is kind of strange isn't it?
[XPERIA X10 Android Development] tremendouz:
sry u both, i had this stuck so often with installing themes:D, but if u flash an very old generic 2.1 with flashtool its easier to root them as newer 2.1 os (maybe with z4root app), if u made a backup of 2.3 youre back there in 15 min's maybe,

of course you know that doom, but maybe it helps others:D
[XPERIA X10 Android Development] DooMLoRD:
yes it is indeed very very strange... u luckily didnt get stuck up at boot... me the the other user lzyllp faced freezing at boot/se text logo...

it is especially strange cause no rom specific changes (ramdisk/xrecovery/etc) are executed before the commands/lines which i have suggested here (main post)... may be J can shed some light on the matter... will contact him regarding this...
[XPERIA X10 Android Development] lzyllp:
I hope J make it work with CM7 in power menu.
[XPERIA X10 Android Development] Bin4ry:
You better check for xRec. location with " if -f ...." and then jump to an location in the file. This way you can make a chargemon for every CFW out there.

Regards

Bin4ry
[XPERIA X10 Android Development] DooMLoRD:
hey Bin4ry i was just abt to send u a p.m.

thanks for the inputs... will try n make a "universal" chargemon file for all custom roms...

and once again thanks for that implementation in flashtool... this script wouldnt have been possible without it... ;)
[XPERIA X10 Android Development] depulle87:
any progress in making it work for CM 7 ?

If you want to test it just let me know.
[XPERIA X10 Android Development] xcxa23:
i had tried tis method accordingly but i cant boot into xrecovery bt still able to boot into the os. im using custom rom from ericwill 2.1
[XPERIA X10 Android Development] DooMLoRD:
can u post the 'chargemon' file from /system/bin/ folder here...
[XPERIA X10 Android Development] agentJBM:
Noob question. Will I need to do this again for the 2.1 ROM, or at least the gscript part? Confused?

Great work! This is nearly as fast as a dual boot would be. I am impressed.
[XPERIA X10 Android Development] The Gingerbread Man:
What is your obsession with dual booting? Seriously man! This is to improve our recovery. It will save you the hassle of rebooting your phone and pressing a buttons a few times, I can't see much improvements in speed.
[XPERIA X10 Android Development] DooMLoRD:
this is a good question actually...

yes u will have to do this for every rom installation... thats because each rom install wipes off system partition also each OS version (2.1/2.2/2.3) requires slightly different modifications in the 'chargemon' script...

may be once this is formalized the devs/chefs of custom rom can include this directly into their ROMs?
[XPERIA X10 Android Development] xcxa23:
here is the file. have i done anything wrong? im using BB .58. is there any relation?
[XPERIA X10 Android Development] Bin4ry:
Maybe you should create an Widget for Rebooting. So ppl can just install apk and then click the widget to get reboot options.

If you don't do it i will, but not now, i have exam on wednesday!

Regards
[XPERIA X10 Android Development] Androxyde:
Hi all

Here is a chargemon script that should be universal (part of the next version of flashtool, which also have the freexperia version of xrecovery as well as xperia arc recognition and flashing capabilities

the /system/recovery/model is a text file containing X10 for X10 models :-) (so this chargemon can work for all devices, X10/mini/pro X8

#!/system/recovery/sh

/system/bin/charger

DEVICE=`cat /system/recovery/model`

case $DEVICE in
X10*)
cat /dev/input/event2 > /dev/keycheck& ;;
E10*)
cat /dev/input/event1 > /dev/keycheck& ;;
U20*)
cat /dev/input/event0 > /dev/keycheck& ;;
E15*)
cat /dev/input/event1 > /dev/keycheck& ;;
esac

sleep 3
kill -9 $!

if [ -s /dev/keycheck -o -f /data/local/tmp/flashtool ]
then
rm -r /data/local/tmp/flashtool
# remount rootfs rw
mount -o remount,rw rootfs /
# Umount MTDs
umount -l /cache
umount -l /data
# Mount recovery partition
rm -r /sbin
rm -r /etc
(cd /;tar -xjf /system/recovery/recovery.tar.bz2)
# Umount /system
umount -l /system
# chroot
chroot / /init
else
if test -f /system/bin/ramdisk.tar
then
# 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
/system/bin/chroot / /init
fi
fi

# Continue booting
exit
[XPERIA X10 Android Development] tremendouz:
ok i see our specialists Bin4ry and Androxyde are willing to help us, i think building an universal apk for that would be the best idea to prevent a lot of problems inexperienced users could run into
[XPERIA X10 Android Development] DooMLoRD:
THANKS!!!

though this is still not universal... cause this will work only if the users has used flashtool (v0.2.8) to install recovery... if the user is using xrecovery-0.x then the xrecovery.tar is still in /system/bin/ also the 1st line itself wont execute as the /system/recovery folder wont exist!!!!

may be if we create a new installer (either app/update.zip) for the latest recovery (FreeXperia recovery) which will relocate recovery to /system/recovery/ then this script will become truly universal...

(though 2.3 roms still need some testing for this)
[XPERIA X10 Android Development] DooMLoRD:
Bin4ry if possible please do it!!!

i dont have any experience in developing apps/widgets... still learning...
[XPERIA X10 Android Development] Zocker Tko:
hi thanks for the script:)

so on my x10i with CM 6.1.3 V4.5.6 rom, i add

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

then

# remove 'reboot into xrec' file

rm -f /data/local/tmp/flashtool

this in the chargemon and it is working fine, boot in to xrecovery with shortcut, or charge the phone offline.

so i tested it with my x8 on 2.1 firmware but it didnt work, but when i remember is that the xrecovery.tar is keep on system/bin because the appslog partition was to small.
[XPERIA X10 Android Development] agentJBM:
What's your obsession with my obsession? You said something like this wouldn't happen. You also just described how this is faster than the other way. Even you posted what a great idea this is. I have clearly stated my interest was in being able to switch between ROMS faster, so I have faster access to the fully functional X10 camera.

Funny that I knew about this days ago, when my dual boot question prompted the dev to PM me about this very thing.
[XPERIA X10 Android Development] Androxyde:
for having this chargemon working, recovery package must be located in /system/recovery/recovery.tar.bz2. Busybox 1.15.3 must be located in /system/recovery and renamed to sh so : /system/recovery/sh and must be 04755 for perms and finally a model text file containing the device model must be in /system/recovery (for the right input event device check in the chargemon case part)

Actually in the next version of flashtool, model is pushed into device from the tool regarding detected device or prompted device (if detection fails)
[XPERIA X10 Android Development] Zocker Tko:
ok i will test it with my x8

so my x8 have the ...0.6 firmware, and older xrecovery, how can i update xrecovery, with flashtool or copy files manually? but dont know how to do?
[XPERIA X10 Android Development] DooMLoRD:
yes i follow wht u saying...

also i found one more thing, if u use superoneclick (v1.7) to root, stock se roms, it installs busybox in /system/xbin/

so if i connect the device, after rooting thru superoneclick, flashtool says that busybox is not installed!!! though Ask for Root Perms works! it might be cause flashtool might be checking busybox in /system/bin/ also xrecovery (v0.3) doesnt work cause it tries to find "#!/system/bin/busybox sh" (1st line of chargemon in xrec-0.3) which doesnt exist...

may be u guys can work out some universal script to take care of all these situations... like automatically locating sh or may be do a general reference to /system/bin/sh
[XPERIA X10 Android Development] DooMLoRD:
for x8 i really dont know... u will have to check it up with Androxyde or Bin4ry...
[XPERIA X10 Android Development] Androxyde:
The busybox issue was already found by Tony_C and it is corrected in the flashtool source tree :-)

I am still making some tests and will release the corrected version soon (before the end of this week end I think)
[XPERIA X10 Android Development] DooMLoRD:
this seems to be a generic 2.1 based chargemon file with xrecovery-0.3 installed...

are u unable to get into xrecovery (even by pressing/tapping back button at boot)? or are u unable to reboot into xrecovery using this script?

in any case i will upload generic files which can be flashable via xrecovery...