[REL: 02/08][APP] xCharge Reboot Options {NO LONGER SUPPORTED}

Status
Not open for further replies.
Search This thread

Lockon Stratos

Senior Member
Jan 30, 2011
637
168
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.

Sent from my Ultima 5 using XDA App
 
Last edited:

Lockon Stratos

Senior Member
Jan 30, 2011
637
168
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.
 

The Gingerbread Man

Senior Member
Sep 4, 2010
8,096
3,948
Gloucester
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.
 

G-FACE

Senior Member
Jul 9, 2010
1,338
610
Plovdiv
DooM, which lines in Achotjan's v05 chargemon file do I need to edit in order to make your app working?
 

DooMLoRD

Inactive Recognized Developer
Jul 27, 2010
13,187
39,710
Pune
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.


DooM, which lines in Achotjan's v05 chargemon file do I need to edit in order to make your app working?

can u guys post the current /system/bin/chargemon file from ur phone here?
 
  • Like
Reactions: The Gingerbread Man

DooMLoRD

Inactive Recognized Developer
Jul 27, 2010
13,187
39,710
Pune

The Gingerbread Man

Senior Member
Sep 4, 2010
8,096
3,948
Gloucester
ur chargemon file is correct!

are u able to boot into custom kernel atleast?





can u try this:
http://www.mediafire.com/?jmsbq50g3mvu1ze

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?

5c1ad5ed-6623-5dc1.jpg
5c1ad5ed-6630-4450.jpg


Sent from my X10x using XDA Premium App
 
Last edited:

DooMLoRD

Inactive Recognized Developer
Jul 27, 2010
13,187
39,710
Pune
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?

Sent from my X10x using XDA Premium App

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!
 
Last edited:
  • Like
Reactions: The Gingerbread Man

The Gingerbread Man

Senior Member
Sep 4, 2010
8,096
3,948
Gloucester
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...

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

Sent from my X10x using XDA Premium App
 
Last edited:

DooMLoRD

Inactive Recognized Developer
Jul 27, 2010
13,187
39,710
Pune
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....

Sent from my X10x using XDA Premium App

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



make sure you hit the change button
 
Last edited:

The Gingerbread Man

Senior Member
Sep 4, 2010
8,096
3,948
Gloucester
make sure you hit the change button

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!!!!!

Sent from my X10x using XDA Premium App
 

DooMLoRD

Inactive Recognized Developer
Jul 27, 2010
13,187
39,710
Pune
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!!!!!

Sent from my X10x using XDA Premium App

:p

does it work now?
 

The Gingerbread Man

Senior Member
Sep 4, 2010
8,096
3,948
Gloucester
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...

It seems so obvious now, I do not know how I over looked that but I feel like a right prat now!

Sent from my X10x using XDA Premium App
 

DooMLoRD

Inactive Recognized Developer
Jul 27, 2010
13,187
39,710
Pune
  • Like
Reactions: The Gingerbread Man

Lockon Stratos

Senior Member
Jan 30, 2011
637
168
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#
 
Status
Not open for further replies.

Top Liked Posts

  • There are no posts matching your filters.
  • 45
    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:
    1. cleaner layout
    2. new UI
    3. working themes!
    4. and u will be entitled to future upgrades :D


    Screenshots:


    On X10:

    xcharge14x10.png



    On Xperia 2011 / Other Androids:

    xcharge14sgs2.png



    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>
    14
    [Universal] for ALL ROMs / ALL Xperia Android devices with any Recovery

    [*] THIS IS EXPERIMENTAL [*]

    This should work on ALL ROMs and ALL Xperia Android devices (X10, X8, X10 Mini, X10 Mini Pro) and ANY RECOVERY (xRecovery / FreeXperia)


    PLEASE MAKE A FULL XRECOVERY/NANDROID BACKUP BEFORE TRYING ANY SYSTEM MODIFICATIONS LIKE THIS

    Additionally please make certain that u can use flashtool to flash a stock FW incase u run into any problems and that the device is fairly charged >50% battery before trying this.



    the attached file is an update.zip flashable thru xRecovery/Recovery

    this contains GScript Lite, and it gets installed as a system app... so if u
    already have it installed, i recommend u uninstall it before flashing this...

    it contains 3 scripts:
    • add-on_installer.sh
    • add-on_uninstaller.sh
    • reboot_recovery.sh

    they will be put on the /sdcard/gscript/ folder automatically so that gscript lite can immediately find it...



    Installation Steps:

    [1] flash update.zip thru xRecovery/Recovery

    [2] to install add-on: just launch the app and click on "Load File" and select add-on_installer.sh all the contents will load automatically... u need to make sure that the option "Need SU?" is checked (ticked)... now save and run this script ONLY ONCE... there might be a popup for SU permissions, select "Allow"... u will see the outputs of each step in the installation process...

    [3] to use the reboot option/script: just launch the app and click on "Load File" and select reboot_recovery.sh all the contents will load automatically... u need to make sure that the option "Need SU?" is checked (ticked)... now save... u can now create a shortcut on the homescreen to GScipt Lite and select the reboot_recovery script... if u try running the script a popup for SU permissions might come up, this will only come the first time its run, select "Allow" and then ur device will reboot into recovery...


    thats it! now whenever u want to reboot into recovery just launch the shortcut!!!


    To Uninstall Add-on:
    just launch the app and click on "Load File" and select add-on_uninstaller.sh all the contents will load automatically... u need to make sure that the option "Need SU?" is checked (ticked)... now save and run this script ONLY ONCE... there might be a popup for SU permissions, select "Allow"... u will see the outputs of each step in the installation process...


    if u have any problems please put up a post here


    What this script does? [for the enthusiastic types ;) ]
    1. It remounts system & data partition for modification
    2. It backs up the current chargemon file to /system/bin/chargemon.ori
    3. Works on a temporary copy of chargemon file @ /data/local/tmp/chargemon.tmp
    4. Then it inserts the modifications into the /data/local/tmp/chargemon.tmp file for checking reboot file and some more modifications
    5. Once all modifications are done it copies the /data/local/tmp/chargemon.tmp file back to /system/bin/chargemon
    6. The backup chargemon file is stored @ /system/bin/chargemon.ori for the uninstaller script
    7. The uninstaller script deletes /system/bin/chargemon file and renames /system/bin/chargemon.ori to /system/bin/chargemon


    [APP | WIDGET] >>> xCharge - SE Reboot Options for Xperia <<<



    use the latest file v3: reboot_into_rec_univ_xperia_v3.zip
    3
    [2.2] ROMs based on FreeX10-beta4

    PLEASE MAKE A FULL XRECOVERY/NANDROID BACKUP BEFORE TRYING ANY SYSTEM MODIFICATIONS LIKE THIS

    Additionally please make certain that u can use flashtool to flash a stock FW incase u run into any problems and that the device is fairly charged >50% battery before trying this.


    use the attached file ONLY if the existing chargemon file in /system/bin/ is as follows:

    Code:
    #!/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
    
    	# zdzihu: hack-fix
    	if [ -e /data/data/com.android.providers.telephony/databases/telephony.db ]; then
    	/system/bin/chroot / /init
    	exit
    	fi
    
    	chroot / /init

    [Thank you JimmyX10 for helping out with testing this]

    the attached file is an update.zip flashable thru xrec

    also this contains the modded chargemon file based on freex10-beta4... i yet have to incorporate the suggestions by Androxyde

    this contains GScript Lite, and it gets installed as a system app... so if u already have it installed, i recommend u uninstall it before flashing this...

    also this file contains the required reboot_xrecovery.sh script... it will be put on the /sdcard/gscript/ folder automatically so that gscript lite can immediately find it... once u reboot back into system after flashing just launch the app and click on "Load File" and select reboot_xrecovery.sh all the contents will load automatically...

    * some custom roms are not permitting reboot command if SU rights are not there... u need to make sure that the option "Need SU?" is checked (ticked) else the device wont be able to reboot from the script... *

    u can now create a shortcut on the homescreen to GScipt Lite and select the reboot into xrecovery script.

    if u try running the script a popup for SU permissions might come up, this will only come the first time its run, select "Allow" and then ur device will reboot into xrecovery...

    thats it! now whenever u want to reboot into xrecovery just launch the shortcut!!!

    if u are using a different 2.2 rom and/or the chargemon file is different than the one shown here please post it here along with the details of the rom u using and i will try n put up a compatible version for u..
    3
    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]


    xchargemarket.qrcode



    its a paid app for 2$

    new features include:
    1. cleaner layout
    2. new UI
    3. working themes!
    4. and u will be entitled to future upgrades :D


    Screenshots:


    On X10:

    xcharge14x10.png



    On Xperia 2011 / Other Androids:

    xcharge14sgs2.png



    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 :)
    2
    sweet, any idea if its going to be able to be completely universal or need radio buttons or something to choose various scenarios ? something a little like in the attached pic.

    should be a sweet/handy app when its ready.

    I'm looking forward to it :)

    ya we are trying to make it universal (for all Xperia, android devices which use the boothijack file /system/bin/chargemon)

    right now we are calling it "SE Xperia Reboot Options" (may change)

    as for various scenarios we have the following options:
    • Device
    • Recovery
    • Custom BootKit
    the the button can be "Reboot"/"Go"

    it will have both an app drawer application as well as a widget...

    we are also thinking of adding an option to install/uninstall the chargemon add-on (i.e. the app will itself modify the chargemon file, so the user need not use any other update.zips)