yashsingh1/xdaforums huggingface dataset:
[Sony Ericsson XPERIA X10 Mini] necrohades:
hi! i tried the 'manual way' and yes, i do have a 'charger' file in /system/bin/ but as my xRecovery was not installed thru FlashTool (manually added xRecovery files using root explorer), i think there is a few lines in GScript lite that will not work on my u20i.

touch /data/local/tmp/flashtool
reboot

i already modified my chargemon, and tried to run the script, but my phone only rebooted. did not entered xRecovery.

do i need to use a different script?

Stock SE 2.1, 2.1.1.A.0.6 U20i (x10 mini pro)
[Sony Ericsson XPERIA X10 Mini] DooMLoRD:
guys i have just finished creating a script which will do all the modifications to the chargemon file (without replacing the whole file with a preconfigured one)... (its a text search & replace script)... so we are approaching an easier way to install/uninstall this 'reboot into recovery from OS' add-on... also it will be compatible with all Xperia android phones (X10, X8, X10 mini, X10 mini pro)...

i will release it tonight (its afternoon here)...

additionally MrHassell is hard at work with creating the app for this and let me tell u he has put in a lot of time and effort into it... we hope to release it soon for testing...
[Sony Ericsson XPERIA X10 Mini] DooMLoRD:
Universal flashable update.zip for ALL ROMs / ALL Xperia Android devices with ANY Rec

as promised here is the Universal flashable update.zip for ALL ROMs / ALL Xperia Android devices with ANY Recovery

Difficulty level:

Medium

please test it and post back ur results on this thread!!!

Upcoming >>> Xperia Reboot Options APP (with widget) <<<
[Sony Ericsson XPERIA X10 Mini] necrohades:
Tried this earlier today, ran script, and when I ran the reboot_recovery script, I got an error. It said something like 'bad dev block...' or something. I'll try it again later on just to make sure.

Anyone else tried the script on their x10 mini pro?
[Sony Ericsson XPERIA X10 Mini] DooMLoRD:
thank you for testing... [out of thanks for the day ;) ]

ok... so wait... the add-on_installer worked fine?

only issue is reboot_recovery script?

btw can u please post the following file /system/bin/chargemon after u run add-on_installer (please run the add-on_installer ONLY ONCE) here?
[Sony Ericsson XPERIA X10 Mini] owain94:
This is included in my froyo rom and nobodyAtall his froyo rom and i will include this in gingerbread rom

Many thanks for this it is awesome
[Sony Ericsson XPERIA X10 Mini] necrohades:
oh, i think that the problem is that the add-on script didn't worked right for me.

i got an error that says "stderr: export: dev/block//vold/192:2: bad variable name"

from the GScript interface

and when i run the reboot_recovery script, it just restarts my phone.

btw, i've included the screenshot, the scripts, and my pre-script chargemon+charger.
[Sony Ericsson XPERIA X10 Mini] DooMLoRD:
possible solution for above ^^^

ok... try the following...

when u load the add-on_installer script in GScript app... delete the following lines:

# remount /data partition
echo "<*> remounting /data partition"
export MTDBLOCK=`mount | busybox grep /data | busybox awk '{print $1}'`
mount -o remount,rw -t yaffs2 $MTDBLOCK /data

they will be at the start of the script (line no. 14)

once u have deleted those lines try the add-on_installer script again...
[Sony Ericsson XPERIA X10 Mini] necrohades:
but i reckon i can manually modify 'keycheck' lines to the xRecovery chargemon to invoke xRecovery, right? and manually add an empty 'recoveryboot' to /data/local/tmp/?

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

then run the reboot_recovery script, right?
[Sony Ericsson XPERIA X10 Mini] DooMLoRD:
well the point of the installer script was to do this modification automatically...

if u want to try the manual way:

replace the lines:

if [ -s /dev/keycheck ]
then

with

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

that last line is VERY important else u will be stuck in recovery and wont be able to get into OS...

also once that modification is done... save the chargemon file and make sure the premission are set to a all read & all execute...

if data partition remounting is not working for u may need to create manually an empty 'recoveryboot' to /data/local/tmp/

actually the reboot_recovery script already does it... (i think in v2 of the scripts i have added partition remounting to all files... so reboot_recovery might not work, u may get same error...)

instead of the manual way i still recommend u delete the following lines:

# remount /data partition
echo "<*> remounting /data partition"
export MTDBLOCK=`mount | busybox grep /data | busybox awk '{print $1}'`
mount -o remount,rw -t yaffs2 $MTDBLOCK /data

from the add-on_installer script and reboot_recovery script and try if it works...

can u please test this?

BTW can u please post the output of the following command:

if u are on device:

mount

if u can comfortable with adb (with device connected to PC via usb)... issue the following command in command prompt from the folder with adb:

adb shell "mount" > mount_points.txt
[Sony Ericsson XPERIA X10 Mini] necrohades:
i think i know now why i'm encountering errors with the script.

i did the "mount" on adb, and read the text output:

* daemon not running. starting it now on port 5037 *
* daemon started successfully *
rootfs / rootfs ro 0 0

tmpfs /dev tmpfs rw,mode=755 0 0

devpts /dev/pts devpts rw,mode=600 0 0

proc /proc proc rw 0 0

sysfs /sys sysfs rw 0 0

tmpfs /sqlite_stmt_journals tmpfs rw,size=4096k 0 0

/dev/block/mtdblock0 /system yaffs2 ro 0 0

/dev/block/mtdblock3 /data yaffs2 rw,nosuid,nodev 0 0

/dev/block/mtdblock1 /cache yaffs2 rw,nosuid,nodev 0 0

DxDrmServerIpc /data/DxDrm/fuse fuse.DxDrmServerIpc rw,nosuid,nodev,user_id=0,group_id=0,allow_other 0 0

/dev/block//vold/179:2 /data/sdext2 ext2 rw,errors=continue 0 0

i realised, although i am not using app2sd, i do have link2sd installed, and was keeping most of my installed apk and dex on my sd partition. my bad.

i'm going to see if i could try the script during this weekend, if no u20i user will post their outcome with this before then. :p

thanks DooMLord!
[Sony Ericsson XPERIA X10 Mini] DooMLoRD:
ah ha... problem found...

the script was searching for a line with /data... and it was finding the following:

...
/dev/block/mtdblock3 /data yaffs2 rw,nosuid,nodev 0 0
...
/dev/block//vold/179:2 /data/sdext2 ext2 rw,errors=continue 0 0
...

ideally only the first search pattern should be captured (and is the one required):

/dev/block/mtdblock3 /data yaffs2 rw,nosuid,nodev 0 0

but due to multiple occurrence even the following is getting captured:

/dev/block//vold/179:2 /data/sdext2 ext2 rw,errors=continue 0 0

to make it work on ur device u can now test the scripts by replacing the following text:

export MTDBLOCK=`mount | busybox grep /data | busybox awk '{print $1}'`

with

export MTDBLOCK=`mount | busybox grep '/data yaffs2' | busybox awk '{print $1}'`

please try it out and let me knw the result/output...
[Sony Ericsson XPERIA X10 Mini] necrohades:
I tried to modify the script as you said, but for some reason, the commands to copy and modify the chargemon don't seem to execute.

Do you think it has to do with my busybox version? I'm using 1.15.
[Sony Ericsson XPERIA X10 Mini] DooMLoRD:
hmmm...

seems to be some error in path...

can u execute the following code on pc with device connected via usb in the folder with adb:

adb shell "which sed"

and

adb shell "which cp"
[Sony Ericsson XPERIA X10 Mini] necrohades:
i tried to do the "which" commands thru adb, but i'm getting this error:

which: permission denied

should i run it after i ran the script? i got the error before running the scripts.

sorry, i still don't know my way around android, so i have to be thought what needs to be done :(
[Sony Ericsson XPERIA X10 Mini] DooMLoRD:
hmmm...

ok try this...

can u execute the following code on pc with device connected via usb in the folder with adb:

adb shell "su; which sed"

and

adb shell "su; which cp"

keep the device unlocked (home screen is visible) and then execute the above commands from PC... a popup asking for superuser permissions might come... click allow...

and post the output here...
[Sony Ericsson XPERIA X10 Mini] necrohades:
that's weird. when i do

adb shell "su; which sed"

the cmd screen is just stuck showing

#

and doesn't respond at all whatever keys i pressed (on pc).

phone have screen display on "on" all the time.
[Sony Ericsson XPERIA X10 Mini] DooMLoRD:
that happens some times... ok break off the command into parts:

adb shell

once u are in the shell get superuser privileges

su

and finally in the superuser shell (starts with #) enter

which sed

and

which cp
[Sony Ericsson XPERIA X10 Mini] necrohades:
uh, i've just done this, but this is what i've got:

which: not found

i wonder if having Link2Sd is affecting the script in anyway? i remember in the first post you mentioned about App2Sd affecting the script.

p.s. i will be out for the day, but i'll try to check every now and then :)
[Sony Ericsson XPERIA X10 Mini] DooMLoRD:
we are creating a new thread for releasing the app/widget...

xCharge - SE Reboot Options for Xperia
[Sony Ericsson XPERIA X10 Mini] necrohades:
well, it seems that the script will not work for my u20i, so for the meantime, i modified my chargemon manually, and also manually inserted a 'flag' file to /data/local/tmp/.

ran the script in GScript, and the phone rebooted to xRecovery without the need of pressing the 'back' button repeatedly!

now, this will be great for newbies who are having problems booting into xRecovery.

thanks DoomLord!

EDIT: the first boot was ok, but since the modified chargemon will also remove the 'flag' file from data/local/tmp/, running the reboot_recovery script again in GScript will just reboot the phone.

is there any workaround for this?
[Sony Ericsson XPERIA X10 Mini] DooMLoRD:
have u tried

http://xdaforums.com/showthread.php?p=12504876#post12504876

use the latest file v3: reboot_into_rec_univ_xperia_v3.zip
[Sony Ericsson XPERIA X10 Mini] necrohades:
same thing. the "sed" command don't execute on my phone.

do you think it's either the busybox or the link2sd is the reason for that?
[Sony Ericsson XPERIA X10 Mini] DooMLoRD:
i have no idea whts the issue... the path is screwed up...

atleast 'which' command should have worked... but it didnt.. so i am not sure...
[Sony Ericsson XPERIA X10 Mini] necrohades:
maybe it is time for me to try it up with a freshly flashed phone. :)

EDIT: just did the script in a freshly flashed phone. works like a charm! it might have been Link2Sd that has been messing with the scripts afterall. I will tinker around now, and see if i can reinstall Link2Sd without screwing the reboot-from-OS. :)

edit2: found culprit: Link2Sd. as i suspect, since it insert a 'sh' in order to mount the sd card partition, (i don't know how), i think that is the one that messes up the reboot-to-recovery in OS. but since i need Link2Sd, i will have to forego this one. but lots of thanks anyway DoomLord!
[Sony Ericsson XPERIA X10 Mini] datagubben:
Can you make one for SE 2.1(0.6) in the power menu, please.

Sent from my U20i
[Sony Ericsson XPERIA X10 Mini] DooMLoRD:
i dont know how to modify framework/services file... so cant help u with that...
[Sony Ericsson XPERIA X10 Mini] DooMLoRD:
[19/May/2011] APP/WIDGET Released

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

Xperia Reboot Options

<<<<

enjoy!
[Sony Ericsson XPERIA X10 Mini] 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!!!!
[Sony Ericsson XPERIA X10 Mini] datagubben:
Reboot is working but not boot into recovery :-(

I am using stock 2.1
[Sony Ericsson XPERIA X10 Mini] DooMLoRD:
can u please post the contents of the following file:

/system/bin/chargemon
[Sony Ericsson XPERIA X10 Mini] D4rKn3sSyS:
You can use my unified chargemon, it works for stock and CM, but on CM you need to make a file called custom.bin on /system:

http://notepad.cc/share/3B7iHx79Gv

Anyway, else statement it's the original stock chargemon
[Sony Ericsson XPERIA X10 Mini] DooMLoRD:
wow... i see that u guys have done a LOT of modifications to the chargemon...

BTW ur chargemon is not exactly universal... e.g. it doesnt take care of the various partition layouts (u have hard coded the MTD blocks)...

seems u guys have not tried FreeXperia recovery, which can be installed via FLASHTOOL...

have a look at the chargemon here:

http://notepad.cc/grockezbo31
[Sony Ericsson XPERIA X10 Mini] D4rKn3sSyS:
I never said universal, I said unified and with that i mean that can be used on any rom, not on any device :p.. anyway, Im gonna take a look to that chargemon, and I have tried FreeXperia, i dont see so much difference :)
[Sony Ericsson XPERIA X10 Mini] DooMLoRD:
oh probably i misinterpreted ;)

freexperia has a better unifed/universal chargmeon which works on any device... its good for guys like me who want to develop for multiple devices...

btw a universal way of getting MTD blocks of partitions is here:

MTDBLOCKSYS=`mount | busybox grep /system | busybox awk '{print $1}'`

MTDBLOCKDATA=`mount | busybox grep '/data yaffs2' | busybox awk '{print $1}'`

MTDBLOCKCACHE=`mount | busybox grep /cache | busybox awk '{print $1}'`

and mount/remount command:

mount -o remount,rw -t yaffs2 $MTDBLOCK /system
[Sony Ericsson XPERIA X10 Mini] D4rKn3sSyS:
But universal chargemon script for any device that you post here, won't work for Stock users, because as you can see, chargemon for cyanogenmod 6 & 7 it's kinda different that stock one, so IMHO you should need do something like this:

Device selection, that is the first part of script

if device it's mimmi, and have cm6 or cm7, run cm chargemon

else run stock chargemon
[Sony Ericsson XPERIA X10 Mini] DooMLoRD:
actually the chargmeon i posted (freexperia recovery one) is really very good it works for stock too:

if [ -e /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
chroot / /init
exit
fi

and it works for ALL the froyo/GB/CM6/CM7 roms for X10
[Sony Ericsson XPERIA X10 Mini] D4rKn3sSyS:
Yes for X10 :p, but on X10 mini pro, may brick a stock user device :O, that's why some users here have issues ;)
[Sony Ericsson XPERIA X10 Mini] DooMLoRD:
BRICK!!!

WOW! thats a first....

i thought most SE Xperia (2010) devices were unbrickable...

seems u guys have a lot of issues on X10 mini pro...

anyways... can u verify one thing?

atleast is this flag constistent?

/data/local/tmp/xrecovery
[Sony Ericsson XPERIA X10 Mini] D4rKn3sSyS:
Well we call brick to get stuck on "Sony Ericsson" logo :p, but it can be fixed by flashing another rom or restoring through SEUS, and what you mean with "is consistent" ?
[Sony Ericsson XPERIA X10 Mini] DooMLoRD:
oh that! "getting stuck at SE TEXT LOGO" is a usual thing for the "flash" junkies ;)

by consistent i mean that is that atleast consistently used on all roms?

then i can modify my program to take care of all these cases...
[Sony Ericsson XPERIA X10 Mini] D4rKn3sSyS:
No, that's line it's only used on CM chargemon :)

See:

CM:

Stock:
[Sony Ericsson XPERIA X10 Mini] DooMLoRD:
can u add

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

to stock also?
[Sony Ericsson XPERIA X10 Mini] D4rKn3sSyS:
I think, /data/local/tmp/xrecovery dont exist on Stock rom, so rm cant be used.. maybe someone here with stock rom can confirm
[Sony Ericsson XPERIA X10 Mini] DooMLoRD:
buddy thats the WHOLE POINT!!!

thats the way u trigger reboot into recovery from OS

ok i think u should read the the following :

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

read the [manual way] u will get the idea
[Sony Ericsson XPERIA X10 Mini] D4rKn3sSyS:
Missunderstand you :p f*** my english, anyway, just give us what do you think will work ;), you already got stock chargemon, and you're a nice programmer, im just somebody who helped a bit :)
[Sony Ericsson XPERIA X10 Mini] DooMLoRD:
hey man i am sorry i didnt mean to offend u or anything...

ur inputs were really useful!!!!

thank you!!!!
[Sony Ericsson XPERIA X10 Mini] D4rKn3sSyS:
Dont worry mate, im not offend, just idk what else are you looking at :p, just you need to have present, that stock and cm chargemons are different ;)

Thanks for you hard work :), if there's something else that i can do for you, just pm me ;)
[Sony Ericsson XPERIA X10 Mini] 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!!!!
[Sony Ericsson XPERIA X10 Mini] 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!!!!
[Sony Ericsson XPERIA X10 Mini] 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???
[Sony Ericsson XPERIA X10 Mini] 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!
[Sony Ericsson XPERIA X10 Mini] 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 :)
[Nook Color Themes and Apps] bugeyed1:
Anyone had any success with an app to boost the speaker volume of the NC?

I read that Audio Boost 2 doesn't alter speaker volume much. I have not tried anything yet, but would any audio app with an EQ function allow boosting all freqs. work? I know that there is a chance of overdriving the speaker, but I want to try to get this "fixed". The speaker volume is the single most annoying issue with my NC. Mainly with sources with audio tracks that are recorded at low level.

Any help is appreciated.

Thanks,

kev
[Nook Color Themes and Apps] aludal:
Obviously, no-one did much. The worst part is NC's CM7 devs don't see it as a problem.

However, if you could talk dalingrin into looking into the issue (I myself failed to entice him to do anything), then there are some chances with his forthcoming new audio pipeline/ALSA commits.

As of now, when on CM7, you may try to play with DSP Manager's equalizer. Doesn't do much, agreed.

-------------------

fineoils.blogspot.com <<-there's not many answers here, but there's plenty of questions, sure
[Nook Color Themes and Apps] Mjailme:
Only luck I'm having is headphones. Its really bad when the speaker is pushed up against the back of my case. Volume is horrible.
[Nook Color Themes and Apps] cheekeong_7:
Use earphones will be the best bet for the time being.. Unless is CM7 got vol boost... :p
[Nook Color Themes and Apps] onclebob:
you can try poweramp, it has audio boost eq
[Nook Color Themes and Apps] xoi99:
yes its work withe me
[Nook Color Themes and Apps] bugeyed1:
Played around with Poweramp. Adjusted EQ midrange boost, keeping bass low & boosted Preamp setting & have determined that the speaker may just suck! Unless Poweramp EQ is adding distortion when the levels are boosted, the speaker can't handle much volume before breaking up. There may be no hope that the NC will ever have decent volume. :(

I find the volume on many sources to be barely adequate for personal listening in a quiet room, but for showing another person a video in a not so quiet environment, it is barely audible. I have also noted that the audio quality from the headphone jack is really poor when compared to any decent MP3 player. Looks like B&N saved $$$ on the audio section in order to bring us the nice screen & other quality hardware. I think that I am OK with this, but it would be nice to have it ALL!:p

Cheers,

kev

P. S. This may end my search for an internal solution to the volume level. Probably keep experimenting with small phone jack based amplified speakers.
[Nook Color Themes and Apps] evilPERSOn2009:
The volume seems fine to me.
[Nook Color Themes and Apps] madrascafe:
Hopefully we can have a stable Bluetooth stack working, so that we can pipe to audio to BT Speakers...
[Nook Color Themes and Apps] A. Nonymous:
I really think the physical speaker is just crap. At the end of the day, you can't fix crap.