yashsingh1/xdaforums huggingface dataset:
[Sony Xperia P, U, Sola, Go] bharat_goku:
Could u build ur modifications fr the Xperia U?v don't have an ics recovery...
[Sony Xperia P, U, Sola, Go] munjeni:
Sory man I have no more free time to support forth phone model... curentlly I suporting Sola, Go, and P(curently no free time for P)...

You activated press by "floating" around screen buttons with distance 1cm ??? Did you had problems like one press reacting more presses??? If yes I will definitelly disable touch screen support because I have no way to give you working touch bassed recovery without "touch hold"... see few pages back (version before enabled touch) about problems that I had about "press hold"...
[Sony Xperia P, U, Sola, Go] akkufix:
No, i haven't any problems with double-press or more presses (maybe in the morning, before having my coffee... :) ). The buttons reacting well so far.

I try to explain it, as good as i can.

You come slowly nearer to the screen with your finger, it activate the chosen button by nearly 1cm and "pushes" it. This is stable until you remove the finger out of the range of the floating-area and then you can push the next button or the same one.

Otherwise...

If you don't move your finger out of this area again and leave it close to the screen, you have to push the buttons by touching it directly on the screen, like it is by "normal phones".

So, the "floating-effect" only comes ones, when you are making the first push.

Hope this description will help you.

Maybe you can program the cam- and power-buttons for those who don't want to use touch?

For my person, i will use touch. :cool:
[Sony Xperia P, U, Sola, Go] mkoev:
I installed the Indian ROM from that link: http://xdaforums.com/showthread.php?t=1914264

I installed your boot.img . I still do not have bluetooth. Please help ;)
[Sony Xperia P, U, Sola, Go] munjeni:
Great explanation... I understand now completely! But I will not fix it because if I disable "floating" touches than android will lose these feature... so really anoying thing that we have no dedicated recovery partition...:( Any one have idea how we can disable "floating" only to recovery, for example is there an kernel parameter like "echo 0 >/sys/class..." for temporary disabling "floating" ?? Please research xda forum or google and I will fix it in next release, I have no time now for researching google! Maybe you can send me outout from "adb shell find /sys | grep glowe" ?

Any one have problem with bluetooth?
[Sony Xperia P, U, Sola, Go] mkoev:
Munjani, everything works now man, I restarted the phone and everything is perfect.

Actually I like the floating touch thing for Recovery. Can't understand why someone wouldn't like it. It's cool :)
[Sony Xperia P, U, Sola, Go] munjeni:
Huh, its problem now because some one want glowe mode but some one no want glove mode, so I not know what to do, there must be some config for enabling/disabling glove mode :( I going to stop work for all Xperia ICS boot+CWM things untill someone find a way for usb things, I have no idea why usb is not recognised by my computer (its like dead and without asking me for drivers, still like totally disabled usb controler)... but I found something interested about usb, usb is detected only after boot animation(so its like usb controler is enabled by android) but I am unable to debug it in order to find a way for possible fix, so I need help from devs !!!
[Sony Xperia P, U, Sola, Go] sijav:
YEAH,

Bluetooth IS NOT working no matter how far i tried it is not working i flash the Indian rom, Italian rom, No the Bluetooth is NOT working please fix this as we like this CWM :)

as for the floating touch well I didn't found anything so far ...

If only floatings works and not the touch well it could answer some question that we can deactivate it but as both floating and touch working i don't think there is a proper way to temporary deactivate floating touch for CWM.

my suggestion? activate camera button for back :) an let the floating touch be first please fix camera :D
[Sony Xperia P, U, Sola, Go] LastSoul88:
what is your problem with bluetooth? I can turn on my bluetooth.... try clear data or repair using SUS..
[Sony Xperia P, U, Sola, Go] lithelis:
yes, sometimes double presses.. please be patient with us :(
[Sony Xperia P, U, Sola, Go] sijav:
Yeah ... I think this was a systemui problem not this recovery ... I changed the systemui.apk with another thing it's working fine now!

So this CWM does not have anything to do with BT :)

Great job and sry for false alarm :)
[Sony Xperia P, U, Sola, Go] bharat_goku:
If u could gimme procedure i'll get it to work,u just manage the thread i'll handle everything else okay?
[Sony Xperia P, U, Sola, Go] akkufix:
No problems with BT. Works in my car and with other phones for sending data.

"adb shell find /sys | grep glowe" gives nothing for output. Ther isn't any glowe or something else like that in sys-directory.

Found this information from Sony, how their API works.

http://developer.sonymobile.com/knowledge-base/tutorials/android_tutorial/floating-touch-api-now-available-code-example-tutorial/

Maybe it helps you?
[Sony Xperia P, U, Sola, Go] mkoev:
Does the problem with usb occur because ADB does not work in fastboot mode ?
[Sony Xperia P, U, Sola, Go] munjeni:
I agre with you! Hi mising something but I have no idea what... absolutelly bluetooth m,ust be working! Maybe hi deleted something from system partition or maybe have corupted userdata partition or maybe use an custom things from diferent firmwares?

adb is in process list so adb working, but because usb is not recognised by computer problem is only "usb"... still I have no idea how to enable usb controler! I can see usb is detected by computer only after boot animation so it mean usb is enabled by android but I have no idea how or which aplication enabled usb... if you have idea please let me know! Usb controler is enabled in android mode but not during boot time like in gingerbread ramdisk!

I agre with you for bluetooth! Thanks for link... I got idea how to disable glowe mode in recovery, just need to disable/ignore some events like ABS_DISTANCE...

About usb... please research for "usb" thing... why usb controler is not enabled during boot mode but only enabled after boot animation (its still enabled by android side, maybe by an "binary" file?)... I have no idea
[Sony Xperia P, U, Sola, Go] LastSoul88:
http://xdaforums.com/showthread.php?t=1927097

perhaps he can help.. his cwm can dual usb mount.. :)
[Sony Xperia P, U, Sola, Go] akkufix:
Think its a bit different to our device, because of the Thor-chip in it.

"...a built-in HSPA+/4G 14Mbps modem, as well as peripheral chips that handle audio, USB, power and SIM card functions. This platform Integrates a single chip and a dual core 1GHz application processor. It’s also the first integrated smartphone platform..."

Read more:

http://developer.sonymobile.com/knowledge-base/technologies/novethor-u8500/

But it has to be a possibility to initialize the usb, otherwise we wouldn't get it in to fastmode or fastboot. And this happens before the phone boots anything, only by pressing power and vol. +/-
[Sony Xperia P, U, Sola, Go] LastSoul88:
but if it is android ics related, just like munjeni said, this could be help.. :)
[Sony Xperia P, U, Sola, Go] akkufix:
I'm sure he will solve this, also. I firmly believe in him. :good:
[Sony Xperia P, U, Sola, Go] LastSoul88:
yup.. he will.. but for me, usb thing is not so important because we still have sd card.. unlike u, that do not have sd card, this feature is crucial.. :)
[Sony Xperia P, U, Sola, Go] munjeni:
Xperia U have internal sd card! Xperia GO and Xperia Sola have internal and external sd card mounts working in mine Gingerbread recovery but not in ICS recovery because kernel is diferent and I think there is some new feature about handling usb :(
[Sony Xperia P, U, Sola, Go] LastSoul88:
hmm?? I think your recovery for sola can mount both internal and external sd card because I can use 'choose zip from ext-sd'. it shows file in my ext-sd but i never try flash a file yet.. :P

ok.. v2 seems better.. touch is ok.. can use both floating touch and normal touch... :)
[Sony Xperia P, U, Sola, Go] pvyParts:
On older devices you had to turn MTP off as it would kill adb before bootanim.

Could be whats causing your USB issues

Pvy
[Sony Xperia P, U, Sola, Go] bryella:
the new update feels smooth and and fast.. i just have one question.. when charging your sola how come it's hard for me to unlock my phone using the touch itself.. I have to unlock it using floating touch.. does anyone know how to fix this? ty..
[Sony Xperia P, U, Sola, Go] bryella:
Wish this issue regarding the unlock will be fix..
[Sony Xperia P, U, Sola, Go] akkufix:
Confirm this.

I made a backup to internal and external card and both of them are shown in restore.

Touch is ok. Floating already exits.

Btw. what I notices is, that this floating-touch don't exists at the time by log-in in the phone for opening the simcard. At this point you have to "real" touch the keys.

---------- Post added at 01:34 PM ---------- Previous post was at 01:21 PM ----------

Same at sola.

Had this consideration too. But sola seems to be definitly "dead" on the usb-port before it boots up in kernel, wether in MTP or MSC. I was monitoring with a debian machine and usb was found after the Sony/xperia logo and in CWM was no connected sub-device found.
[Sony Xperia P, U, Sola, Go] LastSoul88:
yup.. already flash a rom file from ext-sd and its work perfect.. :)
[Sony Xperia P, U, Sola, Go] munjeni:
Hi, I have no idea how to turn that off (I disabled in default.prop: persist.sys.usb.config=mtp)... do you have idea? Still usb in recovery mode is totaly dead (nothing about usb thing is seen in my computer!). But usb controler is enabled only after boot animation -> when android starts (is there an app for usb or how usb is enabled by android I have no idea :() Found another thing... when I use my gingerbread cwm (full working cwm) I can use sony tool menu/tool "backup to zip" but after replacing only system with ics system these tool not working (its really strange because I maded all calls that is not for example "grep..." all calls is "/sbin/grep..." so definitelly calls is pointed to sbin folder and have nothing with system/bin folder, but really strange thing is why these tool not working when gingerbread system partition is replaced with ics system partition... do you have idea? I use "popen" to call something and it working perfect on gingerbread recovery :( Maybe bootloader have some checks to system partition before boot things???

Strange... I thinked that I totaly disabled floating touches, but if floating is ok for you guys I will not mess with it any more! About usb, you are definitelly right, still usb is dead in recovery mode... please if you found possible fix please let me know! About internal/external sd card "internally" yes it working perfect, so you can mount/unmount backup/restore...etc without problem! Only missing usb, "reboot to bootloader" and "backup to zip" for now!

yes you can backup/restore from/to booth sd cards!
[Sony Xperia P, U, Sola, Go] pngoc256:
After booting CWM v2, I lost my root. What should I do?
[Sony Xperia P, U, Sola, Go] LastSoul88:
just root back using bin4ry method..
[Sony Xperia P, U, Sola, Go] akkufix:
Loaded datasheet from U8500 (the AB8500 part),

http://www.stericsson.com/developers/documentation.jsp

which is for PMU, charging, USB, SIM... just to have a look, how to activate USB, maybe using assembler-code (that's mine).

But the information, how USB works seems to be a secret.

"This information is not available in the public domain."

Sounds not really good. :(

Will take some time over the weekend for looking further.
[Sony Xperia P, U, Sola, Go] munjeni:
Maybe you can locate "elf" in /system/bin ... I'm sure that usb is enabled from an elf when android is booted (after bootanimation) ?

Edit:

got fixed "backup to zip" just usb only remain now :(
[Sony Xperia P, U, Sola, Go] neectron:
No elf in /system/bin.
[Sony Xperia P, U, Sola, Go] rogue93:
keep running into a bug. after flashing, bluetooth and the extended power doesnt work..
[Sony Xperia P, U, Sola, Go] LastSoul88:
works fine for me..
[Sony Xperia P, U, Sola, Go] eneix22:
works perfect for me~

but can you make a version without floating touch? it's been bugging me when i try to install a zip that uses AROMA, whenever i try to scroll, the screen just goes wild with random inputs and never stays in place ==
[Sony Xperia P, U, Sola, Go] lithelis:
It's AROMA issue not the recovery..
[Sony Xperia P, U, Sola, Go] munjeni:
I appreciate hard work to "floating touch" development, but is these feature is really needed? Why devs could not added info for "how to" disable floating touches? I tried to disable it but still have no idea how! :(
[Sony Xperia P, U, Sola, Go] akkufix:
Haven't not much time this day by now. But maybe these links may be information for you, how to handle keys. Also found somewhat about usb...

http://developer.android.com/reference/android/view/KeyEvent.html

http://developer.android.com/reference/android/hardware/usb/package-summary.html

http://developer.android.com/guide/topics/connectivity/usb/index.html

Coming up later, greets.

---------- Post added at 08:59 PM ---------- Previous post was at 08:55 PM ----------

Read somewhat that MSC is for working with Linux/MacOS and MTP is for Windows, but don't followed that info, yet.
[Sony Xperia P, U, Sola, Go] munjeni:
I think all things about usb is kernel side,but do you know if Sony released public kernel version 3? I think usb is enabled by android side with something like "echo 1 >/sys..." but I have no idea how to debug it... do you have? I will reguest help on Sony forums, maybe some one will ansfer.
[Sony Xperia P, U, Sola, Go] akkufix:
All i found about usb in their data-sheet, is that it is implemented in the AB8500 chip, which controlls all the usb-things in its registers (usb-BaseAddress: 0x0580 to 0x0593), like OTG, charging, UART and so on.

So, this all seems to be initialized first by kernel, because usb is dead at boot.

There are hardcoded-pins to activate and shutdown this chip.

This may the way how to come in fastboot and programmingmode.

Sony didn't offers kernel 3 for sola yet, but for some other 6.1.xx-versions for xperia phones. Should be kernel 3

http://developer.sonymobile.com/downloads/opensource/

I unpacked 6.1.C.1.105 for ion-phones and found ab8500.c in kernel/drivers/regulator (loading-routine).

Also there is usb.h in kernel/drivers/usb/core

But for me C isn't mine.
[Sony Xperia P, U, Sola, Go] munjeni:
After setting debug level 9 to printk found something interested about usb!

<6>[ 3445.394195] android_work: sent uevent USB_STATE=DISCONNECTED
<6>[ 3445.685668] ab8500-charger ab8500-charger.0: VBUS input current limit set
to 0 mA
<6>[ 3445.685852] ab8500-charger ab8500-charger.0: VBUS input current limit set
to 0 mA
<6>[ 3445.997741] request_suspend_state: sleep (0->3) at 3445988753614 (2012-10-
15 17:39:45.651729319 UTC)
<6>[ 3445.997833] cyttsp-spi spi9.0: cyttsp_suspend: Enter
<6>[ 3446.137512] ab8500-charger ab8500-charger.0: Enable USB: 4200mV 1500mA
<6>[ 3446.137573] ab8500-charger ab8500-charger.0: VBUS input current limit set
to 500 mA
<6>[ 3446.179199] mcde_display_panel mcde_display_panel.0: panel_set_power_mode_
internal: Display off
<6>[ 3446.261993] ab8500-charger ab8500-charger.0: VBUS input current limit set
to 500 mA
<6>[ 3446.420928] android_work: sent uevent USB_STATE=CONNECTED
<6>[ 3446.425537] android_work: sent uevent USB_STATE=DISCONNECTED
<6>[ 3446.431976] request_suspend_state: wakeup (3->0) at 3446422988234 (2012-10
-15 17:39:46.085963939 UTC)
<6>[ 3446.470336] cyttsp-spi spi9.0: cyttsp_resume: Enter
<6>[ 3446.470367] cyttsp-spi spi9.0: cyttsp_resume: Waking ...
<6>[ 3446.589294] cyttsp_wakeup: wakeup
<6>[ 3446.642852] android_usb gadget: high speed config #1: android
<6>[ 3446.651153] cyttsp-spi spi9.0: cyttsp_resume: hst_mode 00
<6>[ 3446.659362] ab8500-charger ab8500-charger.0: VBUS input current limit set
to 500 mA
<6>[ 3446.659454] mcde_display_panel mcde_display_panel.0: panel_set_power_mode_
internal: Display on
<6>[ 3446.681762] cyttsp-spi spi9.0: cyttsp_resume: hst_mode 00
<6>[ 3446.681945] cyttsp-spi spi9.0: runtime_cfg_work: charger_cmd: 0
<6>[ 3446.682098] cyttsp-spi spi9.0: runtime_cfg_work: Writes setting to reg: 0x
0
<6>[ 3446.686920] android_work: sent uevent USB_STATE=CONNECTED
<6>[ 3446.688323] android_work: sent uevent USB_STATE=CONFIGURED

So usb is enabled/disabled trought ueventd!?? Still again I have no idea how to send event to usb... few days ago found these states (CONNECTED, CONFIGURED) from an sysfs interface but now unable to find again... will research now :)

Maybe using command:

~ # sendevent

use: sendevent device type code value

Edit:

Found where is state... after dumping state recovery side "cat /sys/class/android_usb/android0/state >/sdcard/usbstate.txt" got DISCONNECTED state :( so definitelly we need to send event to enable usb
[Sony Xperia P, U, Sola, Go] akkufix:
"state" seems only be a monitor-file. When I connect running phone to PC it shows CONFIGURED and "enable" shows always "1".

Also "functions" contain "mass_storage,adb".

So, I think this will only android (system) shows, if the usb-device is enabled, how it is configured and what state it has or what is connected.

Found in / (root) "init.usbmode.sh" which could be for starting Sony's usb-device...last line in this bash shows "echo 1 > /sys/class/android_usb/android0/enable".

That's what is written in the file "/sys/class/android_usb/android0/enable" when phone is in normal use.

Watch the attached file - btw. had to put ".txt" on it, so pls. remove.
[Sony Xperia P, U, Sola, Go] munjeni:
Its allready in my recovery (elf) so I not use any init script that use system partition because system partition can not be unmounted and will be bussy!I done it on Gingerbread by this part of code:

__system("/sbin/killall -9 adbd");
__system("/sbin/echo 0 >/sys/class/android_usb/android0/enable");
__system("/sbin/echo 0FCE >/sys/class/android_usb/android0/idVendor");
__system("/sbin/echo 617E >/sys/class/android_usb/android0/idProduct");
__system("/sbin/echo 'mass_storage,adb' >/sys/class/android_usb/android0/functions");
__system("/sbin/echo 1 >/sys/class/android_usb/android0/enable");
__system("/sbin/setprop sys.usb.state mass_storage,adb");
__system("/sbin/setprop persist.sys.usb.config mass_storage,adb");
__system("/sbin/start adbd");
__system("/sbin/setprop service.adb.root 1");

it working on Gingerbread CWM! But on ICS CWM its unable to enable usb... I done these commands by analysing usb_init script, so these part of code doing the same thing like init script!

Now I going to debug states... maybe permisions is not granted for recovery to write to usb sysfs? I will do it now by:

__system("/sbin/cat /sys/class/android_usb/android0/state >/sdcard/usbstate.txt");
__system("/sbin/cat /sys/class/android_usb/android0/functions >>/sdcard/usbstate.txt");
__system("/sbin/cat /sys/class/android_usb/android0/enable >>/sdcard/usbstate.txt");

Edit:

yes its all corectly writen! But only state saing DISCONNECTED and I have no idea why :( still kernel version 3 have bug and not detect when usb is connected trought cable phone->computer or android have some comands to enable usb controler manually

DISCONNECTED
mass_storage,adb
1

Edit:

part of toolbox setprop,getprop...etc. I patched toolbox to suport /sbin dir and added some libraries that is needed for toolbox so I have every commmand working like setprop, getprop...etc... I think only missing these CONFIGURED DISABLED CONNECTED things for usb...

Edit:

Our part of dmesg is in kernel drivers/usb/gadget/android.c

<6>[ 3446.686920] android_work: sent uevent USB_STATE=CONNECTED
<6>[ 3446.688323] android_work: sent uevent USB_STATE=CONFIGURED

This part of kernel need to be analysed for how uevents working there
[Sony Xperia P, U, Sola, Go] akkufix:
Ok, didn't know this with cwm code...

I played some around with sola in cwm and found a kind of strange thing. I measured no output (0V) on usb-pins, so no otg-mode.

When i connect the phone with cwm to the PC, the led comes red... and charged 2%. Tried same with charger, the led stayed dark...no charging in cwm.

There must be some "kind of life" on the data lines or why the phone is once charging and otherwise, only with power not?
[Sony Xperia P, U, Sola, Go] neectron:
/system was mounting before,now I am getting

.Any idea what might have caused it?
[Sony Xperia P, U, Sola, Go] EFUS09:
it works for for locked bootloaders???
[Sony Xperia P, U, Sola, Go] visser:
Depending on the open source license that CWM used it is very likely that your works are inherently open source aswell. I saw this a lot on the HD2 forums where making available sources were enforced for new mods.
[Sony Xperia P, U, Sola, Go] pvyParts:
CWM licence https://github.com/CyanogenMod/android_bootable_recovery/blob/ics/NOTICE

Apache License Version 2.0, January 2004

Pretty sure that that means he can close source it if he so chooses....... Also this is counter productive. lets stay on topic and help him to fix the USB bugs.

bit of a long shot but are there any other usb devices? instead of just sys/class/android_usb. Just a thought. as on the ARC it was different.

Pvy.
[Sony Xperia P, U, Sola, Go] gazhead:
Git?

Munjeni consider github? We will gladly donate / contribute

/Gaz
[Sony Xperia P, U, Sola, Go] munjeni:
There is some problems in ramdisk to "shift" unmounting everything before recovery booting... you can unpack ramdisk and look into /sbin/bootrec... there we need to fix these things! Maybe there is a fix for usb too! Still I tried everything without luck! Allso I killall -9 some sustem processess but its not killed on some users but killed on some other users...! TThese problem is only onXperia U and not in Xperia Sola, Xperia P, Xperia Go! Its like bootloader inside Xperia U doing something with system partition?

I need to change a way for reading "flag" usb state... so recovery will detect stock Sony usb charger and enable led light :) curently I tested recovery only with computer usb charging... Thank you for these info!

I experienced "bad" things many times ago when some one user used my hard work and presented these work in his post like his work but without asking me and without giving credits to my work... so I will not share recovery source! I will ask moderators to delete our thread instead... so if you continue asking me for source, not liking my work, not be thankfull to me for my work for our phone...etc I will stop development for Xperia Sola and will ask moderators to delete thread completely!!! Do not forget, I am not owner of the Xperia Sola! I have Xperia GO and I doing all our things for you and your Sola for free and in my free time, so be thankfull to me and enjoy our CWM ;)
[Sony Xperia P, U, Sola, Go] LastSoul88:
just ignore these people.. please dont stop developing for sola.. :)
[Sony Xperia P, U, Sola, Go] neectron:
I'll take a look in the device itself.

Don't stop development for sola, it's already too shallow,when users start developing themselves they will understand the hard work developers put into their development.:)

---------- Post added at 05:10 PM ---------- Previous post was at 05:03 PM ----------

In your bootrec there is

in other recovery there is

I don't know what they are for,just pointing out.
[Sony Xperia P, U, Sola, Go] munjeni:
I have idea now after reading recovery.log few posts back... you can see there first few lines about adb and thing "adbd is not killed"... so that mean adbd is not started, but maybe adbd service can start usb?! Going to try it now :) ...allso maybe adbd must be from stock boot ramdisk (but adbd was not stock and worked in my GB CWMs for Xperia)?

adbd_rec is stock adbd just renamed