yashsingh1/xdaforums huggingface dataset:
[Sony Cross-Device General] CosmicDan:
Odd, I never had such an issue. Just dropped in the bootable/recovery folder, removed the private recovery resources in my device tree, and all was good.
[Sony Cross-Device General] M66B:
Maybe you are using other (kernel/recovery) sources.

In any case I still have to patch pigz/yarn.c and replace

if ((ret = pthread_cancel(off_course->id)) != 0)

by

if ((ret = pthread_kill(off_course->id, SIGUSR2)) != 0)

I am not sure about reboot to recovery, I am still building ...

Does backup .androidsecure work for you?

---------- Post added at 02:04 PM ---------- Previous post was at 01:44 PM ----------

My best guess you are using another bionic version.
[Sony Cross-Device General] CosmicDan:
Yeah .android_secure backup works fine. I actually build from AOSP 4.1.2 source, but my /build folder is entirely from FXP and some other patches here and there too. I don't think I ever modified anything in bionic from 4.1.2_r1/jb-mr0-release tag (a.k.a JZO54K). Also, my device is Xperia 2011.
[Sony Cross-Device General] M66B:
I don't understand why you can compile without changes. I have unresolved references for pthread_cancel and pthread_setcancelstate. Futhermore the source transport_local.c is missing and reboot to recovery needs a fix. See here for my patches so far (I got TWRP 2.4 running now, but it still needs testing).
[Sony Cross-Device General] championswimmer:
you are use the twrp2.4 branch right ??
[Sony Cross-Device General] M66B:
Yes, not good?

After some testing, it appears the basic function backup is not working at all :(
[Sony Cross-Device General] CosmicDan:
It was even working for the jb-wip branch, i.e. 2.3.x.x.

All my AOSP sources are on GitHub, maybe there were more changes required but I changed them in my AOSP build for another reason before building TWRP.

Are you using the toolchain included in AOSP 4.1.2 repo or some other prebuilt one? Because I don't recommend that. It probably doesn't make a difference but I build on Ubuntu 12.10 x64.
[Sony Cross-Device General] M66B:
I am using the Linaro toolchain for the kernel and yath/android_prebuilts_gcc_linux-x86-32_arm_arm-linux-androideabi-4.6 for the ROM (my development PC has 32 bit Ubuntu).
[Sony Cross-Device General] CosmicDan:
That'd be your problem then. 32-bit Linux is not supported in building AOSP. I always had problems when using a toolchain other than the one included in AOSP repo.
[Sony Cross-Device General] championswimmer:
updated to 2.4.3
[Sony Cross-Device General] 7OH:
2.4.3 - still cannot mount sdcard from recovery.
[Sony Cross-Device General] CosmicDan:
What device and what does /tmp/recovery.log say?
[Sony Cross-Device General] championswimmer:
don't you feel that this tooooo less information to make out anything ??

I understand this is XPeria T forum but this page houses recovery for a whole lot of phones

so 1. which device ?

and 2. if possible the recovery log please :)
[Sony Cross-Device General] M66B:
Compiling with the 64-bit toolchain solved my problems, thanks for bringing this to my attention!
[Sony Cross-Device General] M66B:
With the latest TWRP 2.4.3.0 backup of .android_secure doesn't work.

See here for the recover.log.

These are my build flags for a mango

DEVICE_RESOLUTION := 320x480
RECOVERY_GRAPHICS_USE_LINELENGTH := true
TARGET_RECOVERY_PIXEL_FORMAT := "RGB_565"
TW_HAS_NO_RECOVERY_PARTITION := true
TW_HAS_NO_BOOT_PARTITION := true
TW_NO_BATT_PERCENT := true

Why does this work for you?

Any idea how I can fix this?
[Sony Cross-Device General] CosmicDan:
I don't see any error, it's as if it's not even instructed to backup .android_secure.

TBH, I don't know if backing up android_secure works for me because I use Jellybean with Link2SD. Native App2SD is quite unreliable. All I know is that when I make the backup it skips android_secure because it's always empty.
[Sony Cross-Device General] justmpm:
Hi,

I am also unable to mount USB from recovery using 2.4.3 twrp for the Xperia Ray (urushi.)

I am running on a clean install (full wipe) of aokp_urushi-ota-eng.kxp_milestone1-r3-fixed.

I have attached the recovery log.

I have tried with more than 1 computer, more than 1 USB cable and more than 1 JB ROM. I think it has been this has been broken since Thomas1991's first version of TWRP.

Let me know if you need any more information.
[Sony Cross-Device General] CosmicDan:
USB Storage works fine in my builds of TWRP. It was never broken, other things like restoring compressed backups were though.

I think this is the problem:

[FONT=Verdana]I:No internal storage defined.
I:No storage defined, defaulting to /sdcard.
I:Lun file '/sys/devices/platform/msm_hsusb/gadget/lun0/file'[/FONT]

I don't have these lines in my recovery log. Maybe init.rc is missing external storage export, no idea.

EDIT: Is /sdcard mounted in the mount menu? If so, can you access it via adb shell?
[Sony Cross-Device General] Kshitiz.gautam:
any other download link

Uploaded.net sucks....do u have any other download link..??
[Sony Cross-Device General] CosmicDan:
Doesn't take that long to dowload a few MB, jeez. Developers use uploaded for a good reason.
[Sony Cross-Device General] Kshitiz.gautam:
For some reason, I am not able to download the zip from uploaded.net..(tryin since past 2 hrs)...so if u please, upload any other zip link..it would b vry helpful. :)
[Sony Cross-Device General] justmpm:
The screen says: USB Storage Mounted Be sure to safely remove your device from your computer before unmounting.

adb will connect to my device when the ROM is booted but not when it is in recovery mode, so adb shell fails in recovery mode: error: device not found. Giving the command: "adb devices" returns an empty list in recovery mode.
[Sony Cross-Device General] CosmicDan:
Well then it seems that the USB device on sysfs is not setup or just not enabled. Only Champ can address that.

EDIT: So this USB problem is only on Xperia 2011 devices? 7OH didn't bother to reply his device. If I get time tomorrow I'll take a look at the Play one and see what needs to be done to recovery ramdisk.
[Sony Cross-Device General] championswimmer:
http://icxperia.com/kxp/twrp
[Sony Cross-Device General] funiewski:
I have exactly same problem with xperia V, i used champs kernel-tool and ported latest twrp to fxp206 and 209 kernels, usb storage can not be mounted from recovery
[Sony Cross-Device General] cj360:
edit- never mind, I can't seem to recreate it.
[Sony Cross-Device General] championswimmer:
--thanks--
[Sony Cross-Device General] HackitZ:
could you help me to get twrp to work on xperia zl with locked bootloader.
[Sony Cross-Device General] mpiekp:
Try the app available for the Z, should work out of the box
[Sony Cross-Device General] CTCaer:
[MENTION=4308696]championswimmer[/MENTION]

I made 2 scripts inside /sbin. rebootrecovery.sh and rebootbootloader.sh.

These two create /cache/recovery/boot and /cache/recovery/cwm respectively, so I can reboot in the recovery of my choice from inside twrp.

The problem is that these never run when I press reboot into recovery or cwm (bootloader).

The scripts use #!/sbin/sh and are 0777.

Also from the sources we can see that when we reboot, twrp tries to run a script respectively to the reboot method, before it returns the actual reboot function.

So can you please tell me why they never load? I have to do something else too?

ps: The scripts alone work as they should. Running them through twrp's command line and then restart, goes into twrp.
[Sony Cross-Device General] HackitZ:
I tried but have issues rebooting into twrp.

Ill wait and see if the one for dual boot works.

Thanks

Sent while on the go. Xperia T
[Sony Cross-Device General] ccxex29:
All Xperias? where's pepper [Sola]
[Sony Cross-Device General] championswimmer:
there isn't Z Ultra too nor SP, nor Z nor a lot more Xperias. I'm so sorry I could not do it.

Should I pay you a refund honey ?
[Sony Cross-Device General] lozohcum:
Can I extract the recovery and move it to the FXP CM10 kernel?
[Sony Cross-Device General] fma965:
[MENTION=4308696]championswimmer[/MENTION]

Hello, I have a small issue, Firstly im trying to automate flashing on 2011 devices.

http://xdaforums.com/showthread.php?p=46111684#post46111684 - post 1 and post 2 explains it all

However part of the plan is to have a auto boot recovery for consistency and flash the rom with, I can't use CWM due to signature verifications etc. So i decided to use TWRP (removed the recovery option and forced recovery) however USB refuses to work and i don't know why

Both USB mass storage and ADB will not work. Any ideas, http://xdaforums.com/showthread.php?p=46114868#post46114868

Sorted it thanks :)

UPDATE: [MENTION=4308696]championswimmer[/MENTION] how can i edit the ramdisk-recovery.cpio (i want to embed a twrp theme) and when i decompile it and recompile it, it doesn't work.
[Sony Cross-Device General] fma965:
Bump! Please any suggestions?
[Sony Cross-Device General] iBuzman:
No refund required sweetness, but a change of thread title would help :)

sent from my Sony Xperia Z Ultra
[Sony Cross-Device General] ani.rocks:
Will this method work for Xperia E
[Sony Cross-Device General] RozenSkye:
tried this with LegacyXperia and it gets stuck in the loading screen? :(
[Sony Cross-Device General] giannism13:
First of all.

download link for smultron in missing

. Second, i have tried to take the twrp recovery from lupus kernel and, using your instructions, port it to nAa's 2.6 kernel. But when extracted the nAa's kernel i noticed that there wasnt any sbin folder. Any advise?
[Sony Cross-Device General] XEROling:
Hi,

Can you give another mirror please? (example: mediafire\dev host...)

The links that have been provided in the thread are not working in my county!

sent from LT18i
[Sony Cross-Device General] yurasik_687:
Can i use TWRP 2.4.3 on my anzu LT18, CM12.1?
[Sony Cross-Device General] Se4fl0w3r:
sorry , how i could fastboot boot.img ?!

and if i flash this recovery.zip , then my rom does cause with problem ?

excuseme for my bad english !
[Sony Cross-Device General] okoy:
no download link for satsuma?
[Sony Cross-Device General] adahag:
Well, now my Play is in a bootloop state :/ Anyone can help?
[LG Optimus 2x] rafabad:
Hi guys, I'm not a developer, despite that I dare to open this topic.

It's all an annoying bug that has "some" of our P990, is that after being connected to a wireless network connection is not restored data.

I encourage developers great forum to find the solution this annoying bug. I'm pretty sure it's not a problem of the baseband and ril, I've tried all the possible combinations, I assure you, any fixes the bug, however if there has been any rom like this http://xdaforums.com/showthread.php?t=1596671, I always worked well in the wifi-data transitions.

Many comments like these describe the bug

http://xdaforums.com/showpost.php?p=35992829&postcount=844

http://xdaforums.com/showpost.php?p=35957517&postcount=747

EDIT:

solution in post 9 by dcseek
[LG Optimus 2x] louiscypherbr:
I solved this kind of problem I was having just changing network operator. Never got this problem again. And I know that it's also related to phone, since I had a Sony x10 before with the same simcard and never got this on that phone, but the only way to solve it was changing operator.
[LG Optimus 2x] dcseek:
+1

I'm facing this problem for a long time now since I installed a CM7 rom. Plus I'm having troubles during network operators change my device is not disabling data connection in Roaming. Even with a different sim card the result is the same. Thnx in advance.

Inviato dal mio LG-P990 con Tapatalk 2
[LG Optimus 2x] Rayman96:
I doubt no one will find solution because problem persist only on couple of devices and must be reproduced here for helping.

So this is your part to fix it - make logs, and not devs part.
[LG Optimus 2x] x_justin:
Great you opened this thread man! I like your style, I was doubting to open a thread but didnt go for it because of missing some essential dev skills. However, many many users have this bug and I also read there was a specific fix in CM7. We first have to analyse the problem as deep as possible. I will try to help as much as possible. Not at home right now yet..

Verstuurd van mijn LG-P990 met Tapatalk
[LG Optimus 2x] amardeepsingh77:
finally, someone's highlighting this basic problem that still persists no matter what rom I use. I have used various GB including DJ and CM7 and now official ICS as well as CM10, running CM10 on the old bootloader for nearly over a month, and have faced this wifi to 3g/2g switch bug in all these roms. the only possible solution has been without rebooting is to go into flight mode and then turn the radio on again. If you want, I can submit a radio logcat as well. Can someone please tell me which app to use for creating a radio logcat?
[LG Optimus 2x] jeroenqui:
Here are my logcats of the situation.

Facing this problem also, for a very long time.

Works fine with CM7 (temasek build), and after that, newer roms all have this bug.
[LG Optimus 2x] gerniracing:
I have the same problem with ICS and CM10. With CM7.2 y have not the problem...the problem is very annoying
[LG Optimus 2x] dcseek:
Solved

SOLVED:

in addition i had problems to connect to a Slovenian network operator.

checking my radio logs i discovered that during call or comunicating with network cell my device was sending wrong commands and i had strange CME errors.

Searching on XDA i found those problems in different threads but i found a pattern in baseband flashes.

It is not ROM related, every android version is having the same strange radio behavior.

The solution is to smartflash any baseband using erase CAL data ticked(i know! everywhere is written to not use it...)

and restore your IMEI that will be erased during flash operation.

I'M SUGGESTING TO WHO WANTS TO FOLLOW THIS GUIDE TO RESTORE YOUR OWN IMEI BECAUSE YOU COULD BLOCK SOMEONE ELSE IMEI.

DO NOT USE IMEI RESULTING FROM FLASH WITH ERASE CAL DATA!!!

solution:

WARNING: I'M NOT RESPONSIBLE FOR ANY DAMAGE ON YOUR DEVICE

What you need:

- smartflash program with your favorite baseband related to your region Do not flash SU660's basebands if you are in Europe

- a stock ROM on your device (you will need LG hidden menu)

- hyperterminal

- your original IMEI (it is on the original phone's package)

1. smartflash any baseband make sure you select "erase CAL data"

2. follow these instructions:

hidden menu workaround(all stock android versions):

i didn't know the new ics's code so i used an old trick to show hidden menu (i was using it with launcher pro) .

install holo launcher hd then on Home screen----> ADD shortcuts ---> choose Activities ----> select com.lge.hiddenmenu ---> hidden menu.

after this no code is needed to access hidden menu, tap 'n go!

3. take a beer

hope this helps other with same problem.

here's a comparison between radio log before and after (no connection on operator, one of my problems) :

before Erase CAL data

D/GSM ( 504): [GsmSST] Poll ServiceState done: oldSS=[0 home Si.Vodafone Si.Vodafone 29340 Unknown CSS not supported -1 -1 RoamInd=-1

DefRoamInd=-1 EmergOnly=false] newSS=[0 home Si.Vodafone Si.Vodafone 29340 Unknown CSS not supported -1 -1 RoamInd=-1

DefRoamInd=-1 EmergOnly=false] oldGprs=1 newData=1 oldMaxDataCalls=1 mNewMaxDataCalls=1 oldReasonDataDenied=-1

mNewReasonDataDenied=-1 oldType=Unknown newType=Unknown

After

D/GSM ( 6943): [GsmSST] Poll ServiceState done: oldSS=[0 roaming Si.Vodafone Si.Vodafone 29340 EDGE CSS not supported -1 -1 RoamInd=-1

DefRoamInd=-1 EmergOnly=false] newSS=[0 roaming Si.Vodafone Si.Vodafone 29340 EDGE CSS not supported -1 -1 RoamInd=-1

DefRoamInd=-1 EmergOnly=false] oldGprs=0 newData=0 oldMaxDataCalls=1 mNewMaxDataCalls=1 oldReasonDataDenied=-1

mNewReasonDataDenied=-1 oldType=EDGE newType=EDGE

EDIT:

i found out that with other devices like i9000 it's normal to backup /EFS partition to prevent this problems (not only IMEI related)

enjoy
[LG Optimus 2x] tetsuo55:
Do you think this may solve all wierd problems with relation to the radio?

Problems i have:

* Not switching from wifi to cellular

* Showing full signal but not actually being connected (data does not go through, making a call turns the icon into a red cross) (sometimes a full reboot or just flightmode is needed to get back online)

* Generally bad/unstable 3g/2g connections

* Dropping wifi connection

* unable to make a call eventhough there is signal, 2nd try works

* Not switching to wifi when walking into a known network

Can any of the reporters confirm this works?
[LG Optimus 2x] dcseek:
At the end if you tried all others fix like me, this was the last shot before selling the phone.

erase Cal data in my case didn't delete IMEI but was an invalid IMEI. When i restored mine everything was working perfectly.

my symptomes where similar to yours.... but i can't confirm that is the same situation.
[LG Optimus 2x] dickeplatte:
Here is another thread concerning this issue:

http://xdaforums.com/showthread.php?t=1576519
[LG Optimus 2x] dcseek:
this is one of the threads i've read to find out the solution for me...

the problem is not so spread but i think that with all this new roms is possible that will grow.
[LG Optimus 2x] klappstuhl218:
Sounds interesting! :D I will try it when I'm at home. It would be great if this annoying bug gets finally fixed. Sometimes when it appears I just want to throw the phone at the next wall...

I guess you have started your logs just before you deactivated wifi!? Because I think the bug happens earlier. My phone looses mobile data connection after a few Minutes and network status changes to UNKOWN:0. I'm quite shure that this is not intended because I tested it on another 2X an it doen't loose the mobile network even after several hours.
[LG Optimus 2x] dickeplatte:
I never found any solution for this problem, hope the erase cal think will do it.

Does anybody know what erase cal exactly means, further than deleting imei
[LG Optimus 2x] dcseek:
I have researched a lot this but nowhere is explained what is erasing.

if anybody knows please share your knowledge :)

Inviato dal mio LG-P990 con Tapatalk 2
[LG Optimus 2x] jeroenqui:
I think that happens on purpose. No point in keeping mobile data active while you're connected to WiFi, right?

I've filtered the unrelated lines out of the logcat and this is what's left.

01-02 11:36:45.740 D/WifiService( 296): setWifiEnabled: false pid=416, uid=10037
01-02 11:36:45.780 D/CommandListener( 105): Clearing all IP addresses on wlan0
01-02 11:36:45.800 D/ConnectivityService( 296): ConnectivityChange for WIFI: DISCONNECTED/DISCONNECTED
01-02 11:36:46.140 [B]D/ConnectivityService( 296): Attempting to switch to mobile[/B]
01-02 11:36:46.150 D/ConnectivityService( 296): Attempting to switch to BLUETOOTH_TETHER
01-02 11:36:46.200 D/NetUtils( 296): android_net_utils_resetConnections in env=0x4ec61fa8 clazz=0xea000001 iface=wlan0 mask=0x3
01-02 11:36:46.200 D/ConnectivityService( 296): resetConnections(wlan0, 3)
01-02 11:36:46.280 I/wpa_supplicant(11198): wlan0: CTRL-EVENT-TERMINATING
01-02 11:36:46.330 W/Smack/Packet( 634): notify conn break (IOEx), close connection
01-02 11:36:46.640 I/qtaguid ( 634): Failed write_ctrl(u 70) res=-1 errno=22
01-02 11:36:46.640 I/qtaguid ( 634): Untagging socket 70 failed errno=-22
01-02 11:36:46.640 W/NetworkManagementSocketTagger( 634): untagSocket(70) failed with errno -22
01-02 11:36:46.670 [B]D/ConnectivityService( 296): handleInetConditionChange: no active default network - ignore[/B]
01-02 11:36:46.710 W/Netd ( 105): No subsystem found in netlink event
01-02 11:36:46.710 D/NetlinkEvent( 105): Unexpected netlink message. type=0x11
01-02 11:36:51.210 D/NetworkStateObserver(17841): Network status changed.

Maybe the problem lies in one of the lines I have made bold.

I should make another logcat when it does succesfully reconnect to mobile data and compare it.

But somehow I don't think the we can get any results from those logs regarding this issue.
[LG Optimus 2x] dickeplatte:
Me too,

but anyway: i dared to use your method. And i think it works! I have to do a test with more time in standby but looks very promising!

Nevertheless:

THANKS dcseek!!!!
[LG Optimus 2x] rafabad:
I searched the word "unknown" in logcatradio and I found this:

D/AT ( 107): dlc[5] atchannel: at_send_command_full_nolock() tid:30594888, waiting(180000 msec) for signal...DONE

D/AT ( 107): dlc[5] atchannel: at_send_command_full_nolock() end, err:0

D/AT ( 107): dlc[5] atchannel: at_send_command_full() s_commandmutex[5] UNLOCKED, tid:30594888, err - 0

D/RILC ( 107): [0136]< QUERY_NETWORK_SELECTION_MODE {2}

D/RIL ( 107): dlc[5] lge-ril: requestInterface(QUERY_NETWORK_SELECTION_MODE) invoking *requestFunction(req:45, data: 0x00000000, len:0)...DONE

D/RILJ ( 645): [0136]< QUERY_NETWORK_SELECTION_MODE {2}

D/GSM ( 645): [GsmSST] Poll ServiceState done: oldSS=[3 home null null null Unknown CSS not supported -1 -1 RoamInd=-1 DefRoamInd=-1 EmergOnly=false] newSS=[1 home Orange Orange null Unknown CSS not supported -1 -1 RoamInd=-1 DefRoamInd=-1 EmergOnly=false] oldGprs=1 newData=1 oldMaxDataCalls=1 mNewMaxDataCalls=1 oldReasonDataDenied=-1 mNewReasonDataDenied=-1 oldType=Unknown newType=Unknown

D/GSM ( 645): [GsmSST] updateSpnDisplay: changed sending intent rule=2 showPlmn='true' plmn='Orange' showSpn='false' spn='null'

D/AT ( 107): dlc[12] atchannel: readline() count:40. Read string - "

D/AT ( 107): +XDNS: 1, "0.0.0.0", "0.0.0.0"
[LG Optimus 2x] rafabad:
http://xdaforums.com/showpost.php?p=36174582&postcount=9

I also am going to try it, then tell as I've done
[LG Optimus 2x] louiscypherbr:
You should put this link in the op or paste its contents given credit to the author, so it'll be easy to others to find a possible solution.
[LG Optimus 2x] dickeplatte:
Hi again,

in my case it worked!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Thanks dcseek, im so happy that i want to donate a beer. Do you have a paypal account?

edit: Yeah, the post should definitly be added to the op
[LG Optimus 2x] emilic:
Which base band should i be using for this??
[LG Optimus 2x] dcseek:
Whichever is the best for your rom/operator.

---------- Post added at 08:43 PM ---------- Previous post was at 08:41 PM ----------

I'm happy that solved your problem,

a thank is enough ;)
[LG Optimus 2x] klappstuhl218:
OH MY GOD! It worked! :laugh: Thank you so much dcseek! And my imei wasn't even correct...

For people who try this with ICS stock: Hidden menu code was changed to 3845#*990#
[LG Optimus 2x] tetsuo55:
So this is not possible to do while on CM? i really have to flash a stock rom?
[LG Optimus 2x] rafabad:
not necessary stock rom, a backup done with CWM is sufficient

Hyperterminal here:

https://dl.dropbox.com/u/15976360/hyperterminal.rar
[LG Optimus 2x] louiscypherbr:
I'm saw that the log refers to Vodafone, and I realized that my phone is unlocked (it was on Vodafone before), so do you guys having problem are also on imei unlocked phone?
[LG Optimus 2x] dcseek:
my phone was 3 italy branded but not locked.

those lines are related only i think to gsm network polling.
[LG Optimus 2x] Grimlock42G1:
Where can I find the original imei if I don't own the phone box anymore?

Thanks!
[LG Optimus 2x] louiscypherbr:
Remove your back cover and battery and you'll find it. You can also check it dialing *#06# and check if it's the same.
[LG Optimus 2x] jeroenqui:
Is it only possible to restore imei with a stock rom?

Can't seem to connect in nvflash mode with hyper terminal. Neither in normal usb mode with debugging on.
[LG Optimus 2x] amardeepsingh77:
Wow, erasing the cal and then restoring the imei really did solve the problem. Thank you sir
[LG Optimus 2x] Albatros2605:
You have real balls man, it works great !!!

All others, smart guys, watch and learn.

Thanks again.

Sent from Poland
[LG Optimus 2x] jeroenqui:
Wow, it actually worked!

Didn't expect that!

Thanks a lot!

Now i just have to temp flash a stock rom to restore my imei :)
[LG Optimus 2x] Shadowchaz:
Hi,

I know I am being a bit thick, but I can't see how to enter the details into hyperterminal.

Could someone just clarify how they got it to see thier phone?

Cheers
[LG Optimus 2x] rafabad:
select the same COM port used smartflash
[LG Optimus 2x] Shadowchaz:
I did that, and it didn't connect.