yashsingh1/xdaforums huggingface dataset:
[Xperia Play Android Development] 216Monster:
I have been trying to get service on the .368 or .42 or .62 firmware. So far I have only been able to boot the systems and play around with the apps and settings. I made a backup of each system and am sharing them here so that other r800x users can flash and mess around with the newer systems and that maybe someone smarter then me can figure out, if even possible, how we can get service on these systems as the cdma patch does not work on these. You will be able to use most of everything minus

having no service what so ever.

Below are the links to each backup, Before flashing please make a backup of your current system if you dont have one already. All of these will boot with "Unknown Baseband" and "No Service"

Please read everyting before you install any of these

4.0.A.2.368 (2.3.3)

http://www.mediafire.com/?u04dbhea359gm8w

The [.368] R800x backup was made while on the .368 DoomKernel which you will find here http://xdaforums.com/showpost.php?p=16291835&postcount=3

You will want to use the same kernel or you wont have any hardware buttons

4.0.2.A.0.42 (2.3.4)

http://www.mediafire.com/?ic33qd61ck39up6

4.0.2.A.0.62 (2.3.4)

http://www.mediafire.com/?idihgb2hdn928hf

EDIT : Will update backups

The [.42] and [.62] R800x Backups were made using the "Testing" CDMA DoomKernel V10 which you will find here http://xdaforums.com/showpost.php?p=21948440&postcount=126

~You will want to use the same Kernels as I did or you may not have any hardware buttons~

Maybe someone can help with this part, the cdma patch is already known not to work on these systems, So I decompiled the SemcPhone.apk from the cdma patch zip file and compared all the smali files in smali folder to all the smali files in the [.62] decompiled smali folder :eek: I found some differences and I am posting a zip file of:

-all the smali files that were IN the cdma patch smali folder that were not in the [.62] smali folder

-a List of smali files that the [.62] smali folder HAD that the cdma patch smali folder did NOT have.

- the [.62] AndroidManifest.xml because it to had differences

The zip of differences can be found here http://www.mediafire.com/?kuv8x82vhthgp9c

Also Im posting a zip file containing the lib files from the 2.3.3 Verizon system which should be our Baseband files ( I could be wrong on which files are the baseband from our r800x), that can be found here http://www.mediafire.com/?afx0unj80ne1r2z

This is basically where I am at with getting service on newer Uk firmware for our r800x, I would gladly love anyones input and/or ideas. If Im wasting my time and someone who knows more then me already knows this wont ever work please let me know! I hope I made everything clear on what it all is and what Im trying to do, thanks for reading and any insight on service :)
[Xperia Play Android Development] CrimsonKnight13:
I'm looking forward to seeing the progress that you'll make here. I hope you can find a working resolution.
[Xperia Play Android Development] ozzmanj1:
Me too, I dont know much about the breakdown of ROMs but I will cross my fingers and think happy thoughts.
[Xperia Play Android Development] crono141:
I have an ignorant question: what keeps you from flashing only the verizon baseband after flashing these other firmwares?
[Xperia Play Android Development] 216Monster:
I already tried, I flashed only the baseband from the 2.3.3 verizon ftf and copied over the 2.3.3 lib files manually aswell. Still says "unknown baseband" Did I do anything wrong?
[Xperia Play Android Development] KeiranFTW:
Ah, porting a rom from one model to the other is especially a ***** when they have a different baseband. I attempted it myself once, but I failed miserably...

Good luck with this btw, I hope you get somewhere with it :)

Keiran
[Xperia Play Android Development] loismustdie555:
Any luck getting it to work?
[Xperia Play Android Development] 216Monster:
Thank you :), perhaps you can help me with this thought..

~In your [WIP][CDMA] MIUI for the R800x , on page 3, last post on the page, you said you were gonna try a port from the Evo 4g because "it is the only one with the same baseband (htc anyway)"~

Would I be wasting my time downloading / messing around with the baseband files for the Evo 4g to help me out with this project? Or does that not even make sense in my case? Im just trying to "try" everything and anything that may help
[Xperia Play Android Development] paxChristos:
Different chipset, probably won't work

---------- Post added at 04:15 PM ---------- Previous post was at 03:58 PM ----------

Have you tried entering the have you tried entering the service menu (*#*#4636#*#*) and checked to make sure it was on CDMA (just an idea)
[Xperia Play Android Development] 216Monster:
Yes I tried that already as well. It has "unknown" selected an will not allow me to select any of the other options. Thanks for inputing an idea though :)
[Xperia Play Android Development] paxChristos:
Have you tried pulling the libril files from Verizon 2.3.3, and compared them to the ones on the gsm versions? (librils are located in /system/lib, and there are two of them)
[Xperia Play Android Development] 216Monster:
I'm my op I posted a zip containing what I thought were all the 2.3.3 lib files for the baseband, are there more then what I have? I'm going to look again and see if I missed any.
[Xperia Play Android Development] paxChristos:
They might only work on your phone (I know I tried pushing some on a different phone from somebody else's and adb did not like) (I haven't checked your zip yet...)
[Xperia Play Android Development] KeiranFTW:
They should be all the same, but I tried the CM7 ril libs in the .62 rom and I still had service. I think it is more in terms of the phone.apk and stuff :)

Because the phone app seems to do more than it lets out, I think it also handles communications with the baseband and not just your dialer - but I could be wrong, I have as much knowledge as you do on this :)

Keiran
[Xperia Play Android Development] paxChristos:
i don't know if it's phone.apk as much as /system/app/SemcTelephonyProvider.apk ...
[Xperia Play Android Development] 216Monster:
I think the phone.apk is doing a lot aswell. Its taking some time but I'm going through every smali/xml file in the semcphone.apk looking for anything in regards to a baseband.
[Xperia Play Android Development] 216Monster:
The libs I posted in my zip are from a clean full ftf flash of verizon 2.3.3 firmware on my phone, they should work for all r800x since that's what they are from.

I'm gonna look into the telephonyprovider app it could be a piece of the puzzle I haven't discovered yet, I think the phone.apk is handling most of it because the cdma patch has only a semcphone.apk in it, but maybe the newer firmwares will need a patched phone apk and telephony apk.
[Xperia Play Android Development] paxChristos:
Just another Idea, does anybody know where it checks for the sim card?

---------- Post added at 08:42 AM ---------- Previous post was at 08:38 AM ----------

Interesting link (stackoverflow is perhaps the awesomest website ever, gave me a link to here)

Telephony manager does do alot of more than just sit there, we might wanna look into that and see what's pointing to it...

link: http://developer.android.com/reference/android/telephony/TelephonyManager.html
[Xperia Play Android Development] KeiranFTW:
I think the baseband does that :)
[Xperia Play Android Development] paxChristos:
Just thought about something... downloading the .62 source now, and i'm gonna see if there's something in there where it automatically shunts it to gsm, instead of being a cdma phone...
[Xperia Play Android Development] paxChristos:
Interesting fact: The only place in the .88 firmware that there is "cdma" is in /kernel, not in /externel/, /system/, or /vendor/ ...

Update: Forgot that what I was using is case sensitive: "CDMA" has a few lines in /externel/bluetooth/bluez/

Another Update: I couldn't get wifi to work on .62, any ideas?
[Xperia Play Android Development] paxChristos:
Have you looked into how 2.3.4 handles Baseband and see if there are any differences in how 2.3.3 handles it?
[Xperia Play Android Development] 216Monster:
I'm trying to just hurtin for time this weekend once I can get home I will get back on it!

EDIT : Backup Links re posted
[Xperia Play Android Development] 216Monster:
I got some ideas I'm gonna try tonight, maybe some progress can be made afterwards, ill know more later. I've been doing some reading, I started this in the wrong direction and I think I'm headed the right way now ( I was focused on the cdma patch, and that's not the problem ) Working two jobs and doing music is taking up a lot of time but, if this is possible I will figure it out, only a matter of time.
[Xperia Play Android Development] 216Monster:
I tried to re-bundle just the baseband from the other firmwares as "r800x" , which went fine, but they wouldn't flash to the phone, I didn't think it would work but I thought id try a few simple ideas.

I saw on other phones you can fastboot the radio, I didn't think it would work for the xperia play but I tried to compile the baseband files into .img and fasboot flash radio radio.img , but no partition for that existed

I was basically trying to see if there was a lazy mans shortcut (fail)

I wonder if possible to fastboot baseband files manually? Prolly a no go and the uk baseband files won't work anyway but I thought it was worth a shot. I'm gonna go back to how each firmware reads the baseband I think and see if its possible to re write for our baseband.
[Xperia Play Android Development] paxChristos:
Baseband (radio) isn't a partition on or devices, just like /boot

if you type (in either adb or terminal emulator) "cat /proc/mtd" it shows you the partitions that are available for futzing...
[Xperia Play Android Development] nickholtus:
hi,

If i enter that command i can see the /boot partition?
[Xperia Play Android Development] paxChristos:
Not 100% sure what you're saying, but on the play, you shouldn't be able to see /boot... If you do, you need to talk to Keiran/Doom.
[Xperia Play Android Development] nickholtus:
yep,

i see /boot.

i flashed fxp106 kernel.

and when i go to recovery i see /boot pratition
[Xperia Play Android Development] KeiranFTW:
That. Is. Impossible....

Sent from my R800i using DFR3.0.5 NAND + CM7 SELFKANG SD
[Xperia Play Android Development] KeiranFTW:
Oh my fu***ng lord:

Sent from my R800i using DFR3.0.5 NAND + CM7 SELFKANG SD
[Xperia Play Android Development] KeiranFTW:
Someone do cat /proc/mtd on stock kernel, do it now!

Sent from my R800i using DFR3.0.5 NAND + CM7 SELFKANG SD
[Xperia Play Android Development] nickholtus:
does this mean we can flash kernel with recovery??
[Xperia Play Android Development] KeiranFTW:
Maybe..

I just mounted boot in android os, but it corrupted my boot partition and I had to reflash it....

Maybe the boot partition is not readable but you can write to it?

Going to try a little experiment later :)

Sent from my R800i using DFR3.0.5 NAND + CM7 SELFKANG SD
[Xperia Play Android Development] nickholtus:
btw. i can't see the partition with doomkernel?
[Xperia Play Android Development] lightningdude:
r800x 2.3.3, stock kernel. I ran that command, no boot.
[Xperia Play Android Development] KeiranFTW:
Now, just need to edit recovery for boot partition mounting... Whatever FXP did, they certainly did it silently lol...

Sent from my R800i using DFR3.0.5 NAND + CM7 SELFKANG SD
[Xperia Play Android Development] nickholtus:
tell me if it works!!
[Xperia Play Android Development] 216Monster:
Is it possible in anyway to fastboot the baseband files or does an idea like that make no sense ?
[Xperia Play Android Development] paxChristos:
yes, you can... but, we have no baseband images (radio.img) to flash...

fastboot -i 0x0fce flash radio radio.img

(if you can find one...)
[Xperia Play Android Development] CrimsonKnight13:
Wouldn't it be possible to extract the image from a phone?
[Xperia Play Android Development] paxChristos:
Yes, but the question is, where is it... I think on some phones, there is a radio partition, we don't have that... on the other hand, if you can find it in the ftf file, we might be able to flash that... *just had an idea*
[Xperia Play Android Development] KeiranFTW:
Using sin2img :) but which file?

Right, so I tried it.

First of all I tried:

adb shell

dump_image boot /sdcard/dumped.img

exit

The above tries to dump the boot partition, it didn't work, i got a 4.6MB corrupt thing...

I was brave enough to try:

adb push stock.img /system/

adb shell

flash_image boot /system/stock.img

exit

results were not good.. it totally wiped my boot partition and I had to reflash it using fastboot.

So, from this, I can conclude that you cannot flash to the boot partition at all yet, maybe this is a WIP by FXP, if it worked I think it would be in recovery, which it isn't, so maybe FreeXperia is working on it :)

Keiran
[Xperia Play Android Development] paxChristos:
In regards to the thread topic:

For once the internet's doesn't have a good answer for which file is which... (damn google failed me :P)

Do you know if there's a way to tear it apart other than using a hex editor? I really don't feel like wading through then entire 419mbs in a hex editor...

In regards to what all those posers are saying with their R800I's and FreeXperia Kernels ;)

have you tried

# cat /dev/mtd/mtd4 > /sdcard/boot.img

for pulling the image,

and for flashing: (push the image to your phone)

# cat /dev/zero > /dev/mtd/mtd4
# flash_image boot /location/of/your/boot.img

(No guarantees that it'll work, but it's worth a try...)
[Xperia Play Android Development] nickholtus:
i get: cat: can't open '/dev/mtd/mtd4': No such file or directory

~ #

fixed that

now this: cat: write error: No space left on device

~ #

what do i need to do?
[Xperia Play Android Development] paxChristos:
If you're getting that error after

# cat /dev/zero > /dev/mtd/mtd4

You can ignore it and keep going ...

(Source: http://android-dls.com/wiki/index.p...s#Flashing_your_new_image_back_onto_the_phone )

Also, remember, /dev/zero writes zeros over what you're writing to (formats it) (so yeah, it'll say it's full)

(source: http://en.wikipedia.org/wiki//dev/zero )
[Xperia Play Android Development] nickholtus:
ok flashed.

trying to boot now

Edit: doesn't boot

flash_image boot /sdcard/boot.img

mtd: successfully wrote block at 0

mtd: successfully wrote block at 20000

mtd: successfully wrote block at 40000

mtd: successfully wrote block at 60000

mtd: successfully wrote block at 80000

mtd: successfully wrote block at a0000

mtd: successfully wrote block at c0000

mtd: successfully wrote block at e0000

mtd: successfully wrote block at 100000

mtd: successfully wrote block at 120000

mtd: successfully wrote block at 140000

mtd: successfully wrote block at 160000

mtd: successfully wrote block at 180000

mtd: successfully wrote block at 1a0000

mtd: successfully wrote block at 1c0000

mtd: successfully wrote block at 1e0000

mtd: successfully wrote block at 200000

mtd: successfully wrote block at 220000

mtd: successfully wrote block at 240000

mtd: successfully wrote block at 260000

mtd: successfully wrote block at 280000

mtd: successfully wrote block at 2a0000

mtd: successfully wrote block at 2c0000

mtd: successfully wrote block at 2e0000

mtd: successfully wrote block at 300000

mtd: successfully wrote block at 320000

mtd: successfully wrote block at 340000

mtd: successfully wrote block at 360000

mtd: successfully wrote block at 380000

mtd: successfully wrote block at 3a0000

mtd: successfully wrote block at 3c0000

mtd: successfully wrote block at 3e0000

mtd: successfully wrote block at 400000

mtd: successfully wrote block at 420000

mtd: successfully wrote block at 440000

mtd: successfully wrote block at 460000

mtd: successfully wrote block at 480000

mtd: successfully wrote block at 4a0000

wrote boot partition

~ #

Then i try to turn phone on: black screen

i think we need to edit boot.img (or something)
[Xperia Play Android Development] paxChristos:
Does it vibrate when you hold down the power button?

(could be a ramdisk issue (I am more than used to those (damn you verizon...))) which kernel did you try flashing?

It might be a good idea to try flashing a stock kernel that way, to see if it'll work, then branch out into doom/fxp/darkforest(keiran's) kernels

Edit: Until I have lab (45 min) i'll be reloading this thread about every minute :P

(also, unfortunately, I only brought my charge only cable to school today, not my usb cable, sorry I can't do this myself and see if I can figure it out...)
[Xperia Play Android Development] nickholtus:
yes it vibrate:)

do you have stock kernel??
[Xperia Play Android Development] paxChristos:
Only for the R800x (which means it won't boot yours :( )

If you don't have the stock kernel, try Doom's, his has the most used ramdisk (that works)

I don't know how FXP manages to get their kernel to boot, I was running into all sorts of problems with files that size when I was working on the R800x kernel...
[Xperia Play Android Development] nickholtus:
r800x kernel works on gsm (i think)
[Xperia Play Android Development] paxChristos:
Gimme a couple of minutes, I need to convert a sin file to img
[Xperia Play Android Development] nickholtus:
how do you do that???
[Xperia Play Android Development] paxChristos:
Try this:

R800x kernel from sin2img (https://github.com/defer/semc-xperia-tools/blob/master/sin2img.py)
[Xperia Play Android Development] nickholtus:
ok trying it

EDIT:cdma kernel doesn't work (with fastboot)

so need a gsm kernel which i don't have
[Xperia Play Android Development] paxChristos:
only way I can see you getting that, would be to downgrade with wotanserver, use SEUS to update , run the python script to change sin (Program Files\Sony Ericsson\Update Service\db\*random numbered folder*\blob_fs is where the .sin files are located) to img, try again...

Damn US Government and taking down megaupload/scaring every other cloud service out there (unless you find a working link for the FTF kernel out there...)

Edit: Yupp, multiupload is down (has been for a couple of weeks) (not to be confused with megaupload)
[Xperia Play Android Development] nickholtus:
lol,

then i need to find someone who have that kernel.

---------- Post added at 11:01 PM ---------- Previous post was at 10:40 PM ----------

ok, still doesn't work (with stock kernel)

it vibrate and then black screen

I think we need to flash zimage and ramdisk separate

ok i only flashed zimage still no luck

only black screen.
[Xperia Play Android Development] 216Monster:
I have stock uk kernel from .368 .42 .62 if you guys want them
[Xperia Play Android Development] KeiranFTW:
I think this boot partition we are seeing maybe isn't flashable at the moment?

Sent from my R800i using DFR3.0.5 NAND + CM7 SELFKANG SD
[Xperia Play Android Development] nickholtus:
i already have it, but thanks!
[Xperia Play Android Development] paxChristos:
Ok, that was exciting!! :P

Back to the topic at hand. Does anybody have the build files for .62 and .88 (not the kernel build files, the android build files)

I was tearing apart the source code, and my guess is that in the build there is a baseband mis-match, and if I can get the .62 & .88 build files, I'm going to try to compile .62 from scratch for the 800x...
[Xperia Play Android Development] paxChristos:
First off: Tried to see if /boot was mounted for FXP108. It's not.

Second, I stumbled upon this in recovery (off Doom's Kernel)

Advanced -> show log prints out

persist.sys.localevar=
persist.sys.language=en
persist.sys.country=us
persist.chargemon.active=1
persist.sys.timezone=America/Chicago
[B]persist.radio.cdma.msgid=69
persist.radio.1xevdo_lpsec=15[/B]
persist.sys.boot.sound.volume=0

So radio is stored in the /persist partition... which is once again, locked... (nickholtus, if you suddenly pop up saying "not on mine!" I'll be your fan for life)
[Xperia Play Android Development] antEris:
I could be talking out my ass (Or this may be useless to even mention). But, if you can't flash the radio with fastboot, and that partition is not flashable in recovery. That's probably why fxp has gsm users flash the latest ftf for the radio. I wonder if flashtool is the answer.
[Xperia Play Android Development] paxChristos:
Nope, we've tried that multiple times (myself & 216 have both tried it)

Instead, my guess lies in how 2.3.4 was compiled.

Inside /devices/htc/passion (the nexus one) there is an interesting file called board-info.txt that says

require version-baseband=5.08.00.04

methinks, somewhere in this folder is the specific make argument for that baseband. That's why I want the make files for.62 and .88.

If I can merge them, we can get an aosp build, then from there we can tweak it out to be whatever we want (i.e. SE based, moto blur, etc.)

it won't be cutting edge like cm 7 (eventually I might change sources to 2.3.7, but I only have so much space/time)
[Xperia Play Android Development] CrimsonKnight13:
I think the lot of you needs to put your donate button up for people to contribute to you if you go all out with such projects as this one. :)

I need to find time to muck around with such. I mostly game (on PC) when I'm not hanging out with my wife... :D
[Xperia Play Android Development] paxChristos:
Pssh, this is my gateway into my career (I'm a computer science major) if I get this down pat, instant resumé builder.

I actually stopped playing ps3 games to focus on my wife and this.
[Xperia Play Android Development] CrimsonKnight13:
Gaming is my stress release. I'm a tinkerer all day long being as I'm a systems administrator for the US Navy (civilian). I even mess with my phone & PC every once in a while maximize hardware & software performance.
[Xperia Play Android Development] 216Monster:
I been searching around for a baseband file, anything that points to it or reference it in somehow, kinda like the htc file your talking about I guess but I haven't found anything yet that outright says something for baseband.

I tried creating new .ftf files trying different combos of baseband pieces, but nothing will flash unless its 100% all r800x pieces.

Is there a way to change the baseband model inside the .sin files that make a baseband to be read for/as r800x inside them ? ( for lack of better words )

I also decompiled the telephony apk and started sifting through the smalis, but I haven't found anything that's helps or clearly tells me anything yet either.
[Xperia Play Android Development] paxChristos:
The file was located in the android source for 2.3.3 (i'm downloading source for 2.3.4 right now, and eventually i'll get on to download cyanogenmod source.) I don't think there'll be anything that nice hidden on the phone itself.

Umm... the only way i've been able to open .sin files one of two ways:

1) is to convert to img, and i think it only works on the kernel file , and then split the kernel into a zImage (un-deconstructable) and ramdisk (cpio.gz file type)

2) using a hexeditor... and you don't want to open 400mbs of files with a hex editor... trust me (unless you're awesome at that :P )

I've tried opening up this .sin file with Izarc (windows archive utility, literally opens everything) and archive manager (linux archive utility, with all available dependencies installed) to no avail...

Maybe i'm missing something (like some obscure file manager) and more power to you if you find it.

Thanks for looking into the phone smali's, it's a bummer that they lead no where.

Pax
[Xperia Play Android Development] CrimsonKnight13:
sin2img works on all files from an ftf, at least in my experience.
[Xperia Play Android Development] paxChristos:
You're right, my bad, I was thinking about a different program i was using (now to try to open them in izarc...)

UPDATE: Changed all to .img, instead of .sin.

File-roller (Archive Manager) cannot open

Izarc cannot open

Universal extractor cannot open

WinImage cannot open then

Rebooting into linux to try unyaff-ing the files...
[Xperia Play Android Development] CrimsonKnight13:
You need to use unyaffs on the img files now