yashsingh1/xdaforums huggingface dataset:
[Motorola Photon 4G] tdhite:
Thanks for all the thanks! We owe a great deal to bosox04 because risking a phone probably sent feelings of sickness but still stuck through for us. Kudos friend.

Next set of tags coming this weekend hopefully. I have some reading to do on the vulnerability hacking sites so will be somewhat quiet.
[Motorola Photon 4G] phatninja55:
Any news on finding the atags?
[Motorola Photon 4G] tdhite:
Hi,

After studying the deal, our only chance appears to be if we can get a full kernel loaded that has atag support. Either that or a leak from Motorola, which we know will not happen.

I am going to build our kernel, but with support for the atags device. We know we can load our kernel in an unlocked phone. So we should be able to load the some thing with support. Then we will dump the atags to a file. Since the kernel booted, the same atags seemingly should work.

Gonna take another brave run by someone with an unlocked, but standard boatloader.

Today might be slow, I think my Shephard is closing on on passing on to get next life. I'll get a kernel built, though. So tomorrow we can try.
[Motorola Photon 4G] kingnfs:
you cant flash it via bootstrap recovery ?

and how i will know that the kernel is loaded
[Motorola Photon 4G] tdhite:
"you cant flash it via bootstrap recovery ?"

If all you can do is bootstrap recovery, you'd be well advised to steer clear -- far, far better to have full SBF restore capability. Usually folks who have only bootstrap recovery (me included) have no ability to restore their original phone if all H breaks loose -- we have no SBF for the OTA release. The kernel I put up for testing must be flashed because it is *the* boot kernel, not kexec'ed. Bosox4 was able to flash our kernel to his unlocked photon and boot it. That means, seemingly, so long as the kernel build went ok, unlocked phones can go attempt to boot this kernel and thereafter dump the atags.

"And how i will know that the kernel is loaded[?]"

If your phone boots when powered up, presuming you flashed the kernel, it loaded. You are booting this kernel, not your normal one, if you decide to test this. To repeat -- this is not a kexec, this is a base boot of the modified kernel.
[Motorola Photon 4G] kingnfs:
ok cuse i have locked photon

but i can flash with sbf

so iwill try to flash

you can make it zip flasheble ?
[Motorola Photon 4G] phatninja55:
Your phone would just fail to boot. The kernel is unsighed, so the locked bootloader would try to read the signature. There being no signature, the bootloader would fail to load the kernel.
[Motorola Photon 4G] kingnfs:
haaaaa ok

i was thinking

that we passt this bootlaoder **** lol so what atag do

?
[Motorola Photon 4G] phatninja55:
Anybody try to load it yet?
[Motorola Photon 4G] MarcquisDale:
Didnt work
[Motorola Photon 4G] tdhite:
What didn't work, and what were the steps?
[Motorola Photon 4G] MarcquisDale:
I was answering the person above question
[Motorola Photon 4G] phatninja55:
What did you do? Is your device even unlocked?
[Motorola Photon 4G] bosox04:
I'll try to load it later today. The update script would look just like I was flashing any other kernal? Something along the lines of this?......

Where boot.img is the kernal file. Plus I would add a line for adding the modules (.ko files) into to the system/lib folder.
[Motorola Photon 4G] MarcquisDale:
Sorry i was talking about my brother trying it and no its locked
[Motorola Photon 4G] tdhite:
Understood. An ulnocked phone is required for loading the kernel (I cannot sign the thing). I got a PM from someone willing to load it up, but needs a flashable update.zip. I'll look into creating one. Might take a few tries (obviously I can't test with a locked phone), but we'll get it loaded.
[Motorola Photon 4G] stratmor:
How will it work? Please describe the essence. Maybe I can help you than that. In the presence of locked Electrify 2.3.5...
[Motorola Photon 4G] phatninja55:
How will what work? If your referring to tdhite's plan, in essence a person with a locked bootloader would load the kernel and use the binary file to dump the atags, then we would just copy them to our locked phones and then test kexec to see if all the kinks are out of it.
[Motorola Photon 4G] monkey1230:
Subscribed

Sent from my Mopho "PREMIUM"
[Motorola Photon 4G] phatninja55:
Sorry to ask this so much, but have you made any progress?
[Motorola Photon 4G] tdhite:
Ugh. Sorry, slammed at work. Will dig in this evening.
[Motorola Photon 4G] tdhite:
Quick update -- between antipasto, phatninja55 and myself, some boot images exist, but antipasto's loads failed to boot. First time *never* fricking works. Anyway,

I have a question -- if someone knows it would be *great*: When the OTA took place, when did the lock/fuse actually occur -- does anyone know? I ask because I can take my own boot partition and drop the kernel into it for others to load (requires unlocked bootloader, as all of the attempts will due to the unsigned kernel). If someone loads an OTA upgraded boot.img with the stock kernel as modified by me (for ATAGS support), are they then possibly screwed?

Anyone know? Otherwise I gotta go dig apart an update.zip if I can find one that was for the OTA upgrade.
[Motorola Photon 4G] MarcquisDale:
You mean the date right?
[Motorola Photon 4G] tdhite:
No, I mean the fuse code itself. When does the fuse actually take place, during update execution, or at some other point e.g., first reboot after update.
[Motorola Photon 4G] phatninja55:
I'd assume during first boot of the new kernel, when the bootloader first extracts the kernel into folders.
[Motorola Photon 4G] stratmor:
The device allows you to flash a non-standard kernel (a zip update of bootstrap) but can not run it then. I was doing it. So the bootloader checks the signature at the start of the system, rather than at the time of unpacking and flash the kernel.
[Motorola Photon 4G] antipasto:
Maybe I didn't wait long enough or maybe I could figure out a way to get a debug trace I don't know. What kernel or ROM was this based on?
[Motorola Photon 4G] phatninja55:
What i dont understand is why you got failed to boot 1 or whatever, if the phone you tested it on was unlocked it shouldnt have to be signed.
[Motorola Photon 4G] antipasto:
I personally didn't get anything it just sort of hung and I just eventually popped the battery and restored from backup.
[Motorola Photon 4G] tdhite:
The kernel I made was a stock kernel built only with atags dev support turned on. It should boot, pure stock stuff other than atags.

The next question is what boot image did you start with to inject the kernel and initrd into?

Your normal boot image is in mmcblk0p11, so that's what I would start with.
[Motorola Photon 4G] phatninja55:
But it didnt. Was the unlocked phone flashed back to gingerbread first?
[Motorola Photon 4G] antipasto:
Yeah so I don't have a PC with enough ram to SBF back to stock, however I found my backup of stock so I will try that. I had used one of the rather insane CM7 ROMs available recently (kinda cool actually) but I couldn't find any other working links to cm7 stockish ROMs nor my backup. Now that I found my backup of stock I will try it. Thanks for hashing this out with me and sorry for not doing the thing I suspected could work.
[Motorola Photon 4G] phatninja55:
If your unlocked I would never sbf back to stock, you'll forever be locked again.

As for a stockish rom, cm7 will not work with the stock kernel that tdhite made.

I'd suggest the unlocked version of this rom:

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

Then flash the kernel that tdhite built and it should boot.
[Motorola Photon 4G] antipasto:
ok cool cool. i saw this rom but dev-host was downish for me this weekend. i am trying this now. i am using the altrix utils unpack and mkbootimg and basically just putting the zImage in place, generating the boot.img, and then rezipping this all back into the rom zip. i was also before your message trying to manipulate my original stock backup, and just for potential future sanity, it seems that clockworkmod is unyaffs to upack, whereas twrp is gzipped tars with the target fs apparently listed in the filename. anyway, not messing with that now, going to do the flash of the modified zip.

---------- Post added at 01:04 AM ---------- Previous post was at 12:58 AM ----------

How about:
[Motorola Photon 4G] phatninja55:
Is the atags file in proc? I'd assume so since you have that output. Could you cat it and upload it?
[Motorola Photon 4G] antipasto:
Sure thing I will here in a bit.
[Motorola Photon 4G] antipasto:
Here is a uuencoded version?

begin 75 atags

M`@````$`050$````!0!"5`````4-80(`!`````8`0507=O]"27)0!((````)

M`$%4;65M/3,R,$U`,$T@;G9M96T],3DR34`S,C!-(&UE;3TU,3)-0#4Q,DT@

M=FUA;&QO8STS,C!-('9I9&5O/71E9W)A9F(@8V]N<V]L93UT='E3,"PQ,34R

M,#!N."!U<V)C;W)E+F]L9%]S8VAE;65?9FER<W0],2!T96=R86)O;W0]<V1M

M;6,@=&5G<F%P87)T/6UB<CHQ,3`P.C$P,#HX,#`L:W!A;FEC.C(U,#`Z-#`P

M.C@P,"!S96-U<FET>3UT;VUO>6\@;6]T7W!R;V0],2!A;F1R;VED8F]O="YS

M97)I86QN;STP-#4P-S(T.30R9F8W-C$W(```````````````````````````

M````````````````````````````````````````````````````````````

M````````````````````````````````````````````````````````````

M````````````````````````````````````````````````````````````

M````````````````````````````````````````````````````````````

M````````````````````````````````````````````````````````````

M```````````````````````````&`````0@`00```0`(`````,#='T#D'P`*

M`````0@`00,````8```````!`$#D'P`*B!H0'`+``T`$`0(!````!P````$(

M`$$"````#````````````````0U!``8````!"`!!`0`!``@`````X-P?`"``

M`!8````!"`!!!````$@````!``$``````!`````0````*`4``#@%```H````

M8`4``"@```"(!0``&````*`%```H`````@`!`&ZN-<3R`P`````````````,

M````$`@`04`'````````&!@````````#`P,#`0$``%14```````````'````

M```&`````0@`00(``0`(````\+_<'P`@```%`````0@`00<````$`````@`!

M``,````!!`#Q`$````8````1"`!!`$("!#("(D!0`1```0$```0```!!3497

0`)!,````````````````````

`

end
[Motorola Photon 4G] phatninja55:
Is it possible to cp it to sdcard? Then upload it?.
[Motorola Photon 4G] antipasto:
see the uuencoed version i just posted, i was able to re-decode it. i can't seem to zip it right now on my phone, and i can't upload it from the phone for some reason, but i was able to produce that. there should be many ways to uudecode things available out there? sorry i will try later this evening if you're still having issues.

---------- Post added at 01:53 PM ---------- Previous post was at 01:50 PM ----------

see http://www.webutils.pl/UUencode to decode things online. my work pc seems to think atags is a virus and won't let me zip or do anything with it.
[Motorola Photon 4G] phatninja55:
I used that site to turn it into a bin, but mostly what i see is css code from that website.
[Motorola Photon 4G] antipasto:
How about

http://db.tt/X61wErQb ?
[Motorola Photon 4G] phatninja55:
Didn't think of this earlier, but were gonna need a module to load the atags into proc since its a kernel folder.

Did some digging and found a module made for this specific purpose. It makes /proc r/w then creates the atags.

Stuff (Being code that I don't know what to do with) can be found here: *It's for the Optimus G*

https://github.com/Shelnutt2/lg-optimus-g-S970-kexec/blob/master/proc_create/procfs_rw.c
[Motorola Photon 4G] tdhite:
Whoa! Beauty folks.

I can load the atags from a file with the kexec command. Lemme dig into creating that file. So much thanks. I will probably use the binary dump.

Everyone run up the messages and throw the thanks at them.

Let's see where we land now . . .
[Motorola Photon 4G] antipasto:
Let me know if I can help again. I van restore this image fairly quickly. The steps to make it were add the .ko files into the stock image, and replace the boot.img with one made from using unpack on the boot.IMG there, swap in the new zImage and then built with mkbootimg. Pretty easy and waiting for backups and installs was where most of the time was spent.
[Motorola Photon 4G] phatninja55:
Is it possible that the electrify and the photon have different atags?

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

I was digging throw proc and cam across this, thought it looked like Id seen it before.

# cat /proc/cmdline

cat /proc/cmdline

mem=320M@0M nvmem=192M@320M mem=512M@512M vmalloc=320M video=tegrafb console=nul

l usbcore.old_scheme_first=1 tegraboot=sdmmc tegrapart=mbr:d00:100:800,kpanic:21

00:400:800 security=tomoyo mot_prod=1 androidboot.serialno=TA212030QI
[Motorola Photon 4G] antipasto:
Part of the mkbootimg utility allows for specifying the kernel command line. This is not unlike what you can do with all Linux kernels at boot time, however, usually interactively if you want. I've used it back in the day to set terminal video modes or to ensure some driver has a specific setting but it has been years.
[Motorola Photon 4G] phatninja55:
So what i've found from other kexec bootable roms for other phones it that it uses 3 modules. 2 I have no idea what they do, nor do I remember what they are called.

One module makes proc writable so you can cat the atags to proc.

the other two I have no idea what they do, functions.ko and userspace.ko

Other notable files would be an atags file like the one anipasto posted, also the devtree.

Then theres the zImage and the ramdisk.
[Motorola Photon 4G] tdhite:
Working on it all this weekend. I have the kexec code for the load, just have a few more tweaks. I will need help only to run kexec under a normal stock kernel and attempt to load up a different one. Coming soon ...
[Motorola Photon 4G] phatninja55:
I have an overclocked kernel and ramdisk that im waiting to test.

tdhite: When you get ready for testing I'll test it for you.
[Motorola Photon 4G] tdhite:
Update, all. I got the atags loading code.purportedly working. I say purportedly because I just run it in the printout mode. Later tonight, after a few snifters, I am going to attempt to just load the da%$$#$$ thing. Cross fingers.
[Motorola Photon 4G] MarcquisDale:
Good luck
[Motorola Photon 4G] tdhite:
Well, bad news is reboot worked, but the wrong way. It ended up at the Moto logo, which.means it went awry. I'll figure it out.

The good news is it rebooted, so no more fear about testing on locked phones.
[Motorola Photon 4G] phatninja55:
Could be a problem with the kexec binary code. That's the only thing I can think of that would make it reboot instead of jump into the new kernel.
[Motorola Photon 4G] twaffle:
If the new kernel did something which caused a part of the phone to soft reset it could happen. For instance, is there a new watchdog which is used by the new bootloaders that issues a soft reset? It's not likely, chances are, a processor fault of some kind occured.
[Motorola Photon 4G] phatninja55:
Or it could be that when kexec tries to relocate the current kernel in the memory, that it fails and causes a reboot forcing kexec to halt and thus not loading the new kernel.
[Motorola Photon 4G] Indirect:
So I don't have this device and am lazy...does this run tegra or omap?

Sent from my hidden jewel
[Motorola Photon 4G] leomaxi:
tegra
[Motorola Photon 4G] kingnfs:
this mybe help the team

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

and

this

http://xdaforums.com/showthread.php?t=2115715
[Motorola Photon 4G] tdhite:
Sorry folks, been busy at work. My bet is a blown reboot vector, which is what the module sets. Dunno, just have to recompute it again.
[Motorola Photon 4G] phatninja55:
Let me know if you need any info or files from the electrify.
[Motorola Photon 4G] antipasto:
Same here maybe I can try what you got on this unlocked device.
[Motorola Photon 4G] phatninja55:
Make any progress yet?
[Motorola Photon 4G] tdhite:
So, so sorry all -- so much silence is unfair of me. Work (main priority in life) has been absolutely 'slammed'! That's a good thing (we are a consulting organization), but alas -- it cuts down on outside work. As well, my wife's store was given an opportunity to move to a far superior space by the landlord, but it was a short deal -- had to move in three weekends (actually more, but we wanted to 'git er done.'

Anyway -- after this weekend, I'm back at it. Geeze, I'm bad ... I should be more communicative. Apologies -- not gone, just delayed. :eek:
[Motorola Photon 4G] krrishvaid:
Oh... Thanks

I nearly left all the hope
[Xperia Z Q&A, Help & Troubleshooting] spoidar:
Sony's car dock is a joke - it's a generic dock for all their phones, may as well just buy some equally crappy thing off ebay for a pittance.

I'm looking for a proper dock with charging and audio-out built in. Having to plug and unplug USB and headphone jacks every time you dock and undock your phone is ridiculous. In fact, I don't know if I can commit to buying the Xperia Z without one.
[Xperia Z Q&A, Help & Troubleshooting] cheltenham2004:
Yes I am with you need a car dock with charger.
[Xperia Z Q&A, Help & Troubleshooting] Eddiemc:
Wonder if you could take the desktop cradle, glue it onto your dash, then re solder some wires to get the car plug 12v... Seriously, it might be a way if Sony doesn't release one:)
[Xperia Z Q&A, Help & Troubleshooting] spoidar:
I've considered modding the desk dock, would also require adding some sort of clip to hold it through bumps/whatever. Far from ideal though, and a fair bit of effort I'd prefer not to go to... :-/
[Xperia Z Q&A, Help & Troubleshooting] dark_and_WArr:
me to
[Xperia Z Q&A, Help & Troubleshooting] Maikel205:
Not cheap but very good car docks, only Xperia Z not yet available:

http://www.brodit.com
[Xperia Z Q&A, Help & Troubleshooting] spoidar:
Yeah, they're better than nothing I guess, but they always seem to use power cords that are moulded into the unit, and none of their stuff supports audio out.

Take a look at Samsung's car docks for their flagship phones as an example of how to do it right - microUSB input for charging (means you can take your power from whatever source you like, useful for eliminating ground loops), and a 3.5mm phono socket in case you want to connect to an AUX port on your head unit (because BT sucks).

EDIT: Oh, and particularly for the Xperia Z, a car mount that uses the dock connector - rather than USB - is extremely useful, because otherwise you've got to fiddle around opening the USB socket cover to connect a charger.
[Xperia Z Q&A, Help & Troubleshooting] dark_and_WArr:
good
[Xperia Z Q&A, Help & Troubleshooting] noxlord:
Guys, car mounts are a real pita to find. Just sayin :mad:
[Xperia Z Q&A, Help & Troubleshooting] D3_:
They seem to be stopping their good work though, all they seem to have for the s3/note 2 is a universal passive dock. The way they did it for the galaxy s 2 (i9100 version at least) was how all manufacturers should, best car dock I've owned by far.
[Xperia Z Q&A, Help & Troubleshooting] noxlord:
I have a Motorola Atrix and the official car dock. It work like a charm and you can even remove a bracket to fit a cased phone in it. Now my Atrix is dead so yeah ...

Wondering why manufacturers don't all just release official docks.
[Xperia Z Q&A, Help & Troubleshooting] diemadedrei:
any news here? Still no official dock, afaik, so has anyone heard of a third party dock for the z?
[Xperia Z Q&A, Help & Troubleshooting] cheltenham2004:
Bump
[Xperia Z Q&A, Help & Troubleshooting] marcgear:
The idea of modding a normal dock could be a good idea if a oem one doesn't surface.
[Xperia Z Q&A, Help & Troubleshooting] parapaul:
From the pictures I've seen the desk dock takes a Micro USB input so wouldn't be that difficult to mod.

Brodit bracket to fix it to the car interior, NFC tag on the dock to toggle BT, screen brightness, volume up etc. Not sure quite how you'd get the phone to stay in the dock though, particularly portrait.

Hi-tech elastic band? :D
[Xperia Z Q&A, Help & Troubleshooting] snark_be:
I suppose Brodit will release a holder for the Xperia Z similar to the one for the Xperia V. It will use the dock power connectors on the side.

I just wished they allow any micro-USB cable to the holder, not having their own soldered cable.
[Xperia Z Q&A, Help & Troubleshooting] orenxda:
"Hi

I can gladly inform you that we are going to make holders for this Sony (XPERIA Z).

We are waiting for the unit to arrive, then we probably need a couple of*weeks before launching.

Best Regard

Lars

Brodit AB"
[Xperia Z Q&A, Help & Troubleshooting] MasK:
Sounds great. Would it be only for landscape.. or portrait as well?
[Xperia Z Q&A, Help & Troubleshooting] snark_be:
They swivel, you can put them in landscape, although they're most comfortable in landscape usually.
[Xperia Z Q&A, Help & Troubleshooting] spoidar:
As others have said though, it's a shame they use soldered/molded cables, rather than allowing microusb.
[Xperia Z Q&A, Help & Troubleshooting] orenxda:
Every BRODIT holder (as other car docks usually) can be turned portrait or landscape. Mine for GTab was mounted onto a tilt swivel so you can also adjust the angle.

They usually build either "passive" and "active" (with cig lighter plug) holders.

You can mount it on a window suction cup system, or on a BRODIT Pro CLip that is the safest car fixation (different clips depending car model and position desired). if you change car you change the proclip and keep your cradle, if you change phone you keep your Proclip and change the cradle.
[Xperia Z Q&A, Help & Troubleshooting] Equerm:
Im guessing the swedish guys over at Brodit will come with one for the Xperia Z pretty soon, they got all the best car docks in my opinion.

Normally they also release a bigger version for the people who got a plastic grip on their phone as well :)

Check out brodit.se, they got mounts for most phones
[Xperia Z Q&A, Help & Troubleshooting] JooMies:
Today I was told by Brodit that cardholder will be ready within next two weeks. And it, or at least some models, will use holes at side for charging.
[Xperia Z Q&A, Help & Troubleshooting] cyleo:
That's awesome! Messing with the flappy ports was no real options for me. I hope they launch soon. Any comments on suggested pricings?
[Xperia Z Q&A, Help & Troubleshooting] RedSpiDer:
Hey! The Brodit seems to be a good option for the Xperia Z :) .

I also saw the Devium Dash , it`s only for iphones so far, but they said their working on a version for Android and Windows smart phones. I think this would be interesting if they come up with an Xperia Z option which uses the pogo pins for charging. (I can`t posts outside links yet but a quick google search will show the producers website)
[Xperia Z Q&A, Help & Troubleshooting] cheltenham2004:
At Last

http://www.brodit.com/productList.html?brand=Sony&model=Xperia+Z&pn=prod

Well it is only passive, still waiting for an active one
[Xperia Z Q&A, Help & Troubleshooting] westentertainer:
No it has to be active so it stops the need to open the charger flap every time you get in and out of the car,it would do my head in!

come on brodit we are all waiting for the active one.
[Xperia Z Q&A, Help & Troubleshooting] Tom Fagerland:
It's a start :)

Btw, is it just me, or does the passive holder look like a halfway decent wallmounted holder for home as well?
[Xperia Z Q&A, Help & Troubleshooting] XDAvidG:
Brodit looks like a very nice and secure option for using the XPZ in the car, however one would have to constantly remove the case on the phone in order to use it.

Something like this might be a better alternative for the more lazier users.

mobilefun.co.uk/supergrip-sony-xperia-z-case-compatible-car-pack-p38336

Although i agree with the majority, those flaps are pretty annoying and active Brodit mount would definitely win it for me.:good:
[Xperia Z Q&A, Help & Troubleshooting] Esspee_London:
Looking at Brodit's passive holder, although it has swivel backing, I get the feeling it may not be safe using phone in landscape position and its only designed for portrait position.
[Xperia Z Q&A, Help & Troubleshooting] snark_be:
I had the same kind of passive holder for my Galaxy S2. It worked fine in landscape, the phone would not fall of the holder.
[Xperia Z Q&A, Help & Troubleshooting] wideangle:
Looks like Brodit have an active charger on their site now "in development".

http://www.brodit.com/product.html?id=513495&pn=prod&brand=Sony&model=Xperia Z

Not sure if you can buy yet- anyone?
[Xperia Z Q&A, Help & Troubleshooting] cheltenham2004:
Can it be charged via cigar lighter