yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Nexus] osm0sis:
Might still be good since from the short diffs so much was clearly in common.

The other good news is not all the stuff in common is empty padding. ;)

I just ran comm -1 -2 on each set of locked, and then set of unlocked to find what each locked has in common and unlocked has in common, then I ran diff on those. It's possible our magic string to unlock is in here.

diff comm-locked.txt comm-unlocked.txt:

987c987
< 0004010: [color=red]00[/color]00 0000 0000 0000 0000 0000 0000 0000 [color=red].[/color]...............
---
> 0004010: [color=blue]01[/color]00 0000 0000 0000 0000 0000 0000 0000 [color=blue].[/color]...............
1087a1088
> 00046d0: 0000 0000 2cf8 f488 c857 f288 0000 0000 ....,....W......
1090,1093c1091,1100
< 0004700: 8424 f488 d100 f188 [color=red]13[/color]00 0000 1d01 f188 .$......[color=red].[/color].......
< 00047a0: ffff ffff 0100 0000 c824 f488 7c24 f488 .........$..|$..
< 00047b0: [color=red]a824 f4[/color]88 [color=red]745f[/color] f488 [color=red]49e3 f088 17be f0[/color]88 [color=red].$.[/color].[color=red]t_[/color]..[color=red]I......[/color].
< 00047c0: 0000 0000 0000 0000 584f f488 dfbf f088 ........XO......
---
> 0004700: 8424 f488 d100 f188 [color=blue]15[/color]00 0000 1d01 f188 .$......[color=blue].[/color].......
> 0004730: 3a20 6f65 6d20 756e 6c6f 636b 0a00 6f6d : oem unlock..om
> 0004740: 0d00 f188 4835 f488 97f8 f488 0200 0000 ....H5..........
> 0004750: 0400 0000 91fd f088 0000 0000 6074 f388 ............`t..
> 0004760: aca0 f488 0200 0000 0400 0000 79b9 f088 ............y...
> 0004770: 0000 0000 0000 0000 0000 0000 0200 0000 ................
> 0004780: e458 f388 a1f8 f088 0000 0000 6074 f388 .X..........`t..
> 0004790: ffff ffff 0100 0000 bca0 f488 d424 f488 .............$..
> 00047b0: [color=blue]6074 f3[/color]88 [color=blue]1c00[/color] f488 [color=blue]0100 0000 a000 f4[/color]88 [color=blue]`t.[/color].[color=blue]..[/color]..[color=blue].......[/color].
> 00047d0: 0000 0000 bc84 f388 0000 b088 f0b4 f088 ................

Edit: Added in the color coding from what I found below. You can see those 3 changed offsets are really the only ones that match.

[Attachment removed - unneeded.]
[Samsung Galaxy Nexus] osm0sis:
I just tackled it from the other direction too. I diff'd efrant's locked and unlocked dumps. Then I diff'd Kyra's locked and unlocked dumps. Then I ran comm -1 -2 on those diffs for the following.

comm -1 -2 diff-ef.txt diff-ky.txt:

1026c1026
< 0004010: [color=red]00[/color]00 0000 0000 0000 0000 0000 0000 0000 [color=red].[/color]...............
---
> 0004010: [color=blue]01[/color]00 0000 0000 0000 0000 0000 0000 0000 [color=blue].[/color]...............
1121,1123c1121,1123
1125,1127c1125,1127

That byte difference at 4010 seems like a common occurrence any way you analyze it. Could it be as simple as flipping that byte?

Edit: Found two other lines that match as changed that comm missed due to the different offsets in the diff files. Seems like these 3 are it for whole lines.

< 0004700: 8424 f488 d100 f188 [color=red]13[/color]00 0000 1d01 f188 .$......[color=red].[/color].......
> 0004700: 8424 f488 d100 f188 [color=blue]15[/color]00 0000 1d01 f188 .$......[color=blue].[/color].......

< 00047b0: [color=red]a824 f4[/color]88 [color=red]745f[/color] f488 [color=red]49e3 f088 17be f0[/color]88 [color=red].$.[/color].[color=red]t_[/color]..[color=red]I......[/color].
> 00047b0: [color=blue]6074 f3[/color]88 [color=blue]1c00[/color] f488 [color=blue]0100 0000 a000 f4[/color]88 [color=blue]`t.[/color].[color=blue]..[/color]..[color=blue].......[/color].

Could still be a few other specific bytes matching as changed scattered throughout though (or not? diff would catch them, right?), but these ones are the definite matches from both methods for analyzing I just tried.

Edit 2: Still offsets 4010, 4700 and 47b0 across the 3 dumps (1 from efrant: JOP40C + 2 from Kyra: JOP40D and JOP40C) that I've compared so far.
[Samsung Galaxy Nexus] efrant:
Nice! Good work!

Since I feel fairly confident that the misc partition is not part of the bootloader, I'm willing to change that byte on my device if someone spits me out the correct command.
[Samsung Galaxy Nexus] osm0sis:
I think the easiest way to test it would be to take your own locked dump, then alter those three changed lines to their unlocked states. Then write that modified-locked dump to see if it does the trick. Any hex editor, like HxD, would work.

I have nowhere near the experience of segv11 or scary_alien with diff and reading dumps and all that but if you feel confident enough I can make those changes and attach the modded misc-locked.

---------- Post added at 09:14 PM ---------- Previous post was at 08:57 PM ----------

Done. Attached is the modded locked misc dump zipped up to save space. Unzip and try writing it over your misc partition while the bootloader is locked.

Edit: Attachment removed. It just occurred to me that you aren't on JOP40C anymore so you probably shouldn't be flashing the dump from 40C. Didn't realize until just now that your dump wasn't from your current setup. If you want to upload a fresh misc dump from your JOP40D locked I'll make the changes, or you can make them yourself just as easily.
[Samsung Galaxy Nexus] segv11:
My initial hunch was that it was 0x0004010; this analysis seems to back that up. Sorry that I've been away from XDA for so long; I've been watching the thread but too busy to contribute.

I'll post a dd command this afternoon if nobody gets to it first.

Sent from my 4.1.2 toro Bugless Beast.
[Samsung Galaxy Nexus] osm0sis:
For the N7 from what I've seen it's got to be encrypted, and my guess for the key is some combination of bootloader version number and device S/N since it's unique based on both those variables (bootloader version and per-device). Too many ways they could use those to form a key, so I think we're out of luck unless segv has any ideas. scary_alien mentioned the idea to me before that perhaps there could be an advanced option in BootUnlocker to enable N7 lock/unlock, with it backing up the boot0 images itself and using them to lock/unlock. It would have to store the checksum of the current bootloader and force the user to make new backups whenever the bootloader has changed.

---------- Post added at 12:19 PM ---------- Previous post was at 12:11 PM ----------

No idea how to change specific offsets with dd so it's all you, my friend. ;)

What about those other 2 offsets that definitely change, 4700 and 47b0?
[Samsung Galaxy Nexus] scary alien:
Sorry guys for not seeing these most recent posts before now...been a busy week :p.

I'll try to pull out the dd commands I've used in my app (slightly different from segv11's) and post the template here (hopefully shortly after lunch :)).

Cheers!
[Samsung Galaxy Nexus] scary alien:
dd commands for single-byte manipulation

Okay, without specifically filling-in the partition names, here's the format of the dd commands that I've used in my app for changing a byte in a particular partition (I think they are slightly different than how segv11 did it in his awesome app (thank you again for that)--I had issues with my version of busybox and dd and settled on the following):

where <offset> is "RecordCount" (a byte count in this case since our record size is 1) and is the number of bytes to skip into the partition.

Let me know if you have questions.

Thanks,

-SA
[Samsung Galaxy Nexus] segv11:
Stock android toolbox includes dd, so no need to introduce a busybox requirement into the app. The n4 is like the n10 (and unlike the GNex) in that locked appears to be 0, and unlocked is 1. The following code should unlock the bootloader; use \x00 instead to lock it.

echo -n '\x01' | dd obs=1 count=1 seek=16400 of=/dev/block/platform/msm_sdcc.1/by-name/misc

If these work on more than one N4, then I'll produce a beta version of the app to try.

NOTE: conv=notrunc is only necessary when dd'ing on regular files (ie dumps). Since we are writing directly to the block device, dd would not truncate anyways.
[Samsung Galaxy Nexus] segv11:
I'm hoping that it's just the first one; if that doesn't work for efrant, then we will try the others.
[Samsung Galaxy Nexus] osm0sis:
Cool. :)
[Samsung Galaxy Nexus] drose6102:
Here you go osm0sis
[Samsung Galaxy Nexus] scary alien:
Thank you, sir!

I've updated my post above to also include your (admittedly better :)) commands.

Cheers!

:)
[Samsung Galaxy Nexus] efrant:
Success!

I can certainly confirm that this does work on my N4. Writing 0 to that location locks the bootloader, and writing 1 to it unlocks it. Everything else on the device works as it should, and no data loss.
[Samsung Galaxy Nexus] osm0sis:
Sweet! I wonder what the other two matches do though.. Maybe they're part of the command history section and since you both enter the same commands to lock/unlock that's why they match.
[Samsung Galaxy Nexus] segv11:
Okay. We have a candidate command. I can produce a beta using it. Do we have other testers?

Sent from my 4.1.2 toro Bugless Beast.
[Samsung Galaxy Nexus] segv11:
Even though we don't have confirmation from a second phone, I went ahead and produced a beta. PM me if you want to test. Efrant, your beta is on its way...

Sent from my 4.1.2 toro Bugless Beast.
[Samsung Galaxy Nexus] osm0sis:
I PM'd KyraOnFire, drose6102 and a helpful guy I remembered from the GN franco.Kernel thread who recently switched over to the N4 to see if they'd beta test, but no responses yet.
[Samsung Galaxy Nexus] efrant:
Works as advertised. Thanks!
[Samsung Galaxy Nexus] segv11:
Thank you. Since I don't have a Nexus 4 to test with, I would feel more comfortable if we had another tester, especially one with a different bootloader version, to test this before releasing it into the wild.

Sent from my stock 4.2.1 manta
[Samsung Galaxy Nexus] drose6102:
I will try to pull the log files tomorrow. I think everyone's is the same but I have verison makoz101
[Samsung Galaxy Nexus] CaspaTheGhost:
N4 beta tester reporting for duty!

I'm the other guy Os mentioned, had a quick peruse of the thread so know where we currently are.

Sent from my Nexus 4

---------- Post added at 03:19 PM ---------- Previous post was at 03:12 PM ----------

Same version here.

Sent from my Nexus 4
[Samsung Galaxy Nexus] efrant:
I'll get El Daddy on board as well.
[Samsung Galaxy Nexus] El Daddy:
Hey all,

Sorry, I can't test the app right now. I haven't unlocked my bootloader yet. I'll be rather busy the next few days with Christmas so I won't have time to go through the process of restoring everything, etc.. I'd be glad to help after things settle down a little bit if you still need me!

Great work so far everyone!
[Samsung Galaxy Nexus] CaspaTheGhost:
Great work man, worked perfectly for me also.

Sent from my Nexus 4
[Samsung Galaxy Nexus] osm0sis:
It'll be hard to test it on an older bootloader version... You'd basically have to get someone who has just bought it and get them to not apply the out of the box OTA. :(
[Samsung Galaxy Nexus] efrant:
Agreed. And it was only the first batch that came with the old bootloader and JVP15Q. Mine came shipped with the newer Z10I bootloader and with JOP40C. Unless someone specifically dumped all the partitions before updating, I think we'd be hard-pressed to find someone with the older bootloader.
[Samsung Galaxy Nexus] CaspaTheGhost:
Yeah, can't see that happening!

Sent from my Nexus 4
[Samsung Galaxy Nexus] segv11:
We'll just have to be careful to check when a NEW bootloader comes out, as we will with the N10.

Sent from my stock 4.2.1 manta
[Samsung Galaxy Nexus] segv11:
I've sent out 5 betas. Of those one can't test yet, and the other 4 had success. I'm going to push this live. Thanks to all of you for the dumps, the analysis, and the testing.

Sent from my stock 4.2.1 manta
[Galaxy S II Q&A, Help & Troubleshooting] awsom50:
Hello. I'm running ressurection remix - the latest version and there is a process and service called tvout. The system app is tvout.apk - my question is what is this app for? I couldn't find its description anywhere.
[Galaxy S II Q&A, Help & Troubleshooting] Zoidroid:
This app should allow you to connect the gs2 to external monitor, using the microusb port. Like here
[Galaxy S II Q&A, Help & Troubleshooting] cyberboob:
Really? This one is hard to figure out? lol just making a little fun.

Yes as Zoidroid said, it's app that allows you to connect to your tv with microusb to hdmi cable like this one: HDTV Adapter.

Now if you not using it... you can just Force stop it (and disable if option available... or freeze with TB).
[Galaxy S III Q&A, Help & Troubleshooting] eviltango:
Is the galaxy s 3 that Bell Canada is selling is waterproof? If so please post link, leave other related comments below, thanks

Sent from the Noteorious BIG 5.3 " Bell Canada
[Galaxy S III Q&A, Help & Troubleshooting] member68:
It's not waterproof. Don't try it.
[Galaxy S III Q&A, Help & Troubleshooting] joshnichols189:
Sure, if you dunk it in water it will still work if you let it sit in a bag of rice for a week.
[Galaxy S III Q&A, Help & Troubleshooting] eviltango:
Thanks member 69

Sent from the Noteorious BIG 5.3 " Bell Canada
[Galaxy S III Q&A, Help & Troubleshooting] oliver005:
Well, as a title says I'm unable to install some apps (games / apps / tools). I press on .apk file, it shows permissions and such but I can only press "cancel" button, because "install button" doesn't works. Looks like something is checking if the .apk is legal or not. Also when trying to switch to package installer from task manager I can't, it's also inactive, but other open apps are working as well (can switch to them).

Anyone can help me please?

Thanks in advance!
[Galaxy S III Q&A, Help & Troubleshooting] Zanith:
Have you enabled installing of non-market apps?
[Galaxy S III Q&A, Help & Troubleshooting] oliver005:
Ah, found what caused the problem. It was Lux auto brightness.
[Galaxy S III Q&A, Help & Troubleshooting] oliver005:
If you won't enable it, you will get the message "non-market apps blablabla". You won't get to the point where you can press "install" and "cancel".

But the case is closed, found the solution.
[Xperia Arc Q&A, Help & Troubleshooting] punyaw:
guys,,i really need your help i got a sony ericson xperia arc s upgraded to ICS 4.0.4, i followed all the instructions provided by sony support before upgrading,i can say the process was very smooth and done successfully but when i played deadspace,shadow gun,riptidegp and n.o.v.a 3 ,it crashes or forced close,even the very simple apps like dictionaries crashes/stucked. sometimes i need to remove the battery just to reboot my phone so i can use it again,these games works perfectly when i still have the gingerbread os..by the way i use pc companion for upgrading..i really don't know what to do i wish i didn't upgrade my phone to ICS...it makes my phone a crap! can somebody help me regarding this?any helpful advice will be appreciated..thanks!!
[Xperia Arc Q&A, Help & Troubleshooting] arpith.fbi:
dude i really recommended you to flash a custom 4.0.4 kernel..and you will definitely see the difference..well gaming is not tat good on ICS..but some custom kernel makes games fly on ICS..check them out..

first i would advice you to try arconium 4.0 as it is the best custom stock ROM
[Xperia Arc Q&A, Help & Troubleshooting] Overdose1986:
+1

another good rom is KA20, but arconium still the best, fastest and less bugs
[Xperia Arc Q&A, Help & Troubleshooting] punyaw:
thanks for the suggestion..can you pls. give me a download link of arconium 4.0 or if there's a link of tutorial for rooting arc s...im so sorry im very noob regarding rooting...:(:crying::crying:
[Xperia Arc Q&A, Help & Troubleshooting] arpith.fbi:
just flash arconium..it is pre-rooted..if you want even better performance then flash custom kernel too..Xarc and ArcKnight are equally good
[Xperia Arc Q&A, Help & Troubleshooting] punyaw:
okay i'll try to flash arconium then i'll get back to you let's see what will happen..thanks:crying:
[HTC Rezound] xv-6800:
Does anyone know where the E-Mail account settings files are kept? A replacement phone is scheduled to hit me on Wednesday, and if I can help it, I would prefer not to setup my myriad of e-mail accounts all over again. It sure would be nice if I could just copy them to my computer and copy them back to the replacement phone.

TIA
[HTC Rezound] kzoodroid:
I solved that problem by forwarding all my email accounts through gmail.
[HTC Rezound] xv-6800:
I prefer to have separate accounts, as discussed in posts #11 and #13 of the thread below:

http://xdaforums.com/showthread.php?p=27810568#post27810568
[HTC Rezound] a.mcdear:
So in other words, you can't simply use gmail because its too much hassle to remember to select the correct account to reply from?

I believe most settings info is stored like this:

/data/data/nameofapplication/
[HTC Rezound] xv-6800:
What do you mean? The way I have it set up ENABLES me to select the proper account to reply from. Google does not offer this capability.

Regarding the path:

I have a .data folder on the root. Inside that is a nested mail folder which contains nothing but another empty nested folder entitled attachthumb.

Do I need a special app to see what I need to see?
[HTC Rezound] a.mcdear:
Don't know what you're talking about because i'm using the stock Android AOSP version of the gmail app and I have 5 accounts set up on it and can select which one to reply from. It automatically selects the correct account if I simply hit "reply" from an email, however I can force it to reply from any other of my accounts too. Not all gmail accounts either. I can send mail from my cox.net account directly from the gmail app on my phone.

Anyways, you need a root file explorer. You will go to the "/data/data/" directory, then look for a directory containing the name of your email app (like /data/data/com.google.android.gm/ for gmail, etc)

That directory contains the settings and data from that app. Copy it, place on your new device in the same folder after installing the app on the new device.
[HTC Rezound] xv-6800:
I think there may be a misunderstanding here. My phone has 2 apps. One is entitled Mail, the other entitled GMail. The GMail app only allows for GMail accounts. I am using the other Mail app. KZOODROID said he was forwarding his other accounts to a GMail account, which does NOT allow what you and I are doing with the Mail app. Not even logging into GMail via a web browser allows you to do this, because on the web replies still go with GMail text saying "Sent of behalf of..."

FWIW, the Mail app on the phone does NOT select the correct account if you are using your GMail account to POP another account, or you have other accounts set to forward to your GMail account, and those messages are pushed via GMail. In both those instances, when you hit Reply, the reply will be sent via your GMail address. You MUST select the desired account you want to reply from (provided you have it setup in the Mail app), if you want the reply to be seen as being sent from the same address that it was originally sent to. ;)

Now, if you truly are pulling mail from your other non-GMail accounts (or the messages are being pushed from those mail accounts' servers), then yes, when you hit Reply on any of those messages, it's just like hitting reply on a regular mail client on a desktop computer, and the replies take on reply information from the respective mail accounts.

I figured as much. Does the root file explorer get installed on a PC, or is it an app you download to the phone, and then use on the phone to copy such values to an SD card?

Any suggestions on which root file explorer?
[HTC Rezound] kzoodroid:
In the gmail app, hit menu then compose, at the top of the new email is a pull down menu with your @gmail.com account listed first and a down arrow. If you open this menu all your email accounts linked to gmail are listed with the option to send as for any account. I believe you can only add the accounts to gmail from a PC, at least that is how I set it up under the settings button, check mail from other accounts, send mail as, import mail and contacts, its all there. This way you never have to worry about adding multiple accounts again or copy files, its always there from now on.

Root Explorer is an app in the market, cost a buck I think, well worth it. ES File Explorer does the same thing and can connect wirelessly to other devices and is free. I use both.

Edit: calling it forwarding was probably the wrong term to use as you are granting gmail permission to check for email on the other accounts and if it finds new emails it grabs them and pushes them to your phone. You can then repond to them either using the account they came from or with your gmail account as I described above.
[HTC Rezound] kzoodroid:
You have to be rooted to access the files using a file explorer.

When I send emails through gmail on my phone using the send as function I'm not getting anything like you are talking about in my emails. They show up as being sent from the account I choose not from gmail. However if you right click the email, select properties then open up details you see that it came from the gmail account but its buried in all the lines of code. And how many people actually do this? My clients that I work with don't really care where an email came from just that I answered. If I worked for a larger company like say Verizon than I could see that it matters but then again I'm not having that problem with gmail it works just as described for me.
[HTC Rezound] a.mcdear:
I don't know what I did, but mine no longer say "sent on behalf of..". I believe it was something I configured on the gmail settings from the website, not from the app on the phone, but the settings have carried over.

If I send email from my cox account, it comes to you from myaddress@cox.net. If I send you an email from my work address, it similarly comes from myaddress@cstools.com.

I use the stock gmail app for all emails. I've removed all else, exchange, mail, etc. So I know for a fact that gmail will work the way you want it to, its just been so long since I've set it up that I can no longer tell you what I did.

as far as copying your files from one phone to another, you will need to be rooted, and you will need a file explorer. This is something like ESFile Explorer from the play store. Its installed on your phone, not the computer. You shouldn't need a computer for anything, actually, after you're rooted. All of this stuff can be done with simple apps and your sdcard and your phone(s).