yashsingh1/xdaforums huggingface dataset:
[Android Q&A, Help & Troubleshooting] TcShadowWalker:
I've been extensively searching on this, but I just can't find any answer, although I really can't image I'm the first one to come up with this.

I have a Google Nexus 4 (rooted, of course) and I'm using the native phone encryption.

There is some information that can be found, revealing that google uses the native linux dmsetup tool for this.

Now, just in case anything goes wrong, I'd like to have a backup of the encryption master-key,

that I could use to restore the dm-crypt header.

On a normal linux system, this would be easy, only one call to dmsetup and I'm done.

However, I just can't find any info to do this on android.

The UI doesn't offer this option (as is to be expected) and I just don't know how to do it by using adb.

I've opened a root shell session and tried some commands (dmsetup, cryptsetup, some calls to "vdc cryptfs", etc...), but I just don't find a way to do it.

Has someone already found a way and can share how it's done, any ideas?

Thanks in advance
[Android Q&A, Help & Troubleshooting] TcShadowWalker:
Does no one encrypt their android phones or is concerned about integrity of their data? :confused:
[Android Q&A, Help & Troubleshooting] rondald:
I think you overestimate Android: In most cases /data partition is not larger then a few GB's on smartphone devices.

Just insert Storage card with enough free space, and do a decrypted backup (for example from CWM recovery being root):

1) Make sure /system, /sdcard, and /data are all mounted inside recovery environment

2) /system/xbin/tar -C / -cf /sdcard/data.tar data

When integrity of your data is no longer given, you can factory reset the device, start again the encryption process (which will use a new key for encryption), and then restore your userdata back:

1) Make sure /system, /sdcard, and /data are all mounted inside recovery environment

2) /system/xbin/tar -C / -xf /sdcard/data.tar

No need to play around with keys and cryptsetups or being afraid you loose data because you have encryption enabled :)

---------- Post added at 04:12 PM ---------- Previous post was at 03:14 PM ----------

To answer your initial question:

Have a small lecture on h*t*t*p://source.android.com/tech/encryption/android_crypto_implementation.html

It is said, that the "The crypto footer contains details on the type of encryption, and an encrypted copy of the master key to decrypt the filesystem".

And that "[..]the filesystem doesn't extend into the last 16 Kbytes of the partition where the crypto footer is kept".

So basically by doing a backup of the last 16KB of the partition initially was mounted as /data before encryption you are THEORETICALLY save.

I am sorry not being able to give you exact commands, but i am sure someone can post you the right partition name (e.g. for HTC vision devices it would be /dev/block/mmcblk0p26), you can do backup/restore on blocklevel using dd, which is on my current ROM located at /system/bin/dd :)

You then need to find out the size of this partition, which in my case with /dev/block/mmcblk0p26 would be:

cat /sys/class/block/mmcblk0p26/size gives yout size of partition in blocks (in my case 2234367)

Now you have to reduce this by 16KB, whish i think should be (2234367*4096-16*1024)/4096=2234363, because i think on all Android devices Blocksize is 4096 (you can check the column Blksize on output of shell command "df" on Nexus).

Commands would be then something like this:

Backup: /system/bin/dd if=/dev/block/mmcblk0p26 count=4 bs=4096 skip=2234363 of=/sdcard/masterkey.dd

Restore: /system/bin/dd of=/dev/block/mmcblk0p26 count=4 bs=4096 skip=2234363 if=/sdcard/masterkey.dd

Because 16KB are 4x4096 Byte :)

With THEORETICALLY i meant that these are my thoughts based on the implementation description, which might be accurate enough about the master key, or not (often the master key is stored on a special sector, and they only mentioned a "region" for the crypto footer), and i never tested above Backup/Restore commands, yet.

Perhaps someone better knowledged can confirm my calculations, or someone who digged in the right passages of the Android source can tell us where exactly the master key is getting stored!
[Android Q&A, Help & Troubleshooting] TcShadowWalker:
Thanks for the answer.

I'll give it a try and store a backup of that last few kb of the disk.

However, since I can't really test if a restore works,

I wouldn't put too much trust into that backup.

Thanks anyway :)
[Android Q&A, Help & Troubleshooting] mpg187:
Has anyone been able to backup their key? Anyone confirmed the commands that rondald put?

This is ridiculous that the SD card is locked to the device. I need to transfer my SD Card to a new device and should not have to reformat my SD Card.

Encryption without key management = FAIL
[T-Mobile, Samsung Galaxy SIII] Jose0726:
AirDroid is a fast, free app that lets you wirelessly manage your Android from your favorite browser. "Rated 4.8 on Market" I personally think its better than Kies

https://www.youtube.com/watch?feature=player_embedded&v=WfNnQxpw7Uw

https://play.google.com/store/apps/details?id=com.sand.airdroid&feature=search_result#?t=W251bGwsMSwxLDEsImNvbS5zYW5kLmFpcmRyb2lkIl0.​
[T-Mobile, Samsung Galaxy SIII] imilleson:
Last I checked it didn't support 4g only local area WiFi ... which is cool but some of my computers are hard lined and on seperate networks so this doesn't work in those cases
[T-Mobile, Samsung Galaxy SIII] niteh@wk:
AirDroid is beta testing V2 which support mobile data access, e.g., access via 3g/4g.

S-beamed from my GSIII via xda premium
[T-Mobile, Samsung Galaxy SIII] Qverse:
I have been using and a its a great appt. :good:.. I have been using Android commander for a few years. But this takes it up a few levels..Very Easy GUI.. imilleson is is correct to say that it work on "computers that are hard lined network and not over your 4G " .. I agree Great appt 2:Thumbs good::good: .. It would very interesting to see a appt that can work on a smartTV screen like this .. I wonder??? :cool:
[T-Mobile, Samsung Galaxy SIII] imilleson:
Nice, I just downloaded the beta and I'm excited to try it
[T-Mobile, Samsung Galaxy SIII] Qverse:
I like the fact you can view your videos right on the PC .. :good::cool:
[T-Mobile, Samsung Galaxy SIII] Don_Perrignon:
Been using this for a while, it still can't access your external memory.
[T-Mobile, Samsung Galaxy SIII] LoopDoGG79:
Sometimes if you use a custom ROM, particularly AOSP, it wont see your external.
[T-Mobile, Samsung Galaxy SIII] niteh@wk:
Try accessing system/mnt/, you should see your external sdcard there.

S-beamed from my GSIII via xda premium
[T-Mobile, Samsung Galaxy SIII] Don_Perrignon:
I'll give that a try.
[AT&T, Rogers HTC One X, Telstra One XL] geauxtigers1213:
I've looked and can't find anything to help me with this question. But what custom kernels are compatible with ViperXL 3.1.0? And can the kernel be flashed after the Rom had already been flashed? Or do they have to be flashed at the same time. I don't have the hboot that you have to flash boot.img. Thanks in advance guys!
[AT&T, Rogers HTC One X, Telstra One XL] ronnie498:
At the moment there is only the stock kernel, Elemental gives you the option to overclock etc.
[AT&T, Rogers HTC One X, Telstra One XL] geauxtigers1213:
Oh, okay then. Thanks! I'm sorry if I created a meaningless thread.
[Nexus 10 Q&A, Help & Troubleshooting] ThomasBags:
Can't really tell or understand between the Original Android Development and the Android Development sub forums.

Could someone please explain it for me?
[Nexus 10 Q&A, Help & Troubleshooting] styckx:
http://www.xda-developers.com/android/introducing-original-development-forums-for-more-devices/
[Nexus 10 Q&A, Help & Troubleshooting] (©_©):
it was my question too . TNQ
[AT&T Samsung Galaxy Note II] enzosly:
Ok so without yelling at me because last week i know this was talked about but now i cant find it. I am ready to use Jelly bam full time but the sensers do not work and i know there was a way to fix this last week but I didnt have time to do it so now im looking and cant find it. I also cant comment there because im new and dont have more then 10 posts so i have to ask here. I was then reading the jelly bam post and it said that the sensors issue was fixed so I re downloaded it but still does not work... can someone help me??
[AT&T Samsung Galaxy Note II] spawn50ak49:
I installed jellybam with 4.1.2 cm10, booted up then went back to recovery and did a factory reset and system wipe and installed jellybam 4.2 cm 10.1 and the sensors work. I'm sure you can find the older version of jellybam.

Edit you can also flash Cm10 that will do the something. Then wipe and flash jellybam
[AT&T Samsung Galaxy Note II] enzosly:
2 rows of toggles?

Next question is why is there 2 rows of the same toggles?
[AT&T Samsung Galaxy Note II] Gfrt94yn:
Great question! Beats be, but if you want to get rid of the top row, there's a mod you can flash that makes it go away
[Galaxy Note II Q&A, Help & Troubleshooting] wee99:
Does anyone know how to fix this?

Thx for helping
[Galaxy Note II Q&A, Help & Troubleshooting] EP2008:
Is that in the stock camera app?

Try manually reducing the exposure to see if that helps. That's highlight clipping, but to see that in a photo out of a stock camera app is bizarre .
[Galaxy Note II Q&A, Help & Troubleshooting] wee99:
Yes..am using stock camera app.reducing the exposure has no effect.try to use 3rd party camera app still same
[Galaxy Note II Q&A, Help & Troubleshooting] EP2008:
Does it happen with both the front and rear camera?
[Galaxy Note II Q&A, Help & Troubleshooting] wee99:
Nope..the front camera is fine. Only happen with rear (8mp)camera.but when i switch it to video mode, its not happen.
[Galaxy Note II Q&A, Help & Troubleshooting] EP2008:
Strange indeed. Perhaps try a digital photography forum. Maybe someone can identify this issue . I'd hate for it to be a hardware problem. Good luck :)
[Galaxy Note II Q&A, Help & Troubleshooting] wee99:
Yes indeed..but am thinking about driver problem..ok.thanks anyway
[Galaxy S III Q&A, Help & Troubleshooting] aussiesausage:
Hi. I just purchased a brand new I9305T 4G S3 for $950. I took it into a shop to get a sim card adapter, the idiot uses a plastic thing for it, when he pulls out the sim card. The gold pins go to and now I cannot read a sim card. On eBay there is a sim card reader replacement for a I9300 for $18 BUT I have a I9305 the 4G if I buy it will I Still get 4G service or not? The other matter of him breaking it is being dealt with. Please help as I'm very pissed off and don't want to be $900 down the drain.
[T-Mobile, Samsung Galaxy SIII] .BetaBoy:
5 hours and 40 minutes to charge?

I have tried calibrating my battery with an app that has worked in the past but out doesn't seem to be working?
[T-Mobile, Samsung Galaxy SIII] mattedwards2686:
Ive never timed mine, but I can tell you that using a cord other than the factory one will extend your charging time by a lot! I believe mine typically takes 3.5- 4.5 hours though from under 10%
[T-Mobile, Samsung Galaxy SIII] shahkam:
Use a nexus 7 charger it will charge in 1h30 or not even.
[T-Mobile, Samsung Galaxy SIII] jcbofkc:
With USB fast charge enabled it usually takes a little over two hours to charge from 10%.

I suggest trying a different cable. I have seen vast differences because of the cable.
[T-Mobile, Samsung Galaxy SIII] Matrix_19:
from 0 to 100% it is about 2.5 hours
[AT&T Samsung Galaxy Note II] mrevankyle:
Mind elaborating a little bit. What are you hoping to achieve?
[AT&T Samsung Galaxy Note II] kenfly:
I always charge my phone from my computer. Consider the following.

Fast charging kills the overall life of your battery. The wall chargers that come with the phone are manufactured for cheap and space constraints. These chargers are very bad at maintaining a constant/ consistent charge. They fluctuate. And fast chargers are only worse. This kills your battery.

Now look at a desktop computer. The power supplies have to adhere to VERY STRICT specifications to eliminate fluctuations that could ruin computer internals. These power supplies maintain a consistent and NON fluctuating power delivery. Better at keeping your phone battery life from degrading. Yeah usb is slower but honestly I plug it up at night and go to bed. Even on a half charge. It won't hurt as much as the cheap chargers that plug into the wall.
[Android Software/Hacking General [Developers Only]] noob924:
Hi I'm having trouble finding a good ROM with no T-Mobile bloatware and one that uses the tllg2 radio and is using jelly bean Cm10 is great but I would like to have a pure Google ROM for my phone.
[Android Software/Hacking General [Developers Only]] noob924:
Anyone found a rom yet?
[Android Software/Hacking General [Developers Only]] eddydc1:
and the phone is?
[Android Software/Hacking General [Developers Only]] noob924:
SGH T989D
[Android Software/Hacking General [Developers Only]] noob924:
no rom

No rom yet?
[Galaxy S II Q&A, Help & Troubleshooting] gasanmaunduh:
i have sgs2 with ics kernel version3.0.15-I9100XWLPF-CL592261 dpi@DELL126#3. Then i root with CF-Root-SGS2_XW_OXI_LPF-v5.5-CWM5.zip. its work fine but i have some problem with Bluetooth and Camera. The BT won't be enable (couldn't turn on) and the Camera is blank (black screen) but i can take the picture. Any suggestion on that problem? there is an update for that root kernel?please help me
[Galaxy S II Q&A, Help & Troubleshooting] app1epie:
I am also facing the same problem :D

Still searching for solution here.
[Galaxy S II Q&A, Help & Troubleshooting] immortalneo:
That sounds like a kernel issue. Try another kernel, like Siyah or dorimanx...:)

"To err is human, to forgive is divine"

Sent from my SGS II
[Galaxy S II Q&A, Help & Troubleshooting] app1epie:
Thank you immortalneo, i had flash SiyahKernel S2-v5.0.1 to my i9100, and my camera and bluetooth is back, :)

Next step... figure out how to flush cutom ROM... :laugh:
[Galaxy S II Q&A, Help & Troubleshooting] immortalneo:
Ur welcome..

CF Root kernels sometimes have such issues, so most people switch to stock kernel once rooting is over. :)

Siyah kernel is very good too..

U can find good guides on flashing custom ROMs and using CWM recovery over here at XDA. And the specific custom ROM threads also give detailed instructions. :thumbup:

Please add [SOLVED] to the title of ur post, so that others with similar problem can get help too.

"To err is human, to forgive is divine"

Sent from my SGS II
[HTC One S] bstylz911:
what car DOCK or CRADLE do you guys us?

on my htc sensation my car cradle also charged my phone which was the best!

any suggestions?
[HTC One S] RussianBoots:
I actually picked mine up from some kiosk at the mall. Pretty handy thing as well, it charges while docked which I love.
[HTC One S] adacali:
I'm using official htc one s car dock..
[HTC One S] hbforce:
hbforce

it is the best one ever !!!!
[HTC One S] radar5:
where do you find the official car dock?
[HTC One S] PuffDaddy_d:
This is the cheapest one I've found so far - all others are nearly twice the price :-o check youtube for demos of it in action

http://www.ebay.com/itm/HTC-CAR-D10...531020?pt=PDA_Accessories&hash=item20cffeba4c
[HTC One S] mugzy:
I just go the iBolt for the One X. My One S with a gell type case fits great!

http://www.amazon.com/gp/product/B008B0WNA6/ref=oh_details_o03_s00_i01?ie=UTF8&psc=1
[HTC One S] rcdreamer:
I have been eyeing the ibolt dock. I really like that you can use this with a case on the phone. I found the one specifically designed for the One S, but its about $10 more than the one in your link.
[LG Optimus 2x] muditj14:
Hey friends i have used the ROM from given post

but problem is that i can't change up to any other ROM now.

i want to install either

or

but i can't install them.

i wiped each n every thing. plz help me!
[LG Optimus 2x] starkiez:
What is the error msg?
[LG Optimus 2x] Darkmind82:
So we need a bunch of informations from you.

Which Bootloader are you on

Which sd Format is it (GB or ICS)

Have you Root

Is Your Bootloader unlocked.
[LG Optimus 2x] muditj14:
it is ICS i think. i have came from ICS 4.0.4 to MIUI's rom.

Yes its rooted.

Don't know whether my bootloader is unlocked or not.

When i install a new rom after performing necessary wipes and reboot, it comes back to Xiaomi logo and MIUI's rom start but its apps and processes stop every second.

The installation of new roms that i flash says success but on rebooting MIUI comes even after installing roms.

i use CWM 6.0.2.5.

Tell me what other information you want.
[LG Optimus 2x] chevellemendes:
You must unbrick the phone, if you came form ICS you have new boot and that MIUI with new bootload and cm7 works with oldboot.
[LG Optimus 2x] rockyy:
Try this guide: http://xdaforums.com/showthread.php?t=2058231
[LG Optimus 2x] chevellemendes:
Rockyy, but he wants to trie the 2 options he tell, oldboot. That is with newboot.
[LG Optimus 2x] rockyy:
good... then he should try this: http://xdaforums.com/showthread.php?t=1975274 :D
[LG Optimus 2x] chevellemendes:
That´s what i mean :good:
[LG Optimus 2x] muditj14:
its running fine with MIUI's rom...

is my phone bricked?
[LG Optimus 2x] Darkmind82:
Well no... :cool: but you if you are on ICS Bootloader you cant install an rom based on GB Bootloader and vice versa.

ALWAYS Check in the rom description which Bootloader is it for. Some rom´s even need to flash an own CWM Recovery File to get it work Propperly.
[LG Optimus 2x] chevellemendes:
If you want to put cm7, you must to change bootload, and for that you must unbrick.:)
[LG Optimus 2x] solrakk6:
for unbrick followe this great senior .. http://xdaforums.com/showthread.php?t=1715272

that will unbrick your phone, .. after you can install a stock GB via

smartflash

or the ics.. you choose!

good luck

;)
[LG Optimus 2x] rugglez:
Uh, unbrick? Why is all this unbrick talk going on here, he says that his phone isn't bricked, so there's no need for that.

Are you able to boot into cwm by pressing vol down while powering on the phone? If yes, just flash the desired rom if you know which bootloader you are on.

Else, if you are not sure of bootloader, use aio toolkit. Download toolkit, install nvflash drivers in that, then select option 4, and follow the process. Select old/gingerbread bootloader when asked, and cwm version of your choice. Then put a Rom in sd card and flash in recovery.
[LG Optimus 2x] muditj14:
Thanx bro it worked! now on CM 7.2.

Your work is awesome!
[LG Optimus 2x] chevellemendes:
Hey Rugglez.

But the process is the same for what muditj14 wants to do, am I wrong?. I never said it was brick. What I meant was that in order to change the boot, he must pass for process of "unbrick".

Perhaps the definition of exchange boot is not being the right one by me and I apologize if that induce someone into error.:o
[LG Optimus 2x] rugglez:
Good to hear :)

Hey mate, what you said isnt a wrong method, but I just suggested AIO toolkit method because its so much simpler and less time consuming. Ultimately, the end result may be the same, but spyrosk has made the toolkit so user friendly that even someone without knowing anything about NVFlash can easily use it. It installs the required drivers by itself with the click of a button, and shows step by step selection of which bootloader, partition size, recovery etc. to flash, and is very safe to use :)
[AT&T Samsung Galaxy S II SGH-I777] scortez78:
After flashing cm-10.1-20130122-NIGHTLY i777 rom I have no visible signal bars,

But I can make calls and use data but I don't know how many bars I have. Other than that no problems with tom.
[AT&T Samsung Galaxy S II SGH-I777] 122ninjas:
Reported bug. Please keep cm10 things in the cm10 thread

Sent from my GS4 running CM11 Kandy Kane
[AT&T Samsung Galaxy S II SGH-I777] upaj25:
I am having same problems,too.
[Android Software Development] Papa Smurf151:
http://thenewboston.org/list.php?cat=6

I ran across this from a friend of mine. The info here will help even the top notch android devs. I know I've just started using it and its invaluable. Its a list of hundreds of ways of programming techniques listed into subcategories all using XML and java Coding. Enjoy and share

XDA Moderator
[HTC Amaze 4G] ziggy46:
Ok fellas, me and sportsstar have been working on getting us official Team Venom support for awhile now. And i've finally done it! :) (well the porting part at least) So i need a couple people from here to test for me, and report any and all bugs you find w/ a logcat.

Im only going to pick 3-5 people

Requirements:

Knowlege of ADB (logcats)

How to flash a rom

How to flash correctly if S=on

Detailed responses

I will pm you with a link if you are selected.

Selected users will know who they are because they will receive a pm with the link

Note to mods: We DO have permission this time. If you'd like, i have the pm's to prove it.
[HTC Amaze 4G] chevycowboyusa:
Me me me!

---------- Post added at 08:40 PM ---------- Previous post was at 08:38 PM ----------

I've been around from my first g1. I have a ADB set up. And I have experience with venom. Thanks in advance for your consideration!
[HTC Amaze 4G] hasoon2000:
I can be an "un-official" tester meaning I can test it when I can.
[HTC Amaze 4G] jhenderson81:
I am addicted to flashing, fascinated with innovative wireless development and have two separate notebooks ready to go! (a Lenovo dual booted with windows7/ubuntu 12.04 and a Dell "...."/ubuntu 12.10.) I have come a long way since flashing playful god on my ascend and so has the community, So let me make a direct contribution so all if us amaze addicts can hurry up and taste the sweet venom! ;)
[HTC Amaze 4G] KT-82166:
I'm on Bulletproof (I know how to flash)

I'm S-off

I got a thanks from sportsstar for posting a CM10 logcat (knowledge of log cat)
[HTC Amaze 4G] gogjhan:
I can if needed. but we already have one port i dont remeber from who. and it is working good only bluetooth is broken)
[HTC Amaze 4G] ziggy46:
from me lol... but it got taken down due to lack of permissions. i fixed that problem though
[HTC Amaze 4G] Double0EK:
I can test but my laptop charging port broke and now won't power on so I won't be able to use ADB for awhile. But I'm S-Off and I've flashed every Rom that was posted and tested it for atleast 48hrs unless it was unstable. I'm actually using ViperS 1.4.1 that I dug up in Sports goo.im.

But if you have enough people then I can wait a few days.

Thanks for hookin everyone up with your contributions.
[HTC Amaze 4G] Lavell11:
ViperAmaze 1.6.3 can't wait til this drop Team NightMare ...Let's Get It...:D
[HTC Amaze 4G] nitsuj17:
sounds good so far :good:
[HTC Amaze 4G] zandgreen:
Im currently using the 1.4.1 ported version on the amaze, the only thing i can report so far, nightmare kernel looses any custom configuration after reboot. For the rest it seems to be very stable.
[HTC Amaze 4G] wolf_7669:
I'm your huckleberry......

Usually use Catlog for the logcats, but can lookup and use the ADB commands if needed.
[HTC Amaze 4G] Shadow Samurai:
I'm up for it.

Sent from my Energized HTC Amaze!
[HTC Amaze 4G] iKilla:
I still have the first port Lol.. I was using it yesterday Lol..
[HTC Amaze 4G] chevycowboyusa:
In so excited I'm going back to the first venom again!

I really like sense better.
[HTC Amaze 4G] iKilla:
+1 but I like ASOP.. because it look simple and straight forward..
[HTC Amaze 4G] daorderdillon:
link

so where is the download link dont see any for my amaze
[HTC Amaze 4G] vinniej:
Read the first page. Beta testers only yo.

Willing to help test if needed.
[HTC Amaze 4G] CalicoJeb:
The first Venom is my DD...with Faux kernel I get about 36hrs.....I am not a Sense fan but Venom I really like
[HTC Amaze 4G] ziggy46:
sending out beta links now... If you are chosen to get to test this, please do NOT mirror this anywhere. or re post it on this forum or another forum.
[HTC Amaze 4G] chevycowboyusa:
Why not just go to a straight aosp ROM?

Sense just seems to bloat everything.

There are things that i love about sense. But i can get them as addons on aosp.

In here playing with all these ROMs because i have nothing better to do and i like doing this.
[HTC Amaze 4G] chevycowboyusa:
Has anyone noticed a very long lag time when going back to the home screen?