Question about the phone as in the subject - is the need to set the internal memory so that it is seen as a USB mass storage to recover lost data. It is about data in the phone's memory, so the less it is installed, the better - it is even a sensitive matter. I turned on debug mode, however for USB there is only MTP, PTP, charging mode and additionally Enthernet USB appeared. Mass storage Anyone know how to turn it on?
Debug mode enabled. Additional options have appeared. For USB this is USB Enthernet. The USB itself works correctly, just no mass storage option, it is MTM (seen as a player then), PTM (as a camera), only charging (I have not tested) and Enthernet (not tested). I read that from Android 4 or 5 Google simply removed this option and must be activated with an additional soft. I continue to verify how it will work - I will describe it. If anyone knows something more then a request for info.
First, make root on your phone. 2 install the UMS Enabler application (at least on S4 and Android 5.0 worked). And the phone should be visible as a mass storage link https://www.4shared.com/mobile/q1dYVmDyca/UMS_Enabler_162.html of course we are talking about the internal memory of the phone not partitions with the system.
Root done. USB Enabler only supports the SD card. Since the goal is to recover data, I am interested in everything that can be done at home (without soldering, without buying expensive equipment) a dump / sectoral copy of the internal memory in some human format (probably there is some ext).
The easiest way is to put TWRP, start it and start "adb pull / dev / block / mmcblk0 mmcblk0.img" on your computer. Instead of mmcblk0 there may be a specific partition, e.g. userdata, but you need to look for the number in this model.
With root you can also take a dump from a working phone using dd, but with more complications than from the level of twrp, where adbd acts as root and has direct read access to data from / dev / block /
Then you can use anything that supports ext4. The chances of recovering photo or movie files are small due to the working mechanisms (TRIM), which are to take care of the performance of memory bones and clean cells from deleted data. You can realistically recover data such as contacts, SMSs, notes and other things sitting in the application's databases, as long as you have something to analyze.
I will not fail to test at the earliest opportunity. I found similar descriptions, root and memory dump to the computer, so far I haven't checked the effectiveness. It's good to know that TRIM is also in smartphones.