FAQ on OnePlus One | Hyde to combat with the beast



Rep: (341)
What are some ways to install firmware? What are the advantages and disadvantages?

Ways to install the firmware (pros and cons)


Firmware with fastboot
pros
  • It is the most reliable way of firmware, because You can control the firmware process itself and know exactly which section is being flashed

Minuses
  • The difficulty of the method is that you need a computer with the drivers installed correctly from the header
  • You need an unlocked bootloader (how to unlock it and what consequences of unlocking it will occur is described in the header in the spoiler "Instructions">"Unlocking the bootloader")
  • The ability to own the command line (but in the header there are many useful utilities and bat-nicks to facilitate the process of firmware)
When to use this method
  • If after the firmware with the recovery method, something is wrong, then to start with after the firmware from the recovery, it is recommended to do a wipe factory reset in the recovery itself with the loss of all user data (contacts, sms, smartphone settings, user programs)
  • To ensure that all sections of the firmware are stitched
Firmware with recovery
Through the native recovery, only the firmware with the corresponding signature will be installed (in the header they have at the end "-signed" (OTA updates are all signed for installation from any recovery))
pros
  • No need extra computer
Minuses
  • Difficult to control the firmware process
  • Some sections may be crooked and, for example, the modem will not work normally or errors will be streamed.
When to use this method
  • If you can not wait to put a new firmware and there is no computer at hand to flash using fastboot
  • Arrived OTA-update
OTA firmware update + CyanDelta
An OTA update consists of a difference (“delta”) between the contents of each file of the past firmware and the new one. "Delta" through the script updates the necessary files. If the file in the old firmware has been changed / deleted, the script will give an error in recovery
pros
  • Smaller firmware
  • Easy installation
Minuses
  • Errors are possible after the update and then you need to do a wipe factory reset in the recovery itself.losing all user datax (contacts, sms, smartphone settings, user programs), or flash with fastboot in the case of stable firmware, orin the case of nightly builds of firmware flash full versions downloaded from here using custom recovery
  • It may take a long time not to get an update over the air, in which case you can download the necessary firmware from the header and flash it from recovery or fastboot depending on the type of the firmware file.
  • OTA-update may not be installed if various patches are installed or files are changed / deleted in the / system section
When to use this method of firmware
  • Always, when I flew through the air OTA, but in case of problems, read the spoiler "Cons"

Before any update, it is recommended to backup user data using the program. В® Titanium Backup and have on hand backup / EFS

Ways to install nightie CM {ab} (pros and cons)


Before installing in any way, it is advisable to have a * .zip last nightie, so that in case of problems, flash it.

Clean install
Firmware with 4 wipes (/ system, / data, / dalvik, / cache). In the appropriate topic in the header, only this installation method is described for a reason (about this in the pros)
pros
  • The / data section is completely rebuilt and conflicts with the “tails” of the old firmware are excluded (about the influence of "tails"the appearance of settings)
  • All settings resources (items) are re-registered in / data / system as conceived by the firmware developers.
Minuses
  • All system settings are lost. All user applications, contacts, sms / mms (How to save and then restore this data is written in the header under the spoiler "Instructions">"Instructions for installing the CM12 nightie (also any firmware for recovery) with saving user data" )
  • Data recovery takes a lot of time (about 20-40 minutes depending on their size)
  • You can forget to flash gapps andoptional SuperSU_ {ab} .zip (or any other updates you need * .zip), but you can reboot into the recovery and reinstall these files
When to use this method of firmware
  • If you have time, then this installation method is most preferred.
  • If there are any glitches after the "dirty installation", but first read the last 5 pages of the topic andpost with bugs and nightie enhancements CM {ab}, to exclude that the bug is really not in the nightie itself (and this sometimes happens)
Dirty installation
Installing a full * .zip nightie
Method of firmware without wipes from the Settings menu>About phone>System updates or Download nightie filefrom here (with mandatory MD5 check) and its subsequent installation of the recovery
pros
  • Simplicity and less installation time compared to “Clean Installation”
  • No need to restore your system settings and user data again
  • No need to re-flash the gapps and, if desired, SuperSU_ {ab} .zip, if there is no need to update them(the rest of the updates you need * .zip sew necessarily)
Minuses
  • There may be conflicts with the "tails" from the last nightie ( about the influence of "tails" the appearance of settings)
  • When problems arise, you have to resort to the “Clean Installation” and as a result, time is spent more if you immediately use the “Clean Installation” (if you have problems, first read the last 5 pages of the topic andpost with bugs and nightie enhancements CM {ab}, to exclude that the bug is really not in the nightie itself (and this sometimes happens)
When to use this method of firmware
  • If there is no time for "Clean Installation"
  • If you are ready for the appearance of problems due to conflicts “tails” from the old nightie (this happens), but first read the last 5 pages of the topic andpost with bugs and nightie enhancements CM {ab}, to exclude that the bug is really not in the nightie itself (and this sometimes happens)
Installation using CyanDelta Updater
Method of firmware without wipes using the programCyanDelta Updater(write about all the problems after the firmware of this program in its theme according toForum Rules)
pros
  • Simplicity and less installation time compared to “Clean Installation” and Installation of a full * .zip nightie
  • No need to restore your system settings and user data again
  • Smaller firmware
  • No need to re-flash gapps andoptional SuperSU_ {ab} .zip, if there is no need to update them ( the rest of the updates you need * .zip sew necessarily )
Minuses
  • There may be conflicts with the "tails" from the last nightie ( about the influence of "tails" the appearance of settings)
  • Sometimes it is not clear the source of the resources of the delta (there are new communication modules inside that have not passed tests for cyan; firmware inofficial sourceno, butCyanDelta UpdaterAlready gives download firmware, which is fraught with glitches firmware)
  • When problems arise, you have to resort to the “Clean Installation” and as a result, time is spent more if you immediately use the “Clean Installation” (if you have problems, first read the last 5 pages of the topic andpost with bugs and nightie enhancements CM {ab}, to exclude that the bug is really not in the nightie itself (and this sometimes happens)
When to use this method of firmware
  • If there is no time for a "Clean install" or Install a full * .zip nightie
  • If there are Internet traffic restrictions
  • If you are ready for the appearance of problems due to conflicts “tails” from the old nightie (this happens), but first read the last 5 pages of the topic andpost with bugs and nightie enhancements CM {ab}, to exclude that the bug is really not in the nightie itself (and this sometimes happens)


Post has been editedLomonosov - 17.09.16, 07:22



Rep: (341)
Sewed, sewed and sewn. The phone does not turn on, does not react to anything. When you try to turn on, only vibro works, although the phone is fully charged but the PC does not see it. What to do?

Why is it possible to argue so long. It is better to immediately proceed to the consideration of this issue.
The first thing that needs to be done is to try to charge or connect to the computer's USB and hold for 10 minutes so that the smartphone charges with a small current. If you have the opportunity and your hands are not shaking, remove the battery, most likely it will solve the problem and save your data.But you surely lose the guarantee !!!! If this does not help, then download the archive we need. Yandex disk or Google drive
We connect the device to the computer and look in the task manager if it is determined. If it is determined, then this is the next + 1+. If it was determined as before Android ADB Interface, remove the driver, reconnect the device to the PC. Hold the Volume + and the Power button (В± 15 seconds). If it is determined, not as in the picture
Attached Image
swing driverfrom hereor withYandexextract it from the archive. In the device manager, click on the one that we see (most likelyQHSUSB_BULK ) right-click and select Update drivers ... Click on Search for drivers on this computer and Via button Overview... show on folder Qualcomm 2012 . A warning window might pop up. In it we choose Install this driver anyway waiting for the end of the installation process. It may write that the driver installation failed. We press close and run the command line on behalf of the Administrator ( Win + X . Actually for windows 7. Instructions how to disable signature verification on older OS at the bottom of the post. If you have Windows 8; 8.1; 10 I recommend to start with it). We insert in turn
bcdedit.exe -set loadoptions DDISABLE_INTEGRITY_CHECKS
, press Enter, next
bcdedit.exe -set TESTSIGNING ON
and press Enter. After successful execution, what we are not very happy about, but still tell the command line restart the PC. After rebooting, connect the phone to the PC and hold down Volume + and Power again (В± 15 seconds) and go to Ports (COM and LPT) and should be defined as in the picture, but without a yellow exclamation mark (the port will most likely be different, it does not matter). Close the task manager. If you want to save the contents of the memory card, look THIS fast. For the Windows x64 version of the driver we take there. Run from the downloaded archive QHSUSB_BULK-cm-11.0-XNPH25R_TWRP_2.7.1.0.rar pre-unpacked file on PC Msm8974DownloadTool.exe with administrator rights and see the following:
Attached Image

The list (1) will display the phone. By krakozyabram he will be different from the rest. If it is like in the picture, the phone is not recognized. Click on the button (2) and wait until the window appears:
Attached Image

Close this window click on the lower left hierogyphic button. Select the glutton in the list (1) and clickStart (top left). The resurrection process begins. This process will not be difficult to see in the window and even see what is currently reviving the phone. If the inscriptions turned green, then the phone became working. If the inscriptions are red, then repeat the process again. Disconnect the phone from the PC and turn it on normally. Activate the mode For developers include USB debugging . If you have a backup file saved on your PC - go to recovery, create a backup of what is now installed and put your file in the same folder (if not, you will not be able to slip recovery your backup until you create a backup section). After entering recovery, you will be prompted to install root using the SuperSu installation. There is a desire - you stay at 25R, if not - put updates, they will immediately arrive as soon as you complete all the initial settings of the phone.

The contents of the internal memory after revolving can not be recovered!

Video instruction

p.s.: thank the userSaygak7777for the provided instructions ande8geniusfor the provided video.
p.p.s .: if you do not have windows 7 and do not install drivers:
How to disable driver signature on OS 8; 8.1; ten
Disabling signature verification on Windows 8 is done like this:
Win + I -> Change computer settings -> Are common -> Special download options -> Reboot now .
When you turn off, pressDiagnostics -> Extra options -> Boot options ->[b [] Reload [/ b].
After the menu appears, choose in it"Disable mandatory driver signature verification".
Next is installing drivers according to the instructions.

Disabling signature verification on Windows 8.1 is done like this:
Win + I -> Options -> Change computer settings -> Upgrade and Repair -> Recovery -> Reboot now .
When you turn off, pressDiagnostics -> Extra options -> Boot options -> Reload .
After the menu appears, pressF7 and wait for the computer to restart.
Next is installing drivers according to the instructions.

Disabling signature verification on Windows 10 is done like this:
Clamping keysWindows and shift and hold them.
FurtherStart -> Shutdown -> Reboot
Release the keysWindows and shift and choose an item Diagnostics
On the next page chooseExtra options
Next we go toBoot options
Just clickReload and wait for the system to boot to the next step.
After the restart, we will be on the selection pageSystem Boot Parameters . Press the key F7 .
The computer will restart and disable driver signature verification.
Next is installing drivers according to the instructions.
Video how to do it
We lookhere


Post has been editedLomonosov - 17.09.16, 07:38



Rep: (341)
After experiments, I accidentally blocked the bootloader via ToolKit. How to unlock it back?

If, while “playing” with the Toolkit program, you still blocked the bootloader, and when you try to unlock it, nothing happens, and the phone, when you try to install anotherRecovery gives an error message "device not unlocked cannot flash or erase" , you need to flash this file OnePlusOne-BootUnlocker.zip through Recovery
Original postHere(local) Source (leads on XDA)

Post has been editedLomonosov - 17.09.16, 07:41



Rep: (341)
Let's talk about the nuclei. What is it and how to use it?

As it is known for our device there are several modifications of the core.
Before you install a new coreIt is STRONGLY RECOMMENDED to MAKE BACKUP section / boot , and better full backup system.
About custom kernels with descriptions and instructions can be readhere
About native kernels you can readhere
IMPORTANT!!!

If after flashing the kernel, the phone does not boot to the system, but constantly twists the boot-animation (you can understand by the fact that the screen blinks periodically or for a very long time (longer, much longer than usual) turns the same thing. Especially noticeable on non-standard animations), then restore from the / boot backup or flash the native kernel from the firmware that is on the phone.

Post has been editedLomonosov - 17.09.16, 07:46



Rep: (341)
Find out the LTE version of the work or the solution to the problem with the lack of a 4G connection
Instructions for those who have a problem with 4g.(For MTS only)
Foreword
I had a problem with connecting to LTE from the very first day. The operator of MTS Moscow, for a long time looking for the cause, flashing various modems, changing SIM cards, called MTS. Nothing helped. After that, he was forced to start studying the protocols on which our operators work and what the settings in our phone mean. As a result, it turned out the following. (I ask you not to scold for incorrect terms, I'm not special in telephony)
If you dial in the phone call code*#*#4636#*#* then select the item "Information about the phone", scroll down and open the list of Preferred networks there we see a list that can be divided into 3 categories:
1. At the beginning of the connection type is usedTD-SCDMA - these types of connection are only for China, and in our latitudes will work with faults.
2. At the end of the connection type(PRL) - These connection types are suitable for operators supporting LTE Advanced ( List of operators ) In Russia it is only Yota B and l but th n and Megaphone and MTS Belarus . That is, these types of networks are suitable only for these operators.
3. All other connection types. Here you can choose the desired type of network, but for our device is best suitedLTE / WCDMA . Having chosen this type, my network ceased to fall off, and with a weak LTE signal, the network automatically switches to 3G (EDGE, 3G, HSDPA, HSDPA +)

Instruction
1. You should have a sim card of a new sample (at the MTS offices now they issue SIM cards, on the envelope of which 4G is written). It may work on older SIM cards, but I recommend replacing it, this is free in any office upon presentation of a passport.
2. Your tariff should have access to the 4G network (SMART tariffs definitely have, for the rest, it is better to clarify in the call center)
3. Dial the code in the call*#*#4636#*#*
4. Select item"Phone Information"
5. Expand the list under "Configure preferred network type (the only list in this window)
6. Select item"LTE / WCDMA" (note that there should be nothing before and after this inscription)
7. Done, in a minute the network will reconnect and everything should work properly (I have been working for 4 days without any problems).

for the given instruction we express our gratitude to the userMean122
p.s .: I have such a problem with the operatorMtsnot met, even visiting the capital.

Post has been editedLomonosov - 12.01.16, 15:53



Rep: (341)
Root-rights - install / uninstall (requiredunlocked bootloader)
Method number 1 (Does not work on firmware CM 13.0)
1) Download the archive with SuperSu: SuperSU ( Mirror on xda or at Yandex )
2) We throw it on the phone, without unpacking, at the root of the phone's memory.
3) boot intocustom recovery.
4) Click onInstall , then select the archive with SuperSU .
5) Swipe (move the slider to the right) to confirm the installation. Then click onReboot .

Method number 2. For the lazy. (It works only on CM {ab} or when the kernel for developers for Cyanogen OS {ab} is installed)
1) Tinctures - About phone - Tap on 7 times the build number until the label appears"Congratulations! You have become a developer"
2) Go back to settings
3) Settings - For Developers - Root Access: Apps and ADB or Root Access: Applications and ADB

Method number 3. (Ahora vamos a ganar! (Isp.)) The method is relevant for firmwareCM11-XNPH22R
1) Unlock the charger
2) Change the recovery
3) We lookMethod number 1 above

Is done
A source
Where did you steal
Vidos for connoisseurs of Spanish
p.s .: for the translation and editing thanks to the userJollydunce
p.p.s .: simplified instructions, so as not to write what is already written.

Method number 4.
Installing root on 11s
It's no secret that 11s has a built-in superuser menu.
So in order to use it you need to make the following 6 steps:
1) We putcustom recovery
2) Put the debug kernel for 11 sfrom herefrom recovery or fastboot (boot-debuggable.img)
3) Download and installsu.zipand flashing it
4) Reboot into the system and turn ondeveloper mode.
5) Disable the slider in the upper right corner in the developer mode.
6) We use 11s with root

Installing root on CyanogenOS
System tools root can also be obtained. Everything is done as in previous S. Installcore for developers, and thenbinary file from CM12. Then turn on in the developer settings. Only the standard menu of the superuser is no more, now everything is regulated through the privacy settings. For convenience, the kernel can be put throughTWRP.

Method number 5.Using PC and * .bat files. For quite a kapets already what lazy people!
Getroot and set custom recovery without unlocking the bootloader.
Required: * .zip archiveUPDATE-SuperSUand * .zip archive being installedcustom recovery
Instruction:
1. Downloading a file of choice (CWMorTWRP)
2. We transfer the planned (e) archive (s) to the phone's memory (depending on what needs to be installed)
3. Install the driver, if nessesary
4. Download the phone infastbootconnect to PC
5. Unpack the selected bootter (Booters) (preferably to the root of the disk)
6. Run as an administrator (I work without an administrator) filerayglobe_start.bat
7. The phone is loaded into temporaryrecovery from which you can set a permanent or root .
p.s .:On firmware after CM11S (44S), this method does not work!
p.p.s .: Content with decoding of quilted jackets:
@ping 127.0.0.1 -n 6 -w 1000>nul :: Waiting to connect smart in fastboot mode
fastboot.exe boot recovery.img :: Loads smart into recovery from folder
adb kill-server :: ends the adb server process
@ping 127.0.0.1 -n 6 -w 1000>nul :: Leaves the cmd window open

Method number 6 SuperSU for CM13.0
1. Boot into custom recovery (I used TWRP 2.8.7.0.5 , modified for EFS backup) and make a backup / system.
2. DownloadSuperSU-v2. {Ab} -xxxxxxxxxxxxxx.zipand from the menuInstall flashing it. (For the first time it is stitched for a long time, because the / boot patch is patched)
3. ClickReboot and enjoy the good old SuperSU.
WARNING !!!
If receivedbootloop , then or restore backup (longer, but easier), or reinstall {firmware file} .zip with preliminary wipe / system !!! .
Withdirtyupdate root-rights will disappear (SuperSU is in place, but there is no binary :(), because the script* .sh to save in /system/addon.d not. Need to SuperSU-v2. {Ab} -xxxxxxxxxxxxxx.zip re-flash from recovery, because From the SuperSU itself, the binary can not be delivered.

Original post to watchhere
Thanks for this methodMike9966


Remove unRoot root privileges
In the SuperSU settings, select "Complete removal of Root".

Another way to remove root-rights.
Need any file manager with the abilityroot access to Android system folders ( ES Explorer , RootExplorer (I recommend it) Total commander etc.). In most cases in order to get rid of root rights you only need:

1. Delete the files Busybox and Su in the folder / system / xbin /
2. Delete in the / system / app / SuperUser.apk or SuperSu.apk folder
3. Reboot device

p.s .: you can follow the changes in the versions of SuperSuHERE

Post has been editedLomonosov - 12.01.16, 15:49



Rep: (341)
What should I do if I accidentally erased the data from the internal memory or simply failed and all the content was deleted?
In this case, if you need data, the main thingdo not write anything to internal memory. I did not encounter the problem itself, but I met solutions (from simple to more complex):
Method number 1
Directly on the device itself using programs:В® DiskDigger(but his work is not praised) +Undeleter

When using further methods, I strongly recommend disabling the antivirus, firewall and other protection tools, as they will prevent you from connecting to the device in the future !!!

Method number 2
If you accidentally formatted the internal memory of the smartphone, then you should not be upset, and most importantly,in no case do not need to write anything in the memory device so you can recover more data.
The MTP protocol does not allow the computer to recognize the connected device as a USB drive and recovery software cannot scan it and save data, so we need to copy the entire internal memory section in the form of a system image. Helping performance was carried out on Windows 10 x64 version 1607 (assembly OS 14393.187). Before you start looking at the free space on hard drives, since when copying a section, you may need a lot of space depending on the size of the drive. Since I have a disc with only under Windows and programs, then all actions will be described on the disk on which it is abused, namely on the disk E. In your case, it can remain with if there is enough space.
Preparing Android device:
You will need root and USB debugging enabled.
PC Preparation:
In order to copy the system section, we need:
  • VHDTool
  • Download and install the program on your computerCygwin(allows you to use UNIX commands in a WINDOWS environment). Go to the site and click on the linkInstall Cygwin. Depending on the bitness of the OS, select the appropriate file. After that, the download will start. Run the installation, selectinstall from internet . Select the installation folder C: \ cygwin64. Next, select the folder (you can any), in which during the installation component cygwin packages will be downloaded. Next, click Direct connection . Next, select the site from which the packages will swing. Then the list of packages itself appears, in which it is necessary to select the following items:
    - in the Debug clause pv-debugininfo
    - in the Devel clause all sub-clauses whose name begins with the letters gcc (they are consecutive)
    - in paragraph Utils sub pv
  • Device driver
  • ADB driver
  • ProgramFileZilla serveror who can not downloadmirroron version 0.9.60

First install the USB drivers for the device and ADB (if not already installed). After that, I advise you to restart the PC.
VHDtool
Create a folder E: \ cygwin64 \ 000 (the name does not matter, do not just use letters other than Latin), here will be our image. Copy to this folderVhdtool.exefrom the archive.

Filezilla
During the installation, we agree to all standard installations.
After installation, FileZilla will start automatically, but you must exit the program and run it on behalf ofAdmin .
When you start FileZilla will ask the name of the server, leave everything as it is or click on the cross in the corner
Attached Image

Next we goEdit - Settings
Attached Image
and make the following settings:
listen on those ports 40
timeout settings - the default is 120, 60, 60, and we put 0 everywhere and click OK.
Attached Image

Go inedit - users .
Attached Image
In the users window create a new user.
Attached Image
In my case, this is User.qwer .
Attached Image

PushAdd- write the name.
Putting a tick near the Password and enter your password (especially it is better not to be driven, since this is just a formality). I entered 0000. Next, click on the Shared folders
Attached Image

Add a folder 000 in which our image will be later copied, for which we click on ADD and specify the path to the folder and put ticks for reading and writing
Attached Image
Attached Image
Attached Image

Click OK. This completes server preparation. We roll it up (hide in the tray for about hours) and continue.
Adb

Swingingarchive with ADB. Unzip all the files in the folder E: \ cygwin64 \ bin and check the performance. Run the console from the folder E: \ cygwin64 \ bin, to do this, click on File ->Open command prompt ->Open command prompt as administrator.
Attached Image
Attached Image
Attached Image
On windows 7, just entercmdin the address bar explorer
Attached Image

Enter the command:
adb devices

The list of connected devices should not be empty, if after the lineList of devices attachedis empty, then you did not install USB drivers or did not enable USB debugging. When done correctly, the console looks like this:
Attached Image
where digital letters is your unique number. Who made backups through TWRP saw them more than once.

USB modem mode

All further actions occur when the phone is in modem mode. disable it is not necessary until a certain point, as will be written.We will need to connect the device via USB to your PC and turn on the modem mode via USB. I use the firmware ResurrectionRemix-M-UNOFFICIAL-ROMILPARH-v5.7.4-20161005-bacon and I have this mode along the way:Settings>Wireless network>Still…>Modem mode>USB modemOn the PC go toNetwork and Sharing Center(pressing the RMB on the connection icon at the clock and selecting there, or following the pathStart->Options->Network and Internetand look, or on the buttonStartpushPKM->Control Panel->Network and Sharing Center). Click onChange adapter settings
Attached Image
and on the phone turn on the USB-modem. On the appeared connection
Attached Image
right-click and select Status
Attached Image
. In the opened window, we look at our IPv4 address and remember (write) it. In my case it is: 192.168.42.178
Attached Image

Important!Each time the USB cable is reconnected and the mode of the IPv4 modem is turned on / off(I did not see this on win10, but it is possible on win7).

Now we determine which memory block we need.
All memory in your device is divided into logical blocks, we do not need to download everything, it is enough to understand which section contains erased information. Now we need to look at the list of memory blocks, for this we enter the following commands line by line:
adb shell
su
find / dev / block / platform / -name 'mmc *' -exec fdisk -l {} \;>/sdcard/list_of_partitions.txt

p.s .: If you are too lazy to rewrite the commands manually or you are afraid to make a mistake, you can use copy / Just press RMB in the console. I wrote everything manually, as the console is buggy when inserted.
After entering the latter, the list_of_partitions.txt file will appear in the internal memory of the device, which we need to copy to the PC and study. You can copy it into our 000 folder using a simple command (it should be executed in a separate command window):
adb pull /sdcard/list_of_partitions.txt E: / cygwin64 / 000
Do not forget to write your way to the folders. My file looks something like this:
Disk /dev/block/platform/msm_sdcc.1/mmcblk0p29: 301 MB, 301972992 bytes
4 heads, 16 sectors / track, 9215 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

Device /dev/block/platform/msm_sdcc.1/mmcblk0p29: it does not contain a valid partition table

Disk /dev/block/platform/msm_sdcc.1/mmcblk0p28: 59.9 GB, 59914792960 bytes
4 heads, 16 sectors / track, 1828454 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

Device /dev/block/platform/msm_sdcc.1/mmcblk0p28: it does not contain a valid partition table

Disk /dev/block/platform/msm_sdcc.1/mmcblk0p27: 67 MB, 67108864 bytes
4 heads, 16 sectors / track, 2048 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

Device /dev/block/platform/msm_sdcc.1/mmcblk0p27: it does not contain a valid partition table

Disk /dev/block/platform/msm_sdcc.1/mmcblk0p26: 8 MB, 8388608 bytes
4 heads, 16 sectors / track, 256 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

Device /dev/block/platform/msm_sdcc.1/mmcblk0p26: it doesn’t contain a valid partition table

Disk /dev/block/platform/msm_sdcc.1/mmcblk0p25: 16 MB, 16777216 bytes
4 heads, 16 sectors / track, 512 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

etc.
In principle, the device has the same paths, but it is still worth risening. Internal memory in my 64 GB apparatus. Therefore, I'm looking for the biggest partition, in my case it is an MMCBLK0P28 size of 59.8 GB, you will most likely have the same name. Of course, no one guarantees what exactly the largest section will turn out to be in which even recently lay your photos, videos, documents, etc., but in 90% of cases it turns out exactly the memory that we need. Otherwise, you will have to copy all images in order and check each of them.

Copy the memory section on the PC.

If you have already closed the cmd window, then start it again from E: / cygwin64 / bin and enter the following commands:
adb shell
su
mkfifo / cache / myfifo
ftpput -v -u qwer -p 0000 -P 40 192.168.42.178 mmcblk0p28.raw / cache / myfifo

Do not forget to make the appropriate adjustments to the code!
Attached Image

We decipher what is written:

qwer - account name in FileZilla (you have your own if they changed it)
0000 - password from your FileZilla account (if you have changed yours)
40 - FileZilla server port
192.168.42.178 - FileZilla server address (you have your own)
mmcblk0p28.raw - copy memory block

Open the second command window and enter the commands:
adb shell
su
dd if = / dev / block / mmcblk0p28 of = / cache / myfifo

We look into the FileZilla window and see that the download of mmcblk0p28.raw to the E: \ cygwin64 \ 000 folder has begun, now you can close the cygwin windows and take a tea break (in my case, a bucket of tea).
Attached Image


Convert and restore

Are you back? File downloaded?
Attached Image
Check sizes just in case
Attached Image
Fine! Disable modem mode.Turn off the phone . Go to the folder E: / cygwin64 / 000 /, run the command line and enter the following command:
VhdTool.exe / convert mmcblk0p28.raw

My conversion took a couple of seconds.
Attached Image
At the output, we get all the same mmcblk0p28.raw file in the E: \ cygwin64 \ 000 folder, but a bit different. This converted file can be mounted as a virtual disk, or, for example, through R-studio, you can restore data directly from our image. I did that. To do this, open the program, click Open Image [1]. Choose a file typeEverything [2] and point to our file. Then everything is like when working with a regular disk.
Attached Image
Attached Image


The full version of the article can be found.HERE


Method number 3
All manipulations are done on a PC with installed windows 8.1 x64 OS, so the folder will have a postscript 64. Otherwise, all the commands are the same, but instead of C: \ cygwin64 \ bin you need to write C: \ cygwin \ bin, etc.
  1. The first thing to do is to enable USB development on your phone (usually located at:Settings ->Applications ).
  2. Install ROOT rights, as well as ClockworkMod recovery (CWM)
  3. Install fromPlay Storeor from ourthe siteBusyBox program. It is needed in order to be able to execute UNIX commands on the phone. After installation, enter this program, grant it super user rights, and clickinstall . At the same time pay attention to install was produced in the phone folder / system / bin / busybox or / system / xbin / busybox , it is specified by default, approximately in the middle of the program screen.
  4. Download and install the program on your computerCygwin(allows you to use UNIX commands in a WINDOWS environment). Go to the site and click on the linkInstall Cygwin. Depending on the bitness of the OS, select the appropriate file. After that, the download will start. Run the installation, selectinstall from internet . Select the installation folder C: \ cygwin64. Next, select the folder (you can any), in which during the installation component cygwin packages will be downloaded. Next, click Direct connection . Next, select the site from which the packages will swing. Then the list of packages itself appears, in which it is necessary to select the following items:
    - in the Debug clause pv-debugininfo
    - in the Devel clause all sub-clauses whose name begins with the letters gcc (they are consecutive)
    - in paragraph Utils sub pv
  5. Download the add-on for Cygwin, which is calledNetcatDownload need zip-archive. For owners of x64 systems, download the versionfor x64. After unpacking it, all the files are transferred to the C: \ Cygwin64 \ Bin directory. (If you download the link for x86 then there are just their archive, going to the catalog to copy everything to the C: \ Cygwin folder, since the NC.exe file already lies in the BIN folder) the main thing is that the files are in the archive nc.exe and nc64 .exe was copied to the folder C: \ Cygwin64 \ Bin. The other files lying in the archive, as I understood, can be simply copied to the C: \ Cygwin64 folder (maybe they are not needed at all), just in case I copied them in C: \ Cygwin64 \ bin.
  6. Next downloadAdb(a program that gives access to the file system of the phone, even if it is in a locked state). Unpack the archive and copy all the files from it to the folder C: \ cygwin64 \ bin
  7. In the folder C: \ cygwin64 create a folder called, for example, OnePlus.
  8. Download the archive fromVhdtool.exe(this is a program that, from a block copied from a phone, will make a format that will later be mounted as a virtual disk and used by file recovery programs). Copy it to the C: \ cygwin64 \ OnePlus folder (I just copied it to the C: \ cygwin \ bin folder just in case).
  9. Now we need to understand which block should be copied to the computer, since there are several of them in the internal memory of the phone and each of them contains some piece of information (if we are interested in pictures, videos, etc., then you need to know the block that contains the relevant information ). Here ishereit is written how to understand what block of what it contains, but I did not bathe, and just chose the largest block. You can find out the block size as follows:
    - Run the command line (Start-Run-CMD.EXE)
    - Using the “cd” (enter the directory) and “cd ..” (exit the directory) commands, go to the C: \ cygwin64 \ bin directory to start adb
    cd C: \ cygwin64 \ bin

    - Next line by line (enter one line, press enter, enter the second, press enter, etc.) enter commands (to insert - press the right mouse button on the black field and select Insert (actual for windows 7, since older versions everything is inserted automatically) while not forgetting to glance at the screen, as there will be windows in which you need to confirm access:
    adb shell
    su
    find / dev / block / platform / -name 'mmc *' -exec fdisk -l {} \;>/sdcard/list_of_gnex_partitions.txt
    - After that, the list_of_gnex_partitions.txt file will appear in the root directory of the phone, similar to the following:
    Disk /dev/block/platform/sdhci-tegra.3/mmcblk0p10: 314 MB, 314572800 bytes
    4 heads, 16 sectors / track, 9600 cylinders
    Units = cylinders of 64 * 512 = 32768 bytes

    Disk /dev/block/platform/sdhci-tegra.3/mmcblk0p10 doesn't contain a valid partition table

    Disk /dev/block/platform/sdhci-tegra.3/mmcblk0p9: 8 MB, 8388608 bytes
    4 heads, 16 sectors / track, 256 cylinders
    Units = cylinders of 64 * 512 = 32768 bytes

    Disk /dev/block/platform/sdhci-tegra.3/mmcblk0p9 doesn't contain a valid partition table

    Disk /dev/block/platform/sdhci-tegra.3/mmcblk0p8: 14.3 GB, 14305198080 bytes
    4 heads, 16 sectors / track, 436560 cylinders
    Units = cylinders of 64 * 512 = 32768 bytes

    Disk /dev/block/platform/sdhci-tegra.3/mmcblk0p8 doesn't contain a valid partition table

    Disk /dev/block/platform/sdhci-tegra.3/mmcblk0p7: 12 MB, 12582912 bytes
    4 heads, 16 sectors / track, 384 cylinders
    Units = cylinders of 64 * 512 = 32768 bytes

    Disk /dev/block/platform/sdhci-tegra.3/mmcblk0p7 doesn't contain a valid partition table

    Disk /dev/block/platform/sdhci-tegra.3/mmcblk0p6: 2 MB, 2097152 bytes
    4 heads, 16 sectors / track, 64 cylinders
    Units = cylinders of 64 * 512 = 32768 bytes

    Disk /dev/block/platform/sdhci-tegra.3/mmcblk0p6 doesn't contain a valid partition table

    Disk /dev/block/platform/sdhci-tegra.3/mmcblk0p5: 469 MB, 469762048 bytes
    4 heads, 16 sectors / track, 14336 cylinders
    Units = cylinders of 64 * 512 = 32768 bytes

    Disk /dev/block/platform/sdhci-tegra.3/mmcblk0p5 doesn't contain a valid partition table

    Disk /dev/block/platform/sdhci-tegra.3/mmcblk0p4: 606 MB, 606076928 bytes
    4 heads, 16 sectors / track, 18496 cylinders
    Units = cylinders of 64 * 512 = 32768 bytes

    Disk /dev/block/platform/sdhci-tegra.3/mmcblk0p4 doesn't contain a valid partition table

    Disk /dev/block/platform/sdhci-tegra.3/mmcblk0p3: 8 MB, 8388608 bytes
    4 heads, 16 sectors / track, 256 cylinders
    Units = cylinders of 64 * 512 = 32768 bytes

    Disk /dev/block/platform/sdhci-tegra.3/mmcblk0p3 doesn't contain a valid partition table

    Disk /dev/block/platform/sdhci-tegra.3/mmcblk0p2: 5 MB, 5242880 bytes
    4 heads, 16 sectors / track, 160 cylinders
    Units = cylinders of 64 * 512 = 32768 bytes

    Disk /dev/block/platform/sdhci-tegra.3/mmcblk0p2 doesn't contain a valid partition table

    Disk /dev/block/platform/sdhci-tegra.3/mmcblk0p1: 12 MB, 12582912 bytes
    4 heads, 16 sectors / track, 384 cylinders
    Units = cylinders of 64 * 512 = 32768 bytes

    Disk /dev/block/platform/sdhci-tegra.3/mmcblk0p1 doesn't contain a valid partition table

    Disk /dev/block/platform/sdhci-tegra.3/mmcblk0: 15.7 GB, 15756951552 bytes
    4 heads, 16 sectors / track, 480864 cylinders
    Units = cylinders of 64 * 512 = 32768 bytes

    Disk /dev/block/platform/sdhci-tegra.3/mmcblk0 doesn't contain a valid partition table
    From this it can be seen that the mmcblk0 block (all blocks have a name starting with mmclbk) has the largest size - 15.7 GB (I don’t know if this is the main unit at all). By this, I decided to restore it.
  10. Turn off the phone and enter the CWM mode. Go to the "Mounts and Storage" and mount (click mount) system, data and everything else that is mounted.
  11. We connect the phone to the computer.
  12. Go to the folder C: \ cygwin64 and run the Cygwin.bat file, then enter the following text line by line (to insert, right-click on the menu bar - the topmost line, where the close and minimize windows are located), select Edit, then Paste ):
    adb forward tcp: 5555 tcp: 5555
    adb shell
    su
    / system / bin / busybox nc64 -l -p 5555 -e / system / bin / busybox dd if = / dev / block / mmcblk0

    Pay attention to what you are inserting and if you have x86 Os then the commands will be:
    adb forward tcp: 5555 tcp: 5555
    adb shell
    su
    / system / bin / busybox nc -l -p 5555 -e / system / bin / busybox dd if = / dev / block / mmcblk0

  13. Again, go to the folder C: \ cygwin64 and again run the file Cygwin.bat. Another window will appear. There we enter line by line:
    adb forward tcp: 5555 tcp: 5555
    cd / oneplus
    nc 127.0.0.1 5555 | pv -i 0.5>mmcblk0.raw
    The mounting of the image of this block in the * .raw format will begin (a block of 15 GB in size was mounted for about 20 minutes). If nothing happened on x64 then try to write in the last line: nc64 127.0.0.1 5555 | pv -i 0.5>mmcblk0.raw
    Attached Image
    When finished, the mmcblk0.raw file will appear in the C: \ cygwin64 \ OnePlus folder. It should be about the same size as the block itself, that is, in my case, about 15 GB. The phone can be disconnected from the computer.
  14. Now close both windows of Cygwin.bat. Go to the folder C: \ cygwin64 and once again run the file Cygwin.bat and convert the newly copied block using the VhdTool program. Enter:
    VhdTool.exe / convert mmcblk0.raw
    as a result, the message should appear: Status: Complete. In this case, the file name itself will not change. It will be called mmcblk0.raw, but something will change in it (I don’t know the details), which will allow you to connect it to your computer as a virtual disk.
  15. Click the right mouse button on the iconMy computer , choose item Control .
  16. In the window that appears, on the left, selectStorage devices , Further Disk Management .
  17. In the top menu, select the itemAct and choose Attach a virtual hard disk .
  18. In the window that appears, in paragraphfile type (where is it written Virtual Disk Files (* .vhd) ), choose All files . Then choose the file mmcblk0.raw .
  19. After that, a new disk will appear at the bottom of the window. I called it Disk 3. To the right of this inscription it will be written Not distributed.
  20. Right-click on Disk 8 and select itemInitialize disk . Next, put a tick on the item Table with GUID section .
  21. Right click on the captionNot distributed and select the item Create a simple volume ... In the following windows, assign a letter to the letter (for example, Z) and refuse formatting.
  22. After pressing a buttonIs done a new system will appear in the system Local drive Z and immediately pops up a window offering to reformat it.
  23. Format the disk, while specifying the file systemFat32 , standard cluster size and be sure to put a tick on the item Fast formatting .
  24. Everything, now the disk is ready to work with data recovery programs. Thus, I managed to recover deleted photos and videos from WAIPК»e from the internal memory of the phone.


If it is impossible to do from the 14th item, then it is necessary to do the following:
  1. Download freeVirtualbox
  2. We open the Command line, it is better from the administrator through the keyboard shortcutWin + X (cmd.exe) and enter the following command: "C: \ Program Files \ Oracle \ VirtualBox \ VBoxManage.exe" convertfromraw our_file.raw final_file.vhd --format
    The command looks like this:
    "C: \ Program Files \ Oracle \ VirtualBox \ VBoxManage.exe" convert: C: \ cygwin64 \ Oneplus \ mmcblk0p28.raw D: \ out.vhd --format
    You can also try to register without the command --format
    "C: \ Program Files \ Oracle \ VirtualBox \ VBoxManage.exe" convert: C: \ cygwin64 \ Oneplus \ mmcblk0p28.raw D: \ out.vhd
Total raw file size of 59GB converted to ~ 5GB minutes in 5-10. There is no progress bar when converting. You can only understand when the cursor in the Command Line jumps to a new line so that you can enter a new command.
Then from the 15th step we do the following instructions: mount the file and restore the data via EasyRecovery (or whatever you want).


Naturally more likely to recover data from the methods of pulling the memory image.
p.s .: link to original postsVoodu Post # 41518233 Post mad_maxon # 37973807

Post has been editedLomonosov - 06.02.17, 23:57


Full version    

Help     rules

Now: 30.10.20, 01:21