User-agent: Mediapartners-Google Disallow: User-agent: * Disallow: /search Allow: / Sitemap: http://nano7mobile.blogspot.com/sitemap.xml Nano Mobile: [GUIDE][BACKUP] XT1068 stock partitions | few minor mods topic

[GUIDE][BACKUP] XT1068 stock partitions | few minor mods topic






Only valid for Moto G 2014!
Hello, forum mates. :) I have spent few last days with this great device.

ATM, there are barely any custom ROMs, so I will list here few good things to do right after unlocking its bootloader and obtaining root access :angel:
So here you can read my little checklist and do whatever you prefer:


Quote:









DISCLAIMER:

Code:


your warranty is now void. All you do
with your phone is on your own risk!
Partitions info is valid for XT1068
international GSM dual-SIM only! Workflow
is tested only on KitKat factory image!







Unlocking Bootloader: Motorola's website



Quote:









1. Boot custom recovery without flashing it:

Copy and paste custom recovery (file format: img) into your SDK/platform-tools folder, I recommend here TWRP_2.8.0.1_Titan_v2 that I have successfully tested myself. Until this point the latest Motorola USB driver must be installed on your Windows PC, USB debugging (under "developer options") on your phone must be enabled. However, I generally recommend using Linux instead of Windows. You can check in my short guide for Ubuntu users how to install fastboot and ADB in Ubuntu. I have no clue about Mac iOS, sorry.

Here we go:

Navigate in CMD line into the directory where your adb.exe is saved. Example on my PC, it is in the folder "AndroidSDK", and there in the folder "platform-tools". So my commands would be:
  • Typing on keyboard Win+R

  • Enter cmd

  • the command line appears after that


Code:


cd c:\androidsdk\sdk\platform-tools

Now I'm in my desired folder. The next command is checking the USB driver / ADB connection:
Connect the phone to with your PC via USB cable and enter in cmd:

Code:


adb devices

Correct response:

HTML Code:


xxx(serial No)xxx    device


If you don't see serial No of your Moto G, check if USB debugging is enabled. If serial No is there but "offline" instead of "device" appears, you will only have to confirm the promt on your phone's screen to allow USB debugging. If nothing appears, try to update your USB driver (don't go any further without working ADB connection!)

Now we will boot into bootloader mode and check there if fastboot connection is also working:

Code:


fastboot devices

Correct response:

HTML Code:


xxx(serial No)xxx    fastboot


If the response looks like that, we can now boot into the custom recovery without flashing it onto device. The recovery.img will be booted directly from "platform-tools" folder, while stock recovery still remains installed on the phone. My recovery.img file's name is for example "TWRP-Titan", so after I've previously saved it in my "platform-tools" I will now enter in cmd:

Code:


fastboot boot TWRP-Titan.img

The phone will boot into the beautiful touch-recovery TWRP. Blue screen is there? Yesssss!! :good:
Now we can start with backups of our still 100% stock firmware in the next chapture.







Quote:









2. Backup your stock firmware:
  • While still in the TWRP, simply create backup of all your partitions. It is strongly recommended to save backup on the external SD card, as many modifications or next unlocking of the bootloader (if relocked) will every time blow all your data from the internal memory.

  • Now still in TWRP, install SuperSU.zip

  • Reboot into the system

  • Now we will backup stock recovery, that we can later flash at any point back:


Code:


adb shell (enter)
su (enter)


Look at this point on the screen of your phone, SuperSU will promt you to allow SU access for shell, YOu should confirm that.

dd if=/dev/block/mmcblk0p32 of=/sdcard/recovery.img[/CODE]
It will save the "recovery.img" file in your /sdcard folder on your phone's internal memory. It is strongly recommended to create the new folder on your external SD card where you can move all backup img files. To move the files, use any root file browser like for example Root Browser. When you open Root Browser for the first time, it will prompt oyu to install few utilities (busybox, unrar etc) which you should allow.

At this point, your entire stock firmware has been saved as backup.







Quote:









3. Backup all partitions of your factory image / firmware:

Just the same way as you have previously created backup of your "recovery.img" you can
create "img" backup files of all your partitions. Check the attached screenshots and simply replace in the adb shell command the number of the mmcblk0p block No with the one you desire to backup and change "recovery" to the proper partition names, just like in the screenshots:





Quote:









4. Restore to 100% stock firmware:

To return to 100% stock, you simply need to flash (or only boot) again TWRP 2.8.0.1, to restore your nandroid backup of your stock firmware and -if custom recovery was flashed- to flash in bootloader mode your stock recovery back. Paste your (stock) "recovery.img" file into "platform-tools" folder and execute in bootloader mode:

Code:


fastboot flash recovery recovery.img

After that simply restore your TWRP backup of stock and flash in bootloader mode your stock recovery back.












Attached Thumbnails


Click image for larger version<br/><br/>Name:	Screenshot_2015-01-10-10-33-02.png<br/>Views:	N/A<br/>Size:	116.6 KB<br/>ID:	3109566
 

Click image for larger version<br/><br/>Name:	Screenshot_2015-01-10-10-33-12.png<br/>Views:	N/A<br/>Size:	115.8 KB<br/>ID:	3109567
 

Click image for larger version<br/><br/>Name:	Screenshot_2015-01-10-10-33-43.png<br/>Views:	N/A<br/>Size:	122.8 KB<br/>ID:	3109568
 

Click image for larger version<br/><br/>Name:	Screenshot_2015-01-10-10-33-52.png<br/>Views:	N/A<br/>Size:	120.7 KB<br/>ID:	3109569
 

Click image for larger version<br/><br/>Name:	Screenshot_2015-01-10-10-33-59.png<br/>Views:	N/A<br/>Size:	120.0 KB<br/>ID:	3109570
 

Click image for larger version<br/><br/>Name:	Screenshot_2015-01-10-10-34-09.png<br/>Views:	N/A<br/>Size:	126.9 KB<br/>ID:	3109571
 

Click image for larger version<br/><br/>Name:	Screenshot_2015-01-10-10-34-16.png<br/>Views:	N/A<br/>Size:	122.4 KB<br/>ID:	3109572
 

Click image for larger version<br/><br/>Name:	Screenshot_2015-01-10-10-34-24.png<br/>Views:	N/A<br/>Size:	133.6 KB<br/>ID:	3109573
 

Click image for larger version<br/><br/>Name:	Screenshot_2015-01-10-10-34-30.png<br/>Views:	N/A<br/>Size:	128.4 KB<br/>ID:	3109574
 

















Aucun commentaire:

Enregistrer un commentaire