[Q] [GUIDE] Back up DRM Keys and so on

euronaut

Member
Feb 22, 2014
18
2
0
Because it's my first post and that's why i'm not able to reply to the original thread in android development Forum i have to ask start a new thread here.

I received my d5503 few days ago and read the [GUIDE] Back up DRM Keys & unlock/relock Bootloader (Noob proof). I was wondering if i can flash instead of, as stated in step 15.Flash D5503_14.2.A.1.114_Generic UK.ftf in flashmode (boot phone in flashmode again) (select Wipe [Uncheck ALL] and Exclude [Check SYSTEM] (link deleted) my OWN original D5503_14.2.A.1.142_Telekom.de DE.ftf which i made today with the files downloaded today with the sony pc Software and flashtool and which is the newer FW? I mean to have my stock Firmware rooted and afterwards backup TA partititions/DRM Keys.

Thanks in advance
 

euronaut

Member
Feb 22, 2014
18
2
0
I think you can yes. But probably you also need to have a flashable zip of /system from the german rom (see step 19) (see also this: http://forum.xda-developers.com/showpost.php?p=50355068&postcount=34 ).
By the way we will appreciate if you upload the ftf and post it here: http://forum.xda-developers.com/showthread.php?t=2631291 !
yep, after i read the guide again, i thought so too, but this is now the Point where my noobishness takes part. where do i have to type the

adb push busybox /data/local/tmp/
disconnect usb cable

open terminal emulator and do:
cd /data/local/tmp
chmod 755 busybox
./busybox tar pczvf /storage/removable/sdcard1/system.tar.gz /system

now you have full system backup in your external sdcard. Ater rooting, simple do:
cd /
busybox mount -o remount,rw /system
busybox tar xzvf /storage/removable/sdcard1/system.tar.gz
reboot
?? ;) in Windows cmd or terminal Emulator on my phone?

ill upload my ftf asap
 
Last edited:

zxz0O0

Senior Member
Apr 18, 2011
1,534
5,156
0
The first line is in windows cmd (in adb folder). Later on it's in terminal emulator (on the phone) as described. Then you can make a flashable zip of /system and use that in step 19.
And if you flash your own ftf in step 15, check if simlock.ta or preset1.ta is in the file list ("Content" in flashtool). If there is, exclude it.
 

euronaut

Member
Feb 22, 2014
18
2
0
The first line is in windows cmd (in adb folder). Later on it's in terminal emulator (on the phone) as described. Then you can make a flashable zip of /system and use that in step 19.
And if you flash your own ftf in step 15, check if simlock.ta or preset1.ta is in the file list ("Content" in flashtool). If there is, exclude it.
ok, i think i'll make it. i skipped all .ta files in my .ftf, because in the how to create .ftf guide it was mentioned. so no need to exclude. I'm uploading it at the Moment and post it to the thread you mentioned when upload is finished.
 
  • Like
Reactions: zxz0O0

euronaut

Member
Feb 22, 2014
18
2
0
here's the link for the .ftf. hmm, still not able to post links...
another thing i have to ask is, where do i get the busybox from? ;) for the adb push cmd from munjeni`s post?
 

zxz0O0

Senior Member
Apr 18, 2011
1,534
5,156
0
You can find busybox inside the Z1C-lockeddualrecovery(...)installer.zip you downloaded on step 13 ;)
If you want you can pm me the link and I'll post it. I think you need 10 posts.
 

euronaut

Member
Feb 22, 2014
18
2
0
next problem, next question :)

if i try to set permissions for the busybox with the chmod cmd, i get a no permission for chmod error on my phone/terminal emulator. Do i have to make this system dump after step 15. of the Back up DRM Keys Guide, or does this method only work for already rooted devices?
 

zxz0O0

Senior Member
Apr 18, 2011
1,534
5,156
0
Try this (all steps in adb on computer):
  1. adb push busybox /data/local/tmp
  2. adb shell
  3. cd /data/local/tmp
  4. chmod 777 busybox
  5. ./busybox tar pczvf /storage/removable/sdcard1/system.tar.gz /system

Copy system.tar.gz from your sdcard to your computer.
 

euronaut

Member
Feb 22, 2014
18
2
0
So the rooting guide was quiet good, no errors occurred and finaly i got a rooted uk .114 firmware and i coud backup my ta partitition. But, flashing my own or any other .ftf seems to make no sense, without flashing the corresponding system.zip in step 20 ;(.
I tried your adb cmd and it seemed to work in the first moment, but for the lost&found folder there was the error permission denied and in the end there was the following: tar: error exit delayed from previous errors
and theres no system.tar.gz on my external sd.

Any explanations?
 

zxz0O0

Senior Member
Apr 18, 2011
1,534
5,156
0
Yes I said you also need a flashable zip of /system (see post #2 and #4 of this thread).
I just tested it and I also have the error "tar: error exit delayed from previous errors" but I do have the system.tar.gz on my sdcard.

Did you already flash something? Because then you overwrote /system partiton.

Another method is: extract system.sin with WinRar from the ftf file. Open flashtool => Tools => Sin Editor => Extract data. Then find a program to open ext4 file (e.g. Ext2Read), extract the data and make a flashable zip.
 

euronaut

Member
Feb 22, 2014
18
2
0
Another method is: extract system.sin with WinRar from the ftf file. Open flashtool => Tools => Sin Editor => Extract data. Then find a program to open ext4 file (e.g. Ext2Read), extract the data and make a flashable zip.
This is exactly what i'm doing atm ;) and then i'm starting from the beginning...
 

euronaut

Member
Feb 22, 2014
18
2
0
after trying a lot of things, i didn't get a flashable zip :(. i took my sytems folder and meta-inf folder of the uk flashable zip and made my Firmware.zip with winrar, but got always errors during the flashing in dual recovery. after that i tried with the original uk.flashable.zip and everything went well. probably i'm not good in making flashable zips ;). is there any trick? my flashable zip is 1.5gb in size?!
 

zxz0O0

Senior Member
Apr 18, 2011
1,534
5,156
0
Open the uk flashable zip with WinRar and delete system.tgz (right click => Delete file). Then rename your system.tar.gz to system.tgz and drag and drop it into the WinRar window.
 
  • Like
Reactions: euronaut

euronaut

Member
Feb 22, 2014
18
2
0
Open the uk flashable zip with WinRar and delete system.tgz (right click => Delete file). Then rename your system.tar.gz to system.tgz and drag and drop it into the WinRar window.
Finally, everything flashed properly and seemed to work. But now it stucks at the sony logo direct after switching it on :(. So back to original FW :rolleyes:
 

zxz0O0

Senior Member
Apr 18, 2011
1,534
5,156
0
Did you follow these steps:


  • Flash your german ftf in flashmode (boot phone in flashmode again) (select Wipe [Uncheck ALL] and Exclude [Check SYSTEM]
  • Go to the Recovery Menu. To do that, power off your phone. Then power it on again. After the vibrate and the green LED turns on, hold Volume Up (LED will turn violet)
  • Now format /system (located under Mounts & Storage) (Important: Do NOT reboot until advised so or you will have to start again)
    [*]Do a factory reset
  • Install the following files in this order (Important) (see steps 4 - 6)
    • flashable german system zip
    • Z1C-lockeddualrecovery(...)flashable.zip
    • UPDATE-SuperSU-v1.(...).zip

If you created the system.tar.gz yourself, it's possible that the files don't have the correct permissions. You can try fixing permission in Recovery Menu. Not sure if it really helps. If it doesn't work I advise you to flash the german firmware (+ factory reset) and try these steps again http://forum.xda-developers.com/showpost.php?p=50559502&postcount=9 (you will lose root though).
 
Last edited:

euronaut

Member
Feb 22, 2014
18
2
0
what i did and how i did was exactly in this order:


1. I flashed my german .142 FTF to have my stock rom back.
2. i extracted a system.tar.gz according to http://forum.xda-developers.com/showpost.php?p=50559502&postcount=9
3. renamed that to system.tgz and did
4.
Open the uk flashable zip with WinRar and delete system.tgz (right click => Delete file). Then rename your system.tar.gz to system.tgz and drag and drop it into the WinRar window.
5. then i followed step 8 - 14 of your guide http://forum.xda-developers.com/showthread.php?t=2642081 with NO errors

and did these steps:


Did you follow these steps:


  • Flash your german ftf in flashmode (boot phone in flashmode again) (select Wipe [Uncheck ALL] and Exclude [Check SYSTEM]
  • Go to the Recovery Menu. To do that, power off your phone. Then power it on again. After the vibrate and the green LED turns on, hold Volume Up (LED will turn violet)
  • Now format /system (located under Mounts & Storage) (Important: Do NOT reboot until advised so or you will have to start again)
    [*]Do a factory reset
  • Install the following files in this order (Important) (see steps 4 - 6)
    • flashable german system zip
    • Z1C-lockeddualrecovery(...)flashable.zip
    • UPDATE-SuperSU-v1.(...).zip

If you created the system.tar.gz yourself, it's possible that the files don't have the correct permissions. You can try fixing permission in Recovery Menu. Not sure if it really helps. If it doesn't work I advise you to flash the german firmware (+ factory reset) and try these steps again http://forum.xda-developers.com/showpost.php?p=50559502&postcount=9 (you will lose root though).
exactly as you described them here ;)

after like doin your guide 5 or 6 times i'm pretty fast with it :D

now i'm back on my .142 FTF (flashed via flashtool) unrooted
 

veddharta

Member
Mar 13, 2011
34
3
0
Try this (all steps in adb on computer):
  1. adb push busybox /data/local/tmp
  2. adb shell
  3. cd /data/local/tmp
  4. chmod 777 busybox
  5. ./busybox tar pczvf /storage/removable/sdcard1/system.tar.gz /system

Copy system.tar.gz from your sdcard to your computer.
I get an error during this step:
tar: error delayed from previous errors
before i got
tar: /System'/lost+found: permission denied
Any ideas?
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone