yashsingh1/xdaforums huggingface dataset:
[Xperia Z3 Compact Android Development] HvdW:
How can I make an ftf?

Looking at the instructions on page 1 it seems easier to install the latest ftf (after backing up just data and nothing else) and start the instruction again with unlocking, installing twrp, wiping data, (make a backup if wanted), install su and DRM restore V3 and restoring data.

Or do I miss something?

Is DRM restore hidden somewhere in data?

Btw how did I come to this.

I made this full backup at point 19 both on the internal storage as on the SD card (better safe than sorry)

Trying to restore this backup, TWRP couldn't find the backup on internal storage and couldn't restore the backup in the SD card.

So I got back to opgrading from 3027 again.

And this upgrading is really quick if you have no apps installed.

Final: 3555 gives us the Z5 camera and more to come!

I am really happy with my Z3C!
[Xperia Z3 Compact Android Development] HvdW:
Can you see the difference?

(Yes I know, my keyboard needs a full wipe)
[Xperia Z3 Compact Android Development] Karlmay70:
I have exactly the same problem.

Also tried to restore a TWRP 2.8.7 backup, but it does not work either.

Could please somebody provide a TWRP backup of the system partition.

Thx
[Xperia Z3 Compact Android Development] pavholm:
I did it. after starting twrp enable read only mode. then make backups
[Xperia Z3 Compact Android Development] mEREHAIGE:
I have Concept 3536 installed at the moment and I'd like to to try Sony's official beta for a while. But AFIK it can be installed on locked bootloader only, right? How can I lock my BL again? I've tried with Flashtool several times but it says my bootloader cannot be locked. Do I have to change the bootloader some how because when I boot into fastboot mode I get Concept bootloader menu?
[Xperia Z3 Compact Android Development] ElakNovAlamak:
I didn't check if this has been mentioned yet, this is how I updated my concept MM

1. Full backup on TWRP recovery and by Titanium Backup, just to be sure.

2. Flashed last FTF concept from the first link with Flashtool.

3. Relocked bootloader with Flashtool BLU

4. Rebooted to system to see that _everything_ is still in place, software, data, everything.

5. Installed all the updates. I did'nt check my previous version, but I installed at least 3 updates.

7. Unlocked bootloader with Flashtool BLU

6. Flashed TWRP 3 recovery

7. Flashed SuperSu, DRM Restore, xPosed on TWRP recovery

8. Booted the system up to see that everything is still in place. Including root and xposed modules and settings.

I am definitely going to try this same method when next OTA update gives popup. Fast and simple. No need to restore backups. :cool:
[Xperia Z3 Compact Android Development] Nurmi_CEO:
Darn it, this happened to me last time and I had to wipe everything and start over. But now it's happened again! I thought it happened the first time because when I went to restore my backup, I originally picked the wrong backup.

I followed the instructions exactly. All was good, but then I kept getting the new update available message. So I followed the instructions for updating, and when I'm on the step to go back to step 3-7 and relock the bootloader, right after I relock the BL, the phone won't boot up! The red power light just flashes. Plenty of battery power.

It does vibrate 3 times if I hold power + volume but still no boot.

I'm pretty sure I can get into download mode to start over once again, but what's up with that?

Next time I want to try the update method by the poster above. But I'm afraid after I try and relock, it won't boot again!
[Xperia Z3 Compact Android Development] istux:
When this happens, try to press power + volume.down together until you get one vibration, then release only the power button.

You should enter recovery.

OK it's not a solution, but once you get into recovery, you have the chance to change something.

Actually I don't know why so many people have problems while resuming the backup. Probably a wrong perception/knowledge of what they're really doing.

I've never had this kind of problem actually..

Anyhow I'm available to remove the second part of the tutorial if this can help ;)
[Xperia Z3 Compact Android Development] cattolicboy:
[MENTION=4708091]istux[/MENTION], isn't like that, I assure you that I've always followed meticulously your suggested steps for updates, but it would always result with the same failure.

Probably some variables are the culprits for this issue, but the problem is to discover which one are those variables.

Anyway it's not a big deal for me, just when a new update is available, I start again from the 2156 build.
[Xperia Z3 Compact Android Development] HvdW:
I used about the ElakNovAlamak method, only difference that I made a TWRP copy of data, that's all.

No lock or unlock troubles, just straightforward.

Then latest ftf available, ugrade to newest version, fastboot, TWRP recovery.img, restore data and off you go.

Oh yes, one more thing:

Rooted with Xposed, Greenify and BootManager produces a more or less endless battery life!

Top line say 26% battery life left, bottomline say Phone inactive 5%
[Xperia Z3 Compact Android Development] Nurmi_CEO:
For the updating steps, the 4th bullet says "Do a full wipe"

When I did my wipe, I did the default option "wipe all" I think? I don't have TWRP now so I can't check. It's the one that defaults when you go to wipe and it says "Most of the time this is the wipe you need". It wipes cache, dalvik, and data if I remember right.

Does the full wipe mean just that standard wipe? Or do I have go to in the Advanced and check all the boxes (except hard drive)?
[Xperia Z3 Compact Android Development] istux:
Ok guys, I will change the OP then.

Let's understand what's the better way ;)

I will do some tests keeping in mind all your suggestions :good:
[Xperia Z3 Compact Android Development] bastardociccio:
Maybe the problems are more than one...

But we could try to find one global solution

If I don't flash a original FTF , when I LOCK the bootloader the phone stop to work (and its correct, because you can't have TWRP recovery wothout unlock the bootloader...)

also

To help, i find that to update by OTA you don't have to LOCK again the bootloader !

If you flash the ftf with bootloader unlocked, it already works!

Also to help, the problem (for me) if you restore a backup is that you have TWRP on recovery... if you don't have all original you can't update... "the system warn you"... so the recovery must be "clear" ???

So "Maybe" One possible solution is:

1.to restore a basic backup (like in point 19 of your guide) from TWRP

THEN

2.do a fastboot flash recovery "original_recovery" (in fastboot mode)

(but i don't know how to extract original_recovery from the original FTF)

or

2.flash/install from TWRP the original recovery.zip (but i don't know if there is one)

or

2.flash ftf "exclude all except boot/recovery" (to have the same result but i don't know if is possible)

or

2.other method to clean the recovery

THEN

3.reboot and update from OTA (it would work with original recovery)

...

Or, if we wanto to use the flash "complete ftf" method (that works, but you have to update many time to receive the last update) we can find a method to create a ftf ... or we can find a more recently ftf ? (3550? 3555?)

Someone know how the 3027 FTF firmware was release?
[Xperia Z3 Compact Android Development] istux:
I've got an idea.

Soon after you've restored the previous backup and just before you are to relock the bootloader, you can remove the recovery with this command via fastboot:

fastboot erase recovery

Someone who had the problem aforementioned, could try please? :) I have no time these days.
[Xperia Z3 Compact Android Development] Nurmi_CEO:
So is this the reason why our phones won't turn on when we update? Because now I have a new update message nagging me and I don't want to reload everything again!
[Xperia Z3 Compact Android Development] jutphaas:
I have a question with my problem in updating, I have installed and updated using this way, (now i am on 3555), but I have set the sd card as internal storage.

That works fine for me, but, is it possible at all to install these updates when you have the sd as internal storage?

The rom works very well for me, but I do get the update notice and I think if I want to update, I may have to backup the entire sd again to pc, update from the clean twrp backup, copy content from pc to sd, and just use titanium backup etc to restore..

If I make twrp data backup that is about 8GB. and I do not know if it will "recognize" the sd card again, while keeping all the content on it.

Or does anyone have link2sd and foldermount working correctly on this rom , I used to use those, but now with 6.0 this internal sd method works great for me, except I cannot figure out how or if I can update it when sd is made internal...

So did anyone try this with the sd set to internal?
[Xperia Z3 Compact Android Development] Karlmay70:
Quick, simple and it really works.

Thx.
[Xperia Z3 Compact Android Development] iliusha:
What about next update?
[Xperia Z3 Compact Android Development] bastardociccio:
If you use the "complete method", you can NOT re-lock and then UN-lock (again) the bootloader.

The update works fine also with bootloader unlocked...

---------- Post added at 10:27 AM ---------- Previous post was at 10:12 AM ----------

Here we are...

we are on the right way.. but it is not enough...

With this i can re-lock the bootloader and the system not stop to work... and it is a STEP.

But i can't update because the system is "corrupt"

To explain better:

-I make a complete wipe (cache, devilcache, data... or factory reset like twrp call this wipe)

-I restore the backup (clear,make at point 19)

-I erase the recovery from fastboot

when I reboot on the display I read a message "the device is corrupt, it can't be trusted" or something like that (I think this is the new Marshmallow boot verification system).

So I try to re-lock the bootloader, but the message is still there on the next reboot...

And if i try to update the system (the system boot normally after the corrupt message)... it say that the system is not trusted... bla bla bla... (something on dm-versity) and I can't update. Also with bootloader LOCKED .

So, what can I do to restore the "boot verification system"?

Maybe instead of erase the recovery we have to flash the firmware without (or with excluding) something ?

(after the restore of the backup, we can do a partial flash?)

Some ideas ?

thanks

UPDATE:

I read this on the nexus forum:

"So I ran into this same issue again. It seems that mounting /system with read/write enabled in TWRP causes the message to appear. Simply reflashing system.img corrects the issue without having to lose any settings/data/apps."

Maybe before the restore of backup we have to erase/wipe also the system ?

Or maybe we can make system readonly(from twrp) before the erase of recovery?

(something to try)

:)
[Xperia Z3 Compact Android Development] istux:
This is quite interesting!

Could you tell me what version of TWRP you've got?
[Xperia Z3 Compact Android Development] bastardociccio:
twrp-3.0.0.0
[Xperia Z3 Compact Android Development] HvdW:
[MENTION=1524741]bastardociccio[/MENTION] & [MENTION=4708091]istux[/MENTION]

Yes, and?

Can't wait to hear a solution!
[Xperia Z3 Compact Android Development] snaky90:
With this metod DRM-Restore works without wipes? (without wipe /data)
[Xperia Z3 Compact Android Development] HvdW:
But why this unlocking and locking?

Keep it simple, keep it unlocked.

We screwed up our DRM keys anyway!

Everything updating works perfect unlocked.
[Xperia Z3 Compact Android Development] leenamtuankorean:
Thanks for your sharing!

I am not good at English, sorry. but I have a Z3c Docomo phone. My phone was uclocked by seller. I don't care but when I kwon it make my phone lost X-riality, Bionz, Noise Cancelling...like that.. I was so sad. I tried to study how can I get that funtions back.. And I read yor topics. I so happy. I triet to follow your guide step by step carefully but I was not succsessfull!

I don't understand 14 step: HOW TO ENTER: FASTBOOT MODE VIA PC. (I can not see in Flash tool or in My phone)

"Enter fastboot mode via PC (turn off the device, press and hold vol.up and plug in the USB cable)

and enter the following code in terminal:

Code:

fastboot flash recovery recovery.img"

So, I choosed "SELECT KENEL TO FLASH " In Fastboot mode to flast TWRP (recovery.img). It ok to setting TWRP but when i enter in it, I installed DRK key funtions restrore zip. -> OK.

But when I reboot sys --> NoT OK. My phone can not get out TWRP MODE. Hhuhu...

Pls Help my.

THanks alot

(I USE WINDOW 7)
[Xperia Z3 Compact Android Development] istux:
Let me say that the seller wasn't completely honest with you :mad:

Please don't use Flashtool to flash recovery.

To enter in fastboot mode, you have to:

1) install this: http://xdaforums.com/showthread.php?p=48915118#post48915118

2) go into the directory where fastboot has been installed, click with the right button in an empty area, so you get a menu and now click on "open command window here"

3) turn off the phone, press the volume.up button, keep pressed and connect to your PC until the led turns blue, now you can release the button

4) now you can write the command line into the black window
[Xperia Z3 Compact Android Development] leenamtuankorean:
First at all, thank so much for your help. I can go and good at 15, But in 16 "Don't unplug the cable, because you need to enter the recovery from Concept bootloader menu you can see when you're in fastboot mode"

WHen i finised flashing TWRP by PC it say: OKEY. But then nothing go on. I don know how to "enter the recovery from Concept...." as you say. If i do not unlug cable., no thing to do.

I am so sorry by my so many questions for you. Pls, help my go to the end.

Thanks a lot!

PS: on the CMD adb after flash recovery.img i can not see anything more "OKEY". I try to type: "adb reboot recovery" to enter recovery mode but i can not. An error say "error "<null>' device not found". huhu. How can i do!
[Xperia Z3 Compact Android Development] WieserZ1C:
Reinstall the drivers ( flashtool folder driver ) reboot. Cmd with admin Privileges ( Right shiftv+ right mouse -> open cmd here ) single lines to enter when your phone Shows a blue led light (has to do ! ) [ Plug in your usb on Laptop/Tower then plug the micro usb into phone, press and hold vol up until it booted into fastboot mode ] :

1.Adb fastboot

2.fastboot devices ( to be sure one is found ) [ Emulators and flashtool have to be closed completely or two devices will be recognized ! ]

3.Fastboot flash recovery Your_Recocery.img ( has to be placed in the folder where cmd is opened in )

For me its for example : fastboot flash recovery twrp.img

Then navigate reboot to recovery via vol buttons or simply tipe last but not least fastboot reboot Recovery
[Xperia Z3 Compact Android Development] leenamtuankorean:
Thanks!

Thanks alot, but i can not go to the end by this way. I tried in another way I got it sucessfully! Now may cam, albun view X-riality has come back. So nice!

Anyway thank for all!
[Xperia Z3 Compact Android Development] xor_:
Hi all. What do I have to do to get to another ROM from this?

After flashing 23.5.A.0.570 SLiMM 1.5 from recovery, I get a message "failed to mount /system (Invalid argument)", and the phone gets stuck at the Sony screen when rebooting.

While the ConceptMM works very well for me, I figure I should switch to some rooted and debloated version of the official MM release to make updating less of a headache. Do I have to flash an old official 5.X ftf, root, and then update? Or is there a more direct update path?

Any ideas?
[Xperia Z3 Compact Android Development] Dark Emotion:
Try to search the slim thread, some guys got the same problem, here is a post that might help you: http://xdaforums.com/showpost.php?p=66688272&postcount=752
[Xperia Z3 Compact Android Development] mEREHAIGE:
I had the same problem when I wanted to try SLiMM. AFAIK there is a difference in system partition sizes or something. I managed to get rid of the Concept just like you described it, flash ftf with the Flashtool, root, flash recovery and then flash SLiMM.
[Xperia Z3 Compact Android Development] cattolicboy:
I have just updated my pc desktop to win 10 and I have some issues to complete the flashing process of the ftf files through the flashtool.

Never had problems before with win 7.

Any tips?
[Xperia Z3 Compact Android Development] mEREHAIGE:
Which Flashtool version are you using? Don't use the latest, try older, v0.9.18.5 for example.
[Xperia Z3 Compact Android Development] cattolicboy:
Ahh thanks, so that one was the culprit!

Yes, I was using the latest version, I will revert back as you suggested.
[Xperia Z3 Compact Android Development] d14koo:
Can I use twrp to install DRM on stock 6.0.1?
[Xperia Z3 Compact Android Development] poobucket:
Can the drm restoration be done on a xperia z3c (d5803) running cm12.1 ?
[Xperia Z3 Compact Android Development] istux:
Nope, it works on stock roms and Concept only.
[Xperia Z3 Compact Android Development] AlexRusak:
Z3 compact Slimm ROM - works!

but is it work only for stock camera or fon any camera app?
[Xperia Z3 Compact Android Development] istux:
Stock camera (which is the same included in Concept rom)
[Xperia Z3 Compact Android Development] AlexRusak:
why only stock? ist not cool.

mod will not work with Snap Camera?
[Xperia Z3 Compact Android Development] marshalpear:
To people who don't want to mess with all that update stuff :

http://xdaforums.com/z3-compact/general/guide-how-to-install-sonys-cocept-t3279522

There is a link to the latest version of Sony's Concept Software...

EDIT: Sorry for the wrong info guys, it's not the latest version but still it will save you from some of the updates...

Also someone please hit me up if you have a link to the latest FTF of Sony Concept, thx in advance
[Xperia Z3 Compact Android Development] mkkyah:
no BT after upgrading to 3598

Hi,

Can someone confirm that Bluetooth is still working after upgrading to latest 3598.

I did follow instructions by ElakNovAlamak as usual to upgrade from 3561 to 3598. After that my BT is gone. I cannot turn it on, no activity. I have checked google+ community for the Concept but no one seems to have same problem (only crash and reboot problems known).
[Xperia Z3 Compact Android Development] Sofio954:
Hi Everybody,

I follow step by step and I have a problem at the step 15 when I need to be in recovery mode (fasteboot) vol + and plug on pc.

I see the led blue and flashtool say I'm in fastboot mode... I have alse a folder with the .img rename "recovery.img" downloaded previously at step 14.

(Look the attachement)

I do all manip and it's working good, but nothing happen on my phone. The blue led is here and nothing change...

What I have to do ?

Thanks in advance.
[Xperia Z3 Compact Android Development] lamducthien:
Hold volume (-) + power
[Xperia Z3 Compact Android Development] Sofio954:
Thank's a lot! The recovery is working now ;)

But when I flash the superSU zip and reboot, I dont see the application on my phone... I try to use app "Quick Reboot " and I see the error message "root access denied" ....

I don't understand why :(
[Xperia Z3 Compact Android Development] Matteo Mazzu:
Sorry for my ignorance, but it's been a while since I last updated my concept rom. I was just wondering if now it includes the N preview or is it still MM. I belive I'm still going to update, but was wondering what to expect! Thanks anyways ;)
[Xperia Z3 Compact Android Development] jcatfour:
Hiya, I breifly scanned the thread, and I didn't find anything that quite answered my questions.

How does this run compared to the official stock MM rollout? Is it faster? Slower? The Same? Is the battery life better, worse, or the same? If anything is a downgrade or an impovement here, how big of a difference is it? Thanks!
[Xperia Z3 Compact Android Development] jcatfour:
Everything is flashed, and so far, working great! I still need a few days or so to ensure nothing is acting wonky.

So, what version of Xposed should I go with? What's compatible? I'm running SuperSU 2.65 (beta), and I've got the D5803 model. I want to do everything I can to boost performance and battery life, but I don't want a bricked or buggy phone! D:
[Xperia Z3 Compact Android Development] marshalpear:
Speed is almost the same in between two ROMs but multi-tasking seems to be better in the Concept ROM, also the Concept doesn't have the bloatware that the stock has. But I found the stock MM to last a bit longer than the Concept because stock MM has assertive display that kinda reduces the battery usage caused by the screen. Think of the concept ROM as a concept car, looks cool (glorious stock look), fast and it is pretty much liked by the community, whereas the stock ROM has stability and support more over than the concept.

Concept ROM also has "Layers" support, which allows you to theme the heck out of your phone but a simple mistake and boom, your phone is soft-bricked. Honestly, you need to try them both, I know it is a big hassle installing the concept ROM and rooting it, but you just can't decide which is best for you without trying. I am using a debloated stock MM which is the best in my opinion after trying many ROMs for this beautiful device. If you decide to install MM, try Force Doze app, it endures your battery insanely! Write your feedback about the concept, enlighten everyone! :good:

---------- Post added at 03:06 PM ---------- Previous post was at 02:57 PM ----------

Use Greenify to hibernate apps you don't usually use, some people suggest against using Amplify as MM has "doze" built-in, that's the reason I'm not using it. Try the new "Force Doze" app, it's awesome! Check kernel settings with an app like Kernel Adiutor, if you have experience of course, some say that using all cores on low frequencies can prolong the battery life while keeping the performance at peak. I'm not sure concept allows you to do that but you can always pick "Multi-Core Power Saving" option in Kernel Adiutor. Try uninstalling any app that you don't use, after installing every app you need on your phone, wipe cache and dalvik cache only then reboot your phone to let it optimize all the apps again. If you're not happy with the multi-tasking etc. you can use Fly-On Mod app to enhance RAM management etc. BUT it caused over-heating on my phone even if it increased the performance a bit. Here's a link for the app I'm talking about: http://xdaforums.com/android/software-hacking/app-fly-mod-app-2-0-alpha1-feel-t3213642

Forgot to add, any Xposed sdk23 version should do.
[Xperia Z3 Compact Android Development] jcatfour:
Hmm, should I not set greenify to hibernate apps I frequent, as well? I use Swipe (Facebook app) a lot, but I'm not on it all day, just maybe an hour or 2 everyday. Would it be inefficient to set it to hibernate after a few minutes without use? Another thing: I also looked at debloat ROMs, but I didn't see too much. I found one I was unsure of, as it still appeared to contain some of the things that annoyed me (especially the quick-access app tab when you try to view recent apps!). What do you use?
[Xperia Z3 Compact Android Development] marshalpear:
If you set Greenify to hibernate apps you usually use for messaging (i.e WhatsApp), messages might not arrive in time unless you open the app manually. I'm using Marilia De Oliveira's debloat solution something called "Max Ultra Fury Alliance blah blah" :D It has Xperia X systemui which is beautiful, this solution does not have quick apps ( I hate them too ). To install it you need to follow these (http://xdaforums.com/showpost.php?p=67113371&postcount=559) instructions and then flash Marilia's solution v1, v1.1 then final version. After that you can flash whatever you like (sound mod, xposed etc.) It has Force Doze, xposed, gravitybox built-in. Even though it has xposed built-in, you need to flash the flashable zip through recovery. Marilia's solution : (http://xdaforums.com/z3-compact/development/rom-xperia-performance-max-ultra-fury-t3391697)
[Xperia Z3 Compact Android Development] jcatfour:
Hmm... does it preserve DRM keys?