yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ1 Compact Questions & Answers] muphetz:
Error start from when im downgrade rom with newflasher with flash persist,phone keep rebooting because there are no imei,no simcard,no baseband,,,and u start to unclok with qunlocktool because unlockboot allowed no,and its succes allowed yes,,restore backup from qunlock still no simcard detect and wifi,,
[Sony Xperia XZ1 Compact Questions & Answers] brodo:
Hello,

may it be that the attest key is also related to GPS problems in addition to camera notg focusing etc?

Like disscussed here many have problems with GPS on this device and so do I. But after everything I read about it I still don't know whether it's hardware-related or something else.

Since I originally assumed a hardware issue, I bought another used xz1c and checked explicitly that GPS is working fine (quick fix and good accuracy). But after downgrading to 47.1.A.8.49 (without persist file), backing up TA-partition and upgrading again to Oreo (47.2.A.11.228) GPS reception seems to be as bad as on my first xz1c.

Meaning: on good external conditions it can get a fix but it takes very long and the accuracy is bad and also fluctuating very strongly (between ~10m and ~100m).

SOMC FIDO Key and Adroid Attest Key are shown as provisioned but from what I learned in this thread that's not a sure sign that they are really there. (?)

I am really clueless at this point and the only thing that I can relate to the problem is downgrading the firmware. If that's so, could there be a solution to this? I have a backed up TA-partition and tadump-files from newflasher.

edit: My older z3c gives me 3-5m accuracy under same conditions.
[Sony Xperia XZ1 Compact Questions & Answers] j4nn:
In my opinion unlocking the bootloader or loosing the attest key does not have any influence on gps.

I can tell that because I am running a still locked xz1c with the attest key (verified to work reporting locked bootloader) with an old custom build of LOS16.1 and I also sometimes get problems with gps locking. Sometimes it locks very fast, other times for unknown reason it takes ages.
[Sony Xperia XZ1 Compact Questions & Answers] waqypaqy:
So what was the conclusion of this thread then?
[Sony Xperia XZ1 Compact Questions & Answers] Quigley:
Sorry you lost me. How can you run LOS16.1 on a locked XZ1C?

A bit confusing as there's no real conclusion to be read anywhere. But the first post was edited to start with "Update: Android attest key is lost when persist.sin partition is flashed." So there it is, just has to do with the persist partition. However flash tools now do not automatically flash this partiition luckily.
[Sony Xperia XZ1 Compact Questions & Answers] j4nn:
https://xdaforums.com/t/android-pie...locked-bootloader-permanently-rooted.4005711/

The thread is marked as solved, because the original problem was a question how can you loose the attest key.

That question is answered, moreover there are links for how to verify if an attest key still works or not, basically showing what it can be used for.
[Sony Xperia XZ1 Compact Questions & Answers] seyrarms:
Hello buddy can u help for device sony xperia xz3? My case is same not provisioned key. Can u help me too
[Sony Xperia XZ1 Compact Questions & Answers] tonsofquestions:
I picked up a backup XZ1c (still using my trusty old one) and was starting to go through the process of rooting again. What's the final word on the attest keys?

From memory, the other SOMC keys are lost on bootloader unlock - is the attest key also lost on unlock?

I recall there was some debate about whether it was better to have the key provisioned vs not when in an unlocked state, but I'm (a) not sure if there was any further info, or (b) if unlocking gets rid of all the keys, anyway.

Any best practices? I'm planning on rooting and installing a custom rom, so it's also possible that it just doesn't matter since it's possible to hide the status. But I figure I might as well see if it's worth keeping my options open, like with backing up that TA partition.

Thanks!
[Sony Xperia XZ1 Compact Questions & Answers] j4nn:
@tonsofquestions the attest key is not lost on bootloader unlock if still provisioned before - the problem is that with the key in unlock state, the attestation reveals the bootloader has been unlocked - you can see that described here in this thread iirc, so it makes it useless.

The key may be useful if bootloader is still locked (when running modifications/custom rom via other exploit).

Or if there was eventually found a way to relock (not likely to happen).

I would backup TA to keep options open. It may also be useful to backup xflkeystore and persist partitions.

And a log from newflasher run from empty directory, not flashing anything, to obtain the phone's ids.

But I am afraid unless you use a custom rom which would allow to use sony stock camera, there would probably be not any benefit from restore of device key.
[Sony Xperia XZ1 Compact Questions & Answers] tonsofquestions:
Good to know, thanks!

So it sounds like it may be better to flash persist.sin (and lose the attest key) to not reveal anything about the bootloader state?

I was definitely going to backup/restore my TA (already backed up, actually) - that seems like a good one for flexibility.

How does one backup the xflkeystore and persist partitions? Are those ones to then restore after the unlock (like the TA), or are they just for posterity? I haven't seen references to doing that before e.g. in the other threads. What's in them? Or would backing it up allow you to restore the attest key if persist.sin is flashed - again to provide flexibility?

Are the phone ids mutated by the unlocking? What benefit does logging/saving them provide?
[Sony Xperia XZ1 Compact Questions & Answers] j4nn:
I still would avoid flashing persist - there may be other device specific data.

You can remove the attest key just by removing a file from perist partition - similarly as when you can create that file empty to fool the service menu to think the key is there, but not working - see it mentioned in this thread.

Probably restoring persist backup should restore the attest key getting it working again if still bootloader locked.

After unlock, if persist restore worked, it would only show the unlocked state.

I think xflkeystore is also device specific - it is connected to TA content.

While that one is not lost (and iirc not modified) with unlock, it may be helpful to keep it just in case for some recovery purposes, possibly together with device ids.

This is just a not tested idea - I wonder if it would be possible to recover/decrypt userdata from flash having that, like when the phone (cpu) would die.
[Sony Xperia XZ1 Compact Questions & Answers] tonsofquestions:
Great. Is there documentation somewhere on which files to modify and and how to access them? Or how to backup xflkeystore that one's new to me.
[Sony Xperia XZ1 Compact Questions & Answers] j4nn:
It is a name of another partition, like TA, so you can use the same dd command to back it up.
[Sony Xperia XZ1 Compact Questions & Answers] tonsofquestions:
Ah, of course. I forget android has the by-name.

Trawling the thread I see the files you mean: /persist/data/keymaster64

Last question: it seems there was an open question about whether using keys from another device would work, but I couldn't see if an answer was discovered. Do you happen to recall?
[Sony Xperia XZ1 Compact Questions & Answers] j4nn:
Using a key from another device would never work, all keys are device specific.
[Sony Xperia XZ1 Compact Questions & Answers] Techno_Physics:
Can we use it to fix safety net or keybox broken due persist flash?
[Sony Xperia XZ1 Compact Questions & Answers] Techno_Physics:
Can someone provide me an unbanned keybox.xml for TEE hardware attestation?
[Sony Xperia XZ1 Compact Questions & Answers] j4nn:
If keys are lost, no way to fix, unless you have a backup (and even that has not been tested yet afaik).

Faking the keys are present does not make them working even if service menu would show them as ok.

Not sure what do you mean?
[Sony Xperia XZ1 Compact Questions & Answers] Techno_Physics:
I mean KEYBOX.XML that comes with phone to flash it on my phone bcz it's ATTESTION keys are lost....
[Sony Xperia XZ1 Compact Questions & Answers] Techno_Physics:
@chiteroman is there a way to extract keybox.xml out of old device bcz I have one that passes safety net And I also want to push that file on my current device?

Plz reply I know u are busy

I appreciate your work 🙏
[Samsung Galaxy S7 Edge Questions and Answers] e4zyphil:
Hey guys,

I want to flash a custom ROM on my s7 edge, model SM-G935F.

for the purpose of updating it's firmware and kernel. you know, newer software, more functions, better performance, better battery life. such things.

i'm on android 7.0 at the moment, and want to switch to 8.0 if not newer.

but there are too many options. and i really tried informing myself on the topic.

ROMs with S9 experience sound nice but I don't want to switch my ROM around everytime in the case of bugs.

this topic is so hard for me because in every thread i could see people saying it would be the best ROM they ever had, some say else.

please tell me your experiences with different ROMs.

a must-have is a fix for the securitylogagent, or removel or whatever. it keeps popping up on my phone and its annoying as hell.

thanks for your replies in advance
[Samsung Galaxy S7 Edge Questions and Answers] e4zyphil:
could someone recommend some?
[Samsung Galaxy S7 Edge Questions and Answers] AndrOmega:
SuperMan rom is the best
[Samsung Galaxy S7 Edge Questions and Answers] Rehvix:
I would reccommend sac23's s9 port but he took the thread down. If its possible I could share a mirror of the zip.
[Zenfone 5 Q&A, Help & Troubleshooting] jesemalave1:
Does anyone know where I can find a zenfone 5q rom?
[Zenfone 5 Q&A, Help & Troubleshooting] djbigbee:
Zenfine 5q

This phone must be dead no one is working on a rom but we have root????:confused:
[Zenfone 5 Q&A, Help & Troubleshooting] jesemalave1:
This is rddiculious. No one has a holster either
[Zenfone 5 Q&A, Help & Troubleshooting] Cyb3rk1ll:
Root would be a simple task. Install magisk manager and use it to patch the original boot image and install the patched image using adb.
[Zenfone 5 Q&A, Help & Troubleshooting] jesemalave1:
This is crazy anyone think they can work on a rom for this
[Xiaomi Redmi Note 5 Pro Questions & Answers] Egyptiandroid:
Please if anyone helps me to install custom rom to global redmi note 5 :)
[Xiaomi Redmi Note 5 Pro Questions & Answers] kostas gp:
No offense but, it is not that hard of a procedure to do without a personal assistant. First you will have to unlock your device's bootloader, then flash custom twrp recovery and using the recovery you can flash anything you want. These are the steps very concisely. For each step you will have to do some research. Don't worry. You will find a plethora of really analytical step-by-step guides for everything, from unlocking bootloader to each rom you want to flash.
[Xiaomi Redmi Note 5 Pro Questions & Answers] engloa:
Thread closed as youve already asked here

https://xdaforums.com/redmi-note-5-pro/help/help-please-to-unlock-bootloader-t3858609
[Android Q&A, Help & Troubleshooting] Qiangong2:
If any of you don't know, pocket planes was a game, created by nimblebit studios that was released in 2013. However, the Android port was done by a company called Mobage. In 2015, Mobage dropped server support for Pocket Planes for Android. Thus rendering it impossible to play.

Pocket Planes forces you to connect to a server before allowing you to enter the game. Is there any way to spoof that connection? Either through decompiling the apk or some other way?
[MDA III, XDA III, PDA2k, 9090 ROM Development] shaundzn:
Hi,

After installing wm6(it's up and running great), i have a problem with Active Sync 4.5 on my XP, it gives me an error "USB device not recognised". So i tried to run installation again, when i put BA in Boot Loader mode it comes up with a message "Serial" at the top of the screen and "v2.08" at the bottom.

I have been reading a few threads and from what i see it should read "USB"

at the top.

I have verified that my cradle and PC are working, i have done a clean XP installation and new Active Sync 4.5 install and i still get the "USB device not recognised" error.

Any ideas on how i could solve this problem.

Thanks
[MDA III, XDA III, PDA2k, 9090 ROM Development] griffo1962:
USB problem

Is your cradle plugged directly into a spare usb port. (ie NOT a usb hub) It will NOT work if plugged into a hub.

good luck

griffo
[Verizon Samsung Galaxy Note 8 Questions & Answers] malzahrani:
I got this issue started in my Note 8 since June 2018

My Note 8 turns off automatically when I plug it for fast charging and shows that battery charging status. I tried powering it up but it keeps turning back off by itself. :rolleyes:

Any ideas what might be the problem?

Thanks.
[Verizon Samsung Galaxy Note 8 Questions & Answers] Jjavitable22:
I have the same problem. The phone needs to cool down first. Put it in the freezer for 2 minutes and then try it again. If you're in the car then cool it with the AC vent. Crappy solution but it works for mine.
[Verizon Samsung Galaxy Note 8 Questions & Answers] malzahrani:
I took the phone to Ubreakifx store and they told me that this is a charging port issue at first, then the next day they told me the motherboard is the problem because the phone didn't even pass the hardware diagnostic test. Therefore, phone replacement is necessary from Samsung due to this crappy factory defect.
[Sony Xperia XZ2 Compact Questions & Answers] blinksilver:
I'm thinking about xz2c as my next phone! I'm super keen on the camera so I'm mulling over the idea of sticking with stock instead of rooting. The only real gotcha being that I usually dump all the google play/services/apps/etc which may or may not be possible without root. It seems as if it is up to manufacturer discretion. For example, on the blackberry keyone it was, but on the s9 it is not.

Would someone be good enough to see if the store, play services, and whatnot can be disabled?

Cheers!
[Sony Xperia XZ2 Compact Questions & Answers] ehBrY:
Am very interested in ability to do this with all Sony phones. Is there a easy way to disable play services?
[Sony Xperia XZ2 Compact Questions & Answers] mrassol:
if you know the package name, you can uninstall any app with this command : adb shell pm uninstall -k --user 0 packagename
[Sony Xperia XZ2 Compact Questions & Answers] blinksilver:
I know the command but didn't realize it could be used for system apps on a non-rooted phone. Seems like a really serious security oversight right?
[Sony Xperia XZ2 Compact Questions & Answers] FcukBloat:
for sure if you disable the wrong system apps you can make your phone unstable/not bootable ;)
[Sony Xperia XZ2 Compact Questions & Answers] mrassol:
system is not writeable, so if you have a problem, reset the phone and retry ;)
[Nexus 4 Android Development] sudokamikaze:
Unofficial TWRP 3.2.3-0 UA​

F2FS Support

EFS & Persist backup support

Clean device tree

Based on Unlegacy-Android kernel

Regular updates

Known-issues

- To be filled

Installation

1. Go in fastboot mode (hold down Power + Vol down for few seconds.

# Or use flashers like Flasify/FlashFire and others

2. Open terminal window/command prompt to execute following commands:
fastboot erase recovery
fastboot flash recovery twrp_mako-3.2.3-0.img
3. With volume up and down select recovery mode and press power button
4. Enjoy your reboot in TWRP

Downloads:

Latest: AFH

Credits:

Special thanks to

- TWRP team

- Unlegacy-Android team

- Clamor

- And anyone I forgot to mention

Additional sources:

Kernel Sources: Github

TWRP Sources: Github

XDA:DevDB Information

Unofficial TWRP 3.2.3-0 UA, Tool/Utility for the Google Nexus 4

Contributors

sudokamikaze, clamor

Source Code: https://github.com/clamor95/android_device_unlegacy_recovery/tree/mako

Version Information

Status: Stable

Created 2018-08-16

Last Updated 2018-08-17
[Nexus 4 Android Development] yellowpage:
Thank you Sir for continuing support mako...:)
[Nexus 4 Android Development] /root:
Have a stock Nexus 4.

Will be unlocking it and installing some ROM.

What is the difference between this and the official TWRP version?

Is this version of TWRP better than the official twrp-3.2.3-0-mako?

Thank you.
[Nexus 4 Android Development] sudokamikaze:
Please, read OP post again. Our recovery has F2FS support for /data & /cache. EFS/Persist backup support, that means you can backup your IMEI/WIFI + BT Mac address stuff. And compare teamwin device tree and ours, I'm sure that you will be impressed
[Nexus 4 Android Development] /root:
So should I format all partitions to f2fs and then install LOS? Is that advisable or should I just change filesystem for cache and data?

Edit 1 : btw Great recovery . I had to give it more than 2 tries though at first it got stuck in a bootloop of never entering the recovery page. then i flashed stock and tried again that time it couldn't format and twrp never got proceeded. did a stock flash again and the third time it worked fine.

Edit 2 : So checked the fstab of mako on LOS and it seems f2fs is only supported for /cache and /data. So only those two partitions need to be changed to f2fs format. Am I concluding it correctly?

Thank you [MENTION=7970097]sudokamikaze[/MENTION]
[Nexus 4 Android Development] sudokamikaze:
About EDIT 1:

First of all I'm sorry about that, I will find why and which thing causing this.

I had something like that on friend's phone. But worked just fine after re-entering.

If rom which you decided to use supports f2fs - feel free to use that. Leave system as is
[Nexus 4 Android Development] TNSMANI:
Thank you, had no issues flashing and entering recovery and doing a full backup including EFS and Persist.
[Nexus 4 Android Development] wizmart:
Otg compatible too?
[Nexus 4 Android Development] hakimarx:
is this support error digitiser/ nav bar ?
[Nexus 4 Android Development] ze7zez:
You must check it yourself. Inactive surfaces can be of different widths.

You always have the option to return to the main menu by touching the TWRP logo.
[Nexus 4 Android Development] hakimarx:
Thanks..

Btw, please support TWRP multi OS for ubuntu touch
[Nexus 4 Android Development] sudokamikaze:
No, it's not compatible with OTG feature, and probably won't be either
[Nexus 4 Android Development] toydriod:
Downloading stalled?

Hi. Newb here, been trying to search for an answer, but not sure what it is I'm needing to search for?

Issue is phone is unlocked and am in bootloader mode, and am trying to download above twrp but after entering the commands into my computer terminal, the computer terminal says " sending," and the phone says "downloading," but nothing is happening. Tried this a few times, and have actually left it for an hour, but no download?

Am I missing a step here? Followed the posted instructions.

Thanks for your patience.
[Nexus 4 Android Development] sudokamikaze:
Hmm, have you tried to switch USB cable or port or both? and what about official TWRP, same error?

You can try:

fastboot erase recovery
fastboot flash recovery recovery.img # CHANGE HERE NAME OF FILE
[Nexus 4 Android Development] toydriod:
Yes.

Tried

fastboot flash recovery openrecovery-twrp-2.3.2.3-mako.img Terminal says sending 'recovery' (8176 KB)... Phone says nothing

fastboot flash recovery openrecovery-twrp-2.8.5.2-mako.img Terminal says sending 'recovery' (9020 KB)... Phone says " downloading..."
[Nexus 4 Android Development] sudokamikaze:
Then problem isn't in my recovery, reinstall drivers/switch pc/cable/port
[Nexus 4 Android Development] toydriod:
Thanks, I'm going to try it on another system.
[Nexus 4 Android Development] toydriod:
FWIW Tried on another computer, and download worked fine. Thanks for you help and for making this.
[Nexus 4 Android Development] HubrisRev5:
I currently am on the official 3.1.xx TWRP version, can i just flash this as a zip from the current recovery? will that just replace the old one with this one, or do I need to first flash stock recovery?
[Nexus 4 Android Development] sudokamikaze:
You can use following methods:

1. Use app flasher like Flashfire or something like that

2. Use PC to write recovery (better variant)

PC method instructions are in OP post.
[Nexus 4 Android Development] track21:
Hi, is there any plan for twrp 3.3? thank you
[Nexus 4 Android Development] Clamor:
Yes
[Nexus 4 Android Development] Noeljunior:
Does anyone tried encryption? Well, encryption itself is working with no problems on unofficial LOS16.0 but I can't open data partition on TWRP 3.2.3-1 (from here) : the pattern is always wrong. What can I do to be more helpful?
[Nexus 4 Android Development] walteweiss:
Bootlooped in TWRP

I've just installed this TWRP 3.2.3-0 on my Nexus 4, using fastboot. Before doing that I've unlocked my bootloader via fastboot as well. The process was like this:

fastboot oem unlock

OKAY [ 69.482s]

Finished. Total time: 69.482s

fastboot erase recovery

Erasing 'recovery' OKAY [ 0.039s]

Finished. Total time: 0.043s

fastboot flash recovery twrp-mako-3.2.3-0.img

Sending 'recovery' (10262 KB) OKAY [ 0.327s]

Writing 'recovery' OKAY [ 0.535s]

Finished. Total time: 0.867s

Got no errors, but I haven't loaded the OS (very old CM 14.0 with Android 7, haven't used the phone for a long time). Previous recovery was TWRP, but I don't remember the version.

Now I'm bootlooped into TWRP, on this stage:

Photo

[IMG="twrp-mako-3.2.3-0.img bootlooped"]https://i.imgur.com/hUeCcek.jpg[/IMG]

Fastboot Mode info

Variant - mako 16GB

Bootloader version - MAKOZ30f

HW Version - rev_11

Baseband version - M9615A-CEFWMAZM-2.0.1701.07

Signing - production

Secure Boot - enabled

Lock State - unlocked

Update: Installed official TWRP (twrp-3.3.1-0-mako.img) and it has the same issue. So it's more likely to be not this very TWRP, but me doing something wrong.
[Nexus 4 Android Development] dahawthorne:
Guessing here, but have you checked the Mount tab in TWRP to ensure that all partitions are mounted, and also unchecked the "Mount system read-only"? Also format the data partition and wipe everything. While still in TWRP you can copy the ROM and Gapps (try Nano Arm, not Arm64). If you manage to boot successfully you can install Magisk if you want root. The Nexus 4's system partition is too small for PIE but should be ok for an Oreo 8.1 version.

Stream-of-consciousness as I write... :). Just reading your post again I see you unlocked, which wipes data, so perhaps there is no ROM to boot into, which is why you end up in TWRP. This shouldn't happen, since unlocking should leave you with a clean installation of your ROM - just a thought.

Keep trying and asking... :)

Edit: at the worst you should be able to flash the last L version from Google:

https://developers.google.com/android/images#occam

If you want to do this I can provide the flashing step-by-step guide which I used to use before they started sideload OTAs. The flash-all script didn't seem to work too well, but the step-by-step was 100% fireproof. After you get a working device you can move on to upgrading the ROM.
[Nexus 4 Android Development] walteweiss:
Hello, thank you for your stream-of-consciousness! :)

I have tried to flash stock everything right after I posted, and it was playing the circles animation. But I couldn't load into the system for ~2 hours. I decided not to wait any longer, since I'm not going to keep the original Android 5 anyway, and I re-flashed this TWRP the same way I did it before the unlocking my bootloader, and it works fine so far. By the way there is a huge guide about going back to factory image, but I haven't used it, just used flash-all.sh from the zip (I'm on a Mac), it did the job well and quick.

I have resized my partition following this guide: https://xdaforums.com/nexus-4/general/guide-increase-nexus-4s-partition-space-t3800264

Now I'm heading into trying a Custom ROM, hope I'll be fine.

My time in this very thread is done, since the issue is gone. Again, in short, what helped me is to flash stock image (I flashed everything, I think; I had no sensitive data to backup).