yashsingh1/xdaforums huggingface dataset:
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] nialv7:
[MENTION=4819888]oshmoun[/MENTION] First time I tried it, it didn't work either. It boots, but it can't show anything on the screen. The screen will show the Sony logo. But if I touch the screen, the phone will vibrate.

Later I found a solution here: https://xdaforums.com/showpost.php?p=65220099&postcount=398
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] realtuxen:
Thanks a lot! And well done.

Will verify and report back when my region gets released. :)
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Deleted member 4819888:
Can't seem to build twrp with your patch

Did you do anything regarding busybox and toybox?

EDIT: switched from toybox to busybox, twrp boots fine! thanks for the hints!
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] bthek:
Unfortunately does not work for me, stock Sony Oreo Firmware.

It will boot, but decryption fails at all
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Wxfdswxc:
Same here.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ondrejvaroscak:
MTP not working

MTP doesn't work
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] bamsbamx:
Please, post a tutorial about how to build it. It will be easier for all
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] levone1:
Maybe need to change the thread title, or maybe someone can explain how to make it work...
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] eymentuna:
X compact oreo PRFCreator

what is the problem. ?

View attachment 4433390
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ExDeeEy:
You know how to flash phones, but not how to take screenshots? Thanks for the neck pain.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ondrejvaroscak:
:D

Anyway, you can not simply create pre-rooted firmware for X Compact. It may be probably used (but not tested) to create flashable zip, but it will not be rooted. You need to modify kernel in order to root.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] fairyfeller:
Does anybody can reboot into TWRP from android ? Not by turning off phone and powering up with volume-down pressed, but right from system ?

If i try this from system (from TWRP app or Xposed) - the phone simply restarts... So i can't automate TWRP backups with Automate app.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ondrejvaroscak:
No, you can't. It is not supported by stock firmware.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] realtuxen:
decryption does not seem to work, at least with stock oreo. <sniff> :)

stock 8.0 vs 8.1 tree, could that be it?

probably unlikely when the update not major, unless some extra/modified security comes with 8.1.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] eresac:
SD Access

Has Anyone managed to access SD card?

I'm not able to install from "Micro SD card": when I hit "select sotrage" only "internal storage" can be choosen.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] jd22:
SD Access

I can access the external SD card from TWRP.

You probably need to mount the external SD in TWRP.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] eresac:
How may I do that?

It's the very first time I face this.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] jd22:
The start window of TWRP provides the option "Mount". Here you can select the partitions to be mounted.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] eresac:
Neither "Micro SD card" , nor "Select Storage" --> "Micro SD card" are selectable from "Mount" option.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] jd22:
TWRP is not able to recognize your SD card.

Are you able to access the SD card from the ROM (stock-ROM or custom ROM?)?

What is the size and file format of the SD card?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] eresac:
Yes I see it from ROM (it's the same SD with no changes at all over the ROMs, and always seen with previous TWRP).

It's a 64 GB and (I think) exFAT format.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] jd22:
It's strange that previous TWRP versions have recognized your SD card and this one not.

According to developer.sony.com, the the AOSP source code provided by Sony just support SD cards up to 32 GB. That could be the root cause if the TWRP software is based on the Sony AOSP source code. In that case, [MENTION=3544509]eagleeyetom[/MENTION] might be able to help here since his TWRP didn't have this problem.

I am using a 32 GB SD card and having no problems at all.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] eresac:
Thanks for your replies!

On my previous configuration (Nougat Stock ROM and TWRP 3.1.1) SD card was accessible (at leeast I remember from "Install" function).
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] YasuHamed:
i tried on xperia x , it boot but half of the screen size stay static and touch doesnt work, but it boot

can you please point me to twrp3.2.1 for suzu ???
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ralfbergs:
[MENTION=6727252]nialv7[/MENTION], can you please kindly advise how we can decrypt /data on stock Oreo, March security update? For myself and others in this thread it's not working, even though you seemed to have been successful doing it... So what are we doing wrong?

---------- Post added at 17:18 ---------- Previous post was at 17:11 ----------

I thought I had the same problem as you. My 32 GB micro SD card is not visible in TWRP. But I could easily mount it manually in TWRP, from the "Mount" menu item in the top menu.

---------- Post added at 17:24 ---------- Previous post was at 17:18 ----------

This is exactly what seems to be failing in your build, please see below:

I:Set page: 'decrypt'
I:Set page: 'trydecrypt'
I:operation_start: 'Decrypt'
I:Mounting partitions needed for decryption
I:Mounting /system
I:Mounting /odm
I:Mounting /firmware
I:waiting for init.svc.odmbinqseecomd to change from 'error' to 'running'
I:waiting for init.svc.odmbinqseecomd to change from 'error' to 'running'
I:waiting for init.svc.odmbinqseecomd to change from 'error' to 'running'
I:waiting for init.svc.odmbinqseecomd to change from 'error' to 'running'
I:waiting for init.svc.odmbinqseecomd to change from 'error' to 'running'
I:waiting for init.svc.odmbinqseecomd to change from 'error' to 'running'
I:waiting for init.svc.odmbinqseecomd to change from 'error' to 'running'
I:waiting for init.svc.odmbinqseecomd to change from 'error' to 'running'
I:waiting for init.svc.odmbinqseecomd to change from 'error' to 'running'
I:waiting for init.svc.odmbinqseecomd to change from 'error' to 'running'
I:Start service odmbinqseecomd: error.
crypt_ftr->fs_size = 46669792
Using scrypt with keymaster for cryptfs KDF
keymaster module name is Keymaster OpenSSL HAL
keymaster version is 2
Found keymaster0 module, using keymaster0 API.
Signing safely-padded object
Signing failed
kdf failed
failure decrypting master key
Failed to decrypt master key
crypt_ftr->fs_size = 46669792
Using scrypt with keymaster for cryptfs KDF
keymaster module name is Keymaster OpenSSL HAL
keymaster version is 2
Found keymaster0 module, using keymaster0 API.
Signing safely-padded object
Signing failed
kdf failed
failure decrypting master key
Failed to decrypt master key
I:Unmounting partitions previously mounted for decryption
I:Unmounting /system
I:Unmounting /odm
I:Unmounting /firmware
Failed to decrypt data.
I:Set page: 'decrypt'
I:operation_end - status=1

Any way I could help debugging this?

Kr,

Ralf

---------- Post added at 17:32 ---------- Previous post was at 17:24 ----------

TWRP is unable to read the system time:

I:TWFunc::Fixup_Time: Pre-fix date and time: 1971-01-08--02-42-08
I:TWFunc::Fixup_Time: Setting time offset from file /sys/class/rtc/rtc0/since_epoch
I:TWFunc::Fixup_Time: will attempt to use the ats files now.

This is indeed the time I see in TWRP:

/tmp # date
Fri Jan 8 02:59:32 GMT 1971

Any idea what's wrong?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] eresac:
Already tried also from "Mount" menu, SD card not selectable.

Anyway, I installed the older recovery from here and SD Card works
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] firefexx:
Thanks for working on TWRP for XCompact.

Do the people who are proficient in building and maintaining a working TWRP mind bringing this to the official TWRP platform? Most steps to become a TWRP maintainer seem to be accomplished https://twrp.me/faq/OfficialMaintainer.html

Currently one needs to read long confusing forum threads to find out if something works, and even if yes it needs to be downloaded from someone who dropped the binary on some arbitrary file hoster. A bit of more official appearance would be great, eases the steps a user has to follow and is a bit less scary ;)
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Wxfdswxc:
Question: since TWRP doesn't decrypt stock roms (if I'm not wrong), it is possible to turn off security password or diagram, just to be able to do a backup/restore in TWRP?

I mean does a phone with no lock option have no encryption in TWRP?

It would be convenient to be able to do backup and restore to test which rom has a Xposed bootloop without having to reinstall everything every time, for example.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] crazyramen:
Unfortunately, no. Once encrypted you cannot turn it off from the stock OS. You can check in settings>security>encryption. Others have suggested wiping the partition in twrp then trying a fresh install of the ftf but I haven't tried that.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Wxfdswxc:
We'll wait then, ok thanks.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] gecko8k:
[MENTION=6727252]nialv7[/MENTION] I installed TWRP under Oreo 8.0 and it asks for a password to mount the internal storage. Have you got any idea what this password could be?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Wxfdswxc:
TWRP doesn't decrypt stock roms (maybe it's time to edit the topic's title?).
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] gecko8k:
[MENTION=8328718]Wxfdswxc[/MENTION] Thanks for the reply. The problem is that I cannot access the internal storage or decrypt it without the password. Is it possible to, say, do a complete wipe of the phone to get access to the storage? Or is there another way to bypass the password?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Wxfdswxc:
Like I said, TWRP cannot decrypt stock rom, so if you're on a stock rom then you're out of luck.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] gecko8k:
[MENTION=8328718]Wxfdswxc[/MENTION] Is there another recovery I can install that can decrypt stock rom?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Wxfdswxc:
Apparently no, your only option is to stay on android 7.1.1 for now (feel free to read the previous posts).
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] gecko8k:
[MENTION=8328718]Wxfdswxc[/MENTION] Could you please explain something to me? To install a custom rom on a phone you need to install a custom recovery first, right? But if I install a custom recovery on a stock rom I cannot get anywhere. How is it then possible to install a custom rom?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Wxfdswxc:
Because custom roms have custom boot img and are different anyway, so it doesn't behave like the stock rom.

And you don't have to install a custom recovery to install a custom rom anyway.

Well, this is as far as I understand, I'm not a developper.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] gecko8k:
Could you tell me/point me to where I can read how to install a custom rom without a custom recovery?

Another thing, in TWRP there is the possibility to format data. It says that this should remove encryption. Won't this take care of my decryption problem?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ondrejvaroscak:
First you must understand that custom recovery is like a small independent operating system. Instead of booting kernel of your Rom, you boot recovery. You need custom recovery to flash anything else as stock, because stock recovery will only flash signed stock images and patches.

TWRP custom recovery does not currently decrypt DATA on Oreo. But you can format (wipe) DATA. It will however remove all your data... But of you have checked option to disable force-encryption while creating your boot.img the new DATA will not be encrypted, unless you manually do it in Security settings in Oreo. Normally all Nougat and Oreo DATA is encrypted by default no matter you want it or not.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] bamsbamx:
please, update this... Cant even install magisk with .50 oreo stock ftf. TWRP crashes and reboots when trying to install
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] chris42too:
Hi there,

I have problems using this. I tried it on a test device, completely wiped it, then installed latest 8.1 AOSP from May. This works with its own recovery nicely.

However if I flash with this Recovery, boot into TWRP, then in System, the TWRP gets removed.

Tried two other things:

When installing Magisk at first start and then trying to boot into System (As I usually do with TWRP and Magisk), I get back on Recovery and stuck on TWRP screen.

When first booting into system with original recovery flashed and then flashing TWRP, I get the same result to be stuck in TWRP screen.

Anyone experience this or can recreate it? Or tell me how they flashed it successfully with the latest 8.1
[Lenovo ZUK Z2 (Plus) Questions & Answers] shripad_phadke:
My Zuk Z2 Plus was previously running 7.1.2 based Viper OS 3.1 . I then flashed Oreo 8.1 based custom roms (AEX, Pixel Experience and RR 6.0). Since the update my phone is not getting charged. The battery percentage is stuck at 65% and its not charging. And when i restart the phone in recovery mode, thats when it start charging and the actual battery % is displayed. Also, phone doesn't charge in offline/powed-off mode. After shutting down the phone and when the the charger is connected the phone restarts automatically, without getting charges while its shut down.

Reloading it back to Viper 3.1 and it works just fine without any issues.

After flashing the F1xy kernel , on each of the above mentioned custom ROMs i am getting a SOT of barely 2-3 hours, as compated to 5-6 hours i was getting on Viper 3.1 and the battery drains with a rapid pace.

I posted this query on AEX's Google+ page, and was suggested to use Batter Calibration app or resetting the batter stat file. None of them have worked. Kernel has helped to resolve the charging and calibration issue, but the battery backup has worsen.

Is this because 8.1 doesn't have any official Gapps?

Let me know if anyone is able to identify the problem and have a solution for it. This doesn't seem to be problem with all devices, just a few. I wonder what it might be.
[Lenovo ZUK Z2 (Plus) Questions & Answers] delphinuz:
I am using AEX 5.2, and battery charging is working. It would be charged to 100%.
[Lenovo ZUK Z2 (Plus) Questions & Answers] Aaron666:
I have the same problem.

I have the same problem.Have you found a solution?
[Lenovo ZUK Z2 (Plus) Questions & Answers] JanLezterGrate:
Offline charging is now working on latest Aex 5.2 version and some Custom rom doesn't have a Offline charging then, try to wipe /delete batterystats.bin if you stuck on 65%
[Lenovo ZUK Z2 (Plus) Questions & Answers] shripad_phadke:
I tried the same version with no luck. Only time it works is with F1XY custom kernel. And as i mentioned in my post the battery drains rapidly.
[Lenovo ZUK Z2 (Plus) Questions & Answers] shripad_phadke:
I don't know how to wipe batterystats.bin, can you help with the steps and also let me know if doing it has any adverse impact on device or its performance.

I have read some posts where folks have tried it but that has not helped either. Appears to be an issue with no root cause found so far.
[Lenovo ZUK Z2 (Plus) Questions & Answers] Aevum:
Sounds like you have 1)not done a clean install, 2) wrong baseband 3) have some issue with some app

Im currently running AeX 5.2, phone charges 100% but it automaticly drops to 98-99% when i unplug, last cycle was 2.5 SoT and around 60h standby. (rough estimate from memory)

I charged yesterday, , 25 min SoT and 27h standby, 84% battery left.
[Lenovo ZUK Z2 (Plus) Questions & Answers] shripad_phadke:
I have done clean install. Could be the last 2. Whats the correct baseband and how to change it if its incorrect.

I have checked battery consumption but haven't noticed any app eating up battery abnormal. It was mostly the apps that i used.
[Lenovo ZUK Z2 (Plus) Questions & Answers] johnnyjoe:
Have you flashed with the latest twrp-3.2.1-0?

https://twrp.me/zuk/zukz2.html (check download section)
[Lenovo ZUK Z2 (Plus) Questions & Answers] shripad_phadke:
Yes, i have that version installed.

The have all the prerequisites in place.
[Lenovo ZUK Z2 (Plus) Questions & Answers] rk2shashank:
No that doesn't make a difference I have faced the same issue

It is some Kernal related issue for some specific devices this problem gets solved by flashing f1xy Kernal
[Lenovo ZUK Z2 (Plus) Questions & Answers] delphinuz:
You are right, it happend. I have to change the stock kernel to AR kernel, and battery charging works again.

No battery drains on AR Kernel. the SOT would be more the 5 hours.
[Lenovo ZUK Z2 (Plus) Questions & Answers] shripad_phadke:
I will try that. Now that you have mentioned you are using it, can you let me know if there any known issues or bugs you have experienced.
[Lenovo ZUK Z2 (Plus) Questions & Answers] shripad_phadke:
I tried AR Kernel but ran into the same issue. This is what i did-

- full wipe (system, data, cache, dalvik)

-Flashed - AEX 5.2 (AospExtended-v5.2-z2_plus-20180225-1552-OFFICIAL.zip), Unofficial Gapps for 8.1 (Micro) and AR Kernel R4 - NewTrees(For other Roms namely aosip, pixel experience, aex, los15.1, cardinal etc)

-All this while had 93% batter (and charging)

-After completing installation, it was back to displaying 65% and charging has stopped

Can you share your steps or correct if i missed anying.

One thing i notices that the installation stps on *AR_Beast* Kernel R4 (3.18.93) (Feb 04 2018) {CLANG) thread are as follow -

1.Boot into recovery.

2.Wipe cache and dalvik cache

3.Flash Kernel

4.Reboot to system

6.Done

Do you know if this is what i did wrong? Should i first install the rom and gapps and then flash AR Beast kernel
[Lenovo ZUK Z2 (Plus) Questions & Answers] Aevum:
Something i did with my Mi4C when it was having this issue, the reseller installed some shoddy rom on it, i did a total format, the phone ends up with NOTHING on it, you do it from advance wipe in recovery.

But make sure you can mount it easly from recovery and have all the files to rebuild it first.

As for the basebamd usualy installing the latest ZUI updates it, but theres also a flashable img and zip,

carefull with the img and zip as some distributions relock your phone, and if there isnt a bootloader supported OS (as in a original ZUI) then the phone bricks (but there is a restore process)
[Lenovo ZUK Z2 (Plus) Questions & Answers] shripad_phadke:
Voilà! its working

Yesterday i flashed AEX 5.2 (AospExtended-v5.2-z2_plus-20180225-1552-OFFICIAL.zip) and Unofficial Gapps for 8.1 (Micro) at first and then *AR_Beast* Kernel R4 (3.18.93) (Feb 04 2018) {CLANG), with below steps -

1.Boot into recovery.

2.Wipe cache and dalvik cache

3.Flash Kernel

4.Reboot to system

This didn't work.

I then did a clean wipe and just installed AEX 5.2 (AospExtended-v5.2-z2_plus-20180225-1552-OFFICIAL.zip) and Unofficial Gapps for 8.1 (Micro) , without any custom Kernel, and to my surprise it started working.

The batter indicator displayed the correct % and when it drained that was pretty consistent. I did not feel any rapid dip.

As i was installing and reinstalling i couldn't track the exact SOT. I will try to track it today and update some screenshots.

I still don't know what was wrong and how it got resolved, but i am glad that its working.
[Lenovo ZUK Z2 (Plus) Questions & Answers] Rikul:
I recommend you using aex 5.2 with stock kernel and akt profile - fusion balanced. Perfect combo between performance and battery
[Lenovo ZUK Z2 (Plus) Questions & Answers] rk2shashank:
Try f1xy Kernal same happened with me 65% problem but doesn't happened on f1xy kernal
[Lenovo ZUK Z2 (Plus) Questions & Answers] Rikul:
Aex 5.2 stock kernel with fusion balanced akt profile.
[Lenovo ZUK Z2 (Plus) Questions & Answers] shripad_phadke:
Can you provide a link to download this and installation/configuration steps.? The one i found on google was for OnePlus 3.
[Lenovo ZUK Z2 (Plus) Questions & Answers] Rikul:
That same zip is for our device also.

Once you are done flashing it, download termux - or any terminal app.

Type in " su " without quotes .

Then type in AKT in caps

Select option 1 for sd 820 device.

Select the profile you want to apply.

I recommend you using terminal method to play with these profiles first. There is also an apk to apply profiles but use that once you're comfortable with the terminal method.
[Lenovo ZUK Z2 (Plus) Questions & Answers] rk2shashank:
This problem has resolved in latest Kernal update after 25th Feb on all Oreo ROMs
[Lenovo ZUK Z2 (Plus) Questions & Answers] shripad_phadke:
Right, it was working in AEX 5.2, 25th Feb's build. What other ROM have you tried?
[Lenovo ZUK Z2 (Plus) Questions & Answers] rk2shashank:
Every rom released with 23 February Kernal patch where battery status is fixed see on GitHub of DD3BOH
[Lenovo ZUK Z2 (Plus) Questions & Answers] Aevum:
Im still amazed at the battery life of this phone, the SD 821 was supposobly an upgrade over the SD820 battery wise. i can usualy make it to 3 days between charges with 2h SOT or 6-7h SOT

Im quite surprised.
[General Accessories] mcva:
Bluetooth stereo headset: Sony DR-BT10CX

Problem: The playback pitch is changed after silence

The solutions form their support site http://www.sony.co.th/support/faq/189664/product/dr-bt10cx/modelfirst?site=hp_en_TH_i:

(1) Check interference with Wireless Lan or other Bluethooh connections.

(2) The communication condition may improve by sliding MODE switch to MODE 2

My question: what is MODE 2? How to switch to it? MODE 2=discoverable? MODE 1=connectable? Can someone answer, please?

Thanks in advance.

Regards,

Maarten

from the Netherlands

*My music is playing at different speeds, when connected to my bluetooth stereo headset (Sony, DR-BT10CX). Only when there's a silence, it is played at a higher speed and then at a slower speed, which is very annoying (it results in a false sounding song). It is a hardware-related problem discribed here: . General support site: http://www.sony.co.th/support/product/dr-bt10cx?site=hp_en_TH_i
[General Accessories] landwomble:
i have something similar

HTC artemis, Moto HT820 headphones, touch 4.01 rom. on resume, it sounds *fractionally* faster for a second. I though I was imagining it...!
[General Accessories] mcva:
Update: The silence and pitch change is caused by interference with other wireless connections. In this case that is WiFi ~ wireless LAN. At the university some points are sensitive. Now, there is very little to no interference anymore. Speculative, the battery status may also play a role here.

Next to this, switching to MODE 2 (where the reception stability takes priority) might be a hardware switch on the Bluetooth headset, according to the manual of some other similar products. I haven't found such switch on my Sony.
[General Accessories] banone:
I have it too

I have noticed the same on my EXIBEL BT stereo headset when listening to music from my TYTN II. It lasts for periods of several seconds, and is quite annoying. BTW, this happens even when i'm out walking in the open, presumably at a fair distance from any WIFI transmitters.