yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy S7 Questions and Answers] yrajab:
Hey there, I have this S7 that would just disconnect from WiFi as soon as the screen goes off. When I try to make VoIP calls as soon as I put the phone to my ear and the screen goes out, the WiFi drops. I also confirmed this by running a continuous ping, soon as screen is off, WiFi drops.

Now this only happens at work. At home all is fine and dandy. At work we have open WiFi APs with guest logon pages. Being on the IT team I did create an SSID that was WPA2 locked to test this, but the problem still persists. I tried 5 GHz and 2.4 GHz, Ijumped through every possible solution I could find in the internet, but nothing seems to work! My old Xiaomi worked just fine, what is it with the Samsungs? anyone got an idea?
[Samsung Galaxy S7 Questions and Answers] Meshuggahblast:
I don't think that will solve your problem but as nobody replied you, maybe you could try to see in your Galaxy S7, in parameters, then Connections, then Wifi, then at the top right corner, clic on "advanced", and there you have some parameters for the wifi like the one to put Wifi Off when phone is asleep.

Also, check if you have installed any battery saver app that would interact with your Wifi and turn it off while phone is asleep, or something like a Greenify app that would put asleep the wifi service (if there is one).

In the end, if your problem is only at work and not at home, then I would say the problem comes from your router at work. Something in the settings maybe disconnects devices when they're under certain percentage of use or something like that.

I hope that will help you, or at least help you find other things to look for to identify your problem ; )
[G3 Q&A, Help & Troubleshooting] MrAbody:
Hi All,

Beginner here, but thanks to XDA and all the contributers I was able to root my VS985 and load LineageOS 14.1 (Couldn't get the pin/password working on 15.1).

Anyways, I tried a bunch of them but couldn't get any of the ports for the LG G3 keyboard to work on it. I realize there is a plethora of other keyboards but I really got used to the G3 one and love it. I got it working once but had to re-flash everything and couldn't duplicate what I did. I can't figure out what I am doing wrong. some seem to install fine but when they are active I don't get a keyboard.

Does anyone have one of the LG G3 port versions floating around working on their G3 with 14.1? if so let me know, I am have root and TWRP.

Thanks in advance!
[Sony Xperia XZ1 Compact Questions & Answers] Pickx:
I want to unlock my bootloader and try a custom ROM, but I don't want to get stuck without a camera. I remember reading somewhere that XperiFIX would need to be updated for the most recent patch to be compatible.

Anyone tried it?
[Sony Xperia XZ1 Compact Questions & Answers] Didgesteve:
Have you thought of asking in the Xperiafix thread ?
[Sony Xperia XZ1 Compact Questions & Answers] Pickx:
No, because nobody in that thread has answered that question for the March update either.
[Sony Xperia XZ1 Compact Questions & Answers] Didgesteve:
Well if no one has answered then it's probably a no then
[Sony Xperia XZ1 Compact Questions & Answers] Raz0Rfail:
I patched XperiFix myself to use it with the .119 FW and it works.

Currently i'm running FW .119 with XperiFix DRM-patch and TWRP from 05.03.18.

I haven't installed the .145 FW atm, because I couldn't boot into Android with TWRP from 05.03.18.

But I read that TWRP came out for the april patch, so I will try to update at the weekend and check again with XperiFix.

Proof FW .119:

Phone Settings:

Phone Security Settings:

XperiFix:

Edit - After Upgrade .145:

I used the April TWRP and I could boot into Android and TWRP.

Phone Settings:

XperiFix:
[Sony Xperia XZ1 Compact Questions & Answers] Pickx:
Thank you very much! So what is the process like to do this with an "unsupported" firmware? How do I patch this for .145, or do I even need to do anything special other than using a newer version of TWRP?
[Sony Xperia XZ1 Compact Questions & Answers] nataelj:
Is upgrading the XperiFix just as simple as replacing the TWRP in the XperiFix folder with the most recent one? If not, what else is required? If so, what do I do with the xz1c-twrptemp.img file? I'm assuming I rename the downloaded TWRP file to xz1c-twrp.img.

It's mentioned at https://www.xperifix.com/2018/03/06/update-2-2-xz1-and-xz1-compact-update/#comment-40 that a guide for this will be released but I haven't found it yet, and given that it looks above like you've already done this I'd be most appreciative if you'd share the process. Thanks!
[Sony Xperia XZ1 Compact Questions & Answers] Raz0Rfail:
I wrote you a pm to modify xperifix.

You need only the current kernel for the fw installed. It comes with flashing firmware.

The temp TWRP inside the data folder is only get booted from the XperiFix tool.

The XperiFix tool boot this temp TWRP to change the libs, install magisk and so on.

If you change the TWRP temp through another TWRP image, all commands to flash magisk etc. Won't work, so for the work is the temp TWRP required.

Important is that you use the correct kernel before you use xperifix, because this kernel get flashed and TWRP temp got booted as recovery, so nothing changes what you have currently installed as boot or recovery image.

So the second TWRP I let It as it be. After flashing the XperiFix files and the phone restart correctly, I boot into bootloader and flash the new TWRP recovery and then I reboot into TWRP to check if all files shown in /sdcard are correctly named. If the names are correct, you use the right TWRP to the installed security patch from Google. If you have only cryptic names inside /sdcard you have the wrong TWRP to the installed security patch. If it's so that the wrong TWRP is installed download the correct one and flash the recovery again.

Edit: sorry I forget I wrote am pm to pickxx.

I send it to you too.

I can't post it here, because it's not save and if the owner find out, he would fix it, that patching is not possible.
[Sony Xperia XZ1 Compact Questions & Answers] nataelj:
I still haven't gotten a PM.

Also, the link I posted above was one to the creator of Xperifix (@sToRm// (Heiko Frenzel) on this forum) mentioning that he was going to publish a guide on how to do this update on the XperiFIX website, so I think you'd probably be fine to publish that yourself. Far from causing him to fix it, I think you'd just save him some work. If anyone knows otherwise please feel free to correct me.

Finally, the above discussion is helpful in clarifying what to do (or not to do) with the temp, but I'm still not sure what I need to replace or update in the XperiFIX to enable it to work on the most recent firmware.
[Sony Xperia XZ1 Compact Questions & Answers] Raz0Rfail:
I couldn't share the PM, because my PM settings wasn't configured to save it in send mails.

I will write a Tutorial after my work 19:00 (UTC +1), how to patch XperiFix.exe to use it with the new firmwares. I won't share my patched .exe files. If you want it, you have to follow the tut.

You should leave the files in XperiFix folder as it currently is.

You only need TWRP for current Security Patch if you want to change files inside /sdcard, flash files from /sdcard, or create a working Nandroid Backup.
[Sony Xperia XZ1 Compact Questions & Answers] nataelj:
Cool; will look forward to the details!

To be clear though, I have an unpatched, unrooted device that's on the most recent firmware. I'm not just updating to access the sdcard and create backups, I'm updating to crack the phone in the first place (without having to do a downgrade, which I haven't worked out the full process for yet). Not sure if that changes anything or not but figured I'd mention in case.
[Sony Xperia XZ1 Compact Questions & Answers] ArdW:
I had .34 firmware, used Xperifix, than upgraded to .119 and indeed it stopped working.
[Sony Xperia XZ1 Compact Questions & Answers] nataelj:
Thank you so much; that's amazing!!!

One note; you mention manually flashing the new firmware with flashtool. Is there any difference between this approach and using a device that has been updated to that firmware via OTA update from Sony?

Related to that, where does the new TWRP connect in? I see that you download it, and later you mention that it gets loaded; presumably it needs to get saved somewhere specific in XperiFIX or linked to via the dnSpy changes?

I'm concerned because it sounds like everyone else here is upgrading an already flashed system and can re-flash the new twrp from the old one. I've got a fresh OTA rom I'm patching and rooting so it doesn't yet have twrp. As XperiFIX installs TWRP I assumed I'd have to link it to the correct twrp file somehow (perhaps replace the one in the XperiFIX file structure?), but I don't see that here. Something additional required in this case?
[Sony Xperia XZ1 Compact Questions & Answers] Raz0Rfail:
Do you understand better now?
[Sony Xperia XZ1 Compact Questions & Answers] Pickx:
[MENTION=5505196]Raz0Rfail[/MENTION] everything worked. I had to wipe and install janjan's ROM because magisk wasn't working after XperiFIX, but other that your guide worked perfectly. Thanks again.
[Sony Xperia XZ1 Compact Questions & Answers] nataelj:
Seems to have failed for me. I now get green camera images and have no root; something went wrong somewhere... :-/
[Sony Xperia XZ1 Compact Questions & Answers] Raz0Rfail:
Try using xperifix again. Boot into bootloader, plug phone into pc, start modified xperifix, execute it again. And check if in TWRP is flashing magisk and xperifix kernel.

Did you flash recovery with fastboot flash recovery or fastboot flash boot?

If you use the second variant, it is clear that this was your mistake, because magisk and xperifix kernel is patched into the installed kernel.
[Sony Xperia XZ1 Compact Questions & Answers] nataelj:
Hmm, maybe I could use more clarification on that step then. I actually just went into TWRP and then hit install and pointed it to install the new file (copied to the phone) as a new recovery. Would that not work? If not, is the above meant to say I should use flashtool and flash that new TRWP with it?

EDIT: Hey!!! Something worked! I checked the logs and saw some failed file copies and permission errors so I played around with it some and reran as you suggested and it seems to have worked now! I'm up and running and my photos are no longer green!!

I am not seeing Magisk as an app though, and when I try and open Titanium Backup it just cycles while looking for SU and Busybox. If I get the Root Checker app it says not rooted too even though it finds an Su; does that actually mean not rooted or does Magisk work in some other way to give permission?
[Sony Xperia XZ1 Compact Questions & Answers] Raz0Rfail:
The way you did flashing TWRP.img inside TWRP will only result in flashing the boot image (which means the installed kernel get changed) and with this, magisk and xperifix is gone from kernel.

If you can boot with this kernel into android, you don't have to change it. If not you have to extract the kernel.sin from firmware.ftf and use unsin to extract kernel.img from kernel.sin. This kernel flash via flashtool, flash button, fastboot. Select kernel and flash.

With flashtool you can only flash boot image. To flash recovery partition, open flashtool localization C:\Flashtool. Inside is a folder called something like lib (don't know atm). Inside is the fastboot.exe. In this folder shift +right click on a free place and you have a new context menu entry called like "open path in command" or open path in powershell.

With command you have to change this command and execute:

Fastboot.exe flash recovery path\to\recovery

With powershell it looks like

.\Fastboot.exe flash recovery path\to\recovery

So flash correct kernel if needed then restart xperifix and at last flash recovery as I described..

Good night.
[Sony Xperia XZ1 Compact Questions & Answers] nataelj:
Actually, whatever I did seems to have worked. I think what happened is that I updated my TWRP and then reran XperiFIX with the new TWRP and it, seeing one already there, just left the new one in place and then added the other files back in.

Either way, what I was missing was Magisk Manager as discussed at https://android.gadgethacks.com/how-to/magisk-101-install-magisk-root-with-twrp-0179668/ which, once installed, gave me a way to pass the SU access to other apps, and now it seems to work fine!! Successfully showing root and getting into Titanium Backup.

Point being, I'm up and running so thanks again for your help! Very much appreciated!!

---------- Post added at 12:46 AM ---------- Previous post was at 12:17 AM ----------

Okay, one further question. I'm up and running, root, full pictures, but my Magisk install is still failing SafetyNet checks. I think this is because my SELinux is still set to permissive. Is this behavior normal after the XperixFIX? Is there a way I can change that or am I stuck with it? (and without Google Pay as a result)

Edit: Nevermind; I went through the Magisk documentation and did a bunch of checks and now am passing the check! I think it was USB debugging being on that was messing me up.
[Sony Xperia XZ1 Compact Questions & Answers] sam_2776:
Hi, what should I do with my G8141?

it did not work with 47.1.A.12.75 and I put it back in 47.1.A.12.119

thank you
[Sony Xperia XZ1 Compact Questions & Answers] Raz0Rfail:
The XZ Premium (G4841) is officially supported by XperiFIX.

With my Tutorial in Entry #14 you can patch XperiFix by yourself to use it with the .145 Firmware.

But I think you need a new TWRP version which is based on the April security patch. But I didn't found twrp recovery for current security patch.

So I don't know correctly if patching XperiFix will help you to get XperiFix and magisk working on your device.
[Sony Xperia XZ1 Compact Questions & Answers] ArdW:
Hi, I am trying [MENTION=5505196]Raz0Rfail[/MENTION] method, but I get error while compiling the xperifix.exe. Can you please check with me?
[Sony Xperia XZ1 Compact Questions & Answers] Raz0Rfail:
Go in dnspy to main menu and in context menu click edit method and not edit class. This was your mistake
[Sony Xperia XZ1 Compact Questions & Answers] ArdW:
Well yeah I thought so, but i cannot see that option, only class.

EDIT: it works now, thanks! I had to click right in that right tab... sorry never saw that software my bad

---------- Post added at 07:43 PM ---------- Previous post was at 07:09 PM ----------

Okay, so I ran modified xperifix, DRM works, but I haven't had magisk. So I flashed twrp-3.2.1-0-lilac-9-patchlevel-2018-03-05.img (I have choosen this older version because I am running .119 firmware), then run xperifix again, but still no magisk (but camera works). Any ideas pleas? Thanks a million.
[Sony Xperia XZ1 Compact Questions & Answers] Raz0Rfail:
Install the magisk apk. I think magisk framework is installed but you need the apk
[Sony Xperia XZ1 Compact Questions & Answers] ArdW:
Thanks, I did and I see this. This is not right I suppose? But I had the same screen even on my first original xperifix try on supported FW.
[Sony Xperia XZ1 Compact Questions & Answers] Raz0Rfail:
Hmm, it's installed at first.

Can you switch in magisk manager to settings and check if there is the hook set for the point "magisk kernel mode only". If it's set, uncheck it and reboot phone.

If it's not set, have you magisk manager 5.6.4 installed? If not install this version (it's the last version).

If magisk manager version is OK too, then download magisk v16, and flash it through recovery.
[Sony Xperia XZ1 Compact Questions & Answers] ArdW:
I cannot see my data in TWRP. I looked and searched everywhere, but it seems the system is not recognised. I checked the system partition in mount, but no data even in my TWRP file manager, just folders with "random" names. Could this be because of encryption? I did not have any password, I tried to set unlock PIN, but TWRP don't ask me for it.
[Sony Xperia XZ1 Compact Questions & Answers] Raz0Rfail:
I know this problem if I have an installed TWRP recovery for the wrong android security Patch. If it's correct you will see the correct names of Folders and files.
[Sony Xperia XZ1 Compact Questions & Answers] ArdW:
Thank you for your patience. It was because I did not validated that TWRP version. After validation I can see folders in TWRP. I installed the Magisk framework, rebooted, installed the app again (i wiped memory before) but I have still see the same screen as posted before. Magisk core only is unchecked.
[Sony Xperia XZ1 Compact Questions & Answers] Raz0Rfail:
have you installed this Magisk Manager https://xdaforums.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445 ?

Check under Downloads.

I think it's specific magisk problem, can you ask your problem in this thread:

https://xdaforums.com/apps/magisk/mod-magisk-v1-universal-systemless-t3432382
[Sony Xperia XZ1 Compact Questions & Answers] sam_2776:
Hello

so I try with 47.1.A.12.75 and 47.1.A.12.34 and it still does not work

does it work with 47.1.A.12.145 when adding the patch to Xperifix? if yes could you help me?

how to patch xperifix?

G8141

thank you
[Sony Xperia XZ1 Compact Questions & Answers] Raz0Rfail:
You need the firmware installed on your phone and your bootloader need to be unlocked ?

It won't help if you patch xperifix for new versions, If the supported versions don't work.

You should install .75 in your device, try xperifix again and if it don't work, ask in your xz premium forum why it don't work, and give some details what you did.
[Sony Xperia XZ1 Compact Questions & Answers] sam_2776:
Can I try the latest version 47.1.A.12.145?
[Sony Xperia XZ1 Compact Questions & Answers] Raz0Rfail:
I answered your question, why you don't can use the latest firmware .145 with xperiFix, if the supported firmwares are not working for you.

Ask this problem in the correct XZ Premium Thread...
[Sony Xperia XZ1 Compact Questions & Answers] ArdW:
Thanks a million, all systems go now!
[Sony Xperia XZ1 Compact Questions & Answers] ut4390s:
Whats about SuperSU?

Hello,

thanks man for this incredible tutorial! Everything worked fine except SuperSU. Sry for my English. I can work with SuperSU a way better than Magisk, so after everything worked fine, i wanted to flash the newest SuperSU 2.82 on my XZ Premium via TWRP (3.2.1.0) but it everytime results in bootloop, it doesnt matter which version i flash. I tried 2.79 , the diffrent SRx-Versions...no luck.

I also wipe the dalvi/cache but everytime it results in bootloop , so then i have to flash the rom again and so on....?
[Sony Xperia XZ1 Compact Questions & Answers] Raz0Rfail:
Hmm I think the problem you have to uninstall magisk before you can install supersu.

But the problem could be supersu will install in /system/bin or /system/xbin and if the kernel is not patched so you have a signed kernel and you will get bootloop, because the system files are not correct signed.

And if you use magisk it get currently patched inside the kernel. Don't know the details how it get patched.

So if you use supersu you will always get failed safetynet, because patched files in /system. I don't use not more supersu because failing safetynet and magisk can do aswell root manager and you have separate modules for magisk.
[Sony Xperia XZ1 Compact Questions & Answers] ArdW:
This is probably a very noob question, but the .145 FW is now available in central europe, how should I update it (from .119) the right way without losing all my apps and settings? Thanks
[Sony Xperia XZ1 Compact Questions & Answers] Raz0Rfail:
If you don't have unlocked your bootloader you can use the OTA Update. Check Settings --> Support --> TAB Device Info --> Current Software --> Refresh. If you are able to download it, download it and install.

If you have already an unlocked bootloader, you can't use the OTA Updates.

The following way is for you:

Downlaod and install current Flashtool:

http://www.flashtool.net/index.php

[Install USB Drivers]

If you don't have installed the USB-Drivers for XZ1C you need the following steps too:

Download USB drivers:

https://developer.sony.com/file/download/xperia-xz1-compact-driver/

[Unsigned Boot Mode]

If you have newer OS than Windows 7, you have to switch to unsigned boot mode:

https://www.howtogeek.com/167723/ho...8.1-so-that-you-can-install-unsigned-drivers/ I prefere to use option 2

In unsigend boot mode or Windows 7 open C:\FlashTool\Drivers\Flashtool-drivers.exe. In installer click next, hook Flashmode and Fastboot drivers, click install.

If you see the new program "Driver install Agent" wait before clicking on Next.

Open the XPERIA_XZ1_COMPACT_DRIVER.ZIP and extract the Folder inside the zip to %Temp%\Flashtool.

So you will have in the folder %Temp%\Flashtool 3 folders.

After the extractation, switch back to "Driver install Agent", click next and wait for finishing the installation.

[Download Firmware]

Open now C:\FlashTool\FlashTool64.exe.

Wait for synching the devices. After them click in FlashTool on the right Button with XF in the button.

If XperiFirm wants to update click Yes.

Close XperiFirm and FlashTool.exe

Extract XperiFirm.exe from downloaded zip-file to C:\users\<Username>\.FlashTool\.

Start again FlashTool and click again on the button with XF.

In XperiFirm Select on the Left tree size the XZ1C --> G8841 --> click on Button "Check all", wait for finishing.

Mark your wishing Market and operator. Click on the right side the Firmware. Click Download and wait for finishing.

After Finish click on close, and Close XperiFirm too.

After Closing XperiFirm, Flashtool creates automaticly a FTF file, you will see the green progressbar and a middle window of running a process.

After finish of creating you can use FlashTool.

[Flash Firmware]

Now you click in FlashTool on the lightning bolt, select Flashmode.

In the new Window click trough the created Firmware in the left side. If you have selected the Firmware-Version, you are able to Flash it.

Click on "Flash" and wait for getting the info how to boot phone into flashmode.

Plug in Phone on your PC and restart it as described into flashmode.

Wait for finishing the Flashing.

After finishing the Flash process you get a message in the log "phone is connected in flashmode". Now you can unplug the phone and start it.

You will have all your data and some crap apps installed. The crap apps you have to uninstall if you want it.
[Sony Xperia XZ1 Compact Questions & Answers] ArdW:
Thanks a lot, should I wipe anything before flashing, if I want to keep apps and settings? There are options appslog, diag, qnovo, ssd, userdata. Thanks again
[Sony Xperia XZ1 Compact Questions & Answers] Raz0Rfail:
You don't have to wipe, leave the hooks as they are.
[Sony Xperia XZ1 Compact Questions & Answers] jianlin3062:
Can you provide 47.1.A.12.75 XperiFIX2.0 to me?

Need contact information

jianlin3062@gmail.com
[Sony Xperia XZ1 Compact Questions & Answers] Raz0Rfail:
Some interesting Info for you:

https://xdaforums.com/showpost.php?p=76353168&postcount=10
[Sony Xperia XZ1 Compact Questions & Answers] Raz0Rfail:
Hi I had created my own automatic TWRP and DRM fix installer, based on storms work.

https://xdaforums.com/crossdevice-dev/sony/hack-mod-xperia-drmfix-t3784777
[Sony Xperia XZ1 Compact Questions & Answers] jianlin3062:
The link is invalid. Please send it to me. Can you?

Jianlin3062@gmail.com
[Sony Xperia XZ1 Compact Questions & Answers] Raz0Rfail:
I send you a PM on this mail adress.