yashsingh1/xdaforums huggingface dataset:
[Moto Z2 Play  Guides, News, & Discussion] Nick_101d:
I was going through forums of motoz2 play and I saw so many comments on how people are having trouble booting up any Q ROM and having strange bugs with it. I am daily driving Havoc 3.5 as of now and I don't have any problems with the 3.5 except for the fact I cannot pass safetynet for some reason. Anyways, here is the guide to flash a Q rom on moto z2 play.

Step 1: Get an android arm64-A-only gsi image. eg havoc OS https://sourceforge.net/projects/havoc-os/files/arm64-aonly/

Step 2: Get the latest KVT from https://androidfilehost.com/?w=profile&uid=673368273298922624

BTW The person who created KVT is an amazing guy cause without him, we didn't have a lot of chance.

Step 3: Make sure you have KVT and GSI on the phone or SD card. Of course you need custom recovery for this and that will be 64 bit twrp.

Step 4: Make wipes

Step 5: Flash KVT from twrp. Reboot to recovery once done.

Step 6: install GSI rom as "System image" in twrp and reboot to recovery again

Step 7: Flash magisk if you want.

Step 8: reboot to system

I have used Evolution X and Havoc OS with this method and they work 90% fine. I rarely get any random reboots and those are annoying but I have reached to KVT's creator since no one goes in depth of how to update KVT or what is the specific process of flashing Q rom via KVT. Will update the forum once I get some clear answers on that.

Let me know if you run into strange issues or just find a 100% stable rom for moto z2 play.
[Moto Z2 Play  Guides, News, & Discussion] leodexe:
You should consider changing the title of the post to: "GUIDE: How to install KVT GSI ROMs etc..."

At first I thought this was another dumb question but I'm glad someone finally posts an updated guide.

One question, which KVT version did you use to install Havoc 3.5 as your daily driver? You mention to download KVT but you don't specify which version. And testing with different KVT versions may yield different results.

Also you should add an extra step for Stock Pie users before installing ANY Custom ROM.

First they need to downgrade their Pie modem file to the older Stock Oreo modem file.

This step is required because the stock Pie modem causes audio issues on Custom ROMs breaking the audio during calls and rendering it unusable.

Stock Oreo users don't need this last step as this version's modem file has no issues.
[Magisk] chris_g:
Some users of my file manager app have asked me to support systemless root, especially writing to the /system folder.

I told them to just create a Magisk module as described here:

https://topjohnwu.github.io/Magisk/guides.html

However, I was told that other file managers like MiXplorer can write to /system just fine. I can indeed confirm that this works with MiXplorer.

So I did some research, like searching via Google, StackOverflow, on GitHub, and here on XDA, and looking through all threads since 1.1.2019 manually, but couldn't find any definitive answers.

My questions:

1. What's the correct way to detect systemless root versus regular root? This is not about bypassing MagiskHide - my app has been granted root access. For example, should I look for folders like /sbin/.magisk/ or /sbin/.core/ or /data/adb/modules/? Or for one of these entries in /proc/mounts:

tmpfs / tmpfs ro,seclabel,relatime 0 0

/dev/loop0 /system ext4 rw,seclabel,noatime 0 0

/dev/loop0 /sbin/.magisk/mirror/system ext4 rw,seclabel,noatime 0 0

They are probably different for various Magisk versions, that's why I ask for the correct way to do it.

2. Once I know that the device is using systemless root, what's the correct way to write to /system?

a) It works when I mount the root folder "/" for read/write, then I can write to /system just fine, and the files are preserved after a reboot.

b) I can also write to /sbin/.magisk/mirror/system, which is already mounted as read/write, but that path may change between Magisk versions?

Sorry if this has been answered before - please point me to the right page if it has been answered.
[Magisk] Didgeridoohan:
It's not about systemless root, but Androids system-as-root. That's what you need to check for.

On a device that uses SAR and doesn't use a completely read-only partition you just need to mount root ("/") rw and you're done (just like you already wrote). I don't have time to go into more details then that at the moment, but that should give you something to start with.

And don't tinker with Magisk's internal paths and files. That will likely just lead to trouble...
[Magisk] chris_g:
Thanks for your reply - you are right, it's better to remount "/" instead of trying to find the internal paths.

However, how do I determine whether a system uses system-as-root as you call it? In my current implementation for older root methods, I look in /proc/mounts where the current path is mounted. For example, when a user tries to write to /system/media, I look in the mounts file for /system/media, then if it isn't found, for /system, and finally for /. This doesn't work with Magisk, because /system is there too. Here the first 2 line from a mounts file with Magisk:

tmpfs / tmpfs ro,seclabel,relatime 0 0

/dev/loop0 /system ext4 rw,seclabel,noatime 0 0

So I see that "/system" is mounted as "rw" and don't ask the user to remount "/". I need a way to detect that Magisk's new root method is used, so I need to ignore /system and remount "/" instead.
[Magisk] Didgeridoohan:
What do you mean when you talk about "Magisk's new root method"? MagiskSU shouldn't any effect on this...

Are you talking about how magic mounting deals with SAR? That was changed in Magisk v20. But still, John's just using the standard Android way of dealing with SAR so there's no mystery to it. You'll always find "/system" in proc with Magisk, because of Magisk modules and magic mounting.

If you need to check for a specific Magisk version you can always do that with the Magisk binary, and you can take a look at how Magisk determines if a device is SAR here (if I remember correctly, I'm in no way an expert on Magisk internals).
[Magisk] chris_g:
I mean the difference between older methods (e.g. SuperSU, or Magisk v19) where you would actually write to /system, and the newer method used by Magisk v20, where /system remains untouched and the data is written to overlays (via modules or tmpfs). I need a way to detect what the system uses. In the first case, I need to remount /system as rw and write to it, and in the second case, I need to remount "/" as rw.
[Magisk] Didgeridoohan:
Why don't you ask other developers how they've got it working? That would probably be the best approach...
[Magisk] chris_g:
That's why I ask in a developer forum...
[Magisk] Didgeridoohan:
I've given you a few pointers already on how you can proceed... You have a way of detecting Magisk version and a way of detecting SAR, linked in one of my previous replies. If you need more than that I'm not your guy and you'll have to hope someone else can come along and give you what you want.

But since you say that MiXplorer works, why not ask there how they do it?
[Magisk] K_a_m_i:
I'd like to delete /system/recovery-from-boot.p file on Ulefone Armor 7E, android 9, kernel version 4.9.117 no TWRP yet, Magisk 20.4 installed, root is working. ES Exlplorer or Mixplorer can't delete it however Mixplorer shows RW. Through adb I got read-only file system error (even with insecure adb). If I want to remount as RW I get following errors, mount: '/system' not in /proc/mounts or mount: '/dev/root' not user mountable in fstab.

I also could delete bloatware from /system/priv-app only with Magisk module: [Terminal] Debloater v17.3.2. Can you please help me how can I delete /system/recovery-from-boot.p? I there maybe another Magisk module to delete files from /system?
[Magisk] Keule-Tm:
What do you want to achieve by deleting that file? I guess you are on stock?

I guess you could try to remount via a terminal app, or maybe mask it through magisk.

However, this question should be asked first in your device's forum--and please, not in any random unrelated thread. That way somebody with the same problem could find any discussion about it much more easily.
[Redmi K20 / Xiaomi Mi 9T Questions & Answers] vakkas vahora:
Call of duty and pubg game exit after few minutes rev os rooted and edexposed installed can any one solve i have also tried unroot but didn't work
[Redmi K20 / Xiaomi Mi 9T Questions & Answers] yaro666:
try in revos thread as this is related to ro.
[Redmi K20 / Xiaomi Mi 9T Questions & Answers] hruaiapunte:
Install magisk hide from magisk and hide the game. And also change the name of magisk to another name or else the game will detect that u have rooted your device and it will automatically close the app.
[Redmi K20 / Xiaomi Mi 9T Questions & Answers] vakkas vahora:
I will try
[Redmi K20 / Xiaomi Mi 9T Questions & Answers] vakkas vahora:
I also tried with eu rom but same things happen
[Redmi K20 / Xiaomi Mi 9T Questions & Answers] flamedrops:
Try miuimix rom i played cod mobile too and using magisk and i never had problem while playing the game.
[Redmi K20 / Xiaomi Mi 9T Questions & Answers] batman957:
Re install the app only

Always worked for me
[Redmi K20 / Xiaomi Mi 9T Questions & Answers] vakkas vahora:
Thanks to all problem solve by rename magisk
[General Topics] hotmail:
Curious if anyone has run into this issue before. I just bought an 8GB MicroSD card for my Hermes. Came with an SD card adapter that fit's into my card reader. Yesterday I plugged it into my SD card reader, then into my PC, and it was detected with no problem. Formatted the card with Fat32, popped it back into the Hermes, and it works like a champ.

So today I'm copying my files off my old 2GB MicroSD to my computer so I can transfer all that data to the 8GB MicroSD. Now when I put the 8GB card back into the card reader for the PC - no juice!?!? The PC simply does not detect that the card is installed. The Hermes sees it just fine. And when I browse the Hermes using ActiveSync I can see the Storage Card, save / move / delete files. But now the PC does not recognize the presence of the same card.

I've tested the card reader and the SD adapter with other known good MicroSD cards and the PC reads them all fine. Put in the new 8GB MicroSD card and nothing. It's like I unplugged the card from the reader... not even the drive letter shows up in Explorer anymore. Put another MicroSD back into the adapter and reader and I'm back in business. Drive letter pops up in Explorer in a couple of seconds. Anyone seen this type of behavior with a MicroSD card before?
[General Topics] farukb:
is the 8gb card sdhc,if yes,your card reader can't recognize it,ppc does,so does the pc over the ppc....

it's the reader
[General Topics] dysolve:
did you get one of those mini adaptor things with the card? you put your micro sd card in to the reader and the reader is a usb device? If so I have had nothing but problems with mine. I found out only yesterday that If i plug the card reader in to a USB extenion cable it works fine..
[General Topics] hotmail:
Hi and thanks for the reply. Yes, it's an SDHC card. Wierd thing is that it DID read the card initially. Even formatted it with no issues. Maybe I just got lucky. So is a card reader specifically for SDHC cards needed?

Yes, it came with a MiniSD adapter. And I already had the USB card reader. I tried using an extension cable, still the same result. The PC doesn't see the card.
[General Topics] dysolve:
mine just asked me to format the card as windows could not recongice its formatting.. WTF
[General Topics] Robson:
i have this very same issue with my 8gb card. my ameo recognizes it, i can paste and cut files from it, etc. however, when i use the accompanying card reader, my laptop doesn't recognize it. what's strange is when i open "my computer", the folder for the card comes up (drive f). when i click on it nothing comes up. so what happens now is if i want to load movies to my card, i have to copy them first on my 4 gb card, insert it in my ameo, copy the files to my microdrive, remove the 4gb card, insert the 8gb and then copy the movie/s and/or file/s to the 8gb. but, when my ameo is connected to my laptop via activesync, the 8gb card is recognized. and i can copy direct to the card but only through activesync.

at this point it's not really an issue...more of a nuisance. but would love to know why this is happening.

cheers

rob
[General Topics] AthenaLod:
most of the mini and micro sd cards come with adapters to convert them to sd. if u have this, u should be able to get a v. cheap SDHC to USB adapter at any electronics store (got one for 5.99 at office depot)
[General Topics] hotmail:
Seemed to be an issue with my USB card reader. Strange that it worked initially, and then refused to work. All my other cards work fine - even other MicroSD cards. Just the 8GB MicroSDHC card stopped working. Ended up spending about $20 bucks on a new card reader. The same type as I had type as before, just a new model that actually stated that it worked with SDHC cards. And sure enough, it works with the new 8GB card. So it seemed to be an issue with the reader, not with the card itself, the SD adapter, USB, or Windows.
[General Topics] Rudegar:
i got a microsd 8gb card and my sandisk 8-1 reader would not read it a non name 5-1 reader would not read it my sandisk sd to usb would not read it

a friends thinkpad with sd would not read it

my hp with sd reader would read it

sanidsks microSD to usb made it work with all of them

some companys offer firmware upgrades which make their readers

read sdhc but most dont
[General Topics] Aeneas:
my all-in-one card reader on my PC doesn't seem to read my 8GB microSDHC card (with SD adapter), but it works perfectly when used with the SanDisk MicroMate card reader that came with it - which does not need a SD adapter.

NOTE: There are several types of MicroMate, including a larger MicroMate bunled with microSDHC cards which requires an SD adapter.

They're good quality for portable USB readers, and very small, but only read microSD (or microSDHC) and M2.

Here's a link to one on Amazon. They're about £4 with shipping. http://www.amazon.co.uk/gp/offer-listing/B000X24PB0/ref=dp_olp_2?ie=UTF8&qid=1218283213&sr=8-2

It's on Amazon.co.uk, the US site doesn't have the MicroMate on its own.
[General Topics] ch99tj:
Same problem

I have had a Kingston 8GB (Kingston 8GB Micro SDHC Mobility Multi Kit Model MBLY/8GB - Retail ) from Newegg working fine with my Mogul and keychain adapter on WindowsXP for about a month. Now today, it stopped recongnizing it in a number of XP PC's but it still works fine in my Mogul. I do not have data encryption checked. I use the adapter a couple times a week for transferring files and music. Is it possible that XP updated with pooched drivers?

Any Advice?
[Redmi Note 8 Questions & Answers] pawelekch:
Hello anyone know what is the encryption type for the stock email app for the Xiami redmi note 8 miui system

that stored in the database:

Quote:

/data/data/com.android.email/EmailProvider.db

table:

Quote:

HostAuth

column:

Quote:

Password
[Xiaomi Poco F1 Guides, News, & Discussion] trax7:
Reserved
[Xiaomi Poco F1 Guides, News, & Discussion] aneesathil:
I also have the issue

I don't know if it began after I flashed force fast charge magisk module.

Flashed OD kernel and issue was gone initially.....but when charging, fastcharge wasn't working....so again flashed the module and fastcharge came back but this no deep sleep issue came back again :(

Don't know what to do........

And, flashing back stock boot.img also didn't solve......:(
[Xiaomi Poco F1 Guides, News, & Discussion] aneesathil:
My yesterday's BBS readings........
[Xiaomi Poco F1 Guides, News, & Discussion] trax7:
Thanks for your input. Did it begin recently? Backup your data and try wiping and getting latest fastboot ROM, if you want to try as well... If you get same readings in a while after it's definitely a hardware issue.
[Xiaomi Poco F1 Guides, News, & Discussion] aneesathil:
I was running miui 11.0.6 stable with magisk for long before i moved to xiaomi.eu 11.0.8, 2 weeks back. i think this to be the beginning of all issues.

Then fast charging became unstable so flashed lawrun kernel and fastcharging was back........

Today flashed latest havoc 3.6...... will see. But fastcharging not stable.......

Using poco fastcharger, charging current averages about 1500mA occassionally boosts to 2700mA.

But using regular 5v 2A chargers, averages about 1800mA to 1900mA constantly!
[Xiaomi Poco F1 Guides, News, & Discussion] aneesathil:
There is a link explaining the basics of wakelocks....

https://xdaforums.com/galaxy-nexus/kernel-wakelocks-t1462020/amp/

Otg_default is a kernel wakelock...... So, it is triggered by the kernel right? Then its a kernel issue?
[Xiaomi Poco F1 Guides, News, & Discussion] trax7:
I had the issue before that too. It doesn't appear to be connected to any kernel or ROM but it does appear to be connected in some way to temperature and fast charging. It seems to occur less in dry hot weather and after it manages to fast charge properly. It kinda messes with charging and I think it's partly to blame for the ever-present slow charging issue, regardless of kernel fixes.

The fact that it is a kernel wakelock doesn't mean it comes from the kernel. The wakelock is a response to something occurring, it won't come up by itself just like that.

The fact that the wakelock occurs randomly and persits through kernel changes and full wipes shows that something wonky is happening in hardware.

If it was a kernel issue it would be fixed by going back to stock kernel... But it doesn't get fixed. It can't be ROM, it can't be kernel, what can it be then..? Only firmware or hardware.
[Xiaomi Poco F1 Guides, News, & Discussion] aneesathil:
fastcharge works fine when phone is charging while switched off....... easily manages to reach 90% in about 90 minutes......

but, when switched on, over 2hrs........ idk whats wrong.....
[Xiaomi Poco F1 Guides, News, & Discussion] trax7:
Mine fast charges fine now that the weather is hotter and the issue comes us rarely. Otherwise, during winter time and until recently I've had the same issue as you.

Also, have you tested how the phone responds to wipes etc.? I've found that a full wipe really helped with overall speed and smoothness.
[Xiaomi Poco F1 Guides, News, & Discussion] aneesathil:
Yes.......

Now, i have downgraded to last pie build.

Did a clean recovery flash of miui 11.0.5 pie full recovery rom from twrp...... Didnt root and twrp is replaced with mi recovery......decided to leave it as it is and now.....Phone SLEEPS normally - deep sleep is back. Checked with system battery stats.

Quick charge seems broken still......when connected to poco charger, it shows quick charging initially but then after sometime quick charge disappears.

But, regular 5v 2A charges charges faster :p
[Xiaomi Poco F1 Guides, News, & Discussion] trax7:
Okay, if the problem is back or even if it isn't, please report back here. Unfortunately, not many users see or post in Discussion threads... But still it's good to have that information out here. :)
[Xiaomi Poco F1 Guides, News, & Discussion] aneesathil:
After the pie build, tried latest global fastboot rom 11.0.8, just to check and the always awake issue was present. So it seems to be an issue with the rom.

Reverted back to miui 11.0.5 pie build and sleep issue is gone :)

Anyone one facing similar issue, flash 11.0.5.:cool:

---------- Post added at 08:30 AM ---------- Previous post was at 08:28 AM ----------

All the latest custom roms based on 11.0.8 files (if at all) seem to have this always awake issue in some, if not all pocophones......
[Xiaomi Poco F1 Guides, News, & Discussion] trax7:
Hmm... 11.0.5 is Russian locality, yes? Global versions are 11.0.6 and 11.0.8? I'm asking because I use Xiaomi.eu. I'll try myself and see if that solves it but I think the issue comes up anyway.
[Xiaomi Poco F1 Guides, News, & Discussion] aneesathil:
No..... I have the ota package (full rom) from India.

Try 11.0.5 global recovery rom from xiaomi firmware updater website.

---------- Post added at 11:48 AM ---------- Previous post was at 11:47 AM ----------

Or from here

https://c.mi.com/thread-2766844-1-0.html
[Xiaomi Poco F1 Guides, News, & Discussion] trax7:
Strange because nothing should have changed from that point in the USB subsection. I will give it a try anyway, even though I want to use international or EU ROM.
[Xiaomi Poco F1 Guides, News, & Discussion] aneesathil:
Do share your experience.....
[Xiaomi Poco F1 Guides, News, & Discussion] banmancity:
Hey guys I also had this problem earlier and here's what I found.

1. The phone doesn't fastcharge as it is protecting the battery

2. This is a hardware problem- the phone's Battery

3. What causes it- overclocked kernels (makes the battery temperature higher especially when the ambient temperature is already really hot and humid) and sometimes it's just the Battery itself which has worn out

What I did:

1. Flash stock recovery- Fastcharge doesn't work unless you reboot the phone while plugged in

2. The regular 5v/2A charger works well

3. I left it as it is but as time passes, within a few weeks the back of my phone felt weird to hold. So I took it to the service center and when they opened up the phone, the battery had some bumps on it. They tested again with the default charger and saw that the battery itself was rejecting the quick charge. The only way was to replaced the battery. Once the battery was replaced, Fast charge was working again and the Wakelocks like otg_default never came back. Device was working normally again.

But this happened in my case. You should check for any physical signs on your device because the battery usually takes some time to show the bumps.
[Xiaomi Poco F1 Guides, News, & Discussion] pra300:
Having same issue guys

https://prnt.sc/t7b8fr

https://prnt.sc/t7b8m0

It started last week when I updated MIUI to 11.0.8.0

I tried fastboot ROM flash, changed ROMs. Still no good.

I will give it a try by flashing miui rom from recovery as [MENTION=4671206]aneesathil[/MENTION] mentioned. If not I'll get battery replaced.
[Xiaomi Poco F1 Guides, News, & Discussion] amn1987:
After the few minutes it took to unlock the bootloader I have been using crDroid almost non-stop for the last ~9 months. Only (minor) issue is that the charge level would fall by 1-3% within 1-2 minutes after charging. Blocked a bunch of wakelocks like qcom-step-chg etc but to no effect. I used Reloaded OS for a short while and the issue persisted. So maybe its something to do with the hardware.
[Xiaomi Poco F1 Guides, News, & Discussion] aneesathil:
Try miui 11.0.5 pie recovery rom and report if issue persist. If you find time;)
[Xiaomi Poco F1 Guides, News, & Discussion] pra300:
Replacing charging port did the job for me
[Xiaomi Poco F1 Guides, News, & Discussion] trax7:
From what I can gather the issue seems to be more severe with some devices. The root cause seems to be the same but in some cases it's more advanced and past the point of no return. It is a hardware issue but some people can get back to a safe config and sort of recover (most likely only for a while), others can't.

The people who say they have fixed it need to look really carefully. At the moment, I don't have the issue too and haven't had it for a while, at least a few days if not weeks. The reason? Hot and dry weather, fast charging going through and resetting USB circuit to a stable state, no debris in port (some people have it from just debris in the port it seems, but ultimately that is NOT the root cause in most cases) and some kernel mitigation I have otlutlined in the OP (which actually only managed to make it log less things but curiosly did *not* manage to fix the issue by itself, even when in software it should have).

I expect the issue to be back when the weather changes to colder and more damp. This has been the case every time and it seems to be connected to moisture.