yashsingh1/xdaforums huggingface dataset:
[OnePlus 3 Guides, News, & Discussion] kentexcitebot:
Hi, I haven't posted here in a while.

I've been doing some testing in regards with OOS 4.0.x firmware and I think I found out the issue!

I kept getting the same battery drain on LOS/AOSP-based ROMs. Reading the thread, it seems hardly anybody has this issue on newer firmwares. At first, I thought it was an F2FS issue. I started from scratch by wiping everything (including the internal storage), changed the /data partition to ext4, and upgrading TWRP. When I booted the ROM afterwards and let my phone sit for a few hours, I still had that strange error with the CPU behaving abnormally and battery drain. So I took to the logcat and started searching.

The error that generated heat and battery drain from OOS 4.0.x's firmware is the following:

Sending non-protected broadcast com.android.imsconnection.DISCONNECTED from system 2019: com.android.phone

com.android.phone? That's familiar....remember how I said in the OP it was a modem issue? But just above the error has this message:

ImsSenderRxr : Response data: [12, 13, -1, ...

That's Enhanced 4G LTE Mode! All I needed to do was flip the switch OFF and viola! All errors gone, CPU stable and minimal battery drain. Oxygen OS does not error out like this, so I'm certain this "issue" is exclusive to just LOS/AOSP.

Looking at the OP I realize how silly this thread is. I could've just attached the logcat into the Q/A thread and asked for help, done deal. My apologies everyone. If you downgraded the firmware to try this "fix", upgrade back!
[OnePlus 3 Guides, News, & Discussion] smk513:
After many tests, I have found the reason for battery drain in FOS 2.3.(in Custom Kernel)

1. GOOD :

Clean Install FOS 2.3 -> Boot System and Install Apps -> Boot TWRP and Install Custom Kernel -> Boot System = Fine

2. BAD :

Clean Install FOS 2.3 -> Boot System and Install Apps -> Boot TWRP and Backup(System, Data, Boot) ->Install Custom Kernel(do it or not) -> Full Wipe -> Restore FOS 2.3 -> Install Custom Kernel -> Boot System = Battery Drain. (logcat = QMI_FW : xport_reg Failed for service.... x 99999, pastebin : http://pastebin.com/nfuC2gsC)

However, set Selinux Permissive = No Drain. (FOS Stock Kernel is basically Permissive, but custom kernels(EX/BlueSpark) are Enforcing)

... Is it a recovery issue? (using blue spark TWRP v15), i'm confused...
[OnePlus 3 Guides, News, & Discussion] MarcTremonti:
so if like some told here 1-2% battery drain is normal then i also have problems. got more like 10% battery drain over night.

FreedomsOS 2.3 + bluspark kernel
[OnePlus 3 Guides, News, & Discussion] smk513:
in terminal app (ex. terminal emulator)

su

setenforce 0

done.
[OnePlus 3 Guides, News, & Discussion] MarcTremonti:
but will this be permanent? or it resets after reboot?
[OnePlus 3 Guides, News, & Discussion] smk513:
reset after reboot.

Selinux Mode Changer App or like init.d script to be applied after rebooting.
[OnePlus 3 Guides, News, & Discussion] MarcTremonti:
or can i also use this method from [MENTION=4356900]mnazim[/MENTION]

does it do the same basically, just permanent?

Edit: [MENTION=4356900]mnazim[/MENTION]

where exactly do i have to add the "androidboot.selinux=permissive" line in the sh-file? dont want to do something wrong.
[OnePlus 3 Guides, News, & Discussion] NevaX1:
FreedomOS 2.3 & CE 2.4 are now ship with an Enforcing kernel for more security :)

The battery drain is now fixed, read the changelogs to get more informations.
[OnePlus 3 Guides, News, & Discussion] MarcTremonti:
okay, so if we have problems with any unnormal battery drain with custom kernels its definitly not related to enforcing mode i guess.

will have a look at my drain over night the next morning. should be something like 1-2% i guess right?
[OnePlus 3 Guides, News, & Discussion] smk513:
Yes, I checked the changelog (Permissive workaround, the kernel is now booting in Enforcing mode) and I tried clean install several times.

However, immediately after installing FOS 2.3, check getenforce command(Terminal App), it is in Permissive mode. that's weird.

install another custom kernel, Enforcing mode will be checked..

and..

--

Clean Install FOS 2.3 -> Boot System and Install Apps -> Boot TWRP and Backup(System, Data, Boot) ->Install Custom Kernel(do it or not) -> Full Wipe -> Restore FOS 2.3 -> Install Custom Kernel -> Boot System = Battery Drain. (logcat = QMI_FW : xport_reg Failed for service.... x 99999, pastebin : http://pastebin.com/nfuC2gsC)

--

What is the cause of this problem? I do not know the problem = (

I am using bluespark TWRP v15 recovery.

Thank you for replying.
[OnePlus 3 Guides, News, & Discussion] sarus_b:
I just noticed one more interesting thing... That cpu locking bug comes up only when you use kernel adiutor.. I used other cpu monitoring apps and cpu idles normally to 307 mhz.. But when I launch the kernel adiutor the cpu freq is locked at 2015 mhz on big cluster. This bug was present in previous versions and possibly due to the stupid ad placed on screen whilst it was loading. (I'm not against ad in indie developers just hate it when it comes in way)

There might be two reasons :

1. SD 820 has a boosting feature by qualcomm where it boosts all core to max freq when a app is launched to reduce launch times and lag.. Maybe some code in app + code in kernel interferes with that.?

2. There is some poor code in the app front page possibly in the ad being displayed.. Even on 4g and wifi the ad loads up so slow... The CPU stays at max freq till the ad finishes loading completely (takes like 4-5 seconds for me)

Im just posting this observation since all solutions posted in this thread haven't worked for me 100%..they are hit and miss, sometimes it works sometimes it doesn't..
[OnePlus 3 Guides, News, & Discussion] muchmuch2:
setenforce 0, worked

setenforce 0, worked for me.

now the cpu frequency is normal and the phone is colder and also snappier

checked with kernel adiutor
[OnePlus 3 Guides, News, & Discussion] anshmiester78900:
Are you using Stock OOS ROM ?
[OnePlus 3 Guides, News, & Discussion] rk2612:
I think this issue is caused by SELinux because ...

...I was able to get out of this overheating problem by either:

1. setting SELinux to permissive;

or

2. correcting the file permissions of a system file that I had edited (...after which I was able to set SELinux back to enforcing and the overheating did not reoccur).

I guess this can be confirmed by checking the logs for errors reported by SELinux but because this solved the issue for me, I did not bother doing that.
[OnePlus 3 Guides, News, & Discussion] anshmiester78900:
Do you know any permanent way of changing it? I'm on Stock kernel but rooted and have to do setenforce 0 every time I reboot. I tried downloading kernel auditor but couldn't find the option to do it.
[OnePlus 3 Guides, News, & Discussion] rk2612:
You need to modify your boot image by including androidboot.selinux=permissive in the commandline. Or try rooting again and that should do it, I think.
[OnePlus 3 Guides, News, & Discussion] anshmiester78900:
Rooting again? Do I have to follow different steps to do it?
[OnePlus 3 Guides, News, & Discussion] rk2612:
Think SuperSu sets SELinux to be permissive. If not, you'll need to modify your boot image.

Another workaround (if your bootloader is Oxygen OS 4.0.1 or earlier) is to boot into fastboot and issue the command

fastboot oem selinux permissive

This fastboot command is sticky even on reboot but may not sustain on an upgrade.
[OnePlus 3 Guides, News, & Discussion] ultravy:
I thought is just me with kernel adiutor. few days back there was no problem at all !!! the cpu boost is just few milliseconds so is not that. what app you used to view cpu usage?

Edit: after i check the logcat it was about dirac! i had arise sound system installed with no problems at first, since others had high cpu usage. i disabled the app, but no go! had to restore the backup. After all this, no reason to blame kernel adiutor !!!!
[OnePlus 3 Guides, News, & Discussion] arshu16:
Yes! This helped me. Forced stop kernel adiutor and the big cores came back to the base frequency. Don't know who is at fault. It started after I blocked the ads, must be some infinite loop or hangup in the app.
[OnePlus 3 Guides, News, & Discussion] Skinpipe:
I've stopped using KA because it thrashes my cpu every time I use it, it's done that for months
[OnePlus 3 Guides, News, & Discussion] rob rich:
I also stopped using and recommending Kernel Adiutor month ago because I noticed the same behaviour. Flashed Rom after Rom and all had the same problem after opening Kernel Adiutor. Since I use Ex Kernel Manager everything is good :)
[OnePlus 3 Guides, News, & Discussion] Chaplan:
Known problem on the free version of Kernel Adiutor.

Using the Donate version will stop the locked cores from misbehaving.
[OnePlus 3 Guides, News, & Discussion] Skinpipe:
That's a good way to sell the donate version isn't it?
[OnePlus 3 Guides, News, & Discussion] arshu16:
yeah it is :D
[OnePlus 3 Guides, News, & Discussion] Chaplan:
Since I find the app really good I decided to donate a long time ago. I really can't remember if there were already adds when I donated.

I never feel like I bought it. It's an open source project, I donated because I was using it, a lot, and I believe in Open Source.

As for your affirmation, I don't think it's a mean to attain an end, the developer has always been transparent about the app, you can check the code on GitHub.

But, and although I am not affiliated in any way with KA, what i can tell you is that the app is Open Source.

Anyone can contribute, modify and compile the app for his personal needs.

So think again before making such accusing statements.

You at least get a chance to use a free full featured version, and with the Open Source Stamp on it.

Something that you can't say about most of the Kernel controlling apps out there.
[OnePlus 3 Guides, News, & Discussion] Skinpipe:
Thanks for info, I know about the app I've used it since it's birth also i couldn't care less about my "accusations" stop getting emotional over a comment on a forum

I've been using xda since 2011 and I've read so much hate and nonsense, also people who take it upon themselves to police the forums who aren't moderators when nothing has actually happened
[OnePlus 3 Guides, News, & Discussion] Chaplan:
Still Open Source.

With or without emotion.

I only stated it's a known bug. You were the one who made the relation to a marketing/selling option on an app that is not for sale. Far from the truth. It only has a donate version that takes the adds off and adds nothing else to it's features.

And since you quoted me with that nonsense affirmation I gave you the polite treatment.

The truth hurts, I know...

Anything else you need you can take it to PM. Will be more than happy to address all that hate on my usual polite and educated manner.

Be good. :good:
[OnePlus 3 Guides, News, & Discussion] Skinpipe:
I don't need telling what's what on xda, jog on
[OnePlus 3 Guides, News, & Discussion] alveriaz:
is it can be applied on xiaomi miui phone? cuz Im experiencing the same issue?

For people running Oxygen/Freedom/Experience OS: if you have drain, this fix still applies to you:[/b]

Use phh's superuser instead of SuperSU

Using the command:

su
setenforce 0

or using init.d scripts to change SELinux's policy to permissive

If /data is F2FS, try changing it to EXT4

I'm open to discussion - did this solution work for you? Anyone try this on Oxygen OS? Or perhaps you have a different solution? Comment below, or use the poll! That will help me when I create future OP threads :)

[/QUOTE]

Hi friend, I find your post on google, currently Im experiencing the exact same issue on my xiaomi mi a1 custom rom xiaomi.eu, previously Im trying to flash some .img files in payload.bin that came as .zip stock rom but eventually my phone stucked in booting, then I back to bootloader mode wipe everything, boot twrp then instal the previous stable rom, then this happened, com.android. phone stop, no service, no simcard detected the cpu is gone crazy and thereis massive battery drain, I wonder can I apply these steps for my mi a1?? THANKS

[IMG="cpu gone crazy"][IMG="stats"]https://ibb.co/zxZj5Z6[/IMG][/IMG][/IMG]
[Touch CDMA General] kushdeck:
Where to start...

One of my phone lines on my account is my old 6700. The bluetooth and my car (2007 bmw 335i:D) worked once while the phone was stock, then never worked again. Then i upgraded to wm6 for the apache. The bluetooth and my car worked well for a while, then all of a sudden one day stopped working. I hated the trouble that it used to cause my, so i added a 2nd line on my account for my 'car' phone. I went with a motorola krzr after i was told motorola bluetooth stacks have no problems with most cars bluetooth stacks. I also had a samsung upstage before the krzr that had no problem syncing with my car, but would never send the correct information to my car i.e. when a call was coming in, it wasnt the correct caller displayed. The krzr worked perfect. Anyways, I smashed my krzr (after the lil nephew soaked it in saliva and the buttons stopped working) and was 'forced' to buy the new touch phone. ;) Since purchasing the touch, i cant get it to sync with my car :mad: I had it ONE time come up in my list of bluetooth devices, but when i tried to connect, it would fail, then i would refresh and it would be gone. :confused: Please somebody help me. I was hoping that i could get rid of my 2nd line and finally have 1 phone! Is there an update for the bluetooth stack? is there a registry hack? is there anything?

Thanks in advance for anybody that can help me...

-deck
[Touch CDMA General] JerryK73:
You need to download a cab file from Jetware Mobile. Just do a google search for it. Works on alot of PPC phones
[Touch CDMA General] kushdeck:
well i tried it, and still no luck :(

this is the ONLY problem with the touch i have encountered so far.

-dedk
[Touch CDMA General] Hexxx:
I had the similiar problem. I was trying to send the file via bluetooth from Touch to Motoming. The devices were already paired. But I couldn't send file via bluetooth. When I selected file and tried to send it from explorer it blinked the device selection screen and I returned back to explorer.

To send the files via bluetooth I had to install resco explorer. And from resco explorer I was able to select the device, and send files via bluetooth.

Bluetooth in Touch is very buggy.
[Sprint  Galaxy Note 4 General] Sterist:
if you have a problematic firmware that won't allow you to edit your APN settings in the dialer hidden menu, this may be what you need.

first, the warnings:

1. THIS IS ONLY FOR SPRINT SAMSUNG PHONES RUNNING TOUCHWIZ ROMS!!! never attempt on any other carrier or manufacturer's device or alternate roms! it should most likely work on other Samsung Sprint devices with stock/touchwiz roms.

2. DEPENDING ON DEVICE, YOU ARE MOST LIKELY TO BE FORCED TO FACTORY RESET YOUR DEVICE IN THE PROCESS, which likely includes LOSS OF ALL DATA ON INTERNAL SD!! take all necessary precautions.

3. ROOT REQUIRED

4. you will STILL NEED your MSL number!!!

5. have a FULL backup in TWRP ready in case anything goes wrong. INCLUDE your EFS in the backup!!! again, INCLUDE YOUR EFS. make sure it's stored on EXTERNAL sd card. again, EXTERNAL SD CARD!!! or copy it to your PC if you don't have an external card.

here's the short but sweet guide.

1. download "Samsung Phone Info" from Google Play

2. swipe over to the CSC section.

here you should see:

Firmware's CSC Code

Active CSC Code

Available CSC Code

3. if Firmware's AND Active both say XAS, you should already be able to edit your APNs using your MSL number.

if Firmware and Active codes do not match, you have a dirty rom and I am unable to help you correct it, you'd best try a different stock based rom or 3rd party that allows it by default.

if Available CSC Codes does

NOT

include "XAS" then whoever modified the customized stock touchwiz rom you're using removed it and you'd best try a different stock based rom or 3rd party that allows it by default.

4. using any CSC editor, change "SPR" in ALL places it appears as only the 3 letters "SPR" to XAS

5. confirm changes and reboot. you will now most likely lose ALL personal data on your phone and should now be able to edit your APN using your MSL inside the dialer's hidden menu.
[Sprint  Galaxy Note 4 General] Phyzic:
Have you found a way to retrieve your MSL without calling sprint? I've tried all the tool apps in the play store and using a logcat within the ##3282# menu with no luck. Getprop ril.MSL yields nothing, not even a not found error.

I've tried calling sprint for my MSL but refuse to release it.. I'm not exactly on their "nice" list - they've even called to tell me I'm "using too much of my [UNLIMITED] data" many times so I don't expect much from them anymore..

Any help or direction would be greatly appreciated
[Sprint  Galaxy Note 4 General] Sterist:
try the Sprint chat -- through the website, NOT Facebook, and have a good reason ready as to why you need the MSL, other than for bypassing their security lol
[Sprint  Galaxy Note 4 General] elcidroyale:
Holy **** after searching high and low I have FINALLy found a way to get back editing my APNS for hotspot on my rooted Sprint Note 5! AND I keep Android Pay! Thanks so much!!

This works perfectly! Only thing is turn on hotspot option disappeared from settings. I can turn it on and off from the top bar if I swipe down. OR I can download a hotspot shortcut app and access it from that app.

Also I noticed my icons for LTE now say 4G and the bars are different too - more old school.

I noticed I changed EVERY SPR to XAS - do ALL of them NEED to be changed to enable APN editing? Can I switch back the ones that give me back hotspot option in settings and stock LTE & bars icons?
[Sprint  Galaxy Note 4 General] Sterist:
this **might** be fixed by renaming (or deleting, if you're brave) the features.xml file, if I remember correctly, stored in system/csc/ or system/etc/ not sure honestly

features.xml.backup should do just fine.

if the rom doesn't boot afterwards or if the dragons catch all your apps on fire, go back to recovery and use TWRP's file manager to change it back

also, any xposed app (like wanam's) or other feature.xml adjusting apps (like GalaxyTools or Samsung Phone Info) can cause the problem to happen again.

the alternative / temporary / dirty-fix would be to create a shortcut to hotspot on your home screen:

1. download Activity Launcher from Google Play

2. launch and change recent activities to all activities

3. wait approximately 72 years for it to load

4. scroll to Settings and tap it

5. scroll to Hotspot and long-press it

6. tap create shortcut

7. never uninstall Activity Launcher -- instead just make it a hidden app (it's very small anyways)
[Sprint  Galaxy Note 4 General] elcidroyale:
I can just longpress hotspot toggle in slide down drawer from top no probz. Which CSC settings modifies the ability to edit APN? I want to put the rest back to SPR.
[Sprint  Galaxy Note 4 General] dosmastr:
I used the msl code and everything appears the way you say it should... but the phone STILL says invalid sim!

What internal file must be deleted, the thing is unlocked on sprints end it just wont let go !
[Sprint  Galaxy Note 4 General] deshaney:
see this thread.. https://xdaforums.com/sprint-galaxy-s5/general/guide-how-to-msl-code-t3628728 ....theres the rooted way...and i also posted the non rooted way....
[Sprint  Galaxy Note 4 General] sunnykal:
Hello,

I rooted Sprint Note 5 from Nougat to Magisk and went ahead to replace SPR into XAS in all files under system/CSC folder. APN Type is still coming greyed out. Any help will be appreciated.

-Sunny
[Honor V9 Questions & Answers] lewrobert7331:
just noticed the news that huawei's new flagship honor 9/v9 (DUK-TL30) has been approved by TENAA, is that true?
[Nexus 5X Q&A, Help & Troubleshooting] jimv1983:
When I make or answer a call and put my phone up to my ear the proximity sensor kicks in and the screen shuts off. However, when I take the phone away from my ear the screen doesn't turn on again. Sometimes(maybe 25% of the time) I can press the power button to wake up the screen but usually the screen is just stuck off until the call is ended. I don't even have a screen protector that might be getting in the way.

Anyone else having this issue?

Android 7.1.1 (Build N4F26I)
[Nexus 5X Q&A, Help & Troubleshooting] GuestD0701:
Haven't had this issue and I used stock for a while, the same build as you are on.. What were you on before? Did you use any scripts or kernel tweaking apps that may have left something on your SD card? I'd look using root explorer or another file manager and delete anything you see in that folder etc/init.d and reboot. (Screenshot attached) If you have nothing in there and don't have any scripts active or kernel apps controlling your screen off I guess it could be faulty hardware. (Power buttons always are jacked up on Nexus devices. I have to hit mine a few times to get it to work...) Maybe try a factory reset if nothing above applies or works that's what I would do. Copy all your stuff to your laptop or a cloud and wipe that baby in twrp. Format data then go to security settings and encrypt again if that's what you want..

Edit

If none of that works I'd contact Google and ask for a replacement.

View attachment 4013381

Sent from my Bullhead, DU rom of course. ?
[Nexus 5X Q&A, Help & Troubleshooting] ikfe:
Got the same issue on PN6, it was the elementalx 2tap to wake feature that's was problematic
[Xiaomi Redmi 2 Questions & Answers] iMaterial:
Trying to find a reliable source for Redmi 2 / Prime. Does anyone know one? Has anyone seen a 2nd hand 2 Prime for sale?
[Xiaomi Redmi 2 Questions & Answers] jelousdogs:
How much would you be willing to pay for a second hand redmi 2 prime..!
[Xiaomi Redmi 2 Questions & Answers] iMaterial:
Well years ago, before the not best priced store DX.com sold out of them, they were priced at €107, with free shipping in 2015.

http://www.dx.com/p/xiaomi-redmi-2-...ne-w-4-7-hd-16gb-rom-8-0mp-light-green-400895

So depending on condition €40 - 60 or so? Or what is the general idea? I know you can get the Redmi 4A for €99, these days.
[Xiaomi Redmi 2 Questions & Answers] iMaterial:
I almost snagged a non-pro for £30-35 on ebay. Someone beat me to it.

http://www.ebay.co.uk/itm/Xiaomi-Redmi-2-8GB-Black-Unlocked-Smartphone-/232210253680
[Xiaomi Redmi 2 Questions & Answers] iMaterial:
Can't find any Pro / Prime second hand for sale in Europe or North America. However they can be found new on www.alibaba.com/ for $60 - 100.
[Xiaomi Redmi 2 Questions & Answers] iMaterial:
Here is a Pro one for €55 in Italy.

http://www.ebay.it/itm/272534188829

Can't buy it since he only ships within Italy. :-/
[Xiaomi Redmi 2 Questions & Answers] iMaterial:
http://www.ebay.co.uk/itm/UNLOCKED-XIAOMI-HONGMI-REDMI-2-PRO-2GB-RAM-16GB-ROM-8-MP-4G-MIUI-6-SMARTPHONE/282246773633

This is a bit high for a new one, isn't it? I mean you can get a Redmi 3, Note 3 or even 4 for the same or just a little more.
[Xiaomi Redmi 2 Questions & Answers] iMaterial:
Someone in Germany should snipe this one tomorrow, if they can.

http://www.ebay.co.uk/itm/Xiaomi-Redmi-2-8GB-Weis-Ohne-Simlock-Smartphone-/262834282717
[Xiaomi Redmi 2 Questions & Answers] iMaterial:
I can get a new in a box for $89, I'm wondering if it is worth it, or if I should add 50-60 and get a newer device. :rolleyes: :confused:
[Xiaomi Redmi 2 Questions & Answers] ridersam:
better go for redmi 4A that's much better
[Google Pixel Guides, News, & Discussion] sharingspider:
Hi Folks

Thought of starting a thread for Indian pixel users. Has anyone rooted yet? Do u guys feel the urge to do it?

Share your thoughts in and around pixel.
[Google Pixel Guides, News, & Discussion] SynisterWolf:
Thread closed,

So we dont have to much confusion on the site, please use this thread that was already made.

https://xdaforums.com/pixel/how-to/google-pixel-indian-discussion-thread-t3466725

Thanks everyone.