yashsingh1/xdaforums huggingface dataset:
[OnePlus 2 Q&A, Help & Troubleshooting] Sam Nakamura:
Well lineageOS and halogenOS are pretty stockish, have a look yourself..
[OnePlus 2 Q&A, Help & Troubleshooting] Quote100:
I feel like my bad signal and reboots are caused by my modem but I don't know anything about those or which one I have so may i ask how to update it to the latest 3.5.8? Can anyone give me steps on how to do it, what to backup in twrp, etc? thanks
[OnePlus 2 Q&A, Help & Troubleshooting] Sam Nakamura:
Download the twrp flashable firmware zip (ca. 40mb) from here:

https://xdaforums.com/oneplus-2/gen...cial-oxygen-os-roms-ota-t3209863/post62973446

Flash the zip of the firmware version you want in twrp & reboot. Done.

There are also backup scripts for EFS in case you haven't done a backup already.
[OnePlus 2 Q&A, Help & Troubleshooting] Quote100:
incredibly fast reply thanks. do I have to use the zip to back up EFS or can I just use the twrp function for it?
[OnePlus 2 Q&A, Help & Troubleshooting] Sam Nakamura:
Twrp could not backup EFS properly in the past, it couldn't be restored, I don't know if this changed in the recent updates but I wouldn't rely on it...

There are no issues expected with flashing the firmware but you never know :)

It's a matter of seconds, remember to upload the file to Google Drive and/or your computer to have it available in case of trouble
[OnePlus 2 Q&A, Help & Troubleshooting] Quote100:
alright thanks!

---------- Post added at 09:38 AM ---------- Previous post was at 09:03 AM ----------

actually i have like 2 more questions (sorry)

1. is there a way to make the selinux state either stay on permissive or change to permissive on boot? i have an app that i use for the alert slider but i have to manually activate it every time i restart the phone (or every time it restarts itself)

2. every time i restart the phone pixel launcher and a few other apps (it varies) revert to older versions and i have to update them in the play store. i know when it happens when the launcher crashes when i launch a homescreen app. is there a way to fix this?
[OnePlus 2 Q&A, Help & Troubleshooting] Sam Nakamura:
First and most important, there's no need for sorry, we're all here to learn... :)

As you just added a post without quoting or even tagging me I got no notification, saw this due to coincidence.

I would refrain from selinux permissive as it is a potential security problem, it's your decision, just saying.. What is it what you want to do with this app needing to switch off selinux? Maybe there's a better way, in general you can use terminal to switch selinux (use Google for the command) also an app is available which automates this (or Tasker to apply the terminal command) SelinuxModChanger, it will write a init.d script to apply it at boot...

For the other issue, get logs with Matlog from store and post it on the rom thread, best is to trigger the event and record it for logs, if not possible just start the app once and grant it root privileges, it will log the events in background, you'll just have to open it after the crash and save the created logs, upload them to G-drive and share the link..

Edit:

there's also a Magisk Module that switches selinux to permissive for you, see here, https://xdaforums.com/apps/magisk/module-magisk-selinux-permissive-script-t3577549
[OnePlus 2 Q&A, Help & Troubleshooting] Sam Nakamura:
[MENTION=2871177]M5devil[/MENTION]

Of course you can customize almost any part of your layout, especially on RessurectionRemix, Aicp and also various other projects to a certain degree, furthermore all nougat roms support substratum which gives you even more possibilities,

it will open up a new world for you :)

Using Magisk in this combination can also give & hide root from certain apps, so no one can really see that you tinkered your phone and so you can use pokemon go, snapchat and Netflix again, more and more apps will deny service to root users in future.

Another great thing about magisk is the possibility to use magisk modules, there is one available for YouTube with background playback and adfree, see here:

https://xdaforums.com/android/apps-games/app-iytbp-injected-youtube-background-t3560900

Don't confuse magisk modules with xposed modules, it's totally different, in short magisk is only a root tool which can mount files systemlessly, it does not inject code to the system or app, it cannot be compared...

Edit: you can also check out AEX, DU, Validus and more, all CAF based (if that's important to you) and heavily customizable, halogenOS is pretty much loved by it's users for it's stock'ish feeling & approach, the rest applies to N roms in general for the OP2... [MENTION=2871177]M5devil[/MENTION]
[OnePlus 2 Q&A, Help & Troubleshooting] Sam Nakamura:
Shutdowns come in my opinion from overclocking the CPUs, you can adjust the max frequency on both clusters and lower them a little, I'm using the updated zzmoove reactive profile with default max frequency without issues, I observed shutdowns on impulse tuned v3.1 and interactiveX but as said, when lowering the max frequency a little or to stock (1555/1766) I had no issues whatsoever and still a decent profile (mix between performance and battery)...

I wouldn't recommend it if I wasn't sure about it's reliability, just remember custom kernels are unsupported terrain :)

[MENTION=7239362]Shanmukh1608[/MENTION]
[OnePlus 2 Q&A, Help & Troubleshooting] Shanmukh1608:
Alright then, I'll install either impulse tuned 3.1 or interactiveX and lower the max frequency to 1555 or 1766 and see how it goes. Thanks a ton! :D
[OnePlus 2 Q&A, Help & Troubleshooting] Sam Nakamura:
1555 (A53) is the small cluster, 1766 (A57) the big..

Just wait and see what happens, the shutdowns don't do harm.. Just play :)
[OnePlus 2 Q&A, Help & Troubleshooting] Quote100:
(barely know how to use these forums sometimes lol my bad) I use permissive for a notification slider app that let's me customize the sound profiles for the different slider positions much better than the native settings app let's me. I don't know of another way to switch its position and have the system not change my alarm volume but I do see where the security threat comes in.

are you sure that matlog can capture logs when rebooting? to recreate the issue I have I have to reboot the phone and the apps seemingly downgrade themselves during that time and then when it starts up again pixel launcher crashes when I launch an app from the home screen and 3 or 4 varying other apps need to be updated
[OnePlus 2 Q&A, Help & Troubleshooting] Sam Nakamura:
No it doesn't, it only logs till phone switches off...

Anyways, this is of course not a normal behavior, what rom you're on and how did you flash it?

Does this weird downgrade also happen without the slider app?

Are you using Magisk?

You saw that module for selinux permissive?

Lots of questions :)
[OnePlus 2 Q&A, Help & Troubleshooting] Quote100:
np for the questions, glad there's someone to help me out.

1. I was using what's now the "unofficial" resurrection remix before it became unofficial and I dirty flashed the "official" version over that. I'm on the latest build of it

2. do you mean with the slider app uninstalled? if so I haven't tried to that so I'm not sure

3. using the latest magisk as far as I know

4. I did see it but I think I'll wait on it for now thanks
[OnePlus 2 Q&A, Help & Troubleshooting] Sam Nakamura:
OK, the unofficial RR build is heavily modified, you can't dirty flash the official on top, that's very very likely cause for your issues, meaning you have to clean flash the latest official if you going to stay there, you shouldn't mix them...

Clean means wiping everything except internal storage, then have a look if problems persist, backup so you can revert if you want to but check a clean flash i bet it makes the difference..
[OnePlus 2 Q&A, Help & Troubleshooting] Quote100:
yeah I thought it might've been that. will do though, thanks!
[OnePlus 2 Q&A, Help & Troubleshooting] Aahan:
I had a question about toolchains used to build custom kernels. I'm using RR unofficial, and tried the official Boeffla kernel (which is built using Google's GCC 4.9 toolchain). I also saw ZaneZam's unofficial builds that use the Linaro and UBER toolchains ranging from GCC 4 right up to GCC 7.

I read up on what I could find on Linaro and UBER. I learned that Linaro is targeted towards the ARM architecture, and has shown significant performance improvements over Google's GCC. Didn't find much about UBER, other than the information on ZaneZam's thread.

I guess my question is, are there any real world advantages of using a Linaro or UBER kernel? And do the kernels compiled on GCC 5 and up have any benefits over that compiled on GCC 4?
[OnePlus 2 Q&A, Help & Troubleshooting] Sam Nakamura:
GCC as Google's own toolchain is said to be the most stable one, projects like Linaro, Uber, SaberMod are custom toolchains and modified to bring performance boosts, how noticeable the improvements are depends on your usage scenario of course...

Here's a good read with some background, you can also find Uber on G+ xda and the founder writing about his motivation to create uber as custom toolchain :)
[OnePlus 2 Q&A, Help & Troubleshooting] Aahan:
Thanks for the info. I'm gonna try out zanezam's Uber 6.3.1 build of the latest stable boeffla kernel and see how it works out for me. Thanks again!
[OnePlus 2 Q&A, Help & Troubleshooting] M5devil:
Hey Sam, can you let me know where I can see AEX CAF version? The one I tried from their main thread was AOSP based and VoLTE as expected didn't work. I'll look into DU and Validus. Thanks
[OnePlus 2 Q&A, Help & Troubleshooting] Sam Nakamura:
I don't think there's one, I was the opinion AOSP and CAF are equally good for your purpose, I thought only LineageOS based stuff was the problem...

ValidusOS AOSP based too, if I remember correctly, you can check their OP it's well explained.

Anyways Dirty Unicorns is definitely CAF branch for our beloved device, good luck :)
[OnePlus 2 Q&A, Help & Troubleshooting] bramirez37:
Not a big fan of the Camera in the Resurrección Rom. I feel somehow the quality but also the options are limited. Is it possible that the quality of the photos decreases or increases according to the app? Is there a solution you recommend?
[OnePlus 2 Q&A, Help & Troubleshooting] Sam Nakamura:
First thing, it's always a good idea to write as precisely as possible, so people know what camera app you're talking about...

You can simply install a camera app from Playstore, there are good alternatives, to my experience the camera app can do little enhancements in quality but not significantly, using another app is more about the functionality and user interface, I for myself was pretty satisfied with the camera quality, especially since the last 2 or 3 months...

It's always a little annoying when the camera app changes but within a few days you get used to the "new one", in the meantime I found that every camera has certain advantages and changing the camera app isn't something I prefer, as the default camera app was always more stable, faster and better optimized than a 3rd party app...

You can just check different variations and make own experiences, good luck
[OnePlus 2 Q&A, Help & Troubleshooting] Aahan:
Some alternatives that I've tried are:

Open Camera (https://play.google.com/store/apps/details?id=net.sourceforge.opencamera&hl=en)

Bacon Camera (https://play.google.com/store/apps/details?id=com.fgnm.baconcamera&hl=en)

You can also flash the camera app from OxygenOS 3.5.8, which you can find here: https://xdaforums.com/oneplus-2/themes-apps/oos-3-0-beta-camera-cm-13-t3350060

---------- Post added at 05:15 AM ---------- Previous post was at 05:02 AM ----------

I tried out both Boeffla and Franco kernels for 2 days each, and they're both great kernels. I decided to go with Franco because his FKUpdater app is more noob-friendly. I want to play around with the settings on the Boeffla config app, as the Boeffla kernel looks more customizable (more CPU governors, profiles, etc.).

Could someone more experienced than I please give tips on kernel tweaking, specifically what I shouldn't be doing, so that I can play with the config app safely and not risk bricking my daily driver.
[OnePlus 2 Q&A, Help & Troubleshooting] Agoyal022:
How to root my one plus 2
[OnePlus 2 Q&A, Help & Troubleshooting] Sam Nakamura:
https://forums.oneplus.net/threads/...wrp-root-nandroid-efs-backup-and-more.345478/

Once bootloader is unlocked and twrp is flashed you can install any rom you want, backup and flash superSU or magisk for root..

Such basic questions can easily answered by a Google search, a thread like this is rather useful for detail questions or comprehension...

---------- Post added at 09:06 AM ---------- Previous post was at 08:36 AM ----------

You have basically 2 options, read around Lord Boeffla's well structured Homepage

http://www.boeffla.de/index.php/support/support

especially in support and troubleshooting section, google the options you don't understand and read and search Boeffla's Oneplus2 Kernel thread for all possible information...

OR

You use one of the well balanced and described profiles for Boeffla Kernel from the unofficial Boeffla kernel profile thread from here:

https://xdaforums.com/oneplus-2/general/unofficial-boeffla-kernel-profiles-t3289395

BUT

even a healthy amount of carefulness is recommended you can simply experiment with the config app, it should be almost impossible to brick your device cause even the phone won't boot you have several options left, either restore boot from twrp (your previously backed up stock kernel), or reflash (dirty flash) the rom you're using or delete the folder /sdcard/Boeffla-Kernel-Data from inside TWRP, advanced, file manager to return to the default kernel settings...
[OnePlus 2 Q&A, Help & Troubleshooting] Aahan:
Thanks for the info.

BTW, I liked the format of your signature, so I designed mine to look similar. Hope that's OK. :)
[OnePlus 2 Q&A, Help & Troubleshooting] Sam Nakamura:
Sure :) just go ahead...
[OnePlus 2 Q&A, Help & Troubleshooting] Aahan:
I'm intrigued to try out some AOSP-CAF based ROMs (DU in particular). I know that Boeffla and Franco kernels are Lineage-based, but would they compatible with a AOSP-CAF based ROM like DU?
[OnePlus 2 Q&A, Help & Troubleshooting] Sam Nakamura:
Yeah, basically compatible but boeffla's config app won't work and it breaks dt2w feature on franco's, so not really useful, even though it wouldn't harm.. If you want to play around with the kernel keep stock and use kernel adiutor, they did a quite good job on the kernel :)

Unfortunately DU dropped the oneplus2 today, no more updates can be expected... (cough, cough - not surprised)
[OnePlus 2 Q&A, Help & Troubleshooting] conqueror_25:
Hi guys. Please allow me to post my problem here with my device. Thank you!

* Hi everyone. Hope somebody can help me restore my phone again. I have successfully unlocked the bootloader of my phone but I cannot boot to Rom. Every time I power on the phone it will boot to CM stock recovery. Tried to flash TWRP recovery but unable to write image. Device is locked. Did some research and found out the reason behind this is I did not unable update to CM Recovery in Developer Options.

What is the best way to resolve this issue? I still have access to Fastboot and can do ADB commands but device is locked.

Will sideloading a stock CM OP2 Rom will fix the issue? I'm also concerned with the draining of the battery, if I cannot turn on because no more charge already.

I'm using Mac computer but I can borrow a windows laptop to fix this.

Any help will be highly appreciated..

Thank you very much in advance guys!

God bless!
[OnePlus 2 Q&A, Help & Troubleshooting] Sam Nakamura:
Hello and welcome,

what do you mean by locked exactly?

Actually one has to activate the CM recovery option in developer options, it's deactivated by default, anyways I'd use lineageOS from here

https://download.lineageos.org/oneplus2

As cyanogenmod is dead since end of last year and won't get any updates, so you'll miss lots of improvements...

Copy the LineageOS zip to your phone storage

Fastboot flash twrp recovery

Install lineageOS zip via Twrp

OR

if you have issues copying the file to your storage

just sideload the LineageOS zip

Whatever you prefer

Note that after flashing twrp you need to switch the phone off and immediately boot back to recovery with button combination (power +volume down) as otherwise twrp won't stick

AND make sure you go to wipe, advanced wipe to wipe everything except internal storage before flashing rom (and gapps)
[OnePlus 2 Q&A, Help & Troubleshooting] conqueror_25:
Hi. Thank you very much for your reply. Now It's clear to me why this thing happened. Because I bought the device second hand. Maybe the first owner played with it. Haha.

My main problem now is that I cannot flash TWRP though I can access both Fastboot & CM Recovery.

I tried sideloading zip Rom also but failed. On my Mac it says no device found.. I will try to do everything again using a Laptop computer.

I really appreciate your help man. You are good!

I'll update again. ?
[OnePlus 2 Q&A, Help & Troubleshooting] conqueror_25:
Here is my bootloader info.
[OnePlus 2 Q&A, Help & Troubleshooting] Sam Nakamura:
Have you unlocked the bootloader?

Like fastboot OEM unlock?

Cause it says "device unlocked: false" and this means you have a locked bootloader which would explain the odd behavior...

You definitely can flash the original OOS firmware from here

https://xdaforums.com/oneplus-2/general/rom-mirrors-official-oxygen-os-roms-ota-t3209863

even when the bootloader is locked, just take the full flashable zip (3.5.8) and sideload it, then boot up, go to fast boot and unlock the bootloader, fastboot twrp, sideload lineageOS...

Edit: use quote function, otherwise I don't get notified
[OnePlus 2 Q&A, Help & Troubleshooting] conqueror_25:
That's why I'm finding it weird also mate. I've done fastboot oem unlock several times already and it says successful but when I checked oem info it's false and keeps rebooting to CM recovery..

The 3.5.8 signed zip? Can it be flashed using CM Recovery because I also cannot flash TWRP at the moment.
[OnePlus 2 Q&A, Help & Troubleshooting] Sam Nakamura:
The full flashable signed zip can be flashed with locked bootloader and it will replace the cm recovery with OOS stock recovery, from there on you should be able to proceed as described...

I never had this issue with CM recovery yet as I never saw anyone using it
[OnePlus 2 Q&A, Help & Troubleshooting] conqueror_25:
Wow. It sounds really good. Getting excited to do all your advices here mate. Thanks a lot!

* And I'm sorry I cannot Hit Thanks anymore. Hit my max limit already. ?
[OnePlus 2 Q&A, Help & Troubleshooting] Sam Nakamura:
You want it to look like this, basically...

---------

Seems like some issues with the cm recovery, really weird but OOS should definitely overwrite it with stock, if not we still have a option to go for

Edit: don't worry :highfive: it's not about thanks...
[OnePlus 2 Q&A, Help & Troubleshooting] conqueror_25:
Thank you for helping me.

Right now I'm doing it. But I use the 15 seconds ADB installer but I finished installation and try to do commands

ADB devices empty list.

ADB sideload cannot read file.
[OnePlus 2 Q&A, Help & Troubleshooting] Sam Nakamura:
You have the right drivers and you booted to fastboot by power + volume up?

Without having ADB showing your device identity there's nothing you can do, so make sure "adb devices" returns your ID only then sideload works, it's usually a drivers issue, are you on a windows PC now?

You saw that also specific fastboot flash versions are available?

https://xdaforums.com/oneplus-2/gen...cial-oxygen-os-roms-ota-t3209863/post62973446

Just in case everything fails

https://forums.oneplus.net/threads/...ck-guide-for-a-hard-bricked-oneplus-2.347607/
[OnePlus 2 Q&A, Help & Troubleshooting] Spannaa:
This is probably the best and most up to date guide if nothing else works (and it doesn't involve the OnePlus forums).
[OnePlus 2 Q&A, Help & Troubleshooting] Sam Nakamura:
Thanks Bro, you're so right :) I hope you're doing fine on the Nexus 6p forums...
[OnePlus 2 Q&A, Help & Troubleshooting] Spannaa:
Doing fine thanks - no forum for my rom and general users seem far less needy!

Still keeping an eye in here though in case OP release an update that needs posting in the mirrors thread.
[OnePlus 2 Q&A, Help & Troubleshooting] Sam Nakamura:
Always a pleasure to have you around here :) let's hope for a final update, 3.5.9 is rumored on oneplus forums... We'll see :highfive:
[OnePlus 2 Q&A, Help & Troubleshooting] conqueror_25:
I am amazed with the skills and kindness as well of people here in OP2 thread. Unfortunately, I can't get my hands on a Windows computer. The owner using it too.

My problem with Mac is Adb devices empty

But Fastboot devices shows my serials. ?
[OnePlus 2 Q&A, Help & Troubleshooting] Sam Nakamura:
Well, let's see..

On a previous post I linked you to the fastboot flashable zips, maybe you're lucky and it's sufficient that fastboot is returning your serials, maybe you can bypass the ADB part but it's early in the morning and I can't check right now, what do you mean [MENTION=2948558]Spannaa[/MENTION] can it be done with fastboot alone?
[OnePlus 2 Q&A, Help & Troubleshooting] conqueror_25:
Yeah mate. But the problem is that adb sideload command won't allow me. So I don't have a way to transfer the flashable zip file to my phone storage and flash it.

Question : I'm concerned about my phone if the battery will become drained already and won't open to access Fastboot. Or is it still charging everytime I connect it to a power source? Thank you man.
[OnePlus 2 Q&A, Help & Troubleshooting] Sam Nakamura:
The thing is that I think that you wouldn't need to ADB sideload if you fastboot flash the file... Similar to "fastboot flash twrp.img", if you know what I mean, but I haven't had the need to perform this myself, that's why I tagged [MENTION=2948558]Spannaa[/MENTION] to maybe clarify, to my understanding you download the fastboot flashable zip of 3.5.8 extract it and execute the bat file so it's going to fastboot flash all needed partitions which should be image files after extraction of the zip, no ADB involved in this process..

IMHO :)

Again the link to files & description:

https://xdaforums.com/oneplus-2/gen...cial-oxygen-os-roms-ota-t3209863/post62973446
[OnePlus 2 Q&A, Help & Troubleshooting] conqueror_25:
Oh I'm getting what you are trying to say here. But I don't know that you can flash a zip file. I know only you can flash an .img file. I will give it a try mate. Thanks.
[OnePlus 2 Q&A, Help & Troubleshooting] Sam Nakamura:
That's why you need to extract the zip files, it contains image files..
[OnePlus 2 Q&A, Help & Troubleshooting] conqueror_25:
Oh I see.. But last time whenever I try to flash twrp img recovery it won't allow me. Always failed, device is locked it says..

Maybe one reason I see here is because my USB debugging is Disabled in Developer Options and I can't access it right now ?
[OnePlus 2 Q&A, Help & Troubleshooting] Spannaa:
If your bootloader is locked, you won't be able to use fastboot to flash any images.

If you can't unlock it or access your device via ADB when booted either normally or in recovery, your only option may be This.
[OnePlus 2 Q&A, Help & Troubleshooting] Sam Nakamura:
I thought the original stock Firmware can be flashed even when bootloader is locked...

Didn't know that this isn't valid for fastboot, interesting :) something new

Edit: I just really wonder how the CM recovery was flashed when the bootloader is locked, is it even possible to re-lock it while having a 3rd party recovery on it..
[OnePlus 2 Q&A, Help & Troubleshooting] conqueror_25:
Noted with thanks [MENTION=2948558]Spannaa[/MENTION].

If that is the case I need to have a working windows laptop. I'll keep you all updated.

Thank you!
[OnePlus 2 Q&A, Help & Troubleshooting] Spannaa:
I'm pretty sure you can't fastboot flash firmware images with a locked bootloader, even CM recovery.

It is possible to re-lock the bootloader after installing TWRP but it's never advisable to re-lock it because it's usually not possible to unlock it again and you'd have to stock reset using the Qualcomm Recovery Package.