yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] Kamy:
Yes please that would be great idea. I think users would like to see Author's name, About ROM, forum link in such section and I guess about author also on a dialog would be nice. The more the merrier anna[emoji16]
[Android Apps and Games] daxgirl:
Alright... we will think of an idea...

More suggestions are welcome. You can also give ideas as you saw some place else... maybe we can implement something similar...

Sent from my awesome g920f powered by 6thGear
[Android Apps and Games] bawffg85:
I am actually add an About. .And I was thinking how to express myself clearly,I am not good at English but trying to master it.

I don't know which kind preference can realize my function,maybe needed to create a new class.

I hope when we click it,my Google+ will be copied to clipboard,and user can paste it easily instead of inputting letters.
[Android Apps and Games] daxgirl:
But my question is.. when a user clicks your Google+n they will be taken to it. Because you use an intent. Then why copy?

Adding a method to copy your intent to clipboard is not a problem. Question is... what's the functionality?

Sent from my awesome g920f powered by 6thGear
[Android Apps and Games] bawffg85:
Well,QQ is the most famous IM client in China,and its account is a series of numbers,mine is 34772140.Users input these numbers in there QQ to follow me.

I want some preference that can copy my account 34772140 to clipboard.
[Android Apps and Games] daxgirl:
Alright! :)

Sent from my awesome g920f powered by 6thGear
[Android Apps and Games] aceqott:
Good, thank the work behind this project, fabulous.

Now my questions:

- How I can add to restart HandlePrefereceFragments SystemUI with #script?

- What is the use FilePreference? I do not understand their role very well ...

Thanks greetings.
[Android Apps and Games] aceqott:
I do not work as normal reset by adding specific key functions. Out the window to confirm but to accept does nothing.
[Android Apps and Games] daxgirl:
Hey, sorry busy day...

I don't quite understand what you mean / need....

Sent from my awesome g920f powered by 6thGear
[Android Apps and Games] aceqott:
Sorry for my English.

No effect to accept the normal restart when run a CheckBoxPreference.

As in HandlePreferenceFragments.java:

case "CheckBoxPreference":
CheckBoxPreference cbp = (CheckBoxPreference) pf.findPreference(key);
cbp.setChecked(sharedPreferences.getBoolean(key, true));
if (key.equals("statusbar_hide_alarm")) {
appRebootRequired("reboot");
}
break;
[Android Apps and Games] daxgirl:
You're not passing a valid string to method appRebootRequired. You need to pass a valid package name. F.e. "com.android.systemui" in parentheses

Sent from my awesome g920f powered by 6thGear
[Android Apps and Games] aceqott:
Sorry, I thought you could use "reboot" with appRebootRequired.

And about what I said before: Can I run a #script and restart SystemUI ask me?

Thank You.
[Android Apps and Games] daxgirl:
You can run any script using script# key for preference screen.

Sent from my awesome g920f powered by 6thGear
[Android Apps and Games] aceqott:
Yes, but I do not mean that.

What I have already working, but I need that when the script runs, do SystemUI restart.

I tried as well, but it was:

case "PreferenceScreen":
PreferenceScreen cbp = (PreferenceScreen) pf.findPreference(key);
cbp.setChecked(sharedPreferences.getBoolean(key, true));
if (key.equals("script#activar_volumen")) {
appRebootRequired("com.android.incallui");
}
break;
[Android Apps and Games] daxgirl:
You cannot use setChecked on preference screen. It's not a dual state preference.

You cannot use script# key as special condition.

Just include killing of systemui in your script.
[Android Apps and Games] aceqott:
You could putting a system activity in PreferenceScreen?:

<PreferenceScreen
android:icon="@drawable/ic_orden"
android:title="Panel de notificaciones"
android:summary="Ordena los toggles"
android:key="activity;com.android.settings;com.android.settings.NotificationPanelSettings" />
[Android Apps and Games] daxgirl:
It seems like your understanding of the project is very poor. I suggest reading the opens posts again and maybe getting some basics on android development. The questions you ask show inadequacy in required skills.

Sent from my awesome g920f powered by 6thGear
[Android Apps and Games] aceqott:
I prefer to keep the answer to your comment. You should take things differently.
[Android Apps and Games] daxgirl:
This is not a comment. This is an official response of an OP to a post on a thread.

Using source code project requires basic understanding. We have invested in the OP posts to explain in way more detail than needed the way you should use the app. We have also warned against editing the code without understanding. We have since provided detailed debugging and per demand support to all thread participants.

Your questions, all of them, show poor understanding. My advice is to gain more knowledge and read the op posts until you understand. It's only an advice, not a remark or a comment nor it is an order. The decision to use or not use the project is yours, not ours. We don't force anyone.

This code is given to you for free, nothing is asked in return. Therefore, and according to the GPL license, beyond that we do not owe you anything. Not even a response.

I conduct myself respectfully to all xda colleges, you will show the same respect by NOT continuing this discussion and NOT advising us on how to "take" things. All that was said to you is you need more study. It's just an advice.

Respectfully,

OP

Sent from my awesome g920f powered by 6thGear
[OnePlus 2 General] Heisenberg:
Reserved.
[OnePlus 2 General] Heisenberg:
Reserved #2
[OnePlus 2 General] Heisenberg:
Reserved #3
[OnePlus 2 General] regalstreak:
Lel We even dunno device specs and we've started! :D Love it! xD

Maybe add one more section : Backup EFS.. Might be helpful!
[OnePlus 2 General] Heisenberg:
Once we have a partition layout for the device I can add things like EFS backup, at the moment it's just the basics.
[OnePlus 2 General] swejo01:
awesome and all, but could you remove the fake pictures of the OPT, as they are very misleading
[OnePlus 2 General] Heisenberg:
They're temporary. Once we have official marketing material they'll be replaced.
[OnePlus 2 General] swejo01:
cool, everyone on the OP forum is freaking out lol
[OnePlus 2 General] jairamr:
[MENTION=4153349]Heisenberg[/MENTION]: wow !!! This is the best post I'v ever seen,which inlcudes every bits and pieces that we need to know in android ! I think this shud be shared to all other threads which are for the noobs! Well explained and neatly presented!

Thanks a tonn Heisenberg :)
[OnePlus 2 General] Heisenberg:
Thread closed until this device drops. Will re-open then.
[OnePlus 2 General] Heisenberg:
You'll have to wait until the international version is available.
[OnePlus 2 General] 3Plus:
this device has dropped, please re open thread.
[OnePlus 2 General] Heisenberg:
It is open...
[OnePlus 2 General] Sanjeev31aug:
Can you please list the custom Recovery for OP2. Thanks for the Thread.
[OnePlus 2 General] inffy:
There is none yet.

Also no root yet
[OnePlus 2 General] khr0n0s:
I have TWRP and root on mine. Both working flawlessly.
[OnePlus 2 General] inffy:
Yeah my bad. Just found and now rooted and Twrp installed
[OnePlus 2 General] mantff:
Where can I find the TWRP for One plus two? Thank you in advance
[OnePlus 2 General] Straynart:
Yes, please. I got mine this morning, but I can't root it since I don't which TWRP I gotta get.
[OnePlus 2 General] Grantp:
Hi dansou, tried both those things and nothing. I have contacted OnePlus support and they have arranged to access my PC & phone remotely on Sunday to see if they can sort it. Thanks for your help.
[OnePlus 2 General] dansou901:
Best of luck with the support then. Hopefully they get it sorted out.
[OnePlus 2 General] pattsy:
Help! Can't get TWRP to stick. Im unlocked and i followed the guide here. I'm on the Chinise version.

/Patts
[OnePlus 2 General] Heisenberg:
How are you rebooting after flashing the recovery?
[OnePlus 2 General] pattsy:
Fastboot reboot... and after startup. adb reboot recovery wich takes me to stock recovery..

/Patts

EDIT : .. ahaaa.. power and vol down took me to twrp .. :) sorry about that. it was stated in the topic..
[OnePlus 2 General] Heisenberg:
Yep. It's right there in the guide. For the love of my sanity, people, please actually read the guide, the info is all there!
[OnePlus 2 General] i#!:
TWRP 2.8.7.0 doesn't work with encryptet OP2 :(
[OnePlus 2 General] CptCalibration:
Just wanted to thank you for this guide. Worked perfectly.

All I've used has been iPhones so this is my first Android product and going through this process. Not sure if I'm going any further yet. Kernels and ROM is a little intimidating.

Anyways thanks again :good:
[OnePlus 2 General] DevDD:
I've been unable to get my device recognised through adb. I use "adb devices" or "fastboot devices" and it doesn't list my phone.

I've reinstalled all the drivers several times, even reset my phone once. USB debugging mode is enabled (even though it didn't ask me to authorise my computer).
[OnePlus 2 General] ahepas:
Are you on a Linux or Windows pc? If you are on a Windows machine, update ur ADB fastboot drivers...

Στάλθηκε από το A0001 μου χρησιμοποιώντας Tapatalk
[OnePlus 2 General] DevDD:
Windows. I'm using the ones in the OP.

Edit 2 : Solved for now.
[OnePlus 2 General] villy.skov:
Device unlocked: false (fastboot oem unlock is not working?)

I am very stucked with unlock, if i run this:

fastboot oem device-info

... INFO Device tampered: true

INFO Device unlocked: false

INFO Device is_verified: false

INFO Charger screen enabled: false

INFO Display panel:

INFO console_locked: 1

INFO exec_console_unconsole: 0

OKAY

If i use this command

fastboot oem unlock

it says

...OKAY

i just get the very first startup screen, and it just reboots over and over again, if i press the VolUp screeen it boots into Fastboot mode.

Please help...

Solved: Used the command:

fastboot continue 2 times, then it rebooted just fint.:D
[OnePlus 2 General] Spannaa:
Has the device has had it's bootloader unlocked and then locked again?
[OnePlus 2 General] villy.skov:
Yes.

Device tampered: was false, and we could not flash the phone. Then something went wrong?
[OnePlus 2 General] drajp:
After rooting my Oneplus two can i receive the ota updates from oneplus?
[OnePlus 2 General] Heisenberg:
Please search before posting, this has been answered multiple times already.
[OnePlus 2 General] drajp:
Sir i m sorry for that!
[OnePlus 2 General] Theberge43:
Hi,

So Fastboot works without an issue (I have my bootloader unlocked).

However, ADB devices does not see my phone.

It was and is still working properly on my old Nexus 5.

Of course I have activated "USB debugging" in the developers options.

Any suggestions ?
[OnePlus 2 General] Winflo:
when you plug in the op2 Linux mounts a second drive with ADB stuff and drivers in it , in Linux i hade to run the ADB_configure script from op to get ADB Working. So there sould be simmilar Functions for Windows.

Search in that folder.

Gesendet von meinem ONE A2003 mit Tapatalk
[OnePlus 2 General] Theberge43:
Well, it's there, but it's Linux Only.
[OnePlus 2 General] Winflo:
Install Linux :D

http://www.technobuzz.net/oneplus-two-usb-drivers/

https://m.reddit.com/r/oneplus/comments/3kz8hq/adb_not_recognizing_oneplus_two/

Already used Google and tried that stuff out ?

Gesendet von meinem ONE A2003 mit Tapatalk
[OnePlus 2 General] Theberge43:
Thanks for the help ... In device manager I have an error on ADB Interface indeed.

Tried installing all the drivers on your links, still no luck.

I'm on Windows 10.

---------- Post added at 07:34 PM ---------- Previous post was at 06:38 PM ----------

Ok, I was able to install it. Had to select the .inf file myself.
[OnePlus 2 General] BAPEstaSWE:
I'm getting install problems in the first step... this is what it looks like:

Preparing to install archives
Downloading Android SDK Platform-tools, revision 23.0.1
Installing Android SDK Platform-tools, revision 23.0.1
[COLOR="Red"]Stopping ADB server failed (code -1).[/COLOR]
Installed Android SDK Platform-tools, revision 23.0.1
Downloading Android Support Library, revision 23.0.1
Installing Android Support Library, revision 23.0.1
Installed Android Support Library, revision 23.0.1
Downloading Android SDK Tools, revision 24.4
[COLOR="red"]Download interrupted: Read timed out[/COLOR]
Stopping ADB server succeeded.
Starting ADB server succeeded.
Done. 2 packages installed.

[MENTION=4153349]Heisenberg[/MENTION]

This is also a bit confusing: "Once you've downloaded the zip you can extract it into your C:\SDK folder. Navigate to C:\Android\android-sdk-windows and open SDK Manager.exe.". Did you just accidentally start referring to C:\SDK as C:\Android or is there a step I missed?
[OnePlus 2 General] nsiti:
Hi,

Trying to unlock bootloader, I got to the point where I enable unlocking, turned off the phone, to boot into fastboot, but my phone won't turn on. My phone is off and won't boot at all. Any suggestions?

Thank you.

Edit: soft reboot finally worked. Strange...

Edit 2: finally rooted, fastboot was acting a bit strange in general for me.

Thank you OP for an excellent guide!
[OnePlus 2 General] MrJukeHardbane:
Hi Experts, I am new to this OPT device modding and today i wanted to unlock my bootloader and flash custom recovery and AK kernel. But my OPT isn't getting recognized in adb and fastboot mode. I've installed minimal adb and fastboot. My HTC Sensation is getting recognized in adb mode when firing adb devices command but OPT isn't. Any idea why is it happening? I've enabled USB debugging in developer options and tried it in both USB 2.0 and 3.0 ports. Any particular settings i need to do which I am unaware of? Any help would be appreciated.

EDIT: I've also installed both Oneplus drivers and adb drivers given in OP.

EDIT 2: Googled a bit about it and fixed the issue through this link.
[OnePlus 2 General] thekezud:
Hi can someone help me how to unlock and root using mac or without pc because I don't have a PC ?.

Thanks
[OnePlus 2 General] villy.skov:
Device unlocked: false

How to unlock this phone, this is the Chinese version LTE? The command fastboot oem unlock is locking the phone in reboot. It is not unlocked.

C:\Windows\System32>fastboot oem device-info

...

(bootloader) Device tampered: true

(bootloader) Device unlocked: false

(bootloader) Device is_verified: false

(bootloader) Charger screen enabled: false

(bootloader) Display panel:

(bootloader) console_locked: 1

(bootloader) exec_console_unconsole: 0

OKAY [ 0.073s]

finished. total time: 0.074s
[OnePlus 2 General] Heisenberg:
Install adb/fastboot on your Mac (there are guides online). Then learn the subtle differences between fastboot commands on a PC and a Mac. The rest is easy, just follow my guide and make the appropriate changes to the fastboot commands.
[OnePlus 2 General] Lazdaa:
It might be a stupid question but for how many of these steps do you loose OTA's?

Do you loose OTA by unlocking bootloader? etc. etc.
[OnePlus 2 General] v7:
You'll receive OTA even if the bootloader is unlocked.

If you're rooted,you cannot directly flash the OTA,you need to dirty flash the full ROM and flash the OTA on top of it.

Tapped from my ❶+❷ ;)
[OnePlus 2 General] drajp:
So it that means i have to download whole rom and then the updates?

And how could i download updates manually?

Op2?
[OnePlus 2 General] v7:
Download Oxygen 2.1.0 from the thread.Next time when an update is released,download the OTA zip.Dirty flash Oxygen 2.1 and the OTA on top of it.Done!

Tapped from my ❶+❷ ;)
[OnePlus 2 General] drajp:
But from where i can download the ota zip file?

Thanks in adv.

Edit 1: ok thanks i got it from link!

Peace✌
[OnePlus 2 General] v7:
Now the latest version is 2.1.0.You'll find the download link of the full ROM in the thread.

Next time when an update is released,OTA link will be updated in the same thread.

Tapped from my ❶+❷ ;)
[OnePlus 2 General] drajp:
I m not understanding the concept of dirty flashing will you please illustrate it to me?

And is that mean i hv to download the full rom each time the new update is released? ?

Thanks
[OnePlus 2 General] v7:
If you're rooted,you won't be able to directly apply the OTA zip as the updater script will detect the modified system.Therefore you'll have to dirty flash the previous version of the ROM and flash the OTA on top of it to complete the update.In case if you're unrooted,you can directly apply the OTA.

Do this if you are rooted

You can download the Oxygen 2.1.0 from the above link I mentioned.Next time an update is pushed,download the OTA zip.Dirty flash the full ROM from TWRP and then flash the OTA on top of it.

You can update to future versions in this way.Suppose Oxygen 2.3 is released after 2.2.You can dirty flash 2.1 and the 2.2 and 2.3 OTAs on top of it respectively.You don't need to download the full ROM everytime you need to update.I hope this is clear for you.

Tapped from my ❶+❷ ;)
[OnePlus 2 General] drajp:
Totally cool man!

Thanks for your help!

But i have one more doubt!

If i falsh the 2.1 rom from given link i will lost my root access, right?
[OnePlus 2 General] v7:
Yes you will.You can flash the SuperSU.zip on top of it to attain Root.

Tapped from my ❶+❷ ;)
[OnePlus 2 General] drajp:
You means that i dont need to go through hole process of rooting and just install the superuser apk and gain the root again!

Am i right?
[OnePlus 2 General] v7:
Download and flash UPDATE-SuperSU-2.46.zip from here to gain root access.No need to install any apk.Just flash the above file from TWRP.

Tapped from my ❶+❷ ;)
[OnePlus 2 General] drajp:
Ok cool!

Thanks bro for your great help!

Going to root my Oneplus 2 soon!

Peace! ✌
[OnePlus 2 General] Pinage:
Is there a way to root without a computer?
[OnePlus 2 General] Heisenberg:
No there isn't.
[OnePlus 2 General] Pinage:
Alright tks :crying: Guess have wait for my type c conversion adapter to arrive first
[OnePlus 2 General] Joao Oliveira:
Hey there, I've manually updated to 2.10 and did a factory reset. Now my bootloader is locked again out of nothing (yes it was unlocked before).

Is this normal?? Do we have to unlock the bootloader on every update???? this is nuts!!

Mine came with 2.02 the first thing i did was unlocking the BL and install TWRP. Then manually upgraded to 2.10 and now it's locked again and original Recovery is back LOL! Phone is rooted and all just locked .

I wish i didn't had to go through the unlocking all over again..and even less everytime Oneplus releases an update! -_-
[OnePlus 2 General] Winflo:
Why ? Use the cable that was shipped with your Oneplus two.

Gesendet von meinem ONE A2003 mit Tapatalk
[OnePlus 2 General] Pinage:
Unfortunately my notebook does not support type c connection. Currently only has up to usb 3.0 only
[OnePlus 2 General] Winflo:
Kidding me ? :/

u better read https://en.m.wikipedia.org/wiki/Universal_Serial_Bus

Typ c is only the shape of the connector used at your phone , laptop(non apple) use standart typ A ( the normal rectangle plug) so the oneplus cable works fine if you plug in the small one in your phone and the large end in your laptop.

USB standarts (3.1 , 3.0 etc ) are compatible to each other nowadays and the op2 uses USB 2.0 .

btw. This is has not much to do with the connector any USB standart can have any connector theoreticaly.

Just plug it in and try it out , its not that difficult 0.o

Gesendet von meinem ONE A2003 mit Tapatalk
[OnePlus 2 General] gm.cinalli:
Tampered bit

Hi, what does "tampered" (in fastboot oem device-info) exactly mean? I've unlocked my bootloader, flashed TWRP & rooted, and everything works fine. But I've the device unlocked flag set to TRUE and tampered to FALSE.
[OnePlus 2 General] spicediablo:
I think it is for oneplus reference to see if you have unlocked the bootloader manually. Correct me if I am wrong but I think there is a way to change this tampered flag though I have never tried on my current oneplus one....
[OnePlus 2 General] Alexsandra:
"You'll need a working adb/fastboot environment on your PC"

Is there a way to run this on OS X? I only have a macbook.....
[OnePlus 2 General] Heisenberg:
You can install adb and fastboot on a Mac, there are many guides available online.
[OnePlus 2 General] raghu18:
Root without unlocking bootloader

Hi, has anyone discovered any method to root OnePlus Two without Unlocking bootloader or flashing custom recovery ?. I just want root on stock rom, :confused:

2nd) Would unlocking bootloader or rooting opt . Stop the OTA Updates ?.
[OnePlus 2 General] spicediablo:
To answer your second question, unlocking and rooting will not stop the OTA, but after ota, you will loose root but maintained unlocked bootloader. You will have to root again after ota
[OnePlus 2 General] Heisenberg:
No, you must unlock the bootloader and install TWRP in order to root.

Unlocking the bootloader doesn't stop OTA, but root does.

This isn't right, root does stop OTA on this device.
[OnePlus 2 General] spicediablo:
I remembered I had no problem in the oneplus one on cm... But thanks for the correction[emoji1]

Baconized
[OnePlus 2 General] coala-lumpur:
So that means, if I unlock the bootloader, install TWRP and root my device using SuperSU.zip via TWRP I won't be able to get OTA for the original stock rom anymore?

What if I unroot my Oneplus two using the SuperSU option "complete un-root"? Will I then be able to receive and install OTAs again although bootloader is still unlocked and TWRP is installed?

Thanks in advance for your answers!
[OnePlus 2 General] v7:
If you're rooted,you won't be able to directly apply the OTA zip as the updater script will detect the modified system.Therefore you'll have to dirty flash the previous version of the ROM and flash the OTA on top of it to complete the update.In case if you're unrooted,you can directly apply the OTA.
[OnePlus 2 General] coala-lumpur:
Thank you for your answer!

Sorry for asking again, but just un-rooting my Oneplus two using SuperSU option "complete un-root" will make me get OTA notifications and make me being able to directly install thoses updates again? Although bootloader ist still unlocked and TWRP is installed? Doesn't the updater script recognize the unlocked bootloader and modified recovery image, too?
[OnePlus 2 General] v7:
I'm not sure about that.I haven't tried it but I have seen someone who got it working.But the safer method is to dirty flash the ROM+OTA.

Unlocking the bootloader has nothing to do with updates.Even if you're unlocked,you'll receive updates.Only root will deny the OTA.
[OnePlus 2 General] coala-lumpur:
Thank you! :o

Well, I guess I'll wait for the next OTA for my so far un-rooted stock ROM (Oxygen OS 2.1.0) for the "Stagefright 2.0" issue to be fixed.

Afterwards I will root my Oneplus two.

I know I could just do it the way you described above but I'm a bit concerned about the reliability of the download sources of the stock ROM + OTA zips.

Also I wonder why Oneplus doesn't seem to publish official links for downloading their ROMs.

As far as I know the developers of Oxygen OS are the same guys who made the "Paranoid Android ROM" before. So they should know what people like us want and expect since they are (or were) quite similar, right? ;)
[OnePlus 2 General] v7:
Follow this thread for the OTA/ROM mirror links.

You can trust [MENTION=2948558]Spannaa[/MENTION] ;)
[OnePlus 2 General] thesickness13:
I have a bug here and I do not know if I should send back for warranty. I am trying to unlock bootloader. I have updated to the latest SDK, drivers, fastboot, etc. But everytime I enter fastboot to unlock bootloader , it tells me " FAILED : OEM unlock is disable", even thou I have clearly enable USB debugging and OEM unlocking. This has been becoming every frustrating. Maybe someone here can help me.
[OnePlus 2 General] alankstiyo:
how can I root? superSU is only available on google play

thanks
[OnePlus 2 General] Heisenberg:
Did you actually read the guide? I link directly to the SuperSU thread.
[OnePlus 2 General] junkyhlm:
You´ll have to enable OEM unlocking in the developer options.
[OnePlus 2 General] Spannaa:
He's already done that ;)