yashsingh1/xdaforums huggingface dataset:
[ONE Android Development] Consistant:
It might be. I haven't tested it, but you can try.

1. Go into the basic adb/fastboot commands menu.

2. Choose "reboot the phone into any custom recovery without installing".

3. After that's booted (IF it boots, I think that requires a unlock) start sideloading inside the recovery.

4. Use the "special bootloader unlock" from the basic commands menu.

See if that works. I sincerely doubt it, but it doesn't hurt trying.
[ONE Android Development] yankees45us:
Thanks. For now I'm gonna hold off. I've got this phone just like I wanted. Main reason I wanted root was for stopping certain apps that don't have any need to know location or phone id. Cm has that feature built in which is awesome.

Thanks for the info though.
[ONE Android Development] Xephrey:
I get ./commander.sh: line 67: ./adb: Operation not permitted

./commander.sh: line 68: ./adb: Operation not permitted

when I try to reboot into fast boot. The computer is trusted with debug mode on inside android. Not sure what else is needed.
[ONE Android Development] Consistant:
That's extremely strange. Basically what it does at line 67 and 68 is adb wait-for-device (wait for the device to be authenticated and detected) and adb reboot bootloader to reboot into fastboot. Works fine on my Nexus 4 so it will work on the OnePlus as well. So it's most likely a problem with adb at your side. Try using the "[ADB] Devices" one and see if it detects your phone.

If reboot to fastboot the only problem that is occurring, try booting fastboot manually by doing this:

1. Turn the phone off completely

2. Hold VOLUME UP and POWER while the phone boots until the words 'fastboot' pops up with the CyanogenMod mascot "Cid".

Sort of tricky to get working if you've never done it before, but it will work.
[ONE Android Development] Xephrey:
It made it there, but I was still unable to do anything in that mode. ./bootloaderunlock.sh: line 62: ./fastboot: Operation not permitted

---------- Post added at 08:33 PM ---------- Previous post was at 08:32 PM ----------

All this stuff doesn't seem to work for me. Is there a way I can just flash an image from the Simple Recovery <3e> KVT49L that'll unlock / root?
[ONE Android Development] Consistant:
Fastboot gives that error off too? Strange.

How about this then:

1. Install the ADB and Fastboot to your Mac

2. In the terminal (not the toolkit) write adb reboot bootloader while inside Android and see if it gives off any errors. If it does try with "sudo" first like "sudo adb reboot bootloader".

If that works. Write "su" in the terminal. Put the "OneToolkit" in the Applications folder. And copy paste:

sh '/Applications/OneToolkit.app/Contents/Resources/Scripts/start.sh'

Tell me what happens then.

And no, you can't root or anything like that without adb or fastboot working. You need to unlock it and you need to either install or boot a custom recovery.
[ONE Android Development] Xephrey:
sudo: unable to execute /usr/bin/adb: Operation not permitted
[ONE Android Development] Consistant:
Looks like OS X is throwing this error, not adb. Looks to be a permission issue with your user.

Please post what turns up by copy pasting

ls -al /usr/bin | grep "fastboot\|adb"

into the terminal.

It'll say what permissions those files have. Thanks.
[ONE Android Development] Xephrey:
-rwxr-xr-x@ 1 xephrey staff 1270440 Jul 26 20:54 adb

-rwxr-xr-x@ 1 xephrey staff 208684 Jul 26 20:54 fastboot
[ONE Android Development] Consistant:
Looks like it has additional permissions I can't see.

Anyway, try:

sudo chmod 555 /usr/bin/adb && sudo chmod 555 /usr/bin/fastboot

Into the terminal. It should set it to read execute to all users. If that doesn't work try

sudo chown xephrey:wheel /usr/bin/adb && sudo chown xephrey:wheel /usr/bin/fastboot

I'm note entirely sure what causes it, but that's how my own permissions are sat up. See if it works out.
[ONE Android Development] Xephrey:
I really appreciate your help and quick replies. I actually found this walkthrough that has worked for me now - now I have unlocked boot loader with TWRP and root.
[ONE Android Development] Consistant:
That's great! But did you find the issue with adb and fastboot? I assume you needed that to make it work out?
[ONE Android Development] Xephrey:
Not really, since this thread's for a menu-selection system whereas this walkthrough was just a stream of adb commands. I just started over from where the video started and things just worked.
[ONE Android Development] samteeee:
Hi

I'm trying to flash back my phone to stock to no avail. This is the error that I get:

"dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib

Referenced from: /Applications/OneToolkit.app/Contents/Resources/Scripts/./wget/wget

Reason: image not found

./reflashCM.sh: line 35: 628 Trace/BPT trap: 5 ./wget/wget http://dist01.slc.cyngn.com/factory/bacon/cm-11.0-XNPH25R-bacon-signed-fastboot.zip -O ~/CMReflash/cm-11.0-XNPH25R-bacon-signed-fastboot.zip

unzip: cannot find or open /Users/HUSSTEE/CMReflash/cm*.zip, /Users/HUSSTEE/CMReflash/cm*.zip.zip or /Users/HUSSTEE/CMReflash/cm*.zip.ZIP.

No zipfiles found.

Complete!"

I had to abort the "Back to stock" operation twice.

Any input/help is much appreciated.

Thank you.
[ONE Android Development] HiDEFF:
Did you ever get to go back to stock or still having the same issue? I'm curious before I proceed to use this tool. Thank you in advance.
[ONE Android Development] samteeee:
Yes I did but through the "Do some basic ADB and Fastboot commands" then choose"Reflash to stock using a manually downloaded factory image"

With this method you'll get back to stock and all works smoothly.

Good luck.
[ONE Android Development] Consistant:
Sorry for the late answer.

Has anyone else tried reflashing (or just downloading the image) through the toolkit? I've tried making it download the image automatically through wget, but the error above smells like wget was built with the homebrew version of openssl in mind. In that case I need to fix the wget binary and make it work properly.

Use the "Reflash CM11" action from the "basic commands" menu instead. That way you can download the image manually.
[ONE Android Development] howipig:
Consistant,

Greetings. Thanks for you toolkit and tips.

One question: When checking the Bootloader lock / tampering status, there is one more item... Charger screen enabled. So what is it about and how to toggle it? Thank you once again.
[ONE Android Development] sharp2G:
I was planning to use this toolkit to revert back to stock, but it doesn't work? I want to get rid of root, uninstall TWRP and lock the bootoader again. All this can be done with one click "flash to stock" in your toolkit?
[ONE Android Development] Rajnus:
I cannot start application. Mavericks.

I unzipped the file, mount it. Copied app in applications and started it.

Am I doing something wrong?
[ONE Android Development] Consistant:
New version is out, might fix the wget issue some people were having when reflashing.

Ver. 1.2.3

- Made it clear that booting custom recoveries without unlocking the bootloader is impossible in OTA 30O or later.

- Made the DMG automatically open after mounting.

- Changed the wget binary to another one. The previous wget was likely built with my personal OpenSSL setup from Homebrew and was thus not compatible with everyone.

- Small fixes

I'm sorry, I have no idea. I bet the developers who made the tamper bit fix knows what that's for.

Yes, reflash to stock will delete absolutely everything on the phone and reflash it like it was brand new, so you'll lose root and TWRP. It'll still be unlocked though, so you'll need to re-lock it yourself though using the "lock the bootloader of my OnePlus One" part of the toolkit.

Double click it and the terminal (the icon looks like a blackboard with a white >_ written on it) should open up. If it doesn't, try putting the OneToolkit application (with the red T icon) into your Applications folder, open the terminal (located in the "utilities" folder in Launchpad or search for it) and copy paste this into it and press enter:

sh '/Applications/OneToolkit.app/Contents/Resources/Scripts/start.sh'
[ONE Android Development] penfold:
Thanks for this, couple of questions:

1- can the app be run from inside the dmg?

2- does it install any binaries on the mac?

3- is "andr.exploit.ratc" a false positive and safe to run ...is it only used to install root?
[ONE Android Development] Moostafa29:
This is a really awesome tool. I hate using terminal and all that, and this makes it so easy. Really appreciate this!
[ONE Android Development] RealGold:
It's really good! Now I can try it with my hackintosh!:good::good:
[ONE Android Development] silentior0815:
re-root

Hi Consistant,

first I wanna thank you for this toolkit. Amazing!

I tried hard to root my OPO with a windows pc but I wasn't able to root it.

With your toolkit installed on my mac i got it within 20 minutes. Thank you!

Now I got the OTA-update to android 4.4.4 and lost my root. I didn't update the cm-recovery.

Can I get back my root without loosing all my data? Is it possible to just root it one more time or will these wipe all my data?

Thanks for your answer.
[ONE Android Development] gallico916:
Amazing Tool !!!

Worked like a charm

Thank you very much Consistant
[ONE Android Development] YoungSkeezy:
Hello Everyone, searched the thread, new question!

So. updated to 4.4.4, want to use this tool!

I choose UNLOCK BOOTLOADER, it reboots to fastboot no problem, but then just stays at 'waiting for devices'

Also, tried manually via the sdk. ./fastboot oem unlock still chills at 'waiting for devices'

:( Ideas

*update* I checked Terminals "supporting encoding" under preferences, and enabled every kind. It works now. Dunno why the hell it wasnt lol

THANK YOU!!!!!
[ONE Android Development] mkamal23:
So I want to first say thanks so much for this wonderful tool to help me root.

Now for the real question... I have screwed myself a little by not making a backup and last night i tried to flash over the new update. I accidentally wiped system and I can not boot past the initial OPO boot screen. The one thing I can do is go on TWRP and this is where maybe I can still get my phone to work somehow.

I please need advice on how to get my phone working again. It has no OS. I only have a macbook and was wondering if I can restore my phone somehow by using TWRP and your toolkit.

thanks.

---------- Post added at 02:31 PM ---------- Previous post was at 02:00 PM ----------

Ok never mind... i just used the toolbox and used adb sideload... i just downloaded a rom from here and used that. Thank you.
[ONE Android Development] Consistant:
Sorry for late answers, everyone! I usually hang around in the OnePlus thread, but I'll make sure to keep checking here as well.

1. Yes.

2. No (unless you choose to install adb or fastboot from the main menu. But that's entirely optional and for advanced users only.)

3. Is that a joke? Does it say which file this might be?

The only files that can give a false positive like that must be either SuperSU (the root binary), ClockworkMod (which 99.9% isn't), PhilZ' Recovery (which it isn't) or TWRP (which it isn't). So I guess it goes berserk at SuperSU? I dunno. If you want to check the files, the scripts and all that you are free to do so. They're all open source (since they're only bash scripts after all) and are located in OneToolkit.app/Contents/Resources/Scripts.

Yes, you can get back root without loosing any data. Once it's unlocked, it's unlocked permanently and will persist through OTAs (unless you lock it yourself).

I'm glad you got it working, sorry for that late answer.
[ONE Android Development] alltechinside:
Worked great! Thanked!
[ONE Android Development] martinezma99:
Flawless and very user friendly tool kit.

It kept asking for a password on tool kit. I didn't know it was my Mac OS password.
[ONE Android Development] Izz14:
Option 4 I followed all of the steps , gets me into fastboot mode , flashing your OPO back to stock

bunch of error messages error: cannot open '/Users/Izzy/CMReflash/boot.img'

error: cannot open '/Users/I/CMReflash/userdata_64G.img'

error: cannot open '/Users//CMReflash/system.img'

error: cannot open '/Users/yCMReflash/recovery.img'

rebooting...

finished. total time: 0.005s

Congratulations the phone is rebooting and you should now be stock!

but I'm still rooted and 4.4.4 33R CM

I want to go back to out of the box state
[ONE Android Development] sacapo:
Thanks very much. I really appreciate as mac user!!!!!!
[ONE Android Development] rswllsmpsn:
Worked a treat! Thanks!
[ONE Android Development] ursa08:
Can all this be done if someone's phone already on 4.4.4 33R?
[ONE Android Development] alakiha:
I am interested to know this also
[ONE Android Development] poczynek:
This is brilliant! Bizarre thing is that it completely worked to unlock and root yet didn't wipe at all ... how is that possible?!
[ONE Android Development] Consistant:
Sorry for a late answer, but yes. Yes it does work on the newest version, but you need to unlock the phone to root it, while on the old CM11S version you didn't (due to a "flaw" in the bootloader).

The toolkit is updated:

Ver. 1.2.6

- Updated the TWRP image 2.8.0.1

- Updated SuperSU binary to 2.02.

- Removed unnecessary(?) reboot command at the end of the bootloader unlock menu.

- Updated the "reflash back to stock" image to XNPH33R.
[ONE Android Development] gwstmar:
I need to be clear before I do this. Am I able to use this to root my OnePlus One without flashing a recovery?
[ONE Android Development] cesgz:
Great tool!!!

Installed TWRP and Rooted my phone in a couple of minutes. So easy! :good::good:
[ONE Android Development] Pure+:
I cannot get this to work. I've tried everything. I got adb and fast boot installed on mac. I can run the basic commands. So I go to use unlock bootloader tool and it prompts me to enter my password but won't let me type. I hit enter 3 times to bypass the password thing and then It runs the program and says BL unlocked but phone never reboots and when I do so manually BL is still locked.

What am I doing wrong?

EDIT--

So it was letting me type my password terminal just didn't move the cursor as i typed making me think it wasn't. Phone just rebooted and it looks like I'm good to go.

---------- Post added at 05:48 PM ---------- Previous post was at 05:37 PM ----------

Once I figured out what the hell I was doing the tool worked flawless and was insanely easy to use. Couldn't be happier.

Unlocked. Recovery. Root. Done.
[ONE Android Development] terminal 7:
Rooted

Hi..

Very happy with this toolkit.

I have just unlocked bootloader then rooted . it boots into TWRP and sideloads the super user files.

It looks like its only booting TWRP and NOT flashing it so the stock recovery remains as new - stock recovery.

Thanks for a great toolkint with a clean looking UI . just as it should be.

==PEACE==
[ONE Android Development] alakiha:
Are we gonna get new update which includes new cm11s 38r?
[ONE Android Development] Zenirax:
Can you update the script because it does not work on Yosemite
[ONE Android Development] souvikroy1111:
thanks dude..i got my oneplus one today and was clueless how to unblock bootloader since all threads were of windows

thanks u!
[ONE Android Development] Consistant:
What error does it throw? Because the application works just fine here on Yosemite (10.10.1).
[ONE Android Development] Zenirax:
You are solemnly responsible for the use of this toolkit.
If your OnePlus One is damaged by this toolkit in any way
it is your responsibility and blame. If this is crystal clear,
write the word understood in lower case below to start.

-----------------------------------------------------
Did you understand? (Y/N):
Y

You did not read the disclaimer. Please read it.

Did you understand? (Y/N):

./bootloaderunlock.sh: line 24: [: =: unary operator expected
./bootloaderunlock.sh: line 76: [: =: unary operator expected

You did not read the disclaimer. Please read it.

To unlock it does not work and returns me the script errors
[ONE Android Development] N1TeSH1FT:
Well, your main problem is, that you didn't read the whole disclaimer ;) If you would have done so, you wouldn't try to type "Y" ;)
[ONE Android Development] umirza85:
Ive never been a mac fan until work forced me to use one. But this.....this is amazing. So much less hassle then when I had to figure out how to root/unlock the phone in windows - messing around with windows drivers etc etc. This just worked to get my phone back to stock as I have a bunch of apps that dont like root. A lot less hassle to remove root than deal with trying to circumvent.
[ONE Android Development] ril2:
This saved my life.

Easy to use, awesome!
[ONE Android Development] abisdemon:
Update needed

Great job with it but you should update the recovery image to XNPH44S as this is the newest one. But in rest really a great job.
[ONE Android Development] jackmacbunton:
Can we have an update to 44s please? :)
[ONE Android Development] gopo2004:
with my one, is not working... i try to unlock the bootloader, is restarting , says its ok, but nothing happens...:(
[ONE Android Development] :
This toolkit worked instantly on Mac os 10.10 and is just perfect. Thank you for this excellent tool. You saved me a million headaches.
[ONE Android Development] rodrigobanet:
Hi!! I'm trying to flash the TWRP and I can't. I get a screen in which it says "target reported max download size of 536870912 bytes

sending 'recovery' (12314 KB)..."

What should I do??
[ONE Android Development] shaunbeyoung:
This may be a bit silly, but the only issue I am having is rooting - anytime I click enter and it asks me Do you have a custom recovery? And I type "yes" or "y", none of them are valid inputs. Any suggestions?
[ONE Android Development] :
Capital letters
[ONE Android Development] shaunbeyoung:
Thank you.
[ONE Android Development] story:
I couldn't get Recovery to be flashed.

It said finished but still stock recovery. The toolkit helped me unlock boot loader though.
[ONE Android Development] yus786:
Anyone know if this works on the newest lollipop build?

Thanks
[ONE Android Development] gee.dunkin:
I have been trying with Latest 5.0.2 OTA update but i had no luck. I've since rooted with Bacon Root Toolkit on my windows partition as bacon doesn't work with Mac OSX.

I was disappointed this toolkit didn't work as it was so easy to use but if you have access to a windows computer Bacon is really easy also and sorts out all the drivers required, unlocking bootloader , install custom recovery and then root with SuperSU and more.
[ONE Android Development] :
No reason you can't just use this to flash TWRP and then flash cm12s zip from recovery.
[ONE Android Development] savkhetan:
I was on CM12 latest OTA update and Mac OSX 10.10.3.

The toolkit worked perfectly to unlock bootloader.

But after that, it didn't work to install TWRP or other recovery.

So for that I ended up using these steps (via fastboot) - http://highonandroid.com/android-smartphones/how-to-root-oneplus-one/

The fastboot is just one file to download, no install or drivers needed, and the commands work directly as listed.

Super easy and allowed me to install the latest TWRP.

The toolkit was perfect to unlock the bootloader and really got me down the right path. Thanks again, really appreciate these tools.

Now I'm running -

OxygenOS Modem + Firmware - 0241

TWRP - 2.8.6.0

CM12.1 - v11.3 - Tamesek ROM

SuperSU - 2.4.6

Much better and much more stable reception for LTE and phone.
[ONE Android Development] Gold Ribbed:
Do you need to have the phone connected for this toolkit to work. I unzipped the file and launched the dmg and all I get is The Oneplus one logo. thanks.
[ONE Android Development] savkhetan:
I was able to drag the OnePlus app from the dmg on to the desktop then it ran fine. It runs without the phone as it is a script.
[ONE Android Development] Gold Ribbed:
When I open the DMG allI get is this.

I am using Yosemite. How did you drag an app from the DMG?
[ONE Android Development] savkhetan:
Hey, I'm using Yosemite too.

I am able to click and drag OneToolkit.app file from dmg to the desktop.

Once the .app file is on the desktop, if I double click I get the toolkit.

Screenshots attached.

Hope this helps.
[ONE Android Development] Gold Ribbed:
Well I am getting closer. Dragged the app to desk top but when I try to open the app I get the message ap cannot not be opened. I have tried security setting and download a fresh cop but still no joy.

Phew sorted. downloaded app from mediafier and all worked. can only assume the Mega file is corrupt. Now to try the app..
[ONE Android Development] savkhetan:
Best of luck.

For me the app worked great to unlock bootloader, but was not able to do anything else with this app. The rest I did using the other link I posted.
[ONE Android Development] sevengroove:
Just used this to revert my Oneplus back to stock. Excellent tool, op! It took me a while to realize that I do not need to download anything else, but was pleasantly surprised by how smooth it was. To folks looking to use it, remember that Y/N is case-sensitive ;)
[ONE Android Development] sgroimax:
this tool seems not to be longer updated. It sould because of the best one when opo was on 4.4 android rekease
[ONE Android Development] jeenie17:
Unable to root OPO :(

Iam running cyanogen mod 6.0.1 version. I've MAC OS. I want to root my phone.

But the tool is hung in the first unloader section:

Make sure your phone is inside Android, is connected to your Mac and has

USB Debugging enabled.

After continuing you need to authorize your computer by looking at your phone

and tell it to 'Always allow' your computer.

Press any key to continue...k

* daemon not running. starting it now on port 5037 *

* daemon started successfully *

No response after that, can u pls help ?
[ONE Android Development] :
Dude, do u have adb debugging enabled?
[ONE Android Development] jeenie17:
Yes, enabled and disabled, tried both ways, no luck !!!!!:(
[ONE Android Development] :
Are you using the factory cable?
[ONE Android Development] jeenie17:
Need help

I'm trying to root my OPO (13.1) - 6.0.1 version.

However, on using unlock bootloader, it gets stuck in fastboot mode (no response) and then says :

Booting TWRP...

-----------------------------------------------------

downloading 'boot.img'...

OKAY [ 0.388s]

booting...

FAILED (remote:	Device not unlocked cannot boot)

finished. total time: 0.390s

-----------------------------------------------------

The fastboot logo should now light up.

Please wait at least 30 seconds to one minute for the boot to finish...

-----------------------------------------------------

Press any key if TWRP has booted on your OnePlus One...

Even if i directly go to root, it prompts for a password, which password is this ??? I tried my ph password, but it doesnot take. finally on 3rd failed attempt, it says press any key to continue and is stuck there.

Please help
[ONE Android Development] konman21:
will this root instruction work for the one plus 3? can't find a thread for a MAC ver besides a PC
[ONE Android Development] salmonthefish:
Try going back to kitkat them unlocking and doing all that jazz
[ONE Android Development] impulsar:
Just came here to say thanks, everything works flawlessly ?
[AT&T LG Optimus G] Mihiralve:
Note: This is my first time trying to port or build a ROM for my phone, so I apologize if this is a stupid question.

I want to try to port the preview from the Nexus 4 (http://xdaforums.com/nexus-4/development/lpv-79-mako-port-beta-t2807446) and I am trying to achieve this by using defcondev's tutorial (http://xdaforums.com/showthread.php?t=2442593).

The third step of the process is to swap out the N4 boot.img with an OG boot.img. Would I be able to use a KitKat boot.img or would it have to be specifically designed for the L preview? If it has to be specifically built for L how would I be able to obtain it?

I'm just an everyday Joe with absolutely no programming knowledge trying to port L to my phone.

BTW I haven't seen anything about L for this phone, is no one else as excited for L as I am?

Thanks in advance!