yashsingh1/xdaforums huggingface dataset:
[OnePlus 6 Guides, News, & Discussion] StiggyPlue:
Yea did that and got everything in order. Thanks yo!

All of the threads available will have people failing and having success. I am one of the odd ones to softbrick my phone within the first few hours of unboxing it by following the official steps on the site :p But those around here are handy and did helped. Still, too many threads to go back and forth doing lots of reading and seeing which works with Magisk, Xposed, perma root etc etc. Nevertheless I got what I wanted and I am grateful for these threads as they are VERY informative. Just a lil bit confusing to some, that is all.
[OnePlus 6 Guides, News, & Discussion] brown1178:
Have a look at the guide in my signature
[OnePlus 6 Guides, News, & Discussion] electricl:
I just got my oneplus 6 today, very fast and beautifully built. I have used Samsung for the last 6 years and this is the first Oneplus phone.

I unlocked the boatloader and installed twrp. I also rooted the phone and everything was fine until I got into the OS. The wifi was broken. I then learned I had used an older method of installing twrp, so I went back and redid it with the official twrp. Long story short, my phone is stuck on fastboot. I can choose start, recovery and power of. the first options just take me back the fasboot menu. I don't know what to do and it's very frustrating, it's my fault and I can't figure this out. I searched online but nothing worked. How can I get my phone back? Please help. If this is the wrong forum i apologize.
[OnePlus 6 Guides, News, & Discussion] laupuy:
You can try unbrick tool https://xdaforums.com/oneplus-6/how-to/tool-msmdownloadtool-v4-0-international-t3798892

But before try fastboot rom https://xdaforums.com/oneplus-6/how-to/rom-stock-fastboot-roms-oneplus-6-t3796665

And last, how to flash twrp https://xdaforums.com/oneplus-6/how-to/guide-how-to-install-official-twrp-t3801558

Good luck ;)
[OnePlus 6 Guides, News, & Discussion] electricl:
A million thanks brother, you saved my ass! :good:
[OnePlus 6 Guides, News, & Discussion] zappomax:
Hi,

I'm tring to flash this twrp https://twrp.me/oneplus/oneplus6.html after unlocked the bootloader on my new OP6 but this is what I get from ADB:

D:\Trash\ADB>fastboot flash recovery twrp.img

target reported max download size of 536870912 bytes

sending 'recovery' (26748 KB)...

OKAY [ 0.562s]

writing 'recovery'...

FAILED (remote: (recovery_a) No such partition)

finished. total time: 0.578s

Any hints??

Thx in advance!

Edit: First time I got in fastboot mode (to unlock bootloader), when I sent command "ADB devices" I saw the usual serial. Now after unlocked the bootloader, once I go in fastbode mode, there's no more devices listed.

What went wrong??
[OnePlus 6 Guides, News, & Discussion] ChemoNL:
Read op. You need to boot TWRP and from there use the installer
[OnePlus 6 Guides, News, & Discussion] den_zel:
Check this guide:

https://www.getdroidtips.com/root-twrp-recovery-on-oneplus-6/

You should boot into recovery and install from there:
[OnePlus 6 Guides, News, & Discussion] zappomax:
How can I boot in TWRP if I can't flash it???

I can't flash anything in fastboot mode because my device is not listed
[OnePlus 6 Guides, News, & Discussion] cultofluna:
Just follow this..

https://xdaforums.com/oneplus-6/how-to/guide-how-to-install-official-twrp-t3801558/post76759066
[OnePlus 6 Guides, News, & Discussion] zappomax:
Sorry to all...

I just needed to read the instructions carefully on TWRP site...

So stupid and hasty ;)

P.s.: Anyway this guide https://xdaforums.com/showpost.php?p=76564290&postcount=5 is wrong or outdated...
[OnePlus 6 Guides, News, & Discussion] Suarezian:
From where can I download the stock recovery? Even WiFi isnt working for me now.
[OnePlus 6 Guides, News, & Discussion] ChemoNL:
Flash stock full OTA, then retry the steps.

I had the same issue and this fixed it.
[OnePlus 6 Guides, News, & Discussion] Suarezian:
I tried flashing TWRP, now my phone won't boot. Its only entering recovery mode. How can I flash the stock ROM now?
[OnePlus 6 Guides, News, & Discussion] ChemoNL:
Downloas full stock ota and move it to the root of sdcard. The flash that from recovery. If that is not working try booting to bootloader. Then boot TWRP with fastboot boot TWRP.img and from that booted TWRP flash full stock OTA
[OnePlus 6 Guides, News, & Discussion] Suarezian:
Yeah, but how do I transfer the ROM to the phone? Since MTP isnt working on TWRP.
[OnePlus 6 Guides, News, & Discussion] ChemoNL:
Once in TWRP use ADB sideload
[OnePlus 6 Guides, News, & Discussion] Suarezian:
Something like this?

https://www.droid views.com/push-pull-files-android-using-adb-commands/
[OnePlus 6 Guides, News, & Discussion] ChemoNL:
Can't open that link but in twrp go to advanced and choose ADB sideload. Then swipe to activate.

Connect your phone to your PC and open a cmd window in same folder as the full stock ota file.

The type ADB sideload full_stock_ota.zip

Wait untill done and then reboot. OOS should boot now and then you can restart the TWRP install process
[OnePlus 6 Guides, News, & Discussion] Suarezian:
Oh! That sounds easy, I'll try it!
[OnePlus 6 Guides, News, & Discussion] Suarezian:
Okay, so I tried to sideload it via ADB, but it gives me an error message on TWRP saying "Invalid ZIP file format". I have downloaded the ROM twice, the MD5 is also fine. Can't really find out the issue here :/

EDIT: NVM, downloaded the ZIP from the official Oneplus site, and it's fine now
[OnePlus 6 Guides, News, & Discussion] ChemoNL:
Glad it flashed,

did you also manage to flash TWRP and root with Magisk ?
[OnePlus 6 Guides, News, & Discussion] Suarezian:
Yes I did! Everything is fine now.
[OnePlus 6 Guides, News, & Discussion] CRXed:
[MENTION=6143932]Funk Wizard[/MENTION] please fix your TWRP tutorial, it's wrong.

Correct tutorial is on the official TWRP site
[OnePlus 6 Guides, News, & Discussion] emersonas:
Hi, Ive treid
[OnePlus 6 Guides, News, & Discussion] fantomrik:
Thanks for the guide! I have a problem, when saving the data section I get an error. Does everyone normally save Data? I've tried several times, the situation is always the same... Help solve the problem please!
[OnePlus 6 Guides, News, & Discussion] cultofluna:
https://xdaforums.com/oneplus-6/how-to/255-error-twrp-backup-restore-999-t3801632/post76760812
[OnePlus 6 Guides, News, & Discussion] fantomrik:
Thank you, it helped me! I manually deleted the Guest profile on the device and data backup passed!
[OnePlus 6 Guides, News, & Discussion] Quu:
Hey,

I have working adb (and fastboot that worked with with oneplus 2), for some reason adb detects my OP6 but fastboot says nothing.

I have tried nothing and im already out of ideas.

Tested with 2 diffrent windows 10 machines and using diffrent cables.

Oneplus 6 with 5.1.8 stock rom (mostly because cant get fastboot to work.)

edit: apparently i had wrong fastboot driver installed, because op usb-driver installer crashed, idk. it should work now.
[OnePlus 6 Guides, News, & Discussion] santpir:
yes, I'm a jerk!!!

I forgot to disable OEM in the developer settings and now I have the phone looped

I can not unlock OEM from fastboot because fastboot oem unlock

...

FAILED (remote: Flashing Unlock is not allowed)

finished. total time: 0.000s

what can I do?
[OnePlus 6 Guides, News, & Discussion] ChemoNL:
Wipe from recovery, data will be losed
[OnePlus 6 Guides, News, & Discussion] santpir:
I made a mistake in the procedure for installing the DP2 update (local update).

Yes, I tried several times to perform the wipe from recovery, but it remains stuck on the boot animation
[OnePlus 6 Guides, News, & Discussion] ChemoNL:
Download full stock OTA. Wipe data in recovery and then flash the stock ota.
[OnePlus 6 Guides, News, & Discussion] santpir:
Remember that my bootloader is locked.

In recovery mode I do not have "install" or "update"

so I tried using fastboot "flash-all.bat" from pc from this file OnePlus6Oxygen_22_OTA_012_all_1806140300_e4bacf-FASTBOOT.zip

but by mistake
[OnePlus 6 Guides, News, & Discussion] brown1178:
Contact Oneplus Support
[OnePlus 6 Guides, News, & Discussion] ChemoNL:
You have one last option. If you still are at oxygenos 5.1.6 or lower you can boot an image via bootloader because it isn't secure yet. Fastboot boot TWRP.img and from there install OTA zip

If higher you should contact OnePlus support.
[OnePlus 6 Guides, News, & Discussion] eroigaps:
Can someone clarify exactly how to make a proper twrp backup?

Exactly which partitions do I need? Any A/B slot weirdness when restoring?
[OnePlus 6 Guides, News, & Discussion] Flying Fox:
Boot

Data

System

Image

(system only will require to flash system afterwards, otherwise it would not work)

Vendor Image (not sure, if image necessary, just to be on the safe side)

That´s it. Be sure, that you never used Parallel Apps, otherwise, data backup wouldn't´t work.

No weirdness about A/B slots ;)
[OnePlus 6 Guides, News, & Discussion] swords90:
Thanks it´s amazing!!
[OnePlus 6 Guides, News, & Discussion] brown1178:
Just for clarification, if I would just backup system I would have to flash stock system.img or full ROM before I could restore the system backup?

So backup system would just backup the changes and settings made by the user and system.img ofcourse creates a full image with the system itself and all settings?
[OnePlus 6 Guides, News, & Discussion] santpir:
Remember that my bootloader is LOCKED.

and in recovery mode I do NOT HAVE "install" or "update" mode

so I tried using fastboot "flash-all.bat" from this file OnePlus6Oxygen_22_OTA_012_all_1806140300_e4bacf-FASTBOOT.zip

C:\Oneplus6\OnePlus6Oxygen_22>flash-all.bat

Current Directory = C:\Oneplus6\OnePlus6Oxygen_22\

target reported max download size of 536870912 bytes

Invalid sparse file format at header magic

Invalid sparse file format at header magic

wiping userdata...

mke2fs 1.43.3 (04-Sep-2016)

Creating filesystem with 28835840 4k blocks and 7223040 inodes

Filesystem UUID: 267fjk1aok-76ec-11e8-a6f1-f1e6afdkòkfca86

Superblock backups stored on blocks:

32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,

4096000, 7962624, 11239424, 20480000, 23887872

Allocating group tables: done

Writing inode tables: done

Creating journal (131072 blocks): done

Writing superblocks and filesystem accounting information: done

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

Bootloader Version...:

Baseband Version.....:

Serial Number........: 99f73d17

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

sending 'boot_b' (65536 KB)...

OKAY [ 1.500s]

writing 'boot_b'...

FAILED (remote: Flashing is not allowed in Lock State)

finished. total time: 1.531s
[OnePlus 6 Guides, News, & Discussion] ChemoNL:
Dude read what I am writing
[OnePlus 6 Guides, News, & Discussion] santpir:
I just ask you a little patience and I apologize to you if I did not understand the procedure.

I do not know what I'm doing wrong. Maybe I miss some steps.

I had read a

I enclose the fasboot and recovery screens

C:\Oneplus6\OP6 TWRP>Fastboot boot twrp.img

downloading 'boot.img'...

OKAY [ 0.562s]

booting...

FAILED (remote: boot is not allowed in Lock State)

finished. total time: 0.562s

[IMG="Recovery mode"]http://galleriaprestigetest.wecommerce.cloud/OP6-immagini/OP6-recovery.jpg[/IMG]

[IMG="Reboot Fastboot"]http://galleriaprestigetest.wecommerce.cloud/OP6-immagini/OP6-recovery-reboot-fastboot.jpg[/IMG]

[IMG="Fastboot and Recovery"]http://galleriaprestigetest.wecommerce.cloud/OP6-immagini/OP6-recovery-fastboot.jpg[/IMG]

[IMG="wipe data Recovery mode"]http://galleriaprestigetest.wecommerce.cloud/OP6-immagini/OP6-recovery-wipedata.jpg[/IMG]

[IMG="Reset System"]http://galleriaprestigetest.wecommerce.cloud/OP6-immagini/OP6-recovery-reset-system.jpg[/IMG]
[OnePlus 6 Guides, News, & Discussion] Flying Fox:
Boot twrp.img via bootloader, not via recovery.

Edit: sorry read just now, you´ve already tried.
[OnePlus 6 Guides, News, & Discussion] CRXed:
Maybe try this?

https://xdaforums.com/oneplus-6/how-to/guide-mega-unbrick-guide-hard-bricked-t3796051
[OnePlus 6 Guides, News, & Discussion] Barsky:
I am on 5.1.8. No problem at all using fastbbot boot twrp-3.2.1-0-enchilada.img
[OnePlus 6 Guides, News, & Discussion] ChemoNL:
That means you are already unlocked?!
[OnePlus 6 Guides, News, & Discussion] santpir:
thx solved!!!
[OnePlus 6 Guides, News, & Discussion] asphaeris:
my efs is gone...how could i get it back guys im scared af....i didnt backup it

Edit : its just my wifi. my phone data works i dont understand...

Edit 2 : ok solved it by flashing the stock rom
[OnePlus 6 Guides, News, & Discussion] Axection:
weird Magisk

I have unlocked bootloader, installed TWRP and install Magisk (plus Magisk Manager, Beta Channel). It says Magisk was installed (v16.4) but I still cant su.

I also can't install any modules on Magisk.

What did I do wrong?
[OnePlus 6 Guides, News, & Discussion] cultofluna:
boot on twrp and reflash magisk
[OnePlus 6 Guides, News, & Discussion] Axection:
done that, still can't acquire su.

and it seems after reboot, the magisk is not installed.

ew. weird.
[OnePlus 6 Guides, News, & Discussion] ChemoNL:
Are you booting the correct partition? The one you flashed magisk on?
[OnePlus 6 Guides, News, & Discussion] AshraafAzhar:
Hello,

does anyone here can access their OP6 via MTP on linux?, when i connect my phone, only "20160907_110626" partition is there, no MTP.

inside there is OnePlus_USB_Drivers_Setup.exe, adb_config_Linux_OSX.sh, AndroidFileTransfer(OSX).dmg, OnePlus_setup.exe.

I can access Galaxy S5 running official lineageos 14.1 via MTP, but not my OP6.

Currently im using KDE Plasma and use KIO for mtp on my Arch Linux, all system package updated to latest, running stock OOS 5.1.8, not rooted, no unlocked bl, no twrp yet.

Adb and fastboot working fine on my OP6, but not for MTP.

Running mtp-detect command show me that my device detected as MTP, but its not there on my file manager(Dolphin).

"Device info" show me that my phone model is correct "ONEPLUS A6003" which is OP6.

Here is the result of mtp-detect

libmtp version: 1.1.15

Listing raw device(s)
Device 0 (VID=2a70 and PID=9011) is a OnePlus ONE A2001.
Found 1 device(s):
OnePlus: ONE A2001 (2a70:9011) @ bus 1, dev 5
Attempting to connect device(s)
Android device detected, assigning default bug flags
USB low-level info:
bcdUSB: 512
bDeviceClass: 0
bDeviceSubClass: 0
bDeviceProtocol: 0
idVendor: 2a70
idProduct: 9011
IN endpoint maxpacket: 512 bytes
OUT endpoint maxpacket: 512 bytes
Raw device info:
Bus location: 1
Device number: 5
Device entry info:
Vendor: OnePlus
Vendor id: 0x2a70
Product: ONE A2001
Vendor id: 0x9011
Device flags: 0x18008106
Configuration 0, interface 0, altsetting 0:
Interface description contains the string "MTP"
Device recognized as MTP, no further probing.
Device info:
Manufacturer: OnePlus
Model: ONEPLUS A6003
Device version: 1.0
Serial number: 9e40e890
Vendor extension ID: 0x00000006
Vendor extension description: microsoft.com: 1.0; android.com: 1.0;
Detected object size: 64 bits
Extensions:
microsoft.com: 1.0
android.com: 1.0

Can anyone help?, tell me your setup, whether you use KIO(kde dolphin), or GVFS(gnome file), etc....

Thanks!!:fingers-crossed:
[OnePlus 6 Guides, News, & Discussion] eroigaps:
Never got dolphin to work with mtp. I found my solution in using "Android file transfer" application. Should be in the AUR.

Ridiculous that such a basic commodity isn't fixed yet. Still love kde though.
[OnePlus 6 Guides, News, & Discussion] Zythyr:
[MENTION=6143932]Funk Wizard[/MENTION]I have couple questions and suggestions to your guide.

1) Flashing TWRP Recovery guide in post #5 need to be updated. It was a bit confusing. I downloaded TWRP from https://twrp.me/oneplus/oneplus6.html and followed their instructions.

2) Gaining Root Access guide in post #6 need to have link to Magisk. I downloaded Magisk from here https://xdaforums.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445

3) Question: Can we get a bit clarification on installing OTA updates on stock ROM if we have TWRP/Magisk installed?
[OnePlus 6 Guides, News, & Discussion] AshraafAzhar:
This is what Arch Linux said about mtp "Note: MTP is messy and its implementation varies between devices.",

My Galaxy S5 mtp work flawlessly though with kio, only OP6 not working, and just now i tried your suggestion "android file transfer" from official repo(newer version than in aur) and its working,

but its download ui and navigation is not to my liking. Arch also said "note that fuse could be 7-8 times slower than ui/cli file transfer" (android file transfer is fuse based).

Btway, if you also fellow kde user like me :highfive:, did you try "kdeconnect"?, it integrate nicely with kde dolphin, download both its app to your arch(official repo) and to op6 from playstore,

no need to use cable for file transfer as it is network based transfer, can connect lan to wireless(op6) and sync notification with ur arch and op6 vice versa. :laugh:

The only downside is your pc and op6 need to be on the same network.
[OnePlus 6 Guides, News, & Discussion] LazerH:
I ve got a small issue while following this guide.i used the official TWRP and magisk 16.4 to root.

When I tried to flash TWRP via bootloader, it says failed: Partition_a ....

But I can still boot into TWRP with "bootloader boot TWRP.img"

Problem is that whenever I boot in recovery from my phone, it's showing the stock recovery
[OnePlus 6 Guides, News, & Discussion] laupuy:
Follow this instructions https://xdaforums.com/oneplus-6/how-to/guide-how-to-install-official-twrp-t3801558

You need to boot twrp.img, then flash twrp.installer.zip from twrp.
[OnePlus 6 Guides, News, & Discussion] tatsit:
I have just unlocked by bootloader, installed full OOS 5.1.8.zip, but keep getting in a boot loop to twrp. I have tried switch between a or b, still the same.

These are the steps which I did:

1) flash full OOS 5.1.8.zip

2) flash twrp.zip

and it keeps rebooting to twrp
[OnePlus 6 Guides, News, & Discussion] laupuy:
Did you have magisk?

if yes -> "If you had magisk installed, then flash magisk or you will bootloop back to twrp"

source:

link in post above :p
[OnePlus 6 Guides, News, & Discussion] tatsit:
Nope, before that it was stock.

Anyway, I redo the entire thing and it is working.

:laugh:
[OnePlus 6 Guides, News, & Discussion] Ithilion184:
I'm in the same boat, flashed TWRP while having Magisk installed and now i'm bootlooping back to TWRP. Problem is i don't have magisk zip on phone memory, and MTP doesn't work with TWRP at the moment. Any other way i can get the Magisk zip there and flash it?

EDIT: solved with a simple "adb push Magisk-v16.0.zip /sdcard" while on TWRP.
[OnePlus 6 Guides, News, & Discussion] Axection:
it seems reflash the files does correct the problem. Now I can su again.

weird bug tho.
[OnePlus 6 Guides, News, & Discussion] brown1178:
I can't access any Phone with kio mtp! You can try KDE Connect or if you want to transfere more files fast use ADB push/pull
[OnePlus 6 Guides, News, & Discussion] AshraafAzhar:
Thanks for your reply!, i already found out about KDE Connect earlier(post #363), and in loving it already :victory:,

I just wish it have on/off button on the phone rather than unpair altogether.
[OnePlus 6 Guides, News, & Discussion] brown1178:
Why unpair? It disconnects automaticly if your PC is out of reach. Additionally you can enable battery optimization for KDE Connect on your phone.
[OnePlus 6 Guides, News, & Discussion] The Apostle:
Funk Wizard. Nice to see you here. I skipped the OP5 but I'm back with a 6. Lol.
[OnePlus 6 Guides, News, & Discussion] The Apostle:
I'm new to this while A/B partition. I went through all the steps and my phone is rooted, with Magisk and TWRP. All seems to be fine. My question is this. When I boot to the recovery (TWRP) and choose the reboot option it defaults to Current Slot: Partition B. If I reboot to partition B it goes back to TWRP. I have to select Partition A to get the device to boot to the system.

Is this normal? Do I need to set it up in a different way?
[OnePlus 6 Guides, News, & Discussion] miky1989:
Hello guys ! I just bought One plus 6 8/256gb after the bad experience of Asus Zenfone 2 (ZE551ML) .

I'm here to ask you: It's mandatory unlock the bootloader to have root permissions ? Any suggestion ? Of course i will lost the warranty in positive case, right ?
[OnePlus 6 Guides, News, & Discussion] elikplim442:
Yes you need to unlock the bootloader before you can root. Am not sure about warranty after unlocking bootloader though, personally I root right after receiving the phone.
[OnePlus 6 Guides, News, & Discussion] miky1989:
Yes, i want to do the same as i need first of all to use Titanium Backup for restore all apps' data.

I will not have issues when a new software's update will be released ? I mean.. it will be the same as before by this point of view ?
[OnePlus 6 Guides, News, & Discussion] brown1178:
You will not loose your warranty, also the online support will not refuse to help you with issues after rooting!

You will receive updates as before, the only difference is that the updater recognizes the root or unlocked bootloader and will download the full package instead of the incremental one. Download and install the update, without reboot install magisk to second slot and you're good to go. See the tutorial in my signature for more details.
[OnePlus 6 Guides, News, & Discussion] ddaharu:
nandroid backups

Do i really need to check all the options when doing a regular nandroid backup?

Or can I just check:

BOOT

SYSTEM

DATA

?:highfive:
[OnePlus 6 Guides, News, & Discussion] HACK3DANDR0ID:
Followed you Guide to a T and everything seemed to work out fine, BUT : I just got my OnePlus 6 today, and Unlocked Bootloader, Flashed and Installed TWRP, and Flash Magisk Beta v16.6.

When i boot, I am getting a message from Android System about there being an internal problem with my device... Is this because of Magisk?

On my Google Pixel 2 XL, i receive the same message after installing some Custom Kernels... Not sure if this is normal as well, or there is really a problem... Perhaps i did something wrong?

Thanks in advance!

*edit*

BTW, I am on the latest version of the Stock Oxygen OS...
[OnePlus 6 Guides, News, & Discussion] yothisisyo:
G drive links are down , already ?
[OnePlus 6 Guides, News, & Discussion] Funk Wizard:
If you are talking about the G-Drive links for the drivers, they work fine at my end.
[OnePlus 6 Guides, News, & Discussion] Diablo2424:
Thank you OP! I successfully unlocked my bootloader a few minutes ago, just going to sit here and patiently wait for TWRP to be released so I can install Magisck now :D
[OnePlus 6 Guides, News, & Discussion] ask77:
Successfully unlocked the bootloader . Want to know whether flashing twrp and then rooting the device will again wipe the device or only unlocking the bootloader does so.?
[OnePlus 6 Guides, News, & Discussion] Diablo2424:
Only unlocking the bootloader will wipe the device, so you are good in that respect. However, I don't believe TWRP is available yet for the OnePlus 6, and if it is, please tell me where to get it, as I am waiting for it! :p
[OnePlus 6 Guides, News, & Discussion] rickysidhu_:
After owning the 5 and 5T, selling both and getting the Pixel 2 XL, I am back for the OnePlus 6! Definitely excited for all the awesome development to come for this device :)

Just had one quick question: does the 6 now also have the dual A/B layout? Or is it still as before? Thanks in advance!
[OnePlus 6 Guides, News, & Discussion] rage77:
It's dual A/B all the way baby!
[OnePlus 6 Guides, News, & Discussion] dynamic_4444:
Any help for mac os users in regard with unlocking my oneplus 6's bootloader?
[OnePlus 6 Guides, News, & Discussion] Displax:
There is Platform tools for MAC as well: https://developer.android.com/studio/releases/platform-tools
[OnePlus 6 Guides, News, & Discussion] iElvis:
It works exactly the same way except you do it in a Terminal window opened in the folder where you have adb and fastboot (from the OSX SDK).