I was running groovy gorilla and everything worked fine. Then after I upgraded to hirsute hippo 21.04 my phone (oneplus 7 pro) no longer shows up in adb. when running the command adb devices
the output is blank as follows
$ adb devices
List of devices attached
however the lsusb command shows the device
$ lsusb
Bus 002 Device 002: ID 8087:8000 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:8008 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 013: ID 2a70:4ee7 OnePlus Technology (Shenzhen) Co., Ltd. ONEPLUS A3010 [OnePlus 3T] / A5010 [OnePlus 5T] / A6003 [OnePlus 6] (Charging + USB debugging modes)
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 004: ID 8087:07dc Intel Corp. Bluetooth wireless interface
Bus 003 Device 003: ID 046d:c539 Logitech, Inc. USB Receiver
Bus 003 Device 002: ID 0bda:58b9 Realtek Semiconductor Corp. Lenovo EasyCamera
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
USB debugging is turned on and my computer is allowed on my phone. phone also shows up with the dmesg | tail command after i run the adb devices command
$ sudo dmesg | tail
[ 2491.150965] usb 4-3: Product: SM8150-MTP
[ 2491.150969] usb 4-3: Manufacturer: OnePlus
[ 4501.485109] usb 4-3: USB disconnect, device number 13
[ 4505.372878] usb 4-3: new SuperSpeed Gen 1 USB device number 14 using xhci_hcd
[ 4505.397060] usb 4-3: New USB device found, idVendor=2a70, idProduct=4ee7, bcdDevice= 4.14
[ 4505.397067] usb 4-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 4505.397069] usb 4-3: Product: SM8150-MTP
[ 4505.397071] usb 4-3: Manufacturer: OnePlus
adb is version 31.0.2. Any help with this is greatly appreciated thanks.
this is my 51-android.rules file
# OnePlus(Oreo)
ATTR{idVendor}!="2a70", GOTO="not_OnePlus"
# OnePlus 6, 4ee1=charging, 4ee2=MTP+debug, 4ee6=PTP+debug, 4ee7=charging+debug
ATTR{idProduct}=="4ee2", ENV{adb_adb}="yes"
ATTR{idProduct}=="4ee6", ENV{adb_adb}="yes"
ATTR{idProduct}=="4ee7", ENV{adb_adb}="yes"
# OnePlus 3T with Oreo MIDI mode 90bb=adb+midi, 9011=MTP, 904e=PTP
ATTR{idProduct}=="90bb", ENV{adb_adb}="yes"
ATTR{idProduct}=="9011", SYMLINK+="android_adb"
ATTR{idProduct}=="904e", SYMLINK+="android_adb"
GOTO="android_usb_rule_match"
LABEL="not_OnePlus"