First of all, I tried a lot of hours with everything I could find on the internet and mostly on StackOverflow.
Something I've already tried with no avail:
https://stackoverflow.com/questions/25236960/running-adb-devices-showing-unauthorized-device
Both screen AND touch are broken so I can't see nor touch a thing. (So the OTG mouse option can't be used in my case.)
Device is a Huawei Ascend P7 L10, Lollipop 5.1.1.
It's rooted.
It has TWRP recovery.
USB Debugging is enabled.
I'm using the latest ADB version, updated from Android Studio.
I entered recovery mode, done adb push adbkey.pub /data/misc/adb/adb_keys
and rebooted, after reboot adb keeps saying devices isn't authorized.
I rentered recovery checked if file copied on device was still the same as the one in .android folder, and it was, same key.
If anybody has any idea I'm all ears. Thanks in advance.