demantz / hackrf_android

A ported version of Michael Ossmann's libhackrf library to use with Android 3.1+
GNU General Public License v2.0
388 stars 91 forks source link

RX on Nexus 6 failed #11

Closed Radiomix2000 closed 7 years ago

Radiomix2000 commented 7 years ago

Getting the message: _Saving samples to /storage/emulated/0/Test_HackRF/hackrfandroid.iq error (File IO)! Tried to change the path, it doesn't work. Entering the path (/sdcard/hackrf_android.iq) in Filename field gives a result in log _Saving samples to /storage/emulated/0/Test_HackRF/sdcard/hackrfandroid.iq

Radiomix2000 commented 7 years ago

Forgot to mention. RX to /dev/null works fine. Seems to be an issue with path to file. Checked the path /storage/emulated/0/ and it looks like incorrect path. On Nexus 6 is better to get access to file via /sdcard/

demantz commented 7 years ago

The error was due to the new permission system of Android. Even though the app Manifest requests storage permissions, they are not granted without explicitly asking the user. Version 1.12 of the HackRF_Test app handles this correctly. Alternatively you can go to (Android-)Settings - Apps - HackRF_Test - Permissions - (turn on the Storage Permission)

Sorry for the late reply, I was busy with exams..