Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not read from device, result == -1 errno 0 null #416

Open
motosheep opened this issue Mar 16, 2024 · 1 comment
Open

Could not read from device, result == -1 errno 0 null #416

motosheep opened this issue Mar 16, 2024 · 1 comment

Comments

@motosheep
Copy link

Problem

runing program in the redmi mobile phone with android13 system。when use the api "createdirectory(String xxx)",the app no response and tips anr error after few second.

Expected behavior

can create the usb diretory

Actual behavior

Stacktrace of Excpetion

2024-03-16 21:08:41.093 10315-10315 ScsiBlockDevice com.example.demo W Could not read from device, result == -1 errno 0 null, retrying...
2024-03-16 21:08:41.194 10315-10315 System.err com.example.demo W java.io.IOException: MAX_RECOVERY_ATTEMPTS Exceeded while trying to transfer command to device, please reattach device and try again
2024-03-16 21:08:41.195 10315-10315 System.err com.example.demo W at me.jahnen.libaums.core.driver.scsi.ScsiBlockDevice.transferCommand(ScsiBlockDevice.kt:190)
2024-03-16 21:08:41.195 10315-10315 System.err com.example.demo W at me.jahnen.libaums.core.driver.scsi.ScsiBlockDevice.initAttempt(ScsiBlockDevice.kt:105)
2024-03-16 21:08:41.196 10315-10315 System.err com.example.demo W at me.jahnen.libaums.core.driver.scsi.ScsiBlockDevice.init(ScsiBlockDevice.kt:83)
2024-03-16 21:08:41.196 10315-10315 System.err com.example.demo W at me.jahnen.libaums.core.UsbMassStorageDevice.setupDevice(UsbMassStorageDevice.kt:138)
2024-03-16 21:08:41.196 10315-10315 System.err com.example.demo W at me.jahnen.libaums.core.UsbMassStorageDevice.init(UsbMassStorageDevice.kt:100)
(if exists)



### Code where problem occurs
           fileSystem.createDirectory("dd");
@PratikLahagora
Copy link

Hello @motosheep Have you found any solution ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants