Error: java.lang.IllegalStateException: java.util.concurrent.TimeoutException: Thread Binder_C gave up waiting for partitionMixed after 180000ms After entering the final command to make a mixed-format SD card in How can I move apps to SD on non-adopted Marshmallow storage?:


  $ adb shell sm partition disk:179,64 mixed 25


I meet this error:


  Error: java.lang.IllegalStateException: java.util.concurrent.TimeoutException: Thread Binder_C gave up waiting for partitionMixed after 180000ms


If it is 75, then the error is:


  Error: java.lang.IllegalStateException: java.util.concurrent.TimeoutException: Thread Binder_4 gave up waiting for partitionMixed after 180000ms


How can I fix this? Only 3 results appear in Google, and neither of them helps.


Phone: Sony Xperia M4 Aqua Dual 
SD card: SanDisk Ultra micro SDHC UHS-1 Card 16 GB, class 10
It is because the SD card is mounted to have an ext4 partition (alongside with another normal partition), in order to use Link2SD to force moving unmovable apps to SD card. The error shows up after this. Even reformatting the SD card to have only one full partition back does not solve the problem.

To solve it, reformatting it with the phone's default format tool. You may want to reboot the phone after done. Thereafter, you can partition the disk with adb as normal.