The main error lies here:
07-05 02:42:50.485 5612-24695/? E/AudioRecord-JNI: Error -38 during AudioRecord native read
It's a common problem when using AudioRecord.
The trick with using AudioRecord is that each device may have different initialization settings, so you will have to create a method that loops over all possible combinations of bit rates, encoding.