Patching phone app to use the other microphone?

Oct 11, 2014
29
4
0
Hi all, (and hi moderators, apologies if this should not be the correct place),

as my ghost currently can't be used as a phone, I am now thinking of trying to fix the problem in software. Apps like RecForge work just fine with the *second* microphone, so I'd like to compile LineageOS myself after changing the dialer to use that. So far I've been clicking around the LineageOS repositories on GitHub, unfortunately without much luck. Just judging by file names, these two files looked promising:

https://github.com/LineageOS/androi...src/com/android/dialer/DialerApplication.java
https://github.com/LineageOS/androi...4.1/src/com/android/phone/CallController.java

I am, however, not even sure if these are the correct repositories to be looking at. Could someone nudge me into the right direction?

Cheers,
Jonathan
 
Oct 11, 2014
29
4
0
Edit: the second file was indeed not a bad place to look in!

Code:
        if (!(Intent.ACTION_CALL.equals(action)
              || Intent.ACTION_CALL_EMERGENCY.equals(action)
              || Intent.ACTION_CALL_PRIVILEGED.equals(action))) {
            Log.wtf(TAG, "placeCall: unexpected intent action " + action);
            throw new IllegalArgumentException("Unexpected action: " + action);
        }
(https://github.com/LineageOS/androi...m/android/phone/CallController.java#L222-L227)

Unfortunately, now I'm stumped. Cloning the android_packages_services_Telephony repository and grepping for things like ACTION_CALL doesn't get me any closer to what device is opened to access the microphone. Where do I go from here? By the way, "Log.wtf" - how cool is that? :)
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone