diff options
Diffstat (limited to 'android')
-rw-r--r-- | android/hw-qemud.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/android/hw-qemud.c b/android/hw-qemud.c index cc28e63..ba4ab42 100644 --- a/android/hw-qemud.c +++ b/android/hw-qemud.c @@ -46,6 +46,11 @@ */ #define SUPPORT_LEGACY_QEMUD 1 +#if SUPPORT_LEGACY_QEMUD +#include "telephony/android_modem.h" +#include "telephony/modem_driver.h" +#endif + /* * This implements support for the 'qemud' multiplexing communication * channel between clients running in the emulated system and 'services' @@ -257,6 +262,8 @@ qemud_serial_read( void* opaque, const uint8_t* from, int len ) if ( !memcmp(s->data0, "001200", 6) ) { D("%s: legacy qemud detected.", __FUNCTION__); s->version = QEMUD_VERSION_LEGACY; + /* tell the modem to use legacy emulation mode */ + amodem_set_legacy(android_modem); } else { D("%s: normal qemud detected.", __FUNCTION__); s->version = QEMUD_VERSION_NORMAL; |