summaryrefslogtreecommitdiffstats
path: root/ril/libsecril-compat/secril-compat.c
blob: 1a95302d6bd95b3d2a6fa4a6d1a61311f34138e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#define LOG_TAG "secril-compat"
#include <sys/types.h>
#include <utils/Log.h>

/**
 * With the switch to C++11 by default, char16_t became a unique type,
 * rather than basically just a typedef of uint16_t. As a result, the
 * compiler now mangles the symbol for writeString16 differently. Our
 * RIL references the old symbol of course, not the new one.
 */
uintptr_t _ZN7android6Parcel13writeString16EPKDsj(void *instance, void *str, size_t len);
uintptr_t _ZN7android6Parcel13writeString16EPKtj(void *instance, void *str, size_t len)
{
	return _ZN7android6Parcel13writeString16EPKDsj(instance, str, len);
}

/**
 * toroplus's RIL has the ability to take a screenshot. WTF?
 * Supposedly some vendor/testing/factory crap.
 * There's no way in hell that codepath should be hit under
 * any legitimate circumstances. Just define the symbol.
 */
void _ZN7android16ScreenshotClient6updateEv()
{
	ALOGE("%s: CALLED! SHOULD NOT HAPPEN!!", __func__);
}