• Home
Name
Date
Size
#Lines
LOC

..--

Android.mkD03-May-20241 KiB5834

BitVector.cD03-May-20242.4 KiB10354

BitVector.hD03-May-2024961 3513

Common.hD03-May-2024339 2011

DevAudio.cD03-May-20243 KiB13794

DevConsoleTty.cD03-May-20241.3 KiB5427

DevEvent.cD03-May-202411.4 KiB437289

DevFb.cD03-May-20247.9 KiB301185

DevLog.cD03-May-202413.8 KiB486315

DevPower.cD03-May-20243.8 KiB176107

DevVibrator.cD03-May-20241 KiB4826

FakeDev.cD03-May-20248.8 KiB321188

FakeDev.hD03-May-20243.4 KiB12748

Globals.hD03-May-20247.1 KiB214150

Init.cD03-May-20245.5 KiB192121

Intercept.cD03-May-202423.9 KiB852493

LaunchWrapper.cD03-May-20247.9 KiB302180

Log.cD03-May-20241.7 KiB7543

Log.hD03-May-2024299 208

README.txtD03-May-2024759 2213

SimMgr.cD03-May-202424.3 KiB989625

SimMgr.hD03-May-20241.8 KiB7633

SysPower.cD03-May-20243 KiB14181

Util.cD03-May-2024245 1411

Util.hD03-May-202439 51

README.txt

1This shared library is used with LD_PRELOAD to wrap the Android runtime
2when used with the desktop simulator.
3
4Because LD_PRELOAD is part of the environment when gdb and valgrind are
5invoked, the wrapper can "see" activity from both of these (more so gdb
6than valgrind).  For this reason it needs to be very careful about which
7"open" calls are intercepted.
8
9It's also important that none of the intercepted system or library calls
10are invoked directly, or infinite recursion could result.
11
12Avoid creating dependencies on other libraries.
13
14
15To debug wrapsim, set WRAPSIM_LOG to a log file before launching, e.g.
16
17% WRAPSIM_LOG=/tmp/wraplog.txt simulator
18
19For more verbose logging, you can enable the verbose forms of CALLTRACE
20and CALLTRACEV in Intercept.c.
21
22