Home | History | Annotate | only in /development/simulator/wrapsim
Up to higher level directory
NameDateSize
Android.mk15-Nov-2011993
BitVector.c15-Nov-20112.4K
BitVector.h15-Nov-2011961
Common.h15-Nov-2011339
DevAudio.c15-Nov-20112.7K
DevConsoleTty.c15-Nov-20111.3K
DevEvent.c15-Nov-201111.4K
DevFb.c15-Nov-20117.9K
DevLog.c15-Nov-201113.8K
DevPower.c15-Nov-20113.8K
DevVibrator.c15-Nov-20111K
FakeDev.c15-Nov-20118.8K
FakeDev.h15-Nov-20113.4K
Globals.h15-Nov-20117.1K
Init.c15-Nov-20115.5K
Intercept.c15-Nov-201123.9K
LaunchWrapper.c15-Nov-20117.9K
Log.c15-Nov-20111.7K
Log.h15-Nov-2011299
README.txt15-Nov-2011919
SimMgr.c15-Nov-201124.3K
SimMgr.h15-Nov-20111.8K
SysPower.c15-Nov-20113K
Util.c15-Nov-2011245
Util.h15-Nov-201139

README.txt

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