Home | History | Annotate | only in /development/simulator/wrapsim
Up to higher level directory
NameDateSize
Android.mk19-Dec-2010993
BitVector.c19-Dec-20102.4K
BitVector.h19-Dec-2010961
Common.h19-Dec-2010339
DevAudio.c19-Dec-20102.7K
DevConsoleTty.c19-Dec-20101.3K
DevEvent.c19-Dec-201011.4K
DevFb.c19-Dec-20107.9K
DevLog.c19-Dec-201013.8K
DevPower.c19-Dec-20103.8K
DevVibrator.c19-Dec-20101K
FakeDev.c19-Dec-20108.8K
FakeDev.h19-Dec-20103.4K
Globals.h19-Dec-20107.1K
Init.c19-Dec-20105.5K
Intercept.c19-Dec-201023.9K
LaunchWrapper.c19-Dec-20107.9K
Log.c19-Dec-20101.7K
Log.h19-Dec-2010299
README.txt19-Dec-2010919
SimMgr.c19-Dec-201024.3K
SimMgr.h19-Dec-20101.8K
SysPower.c19-Dec-20103K
Util.c19-Dec-2010245
Util.h19-Dec-201039

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