Scripting Layer For Native ============================= ### Introduction Scripting Layer for Native, SL4N, is an automation toolset for calling Android native Binder APIs and accessing the HAL layer in an platform-independent manner. This tool enables remote automation of these layers via ADB. ### Build Instructions Building SL4N requires a system build. For the initial build of Android: cd source build/envsetup.sh lunch aosp_ make [-j15] *where `` is the root directory of the android tree and `` is the lunch target name* Then Build SL4N: cd /packages/apps/Test/connectivity/sl4n mm [-j15] ### Install Instructions Run the following command: adb push /out/target/product//system/bin/sl4n /system/bin Library dependencies required: adb push /out/target/product//system/lib/libbinder.so /system/lib adb push /out/target/product//system/lib/libchrome.so /system/lib adb push /out/target/product//system/lib/libevent.so /system/lib Optional library dependency for running tests that exercise the Bluetoothtbd service: cd /system/bt/service mm [-j15] adb push /out/target/product//system/bin/bluetoothtbd /system/bin ### Run Instructions a) SL4N is launched from ADB shell; or b) To enable RPC access from the command prompt: adb forward tcp: tcp: adb shell -c "/system/bin/sl4n" & *where `` and `` are the tcp ports on the host computer and device.*