android: Add build rules for static library and self-test am: 4144428ae5
am: 4feb62f59f

Change-Id: I636824a5de891eaf13f74b9a16fa1587a007cbc4