build jni for Gallery

Change-Id: I4e71f89e88b85aec38dcbead5702af3d25360d72