Back to project page androiddevice.info.
The source code is released under:
GNU General Public License
If you think the Android project androiddevice.info listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package info.androiddevice.deviceinventory.info; // ww w .j ava 2s.com import android.content.pm.FeatureInfo; import android.content.pm.PackageManager; import org.json.JSONArray; import info.androiddevice.deviceinventory.Application; public class SharedLibraryNamesProperty implements Property { @Override public Object getProperty() { JSONArray jsonArray = new JSONArray(); PackageManager pm = Application.getContext().getPackageManager(); String[] libraries = pm != null ? pm.getSystemSharedLibraryNames() : new String[0]; for(String library: libraries) { jsonArray.put(library); } return jsonArray; } @Override public String getName() { return "sharedlibraries"; } }