weijianfeng / dynamicapploader Goto Github PK
View Code? Open in Web Editor NEW使用DroidPlugin实现动态加载apk,类简单的应用商店或插件商城的功能,可以按需下载,加载子app。
License: Apache License 2.0
使用DroidPlugin实现动态加载apk,类简单的应用商店或插件商城的功能,可以按需下载,加载子app。
License: Apache License 2.0
private ArrayList getApkFromDownload() { File files = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS); PackageManager pm = getActivity().getPackageManager(); ArrayList localApkItems = new ArrayList<>(); for (File file : files.listFiles()) { if (file.exists() && file.getPath().toLowerCase().endsWith(".apk")) { final PackageInfo info = pm.getPackageArchiveInfo(file.getPath(), 0); localApkItems.add(new LocalApkItem(pm, info, file.getPath())); } } return localApkItems; }
FATAL EXCEPTION: main
Process: com.wjf.dynamicapploader, PID: 24118
java.lang.NullPointerException: Attempt to get length of null array
at com.wjf.dynamicapploader.fragment.LocalApkFragment.getApkFromDownload(LocalApkFragment.java:132)
at com.wjf.dynamicapploader.fragment.LocalApkFragment.loadApks(LocalApkFragment.java:116)
at com.wjf.dynamicapploader.fragment.LocalApkFragment.initPlugin(LocalApkFragment.java:107)
at com.wjf.dynamicapploader.fragment.LocalApkFragment.onViewCreated(LocalApkFragment.java:77)
插件里使用AcessibilityService可以打开辅助服务吗
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.