coolpigs |
|
||
2013年9月12日
摘要:
两种方法:一、android自带的arm-eabi-addr2line工具例如,07-04 08:14:55.930 64 64 I DEBUG : #00 pc 0000d766 /system/lib/libtest.so07-04 08:14:55.930 64 64 I DEBUG : #01 pc 0000e418 /system/lib/libtest.so07-04 08:14:55.930 64 64 I DEBUG : #02 pc 0001d626 /system/lib/libtest.so07-04 08:14:55.940 64 64 I DEBUG : #03 pc 阅读全文
摘要:
一、manifest的配置 二、receiver中的判断public class AppReceiver extends BroadcastReceiver{ private static final int PACKAGE_NAME_START_INDEX = 8; @Override public void onReceive(Context context, Intent intent) { if(inten... 阅读全文
摘要:
一、判断是否已有快捷方式 private String getAuthorityFromPermission(Context context, String permission){ if (permission == null) return null; List packs = context.getPackageManager().getInstalledPackages(PackageManager.GET_PROVIDERS); if (packs != null) { for (PackageInfo pack ... 阅读全文
|
Copyright © 2024 coolpigs
Powered by .NET 9.0 on Kubernetes |