当前位置: 首页 > news >正文

电商网站seo优化目标分解天津seo渠道代理

电商网站seo优化目标分解,天津seo渠道代理,小程序商店图标,电商公司注册经营范围使用展锐提供的代码编译出来的固件&#xff0c;不包含DeskClock等应用。 之前也遇到过这个情况&#xff0c;只是时间太久忘记了&#xff0c;在这里再次记录&#xff01; frameworks/native/data/etc/android.app.remove.xml<?xml version"1.0" encoding"ut…

使用展锐提供的代码编译出来的固件,不包含DeskClock等应用。

之前也遇到过这个情况,只是时间太久忘记了,在这里再次记录!

frameworks/native/data/etc/android.app.remove.xml<?xml version="1.0" encoding="utf-8"?><permissions><customized-restricted-app config="persist.remove.app"  value="1"><!-- <path name="Messages"/><path name="messaging"/><path name="MessagesGo"/> --><path name="FMRadio"/><path name="SprdFMRadio"/><path name="DreamFMRadioPrebuilt"/><path name="DreamSoundRecorderPrebuilt"/><path name="Email2"/><path name="GMailGo"/><path name="GMailGo_1G"/><path name="Gmail2"/><path name="Gmail2_2G"/><path name="DeskClock"/>  需要去掉<path name="SprdDeskClock"/><path name="DeskClockGoogle"/><path name="SprdCalendar"/><path name="SprdCalendarProvider"/><path name="SprdCalendarProviderPrebuilt"/><path name="Calendar"/><path name="CalendarGoogle"/></customized-restricted-app>
</permissions>

然后记录一下原因。

首先日志检索  DeskClock 发现只有这么三行,很好定位到源码。

18:11:19.933 SystemConfig              D  readCustomizedRestrictedPathsByConfig DeskClock, apkType = 0
18:11:19.934 SystemConfig              D  readCustomizedRestrictedPathsByConfig SprdDeskClock, apkType = 0
18:11:19.935 SystemConfig              D  readCustomizedRestrictedPathsByConfig DeskClockGoogle, apkType = 0
 

         从xml文件中读取权限651     private void readPermissionsFromXml(File permFile, int permissionFlag) {652         FileReader permReader = null;653         try {654             permReader = new FileReader(permFile);655         } catch (FileNotFoundException e) {656             Slog.w(TAG, "Couldn't find or open permissions file " + permFile);657             return;658         }659         Slog.i(TAG, "Reading permissions from " + permFile);660 661         final boolean lowRam = ActivityManager.isLowRamDeviceStatic();662 663         try {664             XmlPullParser parser = Xml.newPullParser();665             parser.setInput(permReader);666 667             int type;668             while ((type=parser.next()) != parser.START_TAG669                        && type != parser.END_DOCUMENT) {670                 ;671             }682             final boolean allowAll = permissionFlag == ALLOW_ALL;686             final boolean allowAppConfigs = (permissionFlag & ALLOW_APP_CONFIGS) != 0;687             final boolean allowPrivappPermissions = (permissionFlag & ALLOW_PRIVAPP_PERMISSIONS)688                     != 0;689             final boolean allowOemPermissions = (permissionFlag & ALLOW_OEM_PERMISSIONS) != 0;690             final boolean allowApiWhitelisting = (permissionFlag & ALLOW_HIDDENAPI_WHITELISTING)698             while (true) {699                 XmlUtils.nextElement(parser);700                 if (parser.getEventType() == XmlPullParser.END_DOCUMENT) {701                     break;702                 }703 704                 String name = parser.getName();705                 if (name == null) {706                     XmlUtils.skipCurrentTag(parser);707                     continue;708                 }709                 switch (name) {
...可以看出customized-restricted-app就是获取xml文件中的name
1277                     case "customized-restricted-app": {
1278                         String config = parser.getAttributeValue(null, "config");
1279                         String value = parser.getAttributeValue(null, "value");
1280                         if (TextUtils.isEmpty(config) || TextUtils.isEmpty(value)) {
1281                             Slog.w(TAG, "Tag config" + config + " or value " + value + " in "
1282                                 + permFile + " at " + parser.getPositionDescription() + " is empty");
1283                             XmlUtils.skipCurrentTag(parser);
1284                         }
1285                         List<String> restrictedPermission = Arrays.asList(config, value);
1286                         mCustomizedRestrictedPaths.put(restrictedPermission,
1287                                 readCustomizedRestrictedPathsByConfig(parser));
1288 
1289                     } break;读取限制的xml文件
1676     private HashMap<String, Integer> readCustomizedRestrictedPathsByConfig(XmlPullParser parser)
1677             throws IOException, XmlPullParserException {
1678         HashMap<String, Integer> customizedRestrictedPaths = new HashMap<String, Integer>();
1679         int packageDepth = parser.getDepth();
1680         int type;
1681         int depth = parser.getDepth();
1682         while (XmlUtils.nextElementWithin(parser, depth)) {
1683             String tagName = parser.getName();
1684             if (tagName.equals("path")) {
1685                 String name = parser.getAttributeValue(null, "name");
1686                 Integer apkType = 0;
1687                 try {
1688                     apkType = Integer.valueOf(parser.getAttributeValue(null, "type"));
1689                 } catch (NumberFormatException e) {
1690                 }日志在这里打印
1691                 Slog.d(TAG, "readCustomizedRestrictedPathsByConfig " + name +
1692                         ", apkType = " + apkType);
1693                 customizedRestrictedPaths.put(name, apkType);
1694             } else {
1695                 Slog.w(TAG, "Unknown element under <customized-restricted-app>: "
1696                       + parser.getName());
1697             }
1698         }
1699         return customizedRestrictedPaths;
1700     }

然后检索一下 customized-restricted-app

来看一下定义

device/sprd/xxx/xxx/module/app/md.mk#add for not install unused app
PRODUCT_PRODUCT_PROPERTIES += persist.remove.app=1
PRODUCT_COPY_FILES += \frameworks/native/data/etc/android.app.remove.xml:product/etc/permissions/android.app.remove.xml


 

http://www.wangmingla.cn/news/22804.html

相关文章:

  • 福州做网站建设小广告图片
  • 如何查询网站使用什么框架做的媒体推广
  • 建设银行贷款官方网站湖南关键词优化品牌价格
  • 软件需求分析湖南靠谱seo优化
  • 莆田网站建设哪里便宜lol今日赛事直播
  • 网站建设的要素网络整合营销的特点有
  • 自己做的网站怎么放视频成都百度推广电话号码是多少
  • 怎么做网站电影学校招生网络营销方案
  • 怎么注销建设银行网站用户名查看百度关键词价格
  • 网站开发人员需求在线识别图片来源
  • 邢台住房和城乡建设部网站哪里有学电脑培训班
  • 检测网站是否被做跳转关键词排名顾问
  • 烟台专业做网站公司有哪些天天seo百度点击器
  • 架设多个web网站有哪些方法编程培训机构
  • 网络推广方案xiala11优化百度涨
  • 佛山网站建设佛山网站制作seo sem是指什么意思
  • 番禺网站制作设计做一个私人网站需要多少钱
  • 网站诊断表怎么免费创建自己的网站
  • 珠海网站建设公司排名网上营销型网站
  • 个人网站 推荐常见的网络营销方式有哪些
  • 冠县做网站百度搜索引擎使用技巧
  • 网址导航网站如何做百度关键词快速排名方法
  • 江苏省教育网站官网网络视频营销策略有哪些
  • 做個app网站价格百度风云榜电视剧排行榜
  • 担路做网站南通百度网站快速优化
  • 网站建设实施过程南京百度推广开户
  • 自动采集的网站网络推广外包流程
  • 哪个公司做企业网站好百度有哪些产品
  • 武汉建设工程招标投标交易平台优化网站排名
  • 网站开发做什么的个人网站设计毕业论文