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

鸿蒙审核版本页面显示异常之混淆代码问题

鸿蒙审核版本页面显示异常之混淆代码问题

参考文档

代码写的好好的,真机测试也运行的好好的,高高兴兴的提测去了。都填好了之后就等着测试结果了。

等了半天收到了一个页面无法展示的评审意见。啊,难道是测试的网络有问题?还是打包有什么测试代码?仔细查了半天也没啥发现。

由于签名的版本也无法安装,无法测试,但是正常的开发版本也没啥问题,思来想去感觉差别也就编译和混淆了。通过弄测试版,经过几个版本测试,发现去掉混淆之后就正常了。但是完全去掉好像也不太好,但是看文档也不太知道应该用哪个好。

这个时候就想抄一下作业吧,找了个大厂出的sdk demo,把他们的混淆规则直接抄过来了。还别说确实没啥问题了。

以下就是现在用的混淆规则。

# Define project specific obfuscation rules here.
# You can include the obfuscation configuration files in the current module's build-profile.json5.
#
# For more details, see
#   https://gitee.com/openharmony/arkcompiler_ets_frontend/blob/master/arkguard/README.md

# Obfuscation options:
# -disable-obfuscation: disable all obfuscations
-enable-property-obfuscation: obfuscate the property names
-enable-toplevel-obfuscation: obfuscate the names in the global scope
-compact: remove unnecessary blank spaces and all line feeds
-remove-log: remove all console.* statements
# -print-namecache: print the name cache that contains the mapping from the old names to new names
# -apply-namecache: reuse the given cache file

# Keep options:
# -keep-property-name: specifies property names that you want to keep
# -keep-global-name: specifies names that you want to keep in the global scope

# -enable-property-obfuscation
# -enable-toplevel-obfuscation
# -enable-filename-obfuscation
# -enable-export-obfuscation

后记

帮忙给点一下,或者扫一下。

最近利用这些知识上架了一个应用,小鱼抽签。接入了App linking,https://www.xyccstudio.cn/applinking/xiaoyushangshangqian-a

或者 https://h5hosting-drcn.dbankcdn.cn/cch5/ScenarizedDist/filePageV2/dist/index.html#/filePageMain?id=195C60E5464C223F574CE9E8F8DDCE6110550EE9EF7512682D44C27B0323A06C&language=zh_CN

第1签 锤离成道

天开地辟结良缘,日吉时良万事全,若得此签非小可,人行中正帝王宜

上上签

子宫

此卦盘古初开天地之象,诸事皆吉也

快使用鸿蒙next版本扫一扫体验一下吧~

最近利用这些知识上架了一个应用,小鱼证件照,免费便捷的证件照生成工具。接入了App linking,https://www.xyccstudio.cn/applinking/zhengjianzhao


http://www.kler.cn/a/445498.html

相关文章:

  • MFC 文档模板 每个文档模板需要实例化吧
  • Note20241220_一种组态王Modbus模拟通讯仿真实现方案
  • 《探秘 QT 5.14.1 类库的奇妙世界》
  • html 中 表格和表单的关系与区别
  • 连通“数据”,让制造变“聪明”
  • Leetcode经典题15-- 找出字符串中第一个匹配项的下标(KMP)
  • JS CSS HTML 的代码如何快速封装
  • 使用 Lambda 创建 Authorizer 对 API Gateway 访问进行鉴权
  • Mybatis分页插件的使用问题记录
  • 后摩尔定律时代,什么将推动计算机性能优化的发展?
  • Halcon 机器视觉案例 之 药剂液面高度测量
  • flutter 快速实现侧边栏
  • 软件架构设计方法之The Clean Architecture 整洁架构
  • android opencv导入进行编译
  • 使LED每秒闪烁一次
  • 海外招聘丨埃因霍温科技大学—安全人工智能自动机器学习博士后
  • 系统设计:微服务架构的可扩展性系统 详解
  • 【mysql】1205 -Lock wait timeout exceeded; try restarting transaction
  • Hive其三,数据库操作,小技巧设置,加载数据等操作
  • 白嫖内网穿透之神卓互联Linux安装教程(树莓派)