| 广告联系 | 繁体版 | 手机版 | 微信 | 微博 | 搜索:
欢迎您 游客 | 登录 | 免费注册 | 忘记了密码 | 社交账号注册或登录

首页

新闻资讯

论坛

温哥华地产

大温餐馆点评

温哥华汽车

温哥华教育

黄页/二手

旅游
搜索:  

 论坛通告:  请不要上传第三方有版权的照片,请尊重版权,谢谢   转载新闻请务必注明出处,这些媒体请不要转,谢谢   批评商家需要注意  
 个人空间: 一袭绛襦落鹏城,疑似玄女下九天 | 五木森林 | XY | 罗蓬特机器人 | lxls | NotmeL8 | 猪头看世界 | 白龙王许道长 | 53757645468 | 顾晓军 | Invisible world | 乱想 | 吕洪来的个人空间 | 呱呱叫厨房 | 客观中立而实事求是,唯服理据而杜绝辱骂 | 小来子 | 异乡的世界 | 格局 | 花随风 | 静观云卷云舒
 最新求助: 请问谁知道哪里有卖理发的电动推子?   忽然有个疑问:战争时期,加拿大拿PR卡未入籍的永久居民会被强制服兵役吗?   这个银条   如何修改会员名?
 论坛转跳:
     发帖回帖获取加西镑, 兑换精彩礼物

论坛首页 -> android的星空

ProGuard (发表于10年前)



回复主题  图片幻灯展示  增添帖子到书签中  给帖子中的发贴者批量赠送献花或者花篮    |##| -> |=|        发表新主题
阅读上一个主题 :: 阅读下一个主题  
作者 正文
Caribou
(只看此人)




文章 时间: 2015-3-10 14:32 引用回复
The ProGuard tool shrinks, optimizes, and obfuscates your code by removing unused code and renaming classes, fields, and methods with semantically obscure names. The result is a smaller sized .apk file that is more difficult to reverse engineer. Because ProGuard makes your application harder to reverse engineer, it is important that you use it when your application utilizes features that are sensitive to security like when you are Licensing Your Applications.

ProGuard is integrated into the Android build system, so you do not have to invoke it manually. ProGuard runs only when you build your application in release mode, so you do not have to deal with obfuscated code when you build your application in debug mode. Having ProGuard run is completely optional, but highly recommended.


 
花篮
分享
_________________
Rebate: http://GreatCanadianRebates




[img]http://ww4.sinaimg.cn/bmiddle/85bdc80bjw1eqnjyk929lg20bx071kjl.gif[/img]
楼主 | 电梯直达
阅读会员资料 发送站内短信 主题 User photo gallery 礼物  
Caribou
(只看此人)




文章 时间: 2015-3-10 17:35 引用回复
Decoding Obfuscated Stack Traces

When your obfuscated code outputs a stack trace, the method names are obfuscated, which makes debugging hard, if not impossible. Fortunately, whenever ProGuard runs, it outputs a <project_root>/bin/proguard/mapping.txt file, which shows you the original class, method, and field names mapped to their obfuscated names.

The retrace.bat script on Windows or the retrace.sh script on Linux or Mac OS X can convert an obfuscated stack trace to a readable one. It is located in the <sdk_root>/tools/proguard/ directory. The syntax for executing the retrace tool is:

retrace.bat|retrace.sh [-verbose] mapping.txt [<stacktrace_file>]

For example:

retrace.bat -verbose mapping.txt obfuscated_trace.txt

If you do not specify a value for <stacktrace_file>, the retrace tool reads from standard input.
 
花篮
分享
_________________
Rebate: http://GreatCanadianRebates




[img]http://ww4.sinaimg.cn/bmiddle/85bdc80bjw1eqnjyk929lg20bx071kjl.gif[/img]
沙发 | 返回顶端
阅读会员资料 发送站内短信 主题 User photo gallery 礼物  
Caribou
(只看此人)



文章 时间: 2015-3-10 17:36 引用回复
Debugging considerations for published applications

Save the mapping.txt file for every release that you publish to your users. By retaining a copy of the mapping.txt file for each release build, you ensure that you can debug a problem if a user encounters a bug and submits an obfuscated stack trace. A project's mapping.txt file is overwritten every time you do a release build, so you must be careful about saving the versions that you need.

For example, say you publish an application and continue developing new features of the application for a new version. You then do a release build using ProGuard soon after. The build overwrites the previous mapping.txt file. A user submits a bug report containing a stack trace from the application that is currently published. You no longer have a way of debugging the user's stack trace, because the mapping.txt file associated with the version on the user's device is gone. There are other situations where your mapping.txt file can be overwritten, so ensure that you save a copy for every release that you anticipate you have to debug.Debugging considerations for published applications

Save the mapping.txt file for every release that you publish to your users. By retaining a copy of the mapping.txt file for each release build, you ensure that you can debug a problem if a user encounters a bug and submits an obfuscated stack trace. A project's mapping.txt file is overwritten every time you do a release build, so you must be careful about saving the versions that you need.

For example, say you publish an application and continue developing new features of the application for a new version. You then do a release build using ProGuard soon after. The build overwrites the previous mapping.txt file. A user submits a bug report containing a stack trace from the application that is currently published. You no longer have a way of debugging the user's stack trace, because the mapping.txt file associated with the version on the user's device is gone. There are other situations where your mapping.txt file can be overwritten, so ensure that you save a copy for every release that you anticipate you have to debug.
 
花篮
分享
_________________
Rebate: http://GreatCanadianRebates




[img]http://ww4.sinaimg.cn/bmiddle/85bdc80bjw1eqnjyk929lg20bx071kjl.gif[/img]
板凳 | 返回顶端
阅读会员资料 发送站内短信 主题 User photo gallery 礼物  
 
回复主题     |##| -> |=|     论坛首页 -> android的星空 所有的时间均为 美国太平洋时间
1页,共1


注:
  • 以上论坛所有发言仅代表发帖者个人观点, 并不代表本站观点或立场, 加西网对此不负任何责任。
  • 投资理财及买房卖房版面的帖子不构成投资建议。投资有风险,责任请自负
  • 对二手买卖中的虚假信息,买卖中的纠纷等均与本站无关。
  • 黄页热门商家 免费个人广告
    发布商业广告

    不能在本论坛发表新主题
    不能在本论坛回复主题
    不能在本论坛编辑自己的文章
    不能在本论坛删除自己的文章
    不能在本论坛发表投票
    不能在这个论坛添加附件
    可以在这个论坛下载文件

    论坛转跳: 

    Caribou, Caribou, Caribou
    潜力帖子 精华帖子 热门帖子
    执行十年树木计划。。。。
    以色列打击伊朗,为何次次精准?
    中东局势紧张让原油价格一度飙升14%
    川普花费4500万美元搞大阅兵为自己...
    印度的坠机事件
    超级无敌重磅!据传伊朗最高领袖哈...
    周末晚上看电视剧
    村里的共和国,左倾错误的开始
    员工上厕所不洗手!
    美使馆受损!伊朗「新方法」狂炸以...
    不知不觉间已经第三季了
    加拿大房东噩梦! 职业租户欠租毁房 ...
    出卖盟友这事,伊朗可没少干
    严家祺流亡回忆: 方励之
    稀土何以成为中国拿捏美国的王牌?
    又看完一部电视剧
    新疆伊犁 赛里木湖 三大草原恰西 喀...
    新疆阿勒泰 五彩滩 喀纳斯 魔鬼城
    在乌鲁木齐看娘娘骑过的汗血宝马
    一张天主教在华发行纸钞略考
    5月2日换币盛况
    维达大师,另类收藏,请您欣赏!
    清代福州台伏钞票
    四川官钱局钞票
    大汉四川军政府军用银票
    今年新币发行计划
    要出一个新的一元
    古董金币
    mint三月新币(四月新币从22楼起,五...
    1999 mule 25分
    超级重磅!加拿大要进口中国电动车!
    皮尔今天在温哥华 - 蓝色wave - 保...
    几分钟前,中国强硬反击,征34+50,...
    曼谷高楼直接倒了
    我说我希望特朗普赢,老公气得眼睛...
    知乎?加西网上为什么有老男人喜欢...
    明明有能力统台,大陆为何迟迟不动手?
    貌似ndp稍占上风。。。。。
    今天是感恩节,跟大家道个别,以后...
    咱最后还是投了ndp
    生平第一次被偷车了
    中国会不会武统台湾
    突发:台湾队战胜中国队奥运夺冠,...
    温哥华房姐出事了
    有在看总统辩论的吗?

    最新新闻 热门新闻 热评新闻
    临江仙:看懂李青月将梵灵儿永世圈禁,才知都是嫉妒惹的祸!
    第3起!22岁留学生离奇失踪10天后发现尸体
    里程碑式发现:专家们终于找到了自闭症的病因
    美国全职妈妈8年,重回职场,风光依旧
    《长安的荔枝》:阿荔知恩图报,李善德善因得善果,蓝哥明白始终
    解放军新雷射武器亮相 传已实战验证
    吃尽CS红利,我从小镇做题家,逆袭成了美国中产
    荧幕上,《长安的荔枝》正在热映,而现实中,卖荔枝的却欲哭无泪
    11天写完,卖出百万,《长安的荔枝》让马伯庸赢麻了
    存钱容易取钱难 中国储户奇葩案例令人咋舌
    《潜渊》谢念慈太狠了!原来,这就是谢念慈帮天蝎的真正原因
    《哪吒2》衍生品销售数百亿元!光线传媒再度涨停,摆脱票房依赖转型"IP工厂"
    民国最刚名媛:休夫、拒日寇、带10保镖结婚
    6月17日追剧日历,6部长剧更新,电视剧《我叫张思德》今日收官
    她助中共窃神州 被称作"按住蒋介石脉搏的人"
    中东冲突升级 美参议员再提案限制川普向伊朗宣战
    百名警察花2天追捕 美州议员杀手落网过程曝光
    大温警方寻一周前失踪的12岁女孩
    PC Optimum有新变化 更容易赚积分
    卡尼与川普G7前私下会谈25分钟,说了些什么?
    "扁担女孩" 登央视,正脸照首曝光
    造型奇特 温村这独立屋吸引人围观
    特朗普:看今天能否彻底解决贸易战
    人权组织发布报告 详解中国敏感人士"被旅游"现况
    不可姑息北京,美对这国家提出强硬且困难要求
    中国湖南爆竹工厂爆炸浓烟冲天 酿1死8伤6失踪
    急于让以色列停火,伊朗放出大消息
    遭敲诈大温商人办论坛 数百人参加
    谁在撑腰?李克强冤魂逼宫,张又侠推翻习军改
    持续低迷 加国五月新屋开工量持平
    台网红"馆长"深夜返台,称赞大陆民众对台湾友善
    中南海易主之兆?网传李克强之死最全爆料
    希拉里也发对比图,嘲讽特朗普"低能量美式阅兵"
    重磅!温市府推新措施缓解开发压力
    涉外官员: 中国认知战由"战狼"转向"亲台"
    这著名海滩栈桥已修复 向公众开放
    马英九参访厦门鼓浪屿,高唱《龙的传人》获满堂彩
    孔子姓什么?送分题一票考生都答错了
    国家公园和历史遗迹周五起免费进
    "扁担女孩" 登央视,正脸照首曝光
    最新:伊朗外交部遭轰炸 以总理发声
    18人被捕 加国制造车祸碰瓷或骗保
    哈梅内伊准备后路,一旦失败将流亡俄罗斯?
    陆贴:没了中国稀土,全世界连车都造不了了?
    以伊冲突3天后:伊朗3个关键核设施受损程度如何?

    更多方式阅读论坛:

    Android: 加西网
    [下载]

    Android: 温哥华论坛
    [下载]

    PDA版本: 论坛

    加西网微信

    加西网微博


    Powered by phpBB 2.0.8
    Terms & Conditions    Privacy Policy    Political ADs    Activities Agreement    Contact Us    Sitemap    

    加西网为北美中文网传媒集团旗下网站

    页面生成: 0.0500 秒 and 5 DB Queries in 0.0012 秒