| 廣告聯系 | 簡體版 | 手機版 | 微信 | 微博 | 搜索:
歡迎您 游客 | 登錄 | 免費注冊 | 忘記了密碼 | 社交賬號注冊或登錄

首頁

新聞資訊

論壇

溫哥華地產

大溫餐館點評

溫哥華汽車

溫哥華教育

黃頁/二手

旅游
搜索:  

 論壇通告:  轉載新聞請務必注明出處,這些媒體請不要轉,謝謝   請不要上傳第三方有版權的照片,請尊重版權,謝謝   批評商家需要注意  
 個人空間: XY | 亂想 | 血流成河 | 靜觀雲卷雲舒 | 羅蓬特機器人 | 快樂的獅子 | 分享你的人生,尋找新的朋友 | 忽然聽到一個墨西哥女仔唱。呐呐呐呐呐呢呐 | nessus | 湖裡湖塗 | ACY Securities | 白龍王許道長 | 桃花島 | 客觀中立而實事求是,唯服理據而杜絕辱罵 | 朱朱的招聘 | 顧曉軍 | 五木森林 | lxls | 國際貨運海運(家具設備食品材料貨品) | Amy Yi
 最新求助: 請問誰知道哪裡有賣理發的電動推子?   忽然有個疑問:戰爭時期,加拿大拿PR卡未入籍的永久居民會被強制服兵役嗎?   這個銀條   如何修改會員名?
 論壇轉跳:
     發帖回帖獲取加西鎊, 兌換精彩禮物

論壇首頁 -> android的星空

ProGuard (發表於9年前)



回復主題  圖片幻燈展示  增添帖子到書簽中  給帖子中的發貼者批量贈送獻花或者花籃    |##| -> |=|        發表新主題
閱讀上一個主題 :: 閱讀下一個主題  
作者 正文
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
    潛力帖子 精華帖子 熱門帖子
    加國計劃要在三年內趕走50萬非臨時居民
    突發:小杜擬新法房東公開租金歷史
    多房暴負:房價要向2017年看齊了
    分析:貸款利率今春下降將連降數年
    離譜!加國這市考慮對房東征雨水稅
    台北的廁所
    德國鐵路罷工潮終於告一段落
    三月的花園:現在可以種植什麼,必...
    莫斯科恐襲 有一點極不尋常且令人震驚
    溫哥華中國簽證中心也要排隊嗎?
    辦個護照竟然要排隊4個小時
    回國倒時差容易,回溫哥華難
    剛找到了車鑰匙!
    以色列戰爭罪
    中國:禁止政府電腦使用 Intel 和 A...
    同號雷達鈔
    今天包粽子 兼和粉紅吵架
    熱烈恭賀錢幣小站新任版主四季豆同學
    北溫換硬幣活動取消
    加拿大唯一無國籍的硬幣
    每周版主推薦,美女精選(二七二)
    美國印第安人1元卷今日發貨
    每周版主推薦,美女精選(二七一)
    電視劇繁花觀後感之阿寶到底喜歡哪...
    每周版主推薦,美女精選(二七零)
    2024 雪中即景
    每周版主推薦,美女精選(二六九)
    每周版主推薦,美女精選(二六八)
    每周版主推薦,美女精選(二六七)
    每周版主推薦,美女精選(二六六)
    中國沒有恐襲
    BC省長宣布:BC將實行永久夏令時 但...
    臥槽 太貴了
    你們回國有很安全的感覺嗎
    除了中國,還有第二個國家買火車票...
    請問為啥Tylor Swift這麼火啊?
    有人今天不做大餐嗎
    挖墳的ID大聚會
    啊呀,豬隊友又惹禍了:劉夢穎親自...
    台灣故宮國寶,法理上的所有權
    國移啊國移
    華人社會的民主真衰,由王局被禁5年...
    各位有沒有想過把房子賣了搬到便宜...
    什麼原因中國的航班不飛溫哥華了?
    有人買大童話的那個北京烤鴨了嗎?...

    最新新聞 熱門新聞 熱評新聞
    馬英九早已被“板上釘釘”(圖)
    華男剛偷渡到美國就被判12年 網上一片叫好:活該!(圖)
    失眠代價這麼大?連續2晚睡眠不足 就感覺老了…(圖)
    “燕子姐姐”陳燕華:遠走美國 ,如今活成這樣(圖)
    清朝滅亡之後的烏蘭巴托,難得一見(圖)
    彭麗媛近期高調露面 她會成為第二個江青嗎?(圖)
    習剛見完美企大老板 國安部就掄起大棒(圖)
    比亞迪要來墨西哥? 美國備下“大棒”(圖)
    CDC提醒全美醫院關注 這種致命細菌感染疾病增加
    “電影中場景”加州警方展開公路追逐 拉開車門傻眼
    咆哮"霸占房屋"的非法移民是逃犯 "抓了又放"的受益者(圖)
    未來5年,美國中產越來越負擔不起這些東西…(圖)
    加州3華人給詐騙組織當跑腿被判重刑!與殺人罪相當(圖)
    大溫適合拍攝春日美景的8個好地方
    勒令沃土海外撤片 王小帥抗爭到底
    想進入美國名校 SAT成績是關鍵!
    德國少將:正分三階段向烏克蘭移交炮彈
    賴清德說出這話,北京定要氣炸(圖)
    女留學生英國被刺遇害 凶手落網
    螞蟻集團退地 周邊房價暴跌(圖)
    利好消息傳來 莫德納股價大漲3.4%
    華春瑩張口亂說?引來外國記者抗議
    這起訴訟或改變加國經紀收的傭金
    這家農場這周六再次免費送農產品
    艾省人口猛增創紀錄 他們來自這裡
    注意:軌道升級世博線預計改道換乘
    掐點領獎!還有19天6400萬彩獎是他
    上百硅谷高管和議員密謀 關系未來
    超美女網紅故意找小三 仙人跳狂騙
    撞橋貨輪與趙安吉有關 疑技術肇禍
    又擲"王炸" 特魯多今天宣布大撒錢
    每月2千退休金 大溫老人仍活不起
    厲害!加國這家中餐館宣布不收小費
    這起訴訟或改變加國經紀收的傭金
    台曝首例小林制藥受害者:70歲婦人吃兩月患腎病
    禁止使用!微信公告:馬上卸載!抖音最新公告(圖)
    加拿大議會一委員會同意調查邱香果及成克定案
    BC發第三份不明財富令 要沒收金條
    小心!列治文頻發公然搶錢包事件
    美國人對TikTok態度轉變 近半支持封禁或強制出售
    與俄羅斯開戰 英國撐不過2個月(圖)
    想進入美國名校 SAT成績是關鍵!
    “訂婚強奸案”彩禮糾紛宣判:女方已退還彩禮...(圖)
    加國GDP增長超過預期加元節節攀升
    英首相:中國是對我們經濟安全最大的國家威脅(圖)

    更多方式閱讀論壇:

    Android: 加西網
    [下載]

    Android: 溫哥華論壇
    [下載]

    PDA版本: 論壇

    加西網微信

    加西網微博


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

    加西網為北美中文網傳媒集團旗下網站

    頁面生成: 0.0491 秒 and 8 DB Queries in 0.0017 秒