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

首頁

溫哥華資訊

溫哥華地產

溫哥華教育

溫哥華財稅

新移民/招聘

黃頁/二手

旅游
搜索:  

 論壇通告:  請不要上傳第三方有版權的照片,請尊重版權,謝謝   轉載新聞請務必注明出處,這些媒體請不要轉,謝謝   批評商家需要注意  
 個人空間: 羅蓬特機器人 | XY | NotmeL8 | 格局 | lxls | 禪人俗事 | 顧曉軍 | 一襲絳襦落鵬城,疑似玄女下九天 | 豬頭看世界 | 呂洪來的個人空間 | 客觀中立而實事求是,唯服理據而杜絕辱罵 | 白龍王許道長 | 湖裡湖塗 | 天涯逐夢 | My AI Tech Channel | Invisible world | 我的退休生活 | 逸言堂 | 真情Z下海 | 大溫房產和地產研究
 最新求助: 請問誰知道哪裡有賣理發的電動推子?   忽然有個疑問:戰爭時期,加拿大拿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
    潛力帖子 精華帖子 熱門帖子
    完了,加國房東們的災星上台了
    5月2日換幣盛況
    今天扶了個老人進屋
    網民調侃外交部那個義和團巨嬰耍潑...
    音頻: 一中國大爺把小兵短脖粉紅奴...
    昨天是地球日
    周老板純純要錢不要命啊
    研究表明:美國新冠肺炎疫情較大概...
    買張LOTTO MAX想中六千五百萬
    90歲高齡醞釀寫回憶錄 楊尚昆嘔心瀝...
    自由黨也算是贏麻了
    一切都太晚了,不可逆的去美國化浪潮
    CIA 搞什麼鬼?用中文視頻招募中國...
    美國正副國安顧問 同時去職
    加拿大大選能否舞弊?還記得springd...
    維達大師,另類收藏,請您欣賞!
    清代福州台伏鈔票
    四川官錢局鈔票
    大漢四川軍政府軍用銀票
    今年新幣發行計劃
    要出一個新的一元
    古董金幣
    mint三月新幣(四月新幣從22樓起)
    1999 mule 25分
    2025 蛇年敲幣活動
    加拿大新總理馬克卡尼
    我在小紅書被罵窮得沒錢給孩子買衣服
    美國2025年AWQ(美國婦女25c)發行計劃
    韓國空難FDR黑匣子缺失最後四分鍾關...
    又見假幣
    皮爾今天在溫哥華 - 藍色wave - 保...
    幾分鍾前,中國強硬反擊,征34+50,...
    曼谷高樓直接倒了
    我說我希望特朗普贏,老公氣得眼睛...
    知乎?加西網上為什麼有老男人喜歡...
    明明有能力統台,大陸為何遲遲不動手?
    貌似ndp稍占上風。。。。。
    今天是感恩節,跟大家道個別,以後...
    咱最後還是投了ndp
    生平第一次被偷車了
    中國會不會武統台灣
    突發:台灣隊戰勝中國隊奧運奪冠,...
    溫哥華房姐出事了
    有在看總統辯論的嗎?
    退休幾年後的感悟

    最新新聞 熱門新聞 熱評新聞
    張譯公開表示要暫停拍戲,他的人生也太"衰"了
    舒暢曬和楊紫合照,引發回憶殺!(圖
    謝霆鋒王菲親密互動,張柏芝倆兒子在台下啥表情?
    戚薇兒子躲雨近照曝光 不到三歲長發洋氣像李承鉉
    S家又出新星!二女兒登上大S曾登過的雜志封面
    趙露思登音樂節演唱時間遭腰斬 返場安慰粉絲別哭
    李小璐霍思燕姐妹聚會,兩人都素顏對鏡頭比心
    曝中國正考慮公安部長打前站 開啟貿易談判
    唐國強壯麗現身!61歲壯麗穿長裙頭發烏黑濃密
    劉德華妻舅陳志遠身家7.7億美元 熱衷數字8和紅色
    中國掀起小型核反應堆開發潮 供電數據中心
    中國造這一全球領先神器"統一台灣時有大用"
    馬麗《水餃皇後》五一檔票房奪冠?但唯美流水賬不夠震撼
    爭氣的《淮水竹亭》,救不了不爭氣的真人漫改
    廣末涼子宣布全面停工 在家療養
    查爾斯國王這天訪加&發表施政演說
    馬自達五月租賃利息最低可至1.35%*
    美完成公共道路上首例大型無人卡車首例商業性貨運
    H20芯片限制出口後 輝達通知中國客戶將推特制芯片
    華男為保護朋友遭群毆致死 少女凶手認罪
    被殲滅的前線---誰在推移金門海岸
    保守黨議員讓位,博勵治准備補選重返國會
    世界10大「行李失竊高風險」機場 東亞1處上榜
    美國安顧問101天出局有玄機:敗在2位女性3大錯誤
    關稅談判進行時,中日歐各有煩心事
    今天上午7.4級強震可能掀海嘯巨浪
    引發熱議:裸辭後,我花20萬雇機器人替我"打工"
    亞馬遜:將在關稅戰中更強大 為保低價下架部分商品
    主流媒體紛紛對董小姐事件發聲 問題真犀利
    巴基斯坦威脅用核武 中美俄集體出手滅火
    快撐不住了? 中國對美關稅豁免價值400 億美元
    劃算!大溫這連鎖餐廳下周推$5美食
    卡尼勝選後首次講話 幾條消息驚人
    溫村街頭慶典襲擊案 嫌犯今天受審
    今天北上每車都查 大溫入境排長龍
    中國到加拿大貨運量激增50%!專家憂商品變便宜
    1年僅開2月大溫"莫奈花園"周六開放
    卡尼新政府任期開始 五個關鍵日期
    烏鎮"生迪光電"倒閉欠薪 逾千員工抗議有人被抓
    引發熱議:裸辭後,我花20萬雇機器人替我"打工"
    美完成公共道路上首例大型無人卡車首例商業性貨運
    H20芯片限制出口後 輝達通知中國客戶將推特制芯片
    華男為保護朋友遭群毆致死 少女凶手認罪
    巴基斯坦威脅用核武 中美俄集體出手滅火
    被殲滅的前線---誰在推移金門海岸

    更多方式閱讀論壇:

    Android: 加西網
    [下載]

    Android: 溫哥華論壇
    [下載]

    PDA版本: 論壇

    加西網微信

    加西網微博


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

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

    頁面生成: 0.0490 秒 and 5 DB Queries in 0.0019 秒