Android代碼混淆那些事
發表時間:2020-11-5
發布人:葵宇科技
浏覽次數:52
代碼殽純的傳染感動(dòng)便出有朔慫〖怯辣吃(chī)百度MapDemo做為例子(zǐ)道一下(xià)代碼殽純兇
那是那感肖承δ當ツ倒緻表爛ψ
[img]http://img.blog.csdn.net/20141231150341281?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvU291bE9mQW5kcm9pZA==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center
多少(shǎo)1)出有殽純apk反編譯以後的環境兇
[img]http://img.blog.csdn.net/20141231150515436?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvU291bE9mQW5kcm9pZA==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center
陳細稻每個(gè)包下(xià)的環境兇
[img]http://img.blog.csdn.net/20141231150614700?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvU291bE9mQW5kcm9pZA==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center [img]http://img.blog.csdn.net/20141231150710470?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvU291bE9mQW5kcm9pZA==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center [img]http://img.blog.csdn.net/20141231150738332?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvU291bE9mQW5kcm9pZA==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center
可(kě)能看出來殽純的隻是第三圓的jar包,那拼蟾缁有勢兌們殽純的,而是第三圓的jar包自帶的殽純。
多少(shǎo)2)鈉兌們便初步殽純兇
分兩步走兇
(|) 第一步脅黏卑project.properties
[img]http://img.blog.csdn.net/20141231151607813?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvU291bE9mQW5kcm9pZA==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center
本本那個(gè)文(wén)取是多麼的兇
[img]http://img.blog.csdn.net/20141231151909132?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvU291bE9mQW5kcm9pZA==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center
看到第11行了伴,把第11行前裡的#來得降降。
變成了多麼兇
[img]http://img.blog.csdn.net/20141231152147239?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvU291bE9mQW5kcm9pZA==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center
到了那酪們的來是已殽純了。殽純的膠匣有雅是多麼的兇
[img]http://img.blog.csdn.net/20141231153651703?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvU291bE9mQW5kcm9pZA==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center
可(kě)能看到android.support.v4 被殽純多少(shǎo)本本沒左瑟弄殽宰蟛沒必要),第三圓jar包殽純多少(shǎo)本自兇家自兇已殽純,而後你(nǐ)逢盡行了殽純)。
要辦理膳春沔的紊便必需自兇指定那些東西殽純那些器(qì)欣锘有來殽純,來郝兇
正在proguard-project中(zhōng)加加兇
-libraryjars libs/百度mapapi_v3_2_0.jar -dontwarn com.百度.mapapi.** -dontwarn com.百度.platform.** -dontwarn com.百度.location.** -dontwarn com.百度.vi.** -dontwarn vi.com.gdi.bgl.android.** -dontwarn com.百度.lbsapi.** -dontwarn com.百度.android.** -dontwarn android.support.v4.** -keep class com.百度.mapapi.** {*; } -keep class com.百度.platform.** {*; } -keep class com.百度.location.** {*; } -keep class com.百度.vi.** {*; } -keep class com.百度.lbsapi.** {*; } -keep class vi.com.gdi.bgl.android.** {*; } -keep class com.百度.android.** {*; } -keep class android.support.v4.** {*; } -keep interface android.support.v4.app.** { *; }陳細的露頁枭能好考兇
http://www.cnblogs.com/sw926/p/3314165.html
寄看代碼殽苑昊實鄰你(nǐ)apk簽名的時辰才會實行,你(nǐ)正在平常調試的時辰是出湧實行殽純的。