{"id":1463,"date":"2017-05-21T15:39:02","date_gmt":"2017-05-21T07:39:02","guid":{"rendered":"http:\/\/www.xttblog.com\/?p=1463"},"modified":"2017-05-21T15:39:02","modified_gmt":"2017-05-21T07:39:02","slug":"android%e7%83%ad%e4%bf%ae%e5%a4%8d%e5%8d%87%e7%ba%a7%e3%80%81%e5%85%bc%e5%ae%b9%e6%80%a7%e9%97%ae%e9%a2%98%e7%9a%84%e6%a0%b9%e6%ba%90","status":"publish","type":"post","link":"https:\/\/www.xttblog.com\/?p=1463","title":{"rendered":"Android\u70ed\u4fee\u590d\u5347\u7ea7\u3001\u517c\u5bb9\u6027\u95ee\u9898\u7684\u6839\u6e90"},"content":{"rendered":"<p>\n\t\u901a\u8fc7\u4e0a\u4e00\u7bc7\u6587\u7ae0\u300a\u300b\uff0c\u6211\u4eec\u5df2\u7ecf\u5bf9 Android \u7684\u70ed\u4fee\u590d\u95ee\u9898\u6709\u4e86\u521d\u6b65\u7684\u8ba4\u77e5\u3002\u672c\u6587\u5c06\u91cd\u70b9\u63a2\u8ba8Android\u70ed\u4fee\u590d\u5347\u7ea7\u5b9e\u8df5\u4e2d\u7684\u517c\u5bb9\u6027\u95ee\u9898\u7684\u6839\u6e90\u3002\n<\/p>\n<p>\n\t\u76ee\u524d\u5e02\u9762\u4e0a\u51e0\u4e4e\u6240\u6709\u7684native\u66ff\u6362\u65b9\u6848\uff0c\u6bd4\u5982Andfix\u548c\u53e6\u4e00\u79cdHook\u6846\u67b6Legend\uff0c\u90fd\u662f\u5199\u6b7b\u4e86ArtMethod\u7ed3\u6784\u4f53\uff0c\u8fd9\u4f1a\u5e26\u6765\u5de8\u5927\u7684\u517c\u5bb9\u6027\u95ee\u9898\u3002\n<\/p>\n<p>\n\t\u4ece\u521a\u624d\u7684\u5206\u6790\u53ef\u4ee5\u770b\u5230\uff0c\u867d\u7136Andfix\u662f\u628a\u5e95\u5c42\u7ed3\u6784\u5f3a\u8f6c\u4e3a\u4e86art::mirror::ArtMethod\uff0c\u4f46\u8fd9\u91cc\u7684art::mirror::ArtMethod\u5e76\u975e\u7b49\u540c\u4e8eapp\u8fd0\u884c\u65f6\u6240\u5728\u8bbe\u5907\u865a\u62df\u673a\u5e95\u5c42\u7684art::mirror::ArtMethod\uff0c\u800c\u662fAndfix\u81ea\u5df1\u6784\u9020\u7684art::mirror::ArtMethod\u3002\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"Andfix\u81ea\u5df1\u6784\u9020\u7684art::mirror::ArtMethod\" src=\"http:\/\/ocuzluml6.bkt.clouddn.com\/20170520183434.png\" style=\"width: 640px;height: 527px\" \/>\n<\/p>\n<p>\n\t\u6211\u4eec\u518d\u6765\u56de\u987e\u4e00\u4e0bAndroid\u5f00\u6e90\u4ee3\u7801\u91cc\u9762art\u865a\u62df\u673a\u91cc\u7684ArtMethod:\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"art\u865a\u62df\u673a\u91cc\u7684ArtMethod\" src=\"http:\/\/ocuzluml6.bkt.clouddn.com\/20170520183458.png\" style=\"width: 640px;height: 383px\" \/>\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"art\u865a\u62df\u673a\u91cc\u7684ArtMethod\" src=\"http:\/\/ocuzluml6.bkt.clouddn.com\/20170520183519.png\" \/>\n<\/p>\n<p>\n\t\u53ef\u4ee5\u770b\u5230\uff0cArtMethod\u7ed3\u6784\u91cc\u7684\u5404\u4e2a\u6210\u5458\u7684\u5927\u5c0f\u662f\u548cAOSP\u5f00\u6e90\u4ee3\u7801\u91cc\u5b8c\u5168\u4e00\u81f4\u7684\u3002\u8fd9\u662f\u7531\u4e8eAndroid\u6e90\u7801\u662f\u516c\u5f00\u7684\uff0cAndfix\u91cc\u9762\u7684\u8fd9\u4e2aArtMethod\u81ea\u7136\u662f\u9075\u7167android\u865a\u62df\u673aart\u6e90\u7801\u91cc\u9762\u7684ArtMethod\u6784\u5efa\u7684\u3002\n<\/p>\n<p>\n\t\u4f46\u662f\uff0c\u7531\u4e8eAndroid\u662f\u5f00\u6e90\u7684\uff0c\u5404\u4e2a\u624b\u673a\u5382\u5546\u90fd\u53ef\u4ee5\u5bf9\u4ee3\u7801\u8fdb\u884c\u6539\u9020\uff0c\u800cAndfix\u91ccArtMethod\u7684\u7ed3\u6784\u662f\u6839\u636e\u516c\u5f00\u7684Android\u6e90\u7801\u4e2d\u7684\u7ed3\u6784\u5199\u6b7b\u7684\u3002\u5982\u679c\u67d0\u4e2a\u5382\u5546\u5bf9\u8fd9\u4e2aArtMethod\u7ed3\u6784\u4f53\u8fdb\u884c\u4e86\u4fee\u6539\uff0c\u5c31\u548c\u539f\u5148\u5f00\u6e90\u4ee3\u7801\u91cc\u7684\u7ed3\u6784\u4e0d\u4e00\u81f4\uff0c\u90a3\u4e48\u5728\u8fd9\u4e2a\u4fee\u6539\u8fc7\u4e86\u7684\u8bbe\u5907\u4e0a\uff0c\u66ff\u6362\u673a\u5236\u5c31\u4f1a\u51fa\u95ee\u9898\u3002\n<\/p>\n<p>\n\t\u6bd4\u5982\uff0c\u5728Andfix\u66ff\u6362declaring_class_\u7684\u5730\u65b9\u3002\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"Andfix\u66ff\u6362declaring_class_\" src=\"http:\/\/ocuzluml6.bkt.clouddn.com\/20170520183542.png\" style=\"width: 640px;height: 22px\" \/>\n<\/p>\n<p>\n\t\u7531\u4e8edeclaring_class_\u662fandfix\u91ccArtMethod\u7684\u7b2c\u4e00\u4e2a\u6210\u5458\uff0c\u56e0\u6b64\u5b83\u548c\u4ee5\u4e0b\u8fd9\u884c\u4ee3\u7801\u7b49\u4ef7\uff1a\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"andfix\u91ccArtMethod\" src=\"http:\/\/ocuzluml6.bkt.clouddn.com\/20170520183606.png\" style=\"width: 640px;height: 23px\" \/>\n<\/p>\n<p>\n\t\u5982\u679c\u624b\u673a\u5382\u5546\u5728ArtMethod\u7ed3\u6784\u4f53\u7684declaring_class_\u524d\u9762\u6dfb\u52a0\u4e86\u4e00\u4e2a\u5b57\u6bb5additional_\uff0c\u90a3\u4e48\uff0cadditional_\u5c31\u6210\u4e3a\u4e86ArtMethod\u7684\u7b2c\u4e00\u4e2a\u6210\u5458\uff0c\u6240\u4ee5smeth + 0\u8fd9\u4e2a\u4f4d\u7f6e\u5728\u8fd9\u53f0\u8bbe\u5907\u4e0a\u5b9e\u9645\u5c31\u53d8\u6210\u4e86additional_\uff0c\u800c\u4e0d\u518d\u662fdeclaring_class_\u5b57\u6bb5\u3002\u6240\u4ee5\u8fd9\u884c\u4ee3\u7801\u7684\u771f\u6b63\u542b\u4e49\u5c31\u53d8\u6210\u4e86\uff1a\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"Android \u70ed\u4fee\u590d\" src=\"http:\/\/ocuzluml6.bkt.clouddn.com\/20170520185751.png\" style=\"width: 640px;height: 23px\" \/>\n<\/p>\n<p>\n\t\u8fd9\u6837\u5c31\u548c\u539f\u5148\u66ff\u6362declaring_class_\u7684\u903b\u8f91\u4e0d\u4e00\u81f4\uff0c\u4ece\u800c\u65e0\u6cd5\u6b63\u5e38\u6267\u884c\u70ed\u4fee\u590d\u903b\u8f91\u3002\n<\/p>\n<p>\n\t\u8fd9\u4e5f\u6b63\u662fAndfix\u4e0d\u652f\u6301\u5f88\u591a\u673a\u578b\u7684\u539f\u56e0\uff0c\u5f88\u5927\u7684\u53ef\u80fd\uff0c\u5c31\u662f\u56e0\u4e3a\u8fd9\u4e9b\u673a\u578b\u4fee\u6539\u4e86\u5e95\u5c42\u7684\u865a\u62df\u673a\u7ed3\u6784\u3002<\/p>\n<!-- <audio autoplay=\"autoplay\" height=\"100\" width=\"100\" hidden=\"true\"><source src=\"https:\/\/c.coka.la\/orAvPR.mp3\" type=\"audio\/mp3\"\/><\/audio><img decoding=\"async\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/ws3.sinaimg.cn\/large\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/> --><p><!-- <img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/>--><img decoding=\"async\" src=\"https:\/\/saas.51autoparts.cn\/api\/admin\/sys-file\/oss\/file?fileName=84db51f8561e448f9a4fda2eff0811f9.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/><\/p><p>\u6700\u540e\uff0c\u6b22\u8fce\u5173\u6ce8\u6211\u7684\u4e2a\u4eba\u5fae\u4fe1\u516c\u4f17\u53f7\uff1a\u4e1a\u4f59\u8349\uff08yyucao\uff09\uff01<b>\u53ef\u52a0\u4f5c\u8005\u5fae\u4fe1\u53f7\uff1a<font color=\"red\">xttblog2<\/font>\u3002\u5907\u6ce8\uff1a\u201c1\u201d\uff0c\u6dfb\u52a0\u535a\u4e3b\u5fae\u4fe1\u62c9\u4f60\u8fdb\u5fae\u4fe1\u7fa4\u3002\u5907\u6ce8\u9519\u8bef\u4e0d\u4f1a\u540c\u610f\u597d\u53cb\u7533\u8bf7\u3002<\/b>\u518d\u6b21\u611f\u8c22\u60a8\u7684\u5173\u6ce8\uff01\u540e\u7eed\u6709\u7cbe\u5f69\u5185\u5bb9\u4f1a\u7b2c\u4e00\u65f6\u95f4\u53d1\u7ed9\u60a8\uff01\u539f\u521b\u6587\u7ae0\u6295\u7a3f\u8bf7\u53d1\u9001\u81f3532009913@qq.com\u90ae\u7bb1\u3002\u5546\u52a1\u5408\u4f5c\u4e5f\u53ef\u6dfb\u52a0\u4f5c\u8005\u5fae\u4fe1\u8fdb\u884c\u8054\u7cfb\uff01<\/p><p>\u672c\u6587\u539f\u6587\u51fa\u5904\uff1a<a href=\"https:\/\/www.xttblog.com\">\u4e1a\u4f59\u8349<\/a>\uff1a &raquo; <a href=\"https:\/\/www.xttblog.com\/?p=1463\">Android\u70ed\u4fee\u590d\u5347\u7ea7\u3001\u517c\u5bb9\u6027\u95ee\u9898\u7684\u6839\u6e90<\/a><\/p><!-- <div class=\"bd-reward-stl\"><button id=\"bdRewardBtn\"><span><\/span><\/button><\/div> -->","protected":false},"excerpt":{"rendered":"<p>\u901a\u8fc7\u4e0a\u4e00\u7bc7\u6587\u7ae0\u300a\u300b\uff0c\u6211\u4eec\u5df2\u7ecf\u5bf9 Android \u7684\u70ed\u4fee\u590d\u95ee\u9898\u6709\u4e86\u521d\u6b65\u7684\u8ba4\u77e5\u3002\u672c\u6587\u5c06\u91cd\u70b9\u63a2\u8ba8Android\u70ed\u4fee\u590d [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[1191,891,1188,1192,1187],"class_list":["post-1463","post","type-post","status-publish","format-standard","hentry","category-java","tag-andfix","tag-android","tag-artmethod","tag-hook","tag-1187"],"_links":{"self":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1463","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1463"}],"version-history":[{"count":1,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1463\/revisions"}],"predecessor-version":[{"id":1464,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1463\/revisions\/1464"}],"wp:attachment":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1463"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1463"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1463"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}