{"id":179742,"date":"2024-11-09T04:25:34","date_gmt":"2024-11-08T20:25:34","guid":{"rendered":"https:\/\/server.hk\/cnblog\/179742\/"},"modified":"2024-11-09T04:25:35","modified_gmt":"2024-11-08T20:25:35","slug":"%e5%a6%82%e4%bd%95%e5%9c%a8%e5%ae%89%e5%8d%93%e6%89%8b%e6%a9%9f%e4%b8%8a%e6%8b%b7%e8%b2%9d%e6%95%b8%e6%93%9a%e5%ba%ab%ef%bc%9f-%e5%ae%89%e5%8d%93%e6%89%8b%e6%a9%9f-%e6%8b%b7%e6%95%b8%e6%93%9a","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/179742\/","title":{"rendered":"\u5982\u4f55\u5728\u5b89\u5353\u624b\u6a5f\u4e0a\u62f7\u8c9d\u6578\u64da\u5eab\uff1f (\u5b89\u5353\u624b\u6a5f \u62f7\u6578\u64da\u5eab)"},"content":{"rendered":"<h1 id=\"%e5%a6%82%e4%bd%95%e5%9c%a8%e5%ae%89%e5%8d%93%e6%89%8b%e6%a9%9f%e4%b8%8a%e6%8b%b7%e8%b2%9d%e6%95%b8%e6%93%9a%e5%ba%ab%ef%bc%9f-gHCDZcRsWC\">\u5982\u4f55\u5728\u5b89\u5353\u624b\u6a5f\u4e0a\u62f7\u8c9d\u6578\u64da\u5eab\uff1f<\/h1>\n<p>\u5728\u73fe\u4eca\u7684\u6578\u4f4d\u6642\u4ee3\uff0c\u6578\u64da\u5eab\u7684\u7ba1\u7406\u8207\u5099\u4efd\u8b8a\u5f97\u8d8a\u4f86\u8d8a\u91cd\u8981\u3002\u5c0d\u65bc\u958b\u767c\u8005\u4f86\u8aaa\uff0c\u5c24\u5176\u662f\u5728\u5b89\u5353\u624b\u6a5f\u4e0a\uff0c\u80fd\u5920\u6709\u6548\u5730\u62f7\u8c9d\u6578\u64da\u5eab\u662f\u78ba\u4fdd\u61c9\u7528\u7a0b\u5e8f\u6b63\u5e38\u904b\u884c\u7684\u95dc\u9375\u3002\u672c\u6587\u5c07\u4ecb\u7d39\u5982\u4f55\u5728\u5b89\u5353\u624b\u6a5f\u4e0a\u62f7\u8c9d\u6578\u64da\u5eab\u7684\u6b65\u9a5f\u548c\u65b9\u6cd5\u3002<\/p>\n<h2 id=\"%e6%95%b8%e6%93%9a%e5%ba%ab%e7%9a%84%e5%9f%ba%e6%9c%ac%e6%a6%82%e5%bf%b5-gHCDZcRsWC\">\u6578\u64da\u5eab\u7684\u57fa\u672c\u6982\u5ff5<\/h2>\n<p>\u6578\u64da\u5eab\u662f\u4e00\u7a2e\u6709\u7d44\u7e54\u7684\u6578\u64da\u96c6\u5408\uff0c\u901a\u5e38\u7528\u65bc\u5b58\u5132\u548c\u7ba1\u7406\u61c9\u7528\u7a0b\u5e8f\u7684\u6578\u64da\u3002\u5728\u5b89\u5353\u958b\u767c\u4e2d\uff0cSQLite\u662f\u6700\u5e38\u7528\u7684\u6578\u64da\u5eab\u7cfb\u7d71\u3002\u5b83\u662f\u4e00\u500b\u8f15\u91cf\u7d1a\u7684\u95dc\u806f\u6578\u64da\u5eab\uff0c\u9069\u5408\u5728\u79fb\u52d5\u8a2d\u5099\u4e0a\u4f7f\u7528\u3002<\/p>\n<h2 id=\"%e7%82%ba%e4%bb%80%e9%ba%bc%e9%9c%80%e8%a6%81%e6%8b%b7%e8%b2%9d%e6%95%b8%e6%93%9a%e5%ba%ab%ef%bc%9f-gHCDZcRsWC\">\u70ba\u4ec0\u9ebc\u9700\u8981\u62f7\u8c9d\u6578\u64da\u5eab\uff1f<\/h2>\n<ul>\n<li><strong>\u6578\u64da\u5099\u4efd\uff1a<\/strong>\u5b9a\u671f\u5099\u4efd\u6578\u64da\u5eab\u53ef\u4ee5\u9632\u6b62\u6578\u64da\u4e1f\u5931\u3002<\/li>\n<li><strong>\u6578\u64da\u9077\u79fb\uff1a<\/strong>\u5728\u4e0d\u540c\u8a2d\u5099\u4e4b\u9593\u9077\u79fb\u6578\u64da\u6642\uff0c\u9700\u8981\u62f7\u8c9d\u6578\u64da\u5eab\u3002<\/li>\n<li><strong>\u6e2c\u8a66\u8207\u958b\u767c\uff1a<\/strong>\u5728\u958b\u767c\u904e\u7a0b\u4e2d\uff0c\u958b\u767c\u8005\u53ef\u80fd\u9700\u8981\u5728\u4e0d\u540c\u7684\u74b0\u5883\u4e2d\u6e2c\u8a66\u6578\u64da\u5eab\u3002<\/li>\n<\/ul>\n<h2 id=\"%e6%8b%b7%e8%b2%9d%e6%95%b8%e6%93%9a%e5%ba%ab%e7%9a%84%e6%ad%a5%e9%a9%9f-gHCDZcRsWC\">\u62f7\u8c9d\u6578\u64da\u5eab\u7684\u6b65\u9a5f<\/h2>\n<h3 id=\"%e6%ad%a5%e9%a9%9f%e4%b8%80%ef%bc%9a%e6%ba%96%e5%82%99%e5%b7%a5%e4%bd%9c-gHCDZcRsWC\">\u6b65\u9a5f\u4e00\uff1a\u6e96\u5099\u5de5\u4f5c<\/h3>\n<p>\u5728\u958b\u59cb\u4e4b\u524d\uff0c\u78ba\u4fdd\u4f60\u7684\u5b89\u5353\u8a2d\u5099\u5df2\u7d93\u958b\u555f\u4e86USB\u8abf\u8a66\u6a21\u5f0f\u3002\u9019\u53ef\u4ee5\u5728\u300c\u8a2d\u7f6e\u300d-&gt;\u300c\u95dc\u65bc\u624b\u6a5f\u300d\u4e2d\u9023\u7e8c\u9ede\u64ca\u300c\u7248\u672c\u865f\u300d\u5e7e\u6b21\uff0c\u7136\u5f8c\u8fd4\u56de\u300c\u8a2d\u7f6e\u300d-&gt;\u300c\u958b\u767c\u8005\u9078\u9805\u300d\u4e2d\u555f\u7528USB\u8abf\u8a66\u3002<\/p>\n<h3 id=\"%e6%ad%a5%e9%a9%9f%e4%ba%8c%ef%bc%9a%e4%bd%bf%e7%94%a8adb%e5%b7%a5%e5%85%b7-gHCDZcRsWC\">\u6b65\u9a5f\u4e8c\uff1a\u4f7f\u7528ADB\u5de5\u5177<\/h3>\n<p>Android Debug Bridge\uff08ADB\uff09\u662f\u4e00\u500b\u5f37\u5927\u7684\u547d\u4ee4\u884c\u5de5\u5177\uff0c\u53ef\u4ee5\u5e6b\u52a9\u958b\u767c\u8005\u8207\u5b89\u5353\u8a2d\u5099\u9032\u884c\u4ea4\u4e92\u3002\u4ee5\u4e0b\u662f\u4f7f\u7528ADB\u62f7\u8c9d\u6578\u64da\u5eab\u7684\u6b65\u9a5f\uff1a<\/p>\n<pre><code>1. \u4e0b\u8f09\u4e26\u5b89\u88ddAndroid SDK Platform Tools\u3002\n2. \u5c07\u5b89\u5353\u8a2d\u5099\u901a\u904eUSB\u9023\u63a5\u5230\u96fb\u8166\u3002\n3. \u6253\u958b\u547d\u4ee4\u63d0\u793a\u7b26\u6216\u7d42\u7aef\uff0c\u8f38\u5165\u4ee5\u4e0b\u547d\u4ee4\u4ee5\u78ba\u8a8d\u8a2d\u5099\u5df2\u9023\u63a5\uff1a\n   adb devices\n4. \u78ba\u8a8d\u8a2d\u5099\u5f8c\uff0c\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u62f7\u8c9d\u6578\u64da\u5eab\uff1a\n   adb pull \/data\/data\/\u4f60\u7684\u61c9\u7528\u5305\u540d\/databases\/\u4f60\u7684\u6578\u64da\u5eab\u540d.db \/\u4f60\u7684\u76ee\u6a19\u8def\u5f91\/<\/code><\/pre>\n<p>\u4f8b\u5982\uff0c\u5982\u679c\u4f60\u7684\u61c9\u7528\u5305\u540d\u662fcom.example.app\uff0c\u6578\u64da\u5eab\u540d\u662fmydatabase.db\uff0c\u76ee\u6a19\u8def\u5f91\u662fC:backup\uff0c\u5247\u547d\u4ee4\u70ba\uff1a<\/p>\n<pre><code>adb pull \/data\/data\/com.example.app\/databases\/mydatabase.db C:backup<\/code><\/pre>\n<h3 id=\"%e6%ad%a5%e9%a9%9f%e4%b8%89%ef%bc%9a%e6%aa%a2%e6%9f%a5%e6%8b%b7%e8%b2%9d%e7%b5%90%e6%9e%9c-gHCDZcRsWC\">\u6b65\u9a5f\u4e09\uff1a\u6aa2\u67e5\u62f7\u8c9d\u7d50\u679c<\/h3>\n<p>\u5b8c\u6210\u62f7\u8c9d\u5f8c\uff0c\u6aa2\u67e5\u76ee\u6a19\u8def\u5f91\u4e0b\u662f\u5426\u5b58\u5728\u6578\u64da\u5eab\u6587\u4ef6\u3002\u5982\u679c\u6587\u4ef6\u5b58\u5728\uff0c\u5247\u8868\u793a\u62f7\u8c9d\u6210\u529f\u3002<\/p>\n<h2 id=\"%e6%b3%a8%e6%84%8f%e4%ba%8b%e9%a0%85-gHCDZcRsWC\">\u6ce8\u610f\u4e8b\u9805<\/h2>\n<ul>\n<li>\u78ba\u4fdd\u4f60\u7684\u61c9\u7528\u7a0b\u5e8f\u5df2\u7d93\u7372\u5f97\u4e86\u8b80\u53d6\u548c\u5beb\u5165\u6578\u64da\u5eab\u7684\u6b0a\u9650\u3002<\/li>\n<li>\u5728\u62f7\u8c9d\u6578\u64da\u5eab\u4e4b\u524d\uff0c\u6700\u597d\u5148\u95dc\u9589\u61c9\u7528\u7a0b\u5e8f\uff0c\u4ee5\u907f\u514d\u6578\u64da\u640d\u58de\u3002<\/li>\n<li>\u5982\u679c\u4f60\u7684\u8a2d\u5099\u672a\u7372\u5f97root\u6b0a\u9650\uff0c\u5247\u7121\u6cd5\u76f4\u63a5\u8a2a\u554f\/data\/data\u76ee\u9304\u3002<\/li>\n<\/ul>\n<h2 id=\"%e7%b8%bd%e7%b5%90-gHCDZcRsWC\">\u7e3d\u7d50<\/h2>\n<p>\u5728\u5b89\u5353\u624b\u6a5f\u4e0a\u62f7\u8c9d\u6578\u64da\u5eab\u662f\u4e00\u500b\u76f8\u5c0d\u7c21\u55ae\u7684\u904e\u7a0b\uff0c\u53ea\u9700\u4f7f\u7528ADB\u5de5\u5177\u5373\u53ef\u8f15\u9b06\u5b8c\u6210\u3002\u9019\u4e0d\u50c5\u6709\u52a9\u65bc\u6578\u64da\u5099\u4efd\uff0c\u9084\u80fd\u5728\u958b\u767c\u548c\u6e2c\u8a66\u904e\u7a0b\u4e2d\u63d0\u4f9b\u4fbf\u5229\u3002\u5c0d\u65bc\u9700\u8981\u7a69\u5b9a\u548c\u9ad8\u6548\u6578\u64da\u7ba1\u7406\u7684\u7528\u6236\uff0c\u9078\u64c7\u5408\u9069\u7684\u670d\u52d9\u5668\u548c\u6578\u64da\u5eab\u89e3\u6c7a\u65b9\u6848\u81f3\u95dc\u91cd\u8981\u3002\u82e5\u60a8\u5c0d\u65bc<em><a href=\"https:\/\/server.hk\">VPS<\/a><\/em>\u3001<em><a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a><\/em>\u6216\u5176\u4ed6<em><a href=\"https:\/\/server.hk\">\u4f3a\u670d\u5668<\/a><\/em>\u89e3\u6c7a\u65b9\u6848\u611f\u8208\u8da3\uff0c\u8acb\u8a2a\u554f\u6211\u5011\u7684\u7db2\u7ad9\u4ee5\u7372\u53d6\u66f4\u591a\u4fe1\u606f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5b78\u7fd2\u5982\u4f55\u5728\u5b89\u5353\u624b\u6a5f\u4e0a\u8f15\u9b06\u62f7\u8c9d\u6578\u64da\u5eab\uff0c\u638c\u63e1\u6578\u64da\u5099\u4efd\u8207\u8f49\u79fb\u7684\u6280\u5de7\uff0c\u78ba\u4fdd\u8cc7\u6599\u5b89\u5168\u7121\u865e\u3002<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[101],"tags":[],"class_list":["post-179742","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/179742","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=179742"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/179742\/revisions"}],"predecessor-version":[{"id":179743,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/179742\/revisions\/179743"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=179742"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=179742"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=179742"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}