<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Mobile Game on LCY's Notes</title><link>https://blog.lcy.one/tags/mobile-game/</link><description>Recent content in Mobile Game on LCY's Notes</description><generator>Hugo</generator><language>zh-tw</language><copyright>lcy</copyright><lastBuildDate>Tue, 15 Jan 2019 00:00:00 +0800</lastBuildDate><atom:link href="https://blog.lcy.one/tags/mobile-game/feed.xml" rel="self" type="application/rss+xml"/><item><title>MLTD（ミリシタ）Android 免引繼複製帳號資料</title><link>https://blog.lcy.one/2019/01/15/mltd-share-across-android-devices-without-transfering.html</link><pubDate>Tue, 15 Jan 2019 00:00:00 +0800</pubDate><guid>https://blog.lcy.one/2019/01/15/mltd-share-across-android-devices-without-transfering.html</guid><description>&lt;p&gt;這篇是要介紹如何在不用登入萬代帳號進行引繼的狀況下&lt;br&gt;
將 MLTD（ミリシタ，アイドルマスター ミリオンライブ！ シアターデイズ）的帳號資料從原本的 Android 裝置複製到另一個 Android 裝置&lt;/p&gt;
&lt;p&gt;注意：本篇需要對操作 Android 有一定的熟悉度&lt;/p&gt;</description><content:encoded><![CDATA[<p>這篇是要介紹如何在不用登入萬代帳號進行引繼的狀況下<br>
將 MLTD（ミリシタ，アイドルマスター ミリオンライブ！ シアターデイズ）的帳號資料從原本的 Android 裝置複製到另一個 Android 裝置</p>
<p>注意：本篇需要對操作 Android 有一定的熟悉度</p>
<p>這種方法相對於一般直接引繼有以下優點：</p>
<ul>
<li><del>可以在多個裝置共存帳號</del>
<ul>
<li><del>因為是共用裝置 ID，所以不會讓舊的失效。</del></li>
<li>現在這個已經沒有必要了，現在直接引繼也可以共存的樣子。</li>
</ul>
</li>
<li>免登入萬代帳號
<ul>
<li>像是有些人如我，不是很喜歡在模擬器登入一些帳號。</li>
</ul>
</li>
<li>不用怕引繼轉移機種會把石頭清空
<ul>
<li>因為沒有引繼這個動作，照理來說應該不可能清石頭。</li>
<li>主要是擔心有些模擬器內建的瀏覽器會亂給 UserAgent，導致誤認成 iOS 會清石頭。</li>
</ul>
</li>
</ul>
<p>而缺點當然就是比較麻煩</p>
<hr>
<p>基本上整個流程的目標就是要把舊裝置中的</p>
<pre tabindex="0"><code>com.bandainamcoent.imas_millionlive_theaterdays.v2.playerprefs.xml
</code></pre><p>這個檔案複製到新的裝置上</p>
<hr>
<h2 id="新舊裝置都能拿到-root-權限">新舊裝置都能拿到 root 權限</h2>
<p>如果新舊裝置都能拿到 root 權限<br>
那就很簡單了</p>
<p>在新裝置裝好 MLTD 打開遊戲至少一次後<br>
直接把舊裝置的</p>
<pre tabindex="0"><code>/data/data/com.bandainamcoent.imas_millionlive_theaterdays/shared_prefs/com.bandainamcoent.imas_millionlive_theaterdays.v2.playerprefs.xml
</code></pre><p>直接複製到新裝置的同一個位置<br>
完成</p>
<hr>
<h2 id="新裝置拿不到-root-權限">新裝置拿不到 root 權限</h2>
<p>如果新裝置拿不到 root 權限<br>
那就用 adb backup + adb restore 解決</p>
<p>不過由於 MLTD 遊戲的檔案數量龐大<br>
非常花時間 而且很容易失敗<br>
可以考慮在舊裝置本身清完資料直接重新引繼<br>
在最乾淨的狀態下 adb backup + adb restore</p>
<p>或是用 android-backup-extractor 把備份檔拆開<br>
僅留下 <code>sp</code> 資料夾裡的 <code>com.bandainamcoent.imas_millionlive_theaterdays.v2.playerprefs.xml</code><br>
後再封回去<br>
不過這種方法我沒試過<br>
不確定可行性</p>
<hr>
<h2 id="只有新裝置都能拿到-root-權限">只有新裝置都能拿到 root 權限</h2>
<p>如果新裝置能拿到 root 權限<br>
但是舊裝置拿不到</p>
<p>那就先用 adb backup 把 <code>com.bandainamcoent.imas_millionlive_theaterdays</code> 這個 app 備份起來</p>
<p>再用 android-backup-extractor 把備份檔拆開<br>
可以在 <code>sp</code> 資料夾裡找到 <code>com.bandainamcoent.imas_millionlive_theaterdays.v2.playerprefs.xml</code></p>
<p>再來就可以直接把這檔案丟進新裝置的<br>
<code>/data/data/com.bandainamcoent.imas_millionlive_theaterdays/shared_prefs</code> 資料夾裡了（新裝置要開過遊戲至少一次）</p>
<hr>
<h2 id="參考資料">參考資料</h2>
<ul>
<li><a href="https://sourceforge.net/projects/adbextractor/">android-backup-extractor</a></li>
<li><a href="https://android.googlesource.com/platform/frameworks/base/&#43;/4a627c71ff53a4fca1f961f4b1dcc0461df18a06">Full local backup infrastructure – Git repositories on android</a></li>
</ul>]]></content:encoded></item></channel></rss>