<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>itunes &#8211; Gary&#039;s &#8230;Lasamia</title>
	<atom:link href="https://garynil.tw/tag/itunes/feed/" rel="self" type="application/rss+xml" />
	<link>https://garynil.tw</link>
	<description>🍎 📱 🖥 🔨 😄</description>
	<lastBuildDate>Wed, 23 Jan 2019 17:45:55 +0000</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.3</generator>

<image>
	<url>https://i0.wp.com/garynil.tw/wp-content/uploads/2017/01/cropped-Gary_v3.0.jpg?fit=32%2C32&#038;ssl=1</url>
	<title>itunes &#8211; Gary&#039;s &#8230;Lasamia</title>
	<link>https://garynil.tw</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">147732124</site>	<item>
		<title>[知識] iOS 中一些重要路徑</title>
		<link>https://garynil.tw/2018/04/732/ios-%e4%b8%ad%e4%b8%80%e4%ba%9b%e9%87%8d%e8%a6%81%e8%b7%af%e5%be%91/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=ios-%25e4%25b8%25ad%25e4%25b8%2580%25e4%25ba%259b%25e9%2587%258d%25e8%25a6%2581%25e8%25b7%25af%25e5%25be%2591</link>
					<comments>https://garynil.tw/2018/04/732/ios-%e4%b8%ad%e4%b8%80%e4%ba%9b%e9%87%8d%e8%a6%81%e8%b7%af%e5%be%91/#respond</comments>
		
		<dc:creator><![CDATA[Gary]]></dc:creator>
		<pubDate>Sat, 28 Apr 2018 10:21:24 +0000</pubDate>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Dev]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[App]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[callhistory]]></category>
		<category><![CDATA[Cydia]]></category>
		<category><![CDATA[db]]></category>
		<category><![CDATA[Health]]></category>
		<category><![CDATA[home]]></category>
		<category><![CDATA[itunes]]></category>
		<category><![CDATA[mobile document]]></category>
		<category><![CDATA[path]]></category>
		<category><![CDATA[reset]]></category>
		<category><![CDATA[resotre]]></category>
		<category><![CDATA[scheme]]></category>
		<category><![CDATA[sms]]></category>
		<category><![CDATA[url]]></category>
		<category><![CDATA[備份]]></category>
		<category><![CDATA[備份檔]]></category>
		<category><![CDATA[路徑]]></category>
		<category><![CDATA[還原]]></category>
		<category><![CDATA[重置]]></category>
		<category><![CDATA[重要路徑]]></category>
		<guid isPermaLink="false">https://garynil.tw/?p=732</guid>

					<description><![CDATA[<p>因為自己 iPhone 從上次備份還原後，iCloud 設定頁面登出按了就是沒反應，加上一堆系統不乾淨造成的神秘 bug，在這次重置 iPhone 時，透過提取 iTunes 備份檔手動還原各種 App (含系統層級的 App) 至 iPhone 上，也順便寫了這篇記錄一下 iOS 中常用到的路徑 那為什麼要這樣做呢？因為這些檔案往往是僅能透過 iTunes 備份而 iCloud 不備份的紀錄，如果今天你的 iTunes 前次備份很髒亂，就會想這樣手動還原了。 而通常可以如此方式瀏覽 iPhone 根目錄及各個系統層檔案夾往往是透過 Apple File Conduit 2、SSH、iFile、Filza 或者 FilzaJailed，當然一切大前提下都是越獄後的成果。 以 iOS 11.3.1 測試： 系統相關 一般系統 App 相關 往往都是在這資料夾下層： [crayon-6a783...</p>
<p>這篇文章 <a rel="nofollow" href="https://garynil.tw/2018/04/732/ios-%e4%b8%ad%e4%b8%80%e4%ba%9b%e9%87%8d%e8%a6%81%e8%b7%af%e5%be%91/">[知識] iOS 中一些重要路徑</a> 最早出現於 <a rel="nofollow" href="https://garynil.tw">Gary&#039;s ...Lasamia</a>。</p>
]]></description>
										<content:encoded><![CDATA[<p>因為自己 iPhone 從上次備份還原後，iCloud 設定頁面登出按了就是沒反應，加上一堆系統不乾淨造成的神秘 bug，在這次重置 iPhone 時，透過提取 iTunes 備份檔手動還原各種 App (含系統層級的 App) 至 iPhone 上，也順便寫了這篇記錄一下 iOS 中常用到的路徑</p>
<p>那為什麼要這樣做呢？因為這些檔案往往是僅能透過 iTunes 備份而 iCloud 不備份的紀錄，如果今天你的 iTunes 前次備份很髒亂，就會想這樣手動還原了。<br />
而通常可以如此方式瀏覽 iPhone 根目錄及各個系統層檔案夾往往是透過 <a href="https://cydia.saurik.com/package/com.saurik.afc2d/">Apple File Conduit 2</a>、SSH、iFile、Filza 或者 FilzaJailed，當然一切大前提下都是越獄後的成果。</p>
<p><span id="more-732"></span></p>
<p>以 iOS 11.3.1 測試：</p>
<h1>系統相關</h1>
<h2>一般系統 App 相關</h2>
<p>往往都是在這資料夾下層：</p>
<p></p><pre class="urvanov-syntax-highlighter-plain-tag">/var/mobile/Library</pre><p></p>
<h2>通話記錄 CallHistory</h2>
<p></p><pre class="urvanov-syntax-highlighter-plain-tag">/var/wireless/Library/CallHistory</pre><p></p>
<h2>iMessage 及簡訊</h2>
<p></p><pre class="urvanov-syntax-highlighter-plain-tag">/var/mobile/Library/SMS</pre><p></p>
<h2>Health Kit 資料 (備份需加密)</h2>
<p></p><pre class="urvanov-syntax-highlighter-plain-tag">/var/mobile/Library/Health</pre><p></p>
<h2>Home Kit 設定</h2>
<p></p><pre class="urvanov-syntax-highlighter-plain-tag">/var/mobile/Library/homed</pre><p></p>
<h2>iCloud Drive</h2>
<p></p><pre class="urvanov-syntax-highlighter-plain-tag">/var/mobile/Library/Mobile Documents</pre><p></p>
<h2>Safari 相關</h2>
<p></p><pre class="urvanov-syntax-highlighter-plain-tag">/var/mobile/Library/Safari</pre><p></p>
<h2>Watch OS 備份</h2>
<p>其實只是幾個 plist 設定，非常輕量</p>
<p></p><pre class="urvanov-syntax-highlighter-plain-tag">/var/mobile/Library/NanoBackup</pre><p></p>
<p>將整個資料夾覆蓋後改至對應的權限即可</p>
<h2>一般權限下可瀏覽的 User Folder</h2>
<p></p><pre class="urvanov-syntax-highlighter-plain-tag">/var/mobile/Media/</pre><p></p>
<p><a href="//i1.wp.com/lh6.googleusercontent.com/7_TV_RvMzQ2Ou4r9eVYamLSav6LWM1JfnMJptHW2y9dS0DLRooyp4pQ8DUY" data-featherlight="image" ><img decoding="async" alt="" src="//i1.wp.com/lh6.googleusercontent.com/7_TV_RvMzQ2Ou4r9eVYamLSav6LWM1JfnMJptHW2y9dS0DLRooyp4pQ8DUY"></a></p>
<h1>媒體類</h1>
<h2>相機膠卷</h2>
<p></p><pre class="urvanov-syntax-highlighter-plain-tag">/var/mobile/Media/DCIM 及 /var/mobile/Media/PhotoData</pre><p></p>
<p>非常肥大的兩個地方XD</p>
<h2>語音備忘錄</h2>
<p></p><pre class="urvanov-syntax-highlighter-plain-tag">/var/mobile/Media/Recordings</pre><p></p>
<h1>一般 App 記錄檔</h1>
<p>從 iOS 8 之後就更改至這新位置囉，不過我目前還是沒研究出怎麼從 hash 名稱資料夾找出對應 App 的方法</p>
<p></p><pre class="urvanov-syntax-highlighter-plain-tag">/var/mobile/Containers/Data/Application</pre><p></p>
<p>想看進一步教學可以察看：<a href="https://garynil.tw/2018/04/734/教學-ios-手動轉移-walkr-紀錄-備份還原-app/">[教學] iOS 手動轉移 Walkr 紀錄及 Line 簡訊 (備份還原 App)</a></p>
<h2>AppGroups</h2>
<p></p><pre class="urvanov-syntax-highlighter-plain-tag">/var/mobile/Containers/Shared/AppGroup</pre><p></p>
<h1>Cydia 相關</h1>
<h2>Tweak 設定</h2>
<p></p><pre class="urvanov-syntax-highlighter-plain-tag">/var/mobile/Library/Preferences</pre><p></p>
<h2>Dylib Path</h2>
<p></p><pre class="urvanov-syntax-highlighter-plain-tag">/Library/MobileSubstrate/DynamicLibraries/</pre><p></p>
<h2>Deb path (Electra JB)</h2>
<p>而 Cydia 安裝 Packages 後其實會將 deb 下載至一個暫存路徑再進行安裝：</p>
<p></p><pre class="urvanov-syntax-highlighter-plain-tag">/var/mobile/Library/Caches/com.saurik.Cydia/archives/</pre><p></p>
<h2>Cydia 設定 (包含軟體源)</h2>
<p></p><pre class="urvanov-syntax-highlighter-plain-tag">/var/mobile/Library/Preferences/com.saurik.Cydia.plist</pre><p></p>
<h1>還原步驟</h1>
<p>大概把以上這些備份起來，再加上其他 App 的資料就可以構成一個蠻完整的備份了 (你還可以擺脫噁心的系統垃圾和 bug。)<br />
那從 iTunes 備份提取這些資料 (可透過 <a href="https://imazing.com">iMazing</a> 之類的 App 或者直接檢視 <code>~/Library/Application\ Support/MobileSync/Backup/</code> 來獲取) 之後，該如何還原呢？</p>
<p>1.提取資料<br />
2.透過 ssh 等有寫入權限的方式還原至手機上的對應資料夾<br />
3.將還原後的資料夾更改至正確的權限 ( 755 及 mobile )，例如這個範例是 <code>/var/mobile/Media/DCIM/</code></p>
<p></p><pre class="urvanov-syntax-highlighter-plain-tag">chmod 755 /var/mobile/Media/DCIM/
chown -R mobile:mobile /var/mobile/Media/DCIM/</pre><p></p>
<p>4.如果有遇到擁有 db 資料庫類的資料，記得刪除 .db-shm 跟 .db-wal 的快取檔案 (可參考：皮樂姐姐的<a href="https://hiraku.tw/2013/12/3310/">文章</a><br />
5. iMessage 需要 reboot，其他都可以直接關閉 App （後台）重開就可以生效了</p>
<p>另外 Respring 的指令是：</p>
<p></p><pre class="urvanov-syntax-highlighter-plain-tag">killall -9 SpringBoard</pre><p></p>
<p>本篇僅供學術研究使用(疑?)</p>
<p>這篇文章 <a rel="nofollow" href="https://garynil.tw/2018/04/732/ios-%e4%b8%ad%e4%b8%80%e4%ba%9b%e9%87%8d%e8%a6%81%e8%b7%af%e5%be%91/">[知識] iOS 中一些重要路徑</a> 最早出現於 <a rel="nofollow" href="https://garynil.tw">Gary&#039;s ...Lasamia</a>。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://garynil.tw/2018/04/732/ios-%e4%b8%ad%e4%b8%80%e4%ba%9b%e9%87%8d%e8%a6%81%e8%b7%af%e5%be%91/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">732</post-id>	</item>
		<item>
		<title>Stylish &#8211; 恢復 iOS App 網頁版 view in iTunes 按鈕</title>
		<link>https://garynil.tw/2017/10/449/stylish-%e6%81%a2%e5%be%a9-ios-app-%e7%b6%b2%e9%a0%81%e7%89%88-view-itunes-%e6%8c%89%e9%88%95/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=stylish-%25e6%2581%25a2%25e5%25be%25a9-ios-app-%25e7%25b6%25b2%25e9%25a0%2581%25e7%2589%2588-view-itunes-%25e6%258c%2589%25e9%2588%2595</link>
					<comments>https://garynil.tw/2017/10/449/stylish-%e6%81%a2%e5%be%a9-ios-app-%e7%b6%b2%e9%a0%81%e7%89%88-view-itunes-%e6%8c%89%e9%88%95/#comments</comments>
		
		<dc:creator><![CDATA[Gary]]></dc:creator>
		<pubDate>Sun, 08 Oct 2017 05:53:11 +0000</pubDate>
				<category><![CDATA[OSX]]></category>
		<category><![CDATA[App]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[itunes]]></category>
		<category><![CDATA[itunestore]]></category>
		<guid isPermaLink="false">https://garynil.tw/?p=449</guid>

					<description><![CDATA[<p>因為偉哉 Apple 新政策，於 iTunes 12.7 把所有 iOS Apps 相關功能及 App 商店頁面刪除了。透過皮樂姐姐的 iTunes 降級教學可以將 iTunes 降級到 12.6 並恢復這些功能。但偉大的 Apple 這幾天又將他們 iOS App 網頁版的 view in iTunes 的按鈕拔除了.. 例如 CPU Identifier 的頁面，原本應該是長這樣： 但這幾天 Apple 把 view in iTunes 的按鈕拔掉了，也就是你只能透過緩慢的 iTunes 內建 iOS App Store 去搜尋並下載 app.. 便研究了一下改動及做出了解決方案： 解決方法 步驟一：安裝瀏覽器外掛 Stylish Stylish 所提供功能主要是讓使用者可以使用自訂的 CSS 方法來取代網站原始的 CSS 設計，並可以達到改變網站樣式及設計的效用。而如果不懂 CSS ...</p>
<p>這篇文章 <a rel="nofollow" href="https://garynil.tw/2017/10/449/stylish-%e6%81%a2%e5%be%a9-ios-app-%e7%b6%b2%e9%a0%81%e7%89%88-view-itunes-%e6%8c%89%e9%88%95/">Stylish &#8211; 恢復 iOS App 網頁版 view in iTunes 按鈕</a> 最早出現於 <a rel="nofollow" href="https://garynil.tw">Gary&#039;s ...Lasamia</a>。</p>
]]></description>
										<content:encoded><![CDATA[<p>因為偉哉 Apple 新政策，於 iTunes 12.7 把所有 iOS Apps 相關功能及 App 商店頁面刪除了。透過<a href="https://hiraku.tw/2017/09/4661/">皮樂姐姐的 iTunes 降級教學</a>可以將 iTunes 降級到 12.6 並恢復這些功能。但偉大的 Apple 這幾天又將他們 iOS App 網頁版的 <strong>view in iTunes</strong> 的按鈕拔除了..<br />
例如 <a href="https://itunes.apple.com/tw/app/cpu-identifier/id1045029477?l=zh&amp;mt=8">CPU Identifier</a> 的頁面，原本應該是長這樣：</p>
<p><a title="螢幕快照_2017-10-08_上午1_19_51" href="https://www.flickr.com/photos/134033268@N03/37305289240/in/dateposted-public/" data-flickr-embed="true"><img data-recalc-dims="1" fetchpriority="high" decoding="async" src="https://i0.wp.com/farm5.staticflickr.com/4500/37305289240_d63f3d0bb2_b.jpg?resize=700%2C504&#038;ssl=1" alt="iTunes" width="700" height="504" /></a><script async src="//embedr.flickr.com/assets/client-code.js" charset="utf-8"></script><br />
<span id="more-449"></span></p>
<p>但這幾天 Apple 把 <strong>view in iTunes</strong> 的按鈕拔掉了，也就是你只能透過緩慢的 iTunes 內建 iOS App Store 去搜尋並下載 app..<br />
便研究了一下改動及做出了解決方案：</p>
<h3>解決方法</h3>
<h5>步驟一：安裝瀏覽器外掛 Stylish</h5>
<p>Stylish 所提供功能主要是讓使用者可以使用自訂的 CSS 方法來取代網站原始的 CSS 設計，並可以達到改變網站樣式及設計的效用。而如果不懂 CSS ，Stylish 也有提供套用主題的或使用別人分享的客制主題的功能。這個插件除了 Safari 版本以外，也有 Chrome 及 Firefox 等等的瀏覽器版本。而我們主要是透過 CSS 覆寫這功能來恢復 iTunes 頁面將按鈕拔除的功能。</p>
<p>更多詳細教學：<a href="http://iphone4.tw/forums/showthread.php?t=194313">Safari外掛『Stylish』更換網站的模樣</a></p>
<p>載點：<a href="http://sobolev.us/stylish/">Safari</a>、<a href="https://chrome.google.com/webstore/detail/stylish-custom-themes-for/fjnbnpbmkenffdnngjfgmeleoegfcffe?hl=zh-TW">Chrome</a>、<a href="https://addons.mozilla.org/zh-TW/firefox/addon/stylish/">Firefox</a></p>
<h5>步驟二：開啟 Stylish 並新增一筆新的規則</h5>
<p>安裝完成後 Stylish 應該是會出現在工具列，打開並新增一筆如下的規則</p>
<ul>
<li>Title：隨意</li>
<li>CSS：將按鈕隱藏的 CSS 取代</li>
</ul>
<p></p><pre class="urvanov-syntax-highlighter-plain-tag">body.software #content #left-stack a.view-in-itunes {
    display: block;
}</pre><p></p>
<ul>
<li>Applies to：這裡將 iTunes 頁面的域名來當作觸發點，當瀏覽到 iTunes 頁面時會因為域名設定觸發此規則<br />
Domain: <code>itunes.apple.com</code></li>
</ul>
<p><a href="https://flic.kr/p/YdduUx"><img data-recalc-dims="1" decoding="async" src="https://i0.wp.com/farm5.staticflickr.com/4460/36894215543_5f28c177ba_z.jpg?resize=640%2C301&#038;ssl=1" alt="螢幕快照 2017-10-08 下午1.46.47" width="640" height="301" /></a></p>
<p>如此設定便成功了，當你瀏覽 iOS App 於 iTunes 頁面時，隱藏的按鈕便會恢復～</p>
<p>這篇文章 <a rel="nofollow" href="https://garynil.tw/2017/10/449/stylish-%e6%81%a2%e5%be%a9-ios-app-%e7%b6%b2%e9%a0%81%e7%89%88-view-itunes-%e6%8c%89%e9%88%95/">Stylish &#8211; 恢復 iOS App 網頁版 view in iTunes 按鈕</a> 最早出現於 <a rel="nofollow" href="https://garynil.tw">Gary&#039;s ...Lasamia</a>。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://garynil.tw/2017/10/449/stylish-%e6%81%a2%e5%be%a9-ios-app-%e7%b6%b2%e9%a0%81%e7%89%88-view-itunes-%e6%8c%89%e9%88%95/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">449</post-id>	</item>
	</channel>
</rss>
