<?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>Health &#8211; Gary&#039;s &#8230;Lasamia</title>
	<atom:link href="https://garynil.tw/tag/health/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>Health &#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-6a782...</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>如何查看 Apple 官方記錄的電池數據</title>
		<link>https://garynil.tw/2018/01/673/check-ios-battery-health/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=check-ios-battery-health</link>
					<comments>https://garynil.tw/2018/01/673/check-ios-battery-health/#comments</comments>
		
		<dc:creator><![CDATA[Gary]]></dc:creator>
		<pubDate>Thu, 04 Jan 2018 03:06:12 +0000</pubDate>
				<category><![CDATA[Dev]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[Battery]]></category>
		<category><![CDATA[Cycle]]></category>
		<category><![CDATA[Health]]></category>
		<category><![CDATA[Info]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[降速]]></category>
		<category><![CDATA[電池]]></category>
		<guid isPermaLink="false">https://garynil.tw/?p=673</guid>

					<description><![CDATA[<p>最近鬧的沸沸揚揚的 Apple 電池降速事件 (A Message to Our Customers about iPhone Batteries and Performance) 使大家更關心自己手機的電池健康狀況。而 AppStore 上關於電池資訊的 App 百百種，但哪款是真的能測出最真實的數據真的說不准。 所以我們該如何真正的得知我們的電池狀況呢？其實在 iOS 系統層面，Apple 存在著背景記錄你 iDevice 電池狀況、充電記錄等等的方法，這篇文章會教你如何去獲得這些資訊並察看～ 準備工具 一組 Apple ID 並註冊為免費開發者或有 Apple Developer Program 開發者帳號更佳 一條 Lightning 線使你的 iDevice 能連接至電腦並透過 iTunes 同步 略薄的系統知識及操作技巧.. 步驟複雜略有難度，覺得太麻煩的人可以跳過這篇文章。 ...</p>
<p>這篇文章 <a rel="nofollow" href="https://garynil.tw/2018/01/673/check-ios-battery-health/">如何查看 Apple 官方記錄的電池數據</a> 最早出現於 <a rel="nofollow" href="https://garynil.tw">Gary&#039;s ...Lasamia</a>。</p>
]]></description>
										<content:encoded><![CDATA[<p>最近鬧的沸沸揚揚的 Apple 電池降速事件 (<a href="https://www.apple.com/iphone-battery-and-performance/">A Message to Our Customers about iPhone Batteries and Performance</a>) 使大家更關心自己手機的電池健康狀況。而 AppStore 上關於電池資訊的 App 百百種，但哪款是真的能測出最真實的數據真的說不准。</p>
<p><a data-flickr-embed="true"  href="https://www.flickr.com/photos/134033268@N03/39455497732/in/dateposted-public/" title="螢幕快照 2018-01-03 下午10.21.53"><img data-recalc-dims="1" fetchpriority="high" decoding="async" src="https://i0.wp.com/farm5.staticflickr.com/4646/39455497732_5718e1ec9c_k.jpg?resize=700%2C458&#038;ssl=1" width="700" height="458" alt="螢幕快照 2018-01-03 下午10.21.53"></a><script async src="//embedr.flickr.com/assets/client-code.js" charset="utf-8"></script></p>
<p>所以我們該如何真正的得知我們的電池狀況呢？其實在 iOS 系統層面，Apple 存在著背景記錄你 iDevice 電池狀況、充電記錄等等的方法，這篇文章會教你如何去獲得這些資訊並察看～<br />
<span id="more-673"></span></p>
<h2>準備工具</h2>
<ul>
<li>一組 Apple ID 並註冊為免費開發者或有 Apple Developer Program 開發者帳號更佳</li>
<li>一條 Lightning 線使你的 iDevice 能連接至電腦並透過 iTunes 同步</li>
<li>略薄的系統知識及操作技巧..</li>
<li>步驟複雜略有難度，覺得太麻煩的人可以跳過這篇文章。</li>
</ul>
<h2>步驟一：註冊並登入 Apple Developer Program</h2>
<p>因為網路上頗多教學，我們直接略過如何註冊免費的開發者帳號。當你的 Apple ID 註冊好之後，登入 <a href="https://developer.apple.com/programs/">Apple Developer Program</a> 的後台並前往：<a href="https://developer.apple.com/bug-reporting/profiles-and-logs/">Profiles-and-Logs</a></p>
<p><img decoding="async" src="https://it55ka.bl3302.livefilestore.com/y4mwGoZD6mjH3HaZ5ZkI5TvPwpK2y8B85CbV0dWHeVUG3CB4w-ub_GDa2ZNsV1xQqqjHWw_yb1mP7jBYyO6aNL-6s1Vvt6FDTVcLKzmsNOQswicRzLA4ykAJGBZVb_UuIrqqpeek0j30g11NH0hdx4VfLOuw2fx13UoSh1Dah2M9EQO7b4x0BPvfYGI7kFJUL6pdFEB_0rFOAjVTyYE1PPvLQ?width=3098&#038;height=1978&#038;cropmode=none" width="3098" height="1978" /></p>
<h2>步驟二：下載 Battery Life for iOS 描述檔並傳送至手機</h2>
<p>下載連結在此 (需登入)：<a href="https://developer.apple.com/services-account/download?path=/iOS/iOS_Logs/BatteryLife.mobileconfig">BatteryLife.mobileconfig</a></p>
<p>你可以透過 <a href="https://support.apple.com/zh-tw/HT204144">AirDrop</a> 、電腦傳送或直接在手機上開啟網頁下載等任何方法將這描述檔傳送至你的  iDevice 並開啟描述檔</p>
<p><img decoding="async" src="https://kn7esw.bl3302.livefilestore.com/y4mxgnQDe8iev6W0MIAxHUvySyYU5yBbkGtrbQBFdEc33p4z0EHer4dcBxSjc9Pwd3r_qT85tdfIRc764MVKvT8TuoNxZNnxnrJHRmmqkzyoZleT4I1ePE0FX2rYqOd7926cHK4B2IWZgslGITD4IGcz9lDGJ58WztH7WFmJF3fbx-5oKnrkDu-i989QgaGLIC99KGaWcEU_15P_YWORx5ykA?width=473&#038;height=1024&#038;cropmode=none" width="473" height="1024" /></p>
<h2>步驟三：安裝描述檔並正常操作</h2>
<p>按照描述檔的說明安裝就好，不需要重新開機<br />
按照官方說明你可以進行充電，使用手機等步驟記錄一些資訊</p>
<p><img loading="lazy" decoding="async" src="https://jt7esw.bl3302.livefilestore.com/y4m_KkfQfjZId81YJtBayx_LUfmGU0Yw42zEugZZBlJvyFSzql7EhbOoFDtN5FrKNqeM8kXQQvbFn6i9SvRDBlbxoDC67gSsd8ItN2WCu2_36BA5Y6hzCPZ1Kci8bWvs6QA47NlzL2QqHCzDAV0Xmw7bxlrruFlEMfDF3ir53CWjZI0SxRev2w7UxpIpsUp1kiz8ZNyy2nHFQfipgFYJumLdw?width=473&#038;height=1024&#038;cropmode=none" width="473" height="1024" /></p>
<h2>步驟四：透過 iTunes 同步診斷記錄</h2>
<p>將你的 iDevice 連接電腦並開啟 iTunes 進行手機的同步動作，在同步的過程中會將你手機記錄的電池資訊 Log 紀錄檔傳送至電腦</p>
<p><img loading="lazy" decoding="async" src="https://j955ka.bl3302.livefilestore.com/y4m12R52sX0BNvbDHki8ePihwYr_nJElrVXPWOi-Bczw5qdGJl0Gm8W3VCVGfNRgZTvBuyWJ--XdD2D-f2ta4iFYHbHXZ8kBOftr6AW566FIIUhewqE_bU3viVkWkWtaz6463pLn6iqV4VkjbzKfTxqeYBzcApleMXkTFowpj1eBVo1RdyTY7m06RUevzQc4I5nf--hNySx77htPR4VF6U9sg?width=2864&#038;height=1832&#038;cropmode=none" width="2864" height="1832" /></p>
<h2>步驟五：找尋傳送至電腦中的記錄檔</h2>
<p>按照<a href="https://download.developer.apple.com/iOS/iOS_Logs/Battery_Life_Logging_Instructions.pdf">官方說明</a>，Log 檔分別是傳送到電腦的<br />
Mac：<code>~/Library/Logs/CrashReporter/MobileDevice/[Your_Device_Name]/</code> (打開 Finder，按 CMD+SHIFT+G，並輸入 <code>~/Library/Logs/CrashReporter/MobileDevice/</code>)<br />
Win：<code> C:\Users&#91;Your_User_Name]\AppData\Roaming\Apple Computer\Logs\CrashReporter\MobileDevice\<br />
 [Your_Device_Name]\</code></p>
<p>並於指定路徑資料夾內找尋 <code>powerlog_日期XXX.PLSQL</code> 的記錄檔，當然如果要察看最新的，務必尋找以當天日期命名的檔案</p>
<p><img loading="lazy" decoding="async" src="https://i955ka.bl3302.livefilestore.com/y4mIqDYnXWciBcsFiZVrbtEOB52dY0eSuXKNkchG4lvFTWbem7nuy2GYDKUxK3ATowCTpZRuD8Qk59iTs5tF4OmFG20mCtnI3Ama5SQMMQiHb6xBI3i4Lib1WuJnCcbdxPqBHiknY87EFtcFFE2qv6OWegg31dDVzXydtts48EiBxVUsjv5Hv5DUh_2LhMnXLsWafmVy2SGE5pQiV2VPbbRmA?width=2036&#038;height=1524&#038;cropmode=none" width="2036" height="1524" /></p>
<h2>步驟六：開啟記錄檔並察看電池資訊</h2>
<p>記錄檔的格式為 PLSQL 有點特殊，但其實他指是 sqlite 架構，在 Mac 上可以透過 <a href="http://sqlitebrowser.org">DB Browser for SQLite</a> 來開啟察看各個數據的表格</p>
<p>以 DB Browser for SQLite 開啟記錄檔資料庫後 (例如我今天 01/03 的檔名是 <code>powerlog_2018-01-02-2018-01-03_80C4A2FB.PLSQL</code>)，開啟後切換至 Browse Data 的頁籤，並尋找 PLBatteryAgent_EventBackward_Battery 的 Table</p>
<p><img loading="lazy" decoding="async" src="https://kt55ka.bl3302.livefilestore.com/y4mhbr2vmw7uvkmVJG7Yyogx62uimQL16RzYmuUiT4oGzx8wlsdVU1BNDaIiYsHIGvqeZTP-T4aS31dljlAZou11SYYF83g9R_9IhUAT--gowiM1egpNj-093k80jACrXRROd5_RVyqtNpZhJIUPJgnejACEZ7WrJynHZdtzQE1hSnUwZWP-TlFmWFdQCuIKZqbnCcfy8vFVOOWnlcB-BRzxg?width=2398&#038;height=1718&#038;cropmode=none" width="2398" height="1718" /></p>
<h3>時間換算</h3>
<p>PLBatteryAgent_EventBackward_Battery 表中每一行最前面都有個 timestamp，這是用來記錄每行電池狀況記錄的時間點，為 <a href="https://zh.wikipedia.org/zh-tw/UNIX时间">UnixTime</a>格式，你可以複製並透過線上轉換<a href="https://www.epochconverter.com">工具</a>來換算各行電池狀況的記錄時間，如果你需要尋找電池的最新狀況，便按 timestamp 排序並往下捲到最底取得最新的資訊即可</p>
<p><img loading="lazy" decoding="async" src="https://ln55ka.bl3302.livefilestore.com/y4mGodeQ44RGoSMib854HhYp7xTPaZ76ZAXtTyhPqgiMOmPGIwVXy0sMDxNw2-3xB-CnaxfWdlZDsMW8bKM4u48VIry2sSpdxx2PzMp2gMuk0HO4RKXdGg_-MW4J8TZw6xtKtHmoPiDIuWbBr1oC6Tgg1_1DbZpy0dcAimBLWIrjAVDIue2a9WVXqlBG7eCdsSaDdKf-oG_mrkmKtoV92W_8A?width=2398&#038;height=1718&#038;cropmode=none" width="2398" height="1718" /></p>
<p>而如何得知一個 timestamp 是何時記錄的呢？舉例來說，我察看 8380 行的時間為 1514987731.09588，透過換算可以得知時間為 2018年1月3日星期三 21:55:31.095 (GMT+8)</p>
<h3>表格結構</h3>
<p>PLBatteryAgent_EventBackward_Battery 表的結構其實很簡單，就是按照時間順序往下排序的電池狀態，每一行帶有各種的電池狀態資訊，而關於電池健康的則是 <strong>CycleCount (電池循環次數) 、MaxCapacity (電池現在滿電時最大容量)、DesignCapacity (電池出廠設計預設容量，但我觀察都比規格表上來的少)</strong> ，而 <strong>CurrentCapacity</strong> 則是你電池使用時各時間的容量狀態，會隨著充電及放電變化。當然這個表還可以提供你可以額外察看電池充電時的瓦數、電流、溫度等等。</p>
<p><img loading="lazy" decoding="async" src="https://k955ka.bl3302.livefilestore.com/y4mmChlKBCUhaTTLG99WVrvJem1iOBkzrZTkpJwMJgglkRjCwT5xhe-SbLWrdeknwz13O_p5CyJ7cj-VbGoUKd7nC05dDSMB6kVktaoi-Efx5jas75sYuDUKDhG2ccFK2bYbiWbk4Tvks1bgrMRHlvmcXOZpTArnnesLFp2Ou1Etq2ZHMitx9W8iti_bmWvjrhodLm26dE-ej-opXRBWwSFUA?width=2398&#038;height=1718&#038;cropmode=none" width="2398" height="1718" /></p>
<p>透過這個方法，就可以得知 Apple 官方方式紀錄的電池狀況了。透過計算 MaxCapacity / DesignCapacity 便可以得知你電池的健康狀況了，當然也可以拿 CycleCount 做為參考依據。這個官方提供的記錄方法相信有一定的參考價值，畢竟官方沒事不會記錄不準確的數據..此外，合理推斷 Apple Store 的員工也是透過他們的裝置獲取你裝置中的這些記錄檔來察看你的電池健康狀況。</p>
<p><img loading="lazy" decoding="async" src="https://kn55ka.bl3302.livefilestore.com/y4m4Vz7MxAt0BGwaU-WqQ1dbadeJPyYkdqyJWAQF8qChs0rk0QDP7spgBu7UMMtD3BwwNaMxDVY44wEqE_NIKBG8v1VzTTRKNFNZsewLqDOZvFmELu2_Z9OcWeYnpAhxUwWL-E-REYqw-ttgQWhSCiDM3InMQFTST7y0Ol100X3xRphtfVNm368N7oW3y7jHWtvhDcXPjqA1CmMiW-o4zD_Ww?width=1430&#038;height=566&#038;cropmode=none" width="1430" height="566" /></p>
<h2>如何關閉背景記錄恢復原始狀態</h2>
<div class="citation"><citation>Logging has no impact on power usage but it does accumulate disk space if left enabled for several days without syncing. To avoid this disk usage accumulation, turn off logging once you have provided the requested diagnostic information.</citation><ref><a href="https://download.developer.apple.com/iOS/iOS_Logs/Battery_Life_Logging_Instructions.pdf" target="_blank" title="Apple Battery Life Profile Instructions">Apple Battery Life Profile Instructions</a></ref></div>
<p>官方說明也指出如果你不關閉這背景紀錄功能，這些 Log 檔會佔用你的儲存空間，建議如果不需要使用便將描述檔移除關閉此功能。<br />
關閉方法其實跟安裝步驟類似，只要進入設定 → 一般 → 描述檔與裝置管理<br />
並將 System Debug Profile 移除後重新開機就可以了</p>
<p><img loading="lazy" decoding="async" src="https://j97esw.bl3302.livefilestore.com/y4mWxMRxrESjgc7SdwDHCSBUlQ13AbgWz2FXG4UOf6t4dVvul8rPcWigCSpdw2beJ-wuluZQao0Srk2EM0VRU9ry5seRFPwVAqMMaMOvX6mhd8m_QSq7EQO9dcnV0UBR5r8lMqXGEfKwP6t8ozwktDhNyL2whtf70ukvQDI4iJkkDUtz0Si45h2LbSqND9nwb9cBAOA0SKiGqu0fHLz91P9rg?width=1125&#038;height=2436&#038;cropmode=none" width="1125" height="2436" /></p>
<p>這篇文章 <a rel="nofollow" href="https://garynil.tw/2018/01/673/check-ios-battery-health/">如何查看 Apple 官方記錄的電池數據</a> 最早出現於 <a rel="nofollow" href="https://garynil.tw">Gary&#039;s ...Lasamia</a>。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://garynil.tw/2018/01/673/check-ios-battery-health/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">673</post-id>	</item>
	</channel>
</rss>
