ipad怎么優(yōu)化內(nèi)存
ipad怎么優(yōu)化內(nèi)存?不知道的話跟著學(xué)習(xí)啦小編一起來學(xué)習(xí)ipad怎么優(yōu)化內(nèi)存。
ipad怎么優(yōu)化內(nèi)存的方法
第一步刪除不用的語言文件
刪除語言文件會不會破壞ipad, iphone, itouch的系統(tǒng)?
就目前來看刪除文件不會對iOS造成任何的傷害,但是會極大的釋放內(nèi)存空間供軟件使用,讓iDevice的運(yùn)行更平滑,更流暢
下面介紹怎么運(yùn)行這個文件
首先你的ipad需要破解,然后進(jìn)Cydia搜索openSSH并安裝它 然后使用SSH Secure Shell登錄ipad,SSH Secure Shell的下載鏈接 sshsecureshellclient_3_2_9.rar (5.41 MB) 下載次數(shù): 73
這里提醒一下不要用winscp鏈接ipad,winscp的命令行有問題,輸入任何命令都會造成winscp假死(不知道這是不是個別現(xiàn)象)
用戶名:root
密碼:alpine
把上面下載的script文件解壓放到/private/var/mobile目錄下 在命令行中輸入cd /private/var/mobile
在命令行中輸入chmod 0775 langpack2.1.sh(這個是給langpack2.1.sh文件775權(quán)限)
然后在命令行中輸入./langpack2.1.sh
會出現(xiàn)一下界面(如果你需要使用emoji的話請保留Japanese語言文件)
引用
--Langpack2- by Fubaya ([url=mailto:ijdmas@gmail.com]ijdmas@gmail.com[/url])--
Let's delete a few thousand language packs.
You will have several chances to back out
before anything is deleted but if you want
to stop at any time just type q.
If you want to see how it runs without
making any changes, just answer no when it
asks you which languages to delete.
Searching for language packs. Please wait...
請耐心等待2 - 3分鐘后會出現(xiàn)以下界面,讓你選擇需要刪除那些語言文件
引用
Delete: Arabic - y or n?
這個是問你需不需要刪除Arabic語言文件輸入y確定刪除,輸入n不刪除,輸入完y或者n按回車
在這個過程中一定要正確的輸入y或者n,如果輸入錯誤不能刪除,如果你按了刪除鍵會出現(xiàn)亂碼
這個時候不要急在鍵盤上同時按住ctrl + z鍵就會退出該程式。它會在你全部選擇完后才會開始刪除文件,
所以如果選擇中按錯鍵不必?fù)?dān)心。
下面給出這個程式運(yùn)行后的整個畫面
引用
--Langpack2- by Fubaya ([url=mailto:ijdmas@gmail.com]ijdmas@gmail.com[/url])--
Let's delete a few thousand language packs.
You will have several chances to back out
before anything is deleted but if you want
to stop at any time just type q.
If you want to see how it runs without
making any changes, just answer no when it
asks you which languages to delete.
Searching for language packs. Please wait...
Delete: Arabic - y or n? y
Arabic will be deleted
Delete: Bulgarian - y or n? y
Bulgarian will be deleted
Delete: Chinese - y or n? n
Chinese will be kept
Delete: Croatian - y or n? y
Croatian will be deleted
Delete: Czech - y or n? y
Czech will be deleted
Delete: Danish - y or n? y
Danish will be deleted
Delete: Dutch - y or n? y
Dutch will be deleted
Delete: Finnish - y or n? y
Finnish will be deleted
Delete: French - y or n? y
French will be deleted
Delete: German - y or n? y
German will be deleted
Delete: Greek - y or n? y
Greek will be deleted
Delete: Hebrew - y or n? y
Hebrew will be deleted
Delete: Hungarian - y or n? y
Hungarian will be deleted
Delete: Indonesian - y or n? y
Indonesian will be deleted
Delete: Italian - y or n? y
Italian will be deleted
Delete: Japanese - y or n? n
Japanese will be kept
Delete: Korean - y or n? y
Korean will be deleted
Delete: Lithuanian - y or n? y
Lithuanian will be deleted
Delete: Malay - y or n? y
Malay will be deleted
Delete: Norwegian - y or n? y
Norwegian will be deleted
Delete: Polish - y or n? y
Polish will be deleted
Delete: Portuguese - y or n? y
Portuguese will be deleted
Delete: Romanian - y or n? y
Romanian will be deleted
Delete: Russian - y or n? y
Russian will be deleted
Delete: Slovak - y or n? y
Slovak will be deleted
Delete: Spanish - y or n? y
Spanish will be deleted
Delete: Swedish - y or n? y
Swedish will be deleted
Delete: Thai - y or n? y
Thai will be deleted
Delete: Turkish - y or n? y
Turkish will be deleted
Delete: Ukrainian - y or n? y
Ukrainian will be deleted
Delete: vi.lproj (unrecognized) - y or n? n
vi.lproj will be kept
-------------------------------------
Arabic Bulgarian Croatian Czech Danish Dutch Finnish French German Greek Hebrew Hungarian Indonesian Italian Korean Lithuanian Malay Norwegian Polish Portuguese Romanian Russian Slovak Spanish Swedish Thai Turkish Ukrainian
-------------------------------------
This is your last chance. Are you sure
you want to delete the languages listed?
Type y or n: y
Please wait while I delete the chosen language packs...
2696 language pack directories have been
deleted. A log file has been created at
/var/mobile/langpack.log.
My contact information is at the top of
the log file and if you encountered any
unrecognized languages, I would appreciate
you emailing me that file so that I may keep
up with the ever-changing languages.
The only other thing left is me, this
script located at /var/mobile/langpack2.1.sh.
Do you want me to delete myself - y or n? y
Deleting myself...blarg.. I'm dead
關(guān)于運(yùn)行l(wèi)angpack2.1.sh出現(xiàn)以下錯誤的解決方法,請到cydia里下載ifile和Mobile Terminal并安裝
引用
iPad:/private/var/mobile root# /langpack2.1.sh
-sh: /langpack2.1.sh: No such file or directory
iPad:/private/var/mobile root# ./langpack2.1.sh
./langpack2.1.sh: line 5: id: command not found
./langpack2.1.sh: line 5: [: !=: unary operator expected
./langpack2.1.sh: line 9: tee: command not found
./langpack2.1.sh: line 9: tr: command not found
Let's delete a few thousand language packs.
You will have several chances to back out
before anything is deleted but if you want
to stop at any time just type q.
If you want to see how it runs without
making any changes, just answer no when it
asks you which languages to delete.
Searching for language packs. Please wait...
/usr/bin/updatedb: line 221: /usr/bin/sort: No such file or directory
Nothing to delete. Either I didnt find
any to delete or you answered no to
everything. See ya later.
第二部進(jìn)程優(yōu)化
在進(jìn)行這步之前請先備份/System/Library下的LaunchDaemon這個文件夾下的所有文件,以免誤刪后可以恢復(fù)
這個優(yōu)化就像windows優(yōu)化時把services里服務(wù)關(guān)閉一樣的道理。當(dāng)iDevice開機(jī)后他會自動運(yùn)行一些列的進(jìn)程,
這些進(jìn)程讓ipad做一系列的事情。這些進(jìn)程會在后臺運(yùn)行,每個進(jìn)程都會使用一定的內(nèi)存空間。我們可以像windows
一樣把一些不必要的進(jìn)程給關(guān)閉釋放他們使用的內(nèi)存空間。
首先使用winscp,91,ifunbox任何可以瀏覽ipad系統(tǒng)文件夾的軟件,瀏覽到/System/Library把LaunchDaemon這個文件夾
復(fù)制到電腦上備份。
要關(guān)閉一個進(jìn)程只要把LaunchDaemon下相應(yīng)的文件刪除就行,下面介紹那些文件是可以刪除,那些是不能刪除的
可以安全刪除的進(jìn)程
com.apple.DumpPanic.plist - 儲存系統(tǒng)崩潰信息
com.apple.ReportCrash.(不同的名字).plist - 有6個這樣的文件,他們的任務(wù)是收集是什么原因造成系統(tǒng)崩潰的,比如什么軟件在運(yùn)行,什么時間。。等等
com.apple.DumpBasebandCrash.plist - 儲存基帶崩潰信息 (ipod touch沒有這個文件,不知道wifi版的ipad有沒有這個文件)
com.apple.CrashHouseKeeping.plist - 這個也是關(guān)于崩潰的進(jìn)程
com.apple.aslmanager.plist - 這個是管理系統(tǒng)日志的
com.apple.syslogd.plist - 記錄系統(tǒng)日志的
com.apple.powerlog.plist - 這個是監(jiān)視任何第三方不被兼容的充電器
com.apple.stackshot.server.plist - 這個進(jìn)程目前知不道是干什么用的,但是刪除后沒有造成任何問題,可以放心刪除
com.apple.chud.chum.plist - 這個是關(guān)于CHUD(這個是硬件開發(fā)的)
com.apple.chud.pilotfish.plist - 同上
com.apple.apsd.tcpdump.en0.plist - push notification的日志
com.apple.apsd.tcpdump.pdp_ip0.plist - 同上
下面這些進(jìn)程被刪會造成某項功能不能使用
請用戶自行決定
com.apple.searchd.plist - Sportlight搜索功能
com.apple.accessoryd.plist - 這個是配件支持進(jìn)程(不建議刪除),如果刪除docks,camere kit這些配件將不能使用
com.apple.apsd.plist - Push Notification的進(jìn)程,刪除后推送將不能使用
com.apple.iapd.plist - 這個也是配件支持進(jìn)程
com.apple.dataaccess.dataaccessd.plist - 刪除這個將不能同步聯(lián)系人
com.apple.datamigrator.plist - 把sim卡上的聯(lián)系信息存到ipad,iphone上的
com.apple.racoon.plist - 進(jìn)程,刪了后不能使用
com.apple.MobileInternetSharing.plist - 共享上網(wǎng)服務(wù)
com.apple.AOSNotification.plist - 這個是提供MobileMe同步功能的
com.apple.AdminLite.plist - 這個進(jìn)程會自動關(guān)閉崩潰的軟件
com.apple.graphicsservices.sample.plist - 顯示專輯圖片的進(jìn)程
com.apple.UIKit.pasteboardd.plist - 提供復(fù)制,黏貼功能的進(jìn)程
com.apple.mobile.obliteration.plist - 這個進(jìn)程是用來刪除用戶數(shù)據(jù)的,如果刪除就不能在ipad的設(shè)置里恢復(fù)出廠模式
com.apple.scrod.plist - 語音控制
設(shè)備專有進(jìn)程
com.apple.CommCenter.plist - 打電話的進(jìn)程
com.apple.aggregated.plist - 支持音頻輸入的進(jìn)程
關(guān)鍵進(jìn)程(請不要刪除)
com.apple.fairplayd.plist - 數(shù)字權(quán)限管理
com.apple.installd.plist - 安裝軟件的進(jìn)程
com.apple.BTServer.plist - 如果刪除這個進(jìn)程,你的機(jī)器會運(yùn)行的很慢
com.apple.configd+pm.plist - 系統(tǒng)設(shè)置
com.apple.configd-pm.plist - 同上
com.apple.gmmd.plist - 調(diào)試進(jìn)程
com.apple.mDNSResponder.plist - DNS進(jìn)程
com.apple.mDNSResponderHelper.plist - 同上
com.apple.locationd.plist - GPS定位進(jìn)程
com.apple.mediaserverd.plist - 播放音樂和視頻的進(jìn)程
com.apple.usbptpd.plist - 使你的機(jī)器插上電腦后充電
com.apple.mtmergeprops.plist - 觸摸控制進(jìn)程
com.apple.SCHelper-embedded.plist - 系統(tǒng)設(shè)置
com.apple.SpringBoard.plist - springboard進(jìn)程
com.apple.mobile.Lockdown.plist - SIM網(wǎng)絡(luò)的進(jìn)程,ipod touch用戶也不要刪除它
com.apple.itdbprep.plist - 同步音樂的進(jìn)程
破解后加入的進(jìn)程
com.saurik.Cydia.Startup.plist - cydia的自動安裝deb文件的進(jìn)程
com.SPC.SuperCharged.plist - SuperCharged軟件進(jìn)程,cydia上的虛擬內(nèi)存軟件
com.apple.dynamic_pager.plist - 虛擬內(nèi)存
com.bigboss.sbsettingsd.plist - SBSettings進(jìn)程
com.mxweas.MxT2d.plist - 讓MxTube可以后臺下載youtube視頻
關(guān)于虛擬內(nèi)存的安裝
由于此教程需要安裝openSSH有用戶反饋使用deb安裝文件打開虛擬內(nèi)存會出現(xiàn)白蘋果
以下放出一個最安全的方法打開虛擬內(nèi)存,絕對不會出現(xiàn)白蘋果現(xiàn)象
首先請到cydia里下載ifile這個軟件,建議下載最新版本,不需要是破解版本的
瀏覽到/System/Library/LaunchDaemons目錄下
點(diǎn)擊右上角的Edit
然后點(diǎn)擊下面一排的 + 號上來創(chuàng)建一個文件按照圖中的輸入,然后點(diǎn)擊create (注意大小寫)創(chuàng)建完com.apple.dynamic_pager.plist 這個文件后,點(diǎn)進(jìn)這個文件把以下代碼輸入進(jìn)去
復(fù)制代碼
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>EnableTransactions</key>
<true/>
<key>HopefullyExitsLast</key>
<true/>
<key>Label</key>
<string>com.apple.dynamic_pager</string>
<key>OnDemand</key>
<false/>
<key>rogramArguments</key>
<array>
<string>/sbin/dynamic_pager</string>
</array>
</dict>
</plist>
點(diǎn)擊done后,繼續(xù)用ifile瀏覽到/Library/Preferences/目錄下
同樣點(diǎn)擊右上角的Edit
然后點(diǎn)擊下面一排的 + 號上來創(chuàng)建一個文件按照圖中輸入,然后點(diǎn)擊create(注意大小寫)
點(diǎn)進(jìn)這個com.apple.virtualMemory.plist這個文件把以下代碼輸入進(jìn)去
復(fù)制代碼
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>UseEncryptedSwap</key>
<false/>
</dict>
</plist>
點(diǎn)擊done,然后退出ifile,重啟你的ipad,虛擬內(nèi)存服務(wù)就會被打開最后我們再去確認(rèn)下虛擬內(nèi)存是不是已經(jīng)打開,進(jìn)入ifile,
瀏覽到/var/vm目錄下看看是否有一個swapfile0的文件大小為64mb如果有
那么恭喜你虛擬內(nèi)存
ipad怎么優(yōu)化內(nèi)存
下一篇:ipad查看內(nèi)存的方法