原本不想發表這篇,因為新版本 4.1b.0.587己經出來了,不過版上好像沒有網友發表過 ZRAM + SWAP,還是發表一下,畢竟我從這裡學到不少東西,就當做是回饋吧。

注意:刷此Kernel有可能會有風險,請詳細閱讀後,再自行決定

來源從XDA[1]

[ XRay v7.3.431 ] - 4.1.B.0.431 source .
- OC/UV (up to 1.6ghz / +-25mv)
- gov: brazilianwax, smartassv2, interactivex, virtuous, intellidemand, lagfree
- io: cfq, sio, vr, noop, deadline, anticipatory
- support: ext3, ext4, swap, ntfs,
- 2way call record
- TUN enabled
- ZRAM enabled
- patches:
-> msm: clean msm_pc_pm_pgd
-> kgsl: Use highest performance level on wake-up from sleep"
- used 4.1.B.0.431 urushi defconfig
- highmem enabled

Download:
http://d-h.st/ZoB
附加壓縮檔: 201208/mobile01-da44ad125e3ab22f3818cb817c70d490.zip


1. 刷入新Kernel
附上原文,避免我沒有解釋清楚

1) You need to UNLOCK BOOTLOADER using one of these method. I'm NOT responsible of what you've decide. Please follow instruction carefully.
-> S1tool
http://forum.xda-developers.com/showthread.php?t=1363847
下載S1tool驅動程式

-> Sony Mobile - Unlock Bootloader
http://unlockbootloader.sonymobile.com/

注意:解鎖會失去保固

我沒有做上面的步驟,之前是用Test point解鎖
http://androidflip.com/test-points-for-xperia-devices-xperia-arc-active-mini-mini-pro-neo-play-pro-ray/

2) Get this awesome tool called Flashtool and install. Dont forget to install usb drivers from "Drivers" folder too.
http://androxyde.github.com/Flashtool/
下載Flashtool並安裝USB(S1tool)驅動程式

3) I assume you have download one of my kernel. Get into Fastboot mode. How? Do i have to repeat how? Press "Volume Up" while connecting your USB cable. you'll see Blue led.
按住"音量+",接上USB,手機的呼吸燈亮"籃色"
_____^^^^^_已修正,謝謝網友s9514171

4) Click "Flash" button on Flashtool, then select Fastboot Mode.
執行Flashtool,點選"Flash",選擇"Fastboot Mode"

5) Choose "Select Kernel to Flash" and find your saved kernel. I'm not gonna find it for you.
選擇"Select Kernel to Flash",載入要刷入的新Kernel

6) Once completed, reboot device into system
刷入完成,重新開機

Xperia Ray 超頻1.6GHz + ZRAM + SWAP


2. ZRAM
附上原文,避免我沒有解釋清楚

1) Using Root Explorer, got to /sytem/etc/init.d/
使用Root Explorer,進入目錄"/sytem/etc/init.d/"

2) press Menu then create new file
點選功能表,建立新檔案

3) paste these in it
貼上下面的程式化腳本(Script)

#!/system/bin/sh
sysctl -w vm.swappiness=60
echo '1' > /sys/block/zram0/reset
echo $((60*1024*1024)) > /sys/block/zram0/disksize
mkswap /dev/block/zram0
swapon /dev/block/zram0

4) close and save it as 99zram
存檔,檔案名稱為"99zram"

5) set permission to 777 or "rwxrwxrwx" (tick all)
設定檔案權限(permission)為777

6) take note: 60*1024*1024 = 60MB zram disksize. if you want to set 30MB, change 60 to 30.
若要更改ZRAM的空間大小,可以從60更改為30


3. SWAP

1) 建立程式化腳本(Script),儲存到到記憶卡,檔案名稱為"SWAP_ON.sh"
#!/system/bin/sh
if [ ! -d "/mnu/sdcard" ]
then
echo "SD Card not mounted"
exit
fi
if [ -f "/mnt/sdcard/swapfile.swp" ]
then
echo "SWAP is exist"
exit
fi
sysctl -w vm.swappiness=60
dd if=/dev/zero of=/mnt/sdcard/swapfile.swp bs=1024k count=64
mkswap /mnt/sdcard/swapfile.swp
swapon /mnt/sdcard/swapfile.swp

2) 建立程式化腳本(Script),儲存到到記憶卡,檔案名稱為"SWAP_OFF.sh"
#!/system/bin/sh
if [ ! -d "/mnu/sdcard" ]
then
echo "SD Card not mounted"
exit
fi
if [ -f "/mnt/sdcard/swapfile.swp" ]
then
swapoff /mnt/sdcard/swapfile.swp
rm /mnt/sdcard/swapfile.swp
fi

已修正,謝謝網友pin731104

3) 執行Script Manager,將"SWAP_ON.sh"和"SWAP_OFF.sh"設定SU(最高權限),儲存
https://play.google.com/store/apps/details?id=os.tools.scriptmanager&feature

4) 執行"SWAP_ON.sh",會在記憶上建立並開啟Swap,若需關閉,請執行"SWAP_OFF.sh"

5) 如果覺得上面步驟太麻煩,就使用Swapper 2
https://play.google.com/store/apps/details?id=lv.n3o.swapper2&feature

4. 新的GPU驅動程式
http://forum.xda-developers.com/showpost.php?p=23563842&postcount=3
這個我刷入後,跑分沒有再增加,版上已有網友發表過了


5. 開啟 Wifi Channels 12-14
http://forum.xda-developers.com/showpost.php?p=23564367&postcount=5
這個我沒有開啟,沒有影響WiFi正常使用


6. 刷入JJ's v2.0+
http://forum.xda-developers.com/showpost.php?p=25626326&postcount=1064
這個我沒有刷入


Reference:
1.sirkay, [xKERNEL|ICS&JB|15/08] ICS v8.1a | AOKP v3.2 | JB v1.0.2 | +USB OTG
http://forum.xda-developers.com/showthread.php?t=1544513&page=210

3) I assume you have download one of my kernel. Get into Fastboot mode. How? Do i have to repeat how? Press "Volume Up" while connecting your USB cable. you'll see Blue led. 按住"音量-",接上USB,手機的呼吸燈 亮"籃色"


是音量+喔
請問此核心可否使用在新的ICS 4.0上嗎?
我是用在4.1.B.0.431(ICS 4.0.4)版本的ROM,4.1.b.0.587版本的ROM,沒有測試過
了解,感謝您!

再請問一下,swap我剛使用會顯示error訊息

請問有其他簡單的swap方式嗎?
已修正,謝謝提醒

pin731104 wrote:
了解,感謝您!...(恕刪)

jeremy5 wrote:
我是用在4.1.B....(恕刪)


核心裝在最新版的的ROM是可行的 我有裝過
文章分享
評分
評分
複製連結

今日熱門文章 網友點擊推薦!