[ROM][I8160] Stock Lite by aeM v1.3 (2012-12-22)

Search This thread

WiCiO_MeDi

Senior Member
Apr 29, 2011
391
200
Bielsko-Biała
www.technologiepc.pl
Lite version of stock firmware: UK I8160XXLK7 (built 30.11.2012, changelist #1214896).

Rooted with SuperSU v0.99

The ROM is for ODIN flashing and it won't increase your flash counter.
There's also a ZIP version for CWM/TWRP.
You can always add CWM and custom kernel by ADB and dd command also without increasing the counter so.. make your own decisions from now on :D

Apps added:
  • AppWidgetPicker v1.2.3: groups widgets in selection screen
  • HoloLauncher v1.2.8: fast and light ICS style launcher, alternative to TW Launcher
Apps removed:
Code:
AnalogClock, AnalogClockProvider, BluetoothTestMode, BuddiesNow, ChatON
ChocoEUKor, Days, Divx, Dlna, DSMForwarding, DSMLawmo, DualClock
DualClockProvider, EdmVpnServices, Email, EmailWidget, FactoryTest15
fotaclient2, FTM, FTS, GameHub, Gmail, HelvNeueLT, HTMLViewer, Kies
kieswifi, lcdtest, Maps, Memo, MiniDiary, MinimalHome, MobilePrint
MobileTrackerEngineTwo, MusicHub_15, PanningTryActually, PhotoRetouching
PlusOne, PolarisOffice, PostIt, Protips, PRUI, SamsungApps, SamsungAppsUNA3
Samsungservice, SamsungWidget_News, SamsungWidget_ProgramMonitor
SamsungWidget_StockClock, SamsungWidget_WeatherClock, SecretWallpaper1
SecretWallpaper2, SelfTestMode, shutdown, SnsAccountFb, SnsAccountLi
SnsAccountTw, SnsDisclaimer, SnsImageCache, SnsProvider, SocialHub
SocialHubWidget, SPPPushClient, Street, Tasks, VoiceToGo, WlanTest
wssyncmlnps, YouTube
and some files:
Code:
etc/1_Power_on.ogg
etc/PowerOn.wav
etc/kies
lib/libpolarisoffice.so
lib/libKiesDataRouter.so
build.prop addons:
Code:
#
# MODIFIED BY aeM
#

# Disable boot animation for faster boot
debug.sf.nobootanimation=1 

# Disable debugging notify icon on statusbar
persist.adb.notify=0 

# Force launcher into memory
ro.HOME_APP_ADJ=1 

# Improves audio and video recording quality
ro.media.enc.jpeg.quality=100
ro.media.enc.hprof.vid.bps=8000000
ro.media.enc.hprof.vid.fps=25

# Video acceleration and HW debugging
video.accelerate.hw=1
debug.egl.profiler=1
debug.egl.hw=1

# Disables error reports
profiler.force_disable_err_rpt=1
profiler.force_disable_ulog=1

# Saves power
ro.ril.power_collapse=1
pm.sleep_mode=1
wifi.supplicant_scan_interval=120

# Disables logcat
logcat.live=disable

# Phone rings immediately
ro.telephony.call_ring.delay=500
ring.delay=500

# Better signal
persist.cust.tel.eons=1
ro.config.hw_fast_dormancy=1

# Better call voice quality
ro.ril.enable.amr.wideband=1

# Disables sending of usage data
ro.config.nocheckin=1

# More volume steps in call
ro.config.vc_call_steps=10

# Uses Google's DNS for better internet speed
net.rmnet0.dns1=8.8.8.8
net.rmnet0.dns2=8.8.4.4
net.ppp0.dns1=8.8.8.8
net.ppp0.dns2=8.8.4.4
net.dns1=8.8.8.8
net.dns2=8.8.4.4

# Signal (3G) tweaks
ro.ril.hsxpa=2
ro.ril.gprsclass=10
ro.ril.hep=1
ro.ril.enable.dtm=1
ro.ril.hsdpa.category=10
ro.ril.enable.a53=1
ro.ril.enable.3g.prefix=1
ro.ril.htcmaskw1.bitmask=4294967295
ro.ril.htcmaskw1=14449
ro.ril.hsupa.category=5

# Net speed tweaks
net.tcp.buffersize.default=4096,87380,256960,4096, 16384,256960
net.tcp.buffersize.wifi=4096,87380,256960,4096,163 84,256960
net.tcp.buffersize.umts=4096,87380,256960,4096,163 84,256960
net.tcp.buffersize.gprs=4096,87380,256960,4096,163 84,256960
net.tcp.buffersize.edge=4096,87380,256960,4096,163 84,256960

Installation:
1. Download and flash stock LK7 ROM:
United Kingdom (sammobile hotfile)
2. Download and flash lited LK7 availible in two versions:
3. Check if I bricked your phone.. (just kidding ;) )

Side notes:
  • Use 7zip to unpack downloaded files (http://7-zip.org/)
  • Use Odin v1.85 to flash (https://docs.google.com/open?id=0B9GFVatYEi9jbWYtalVMVFdBbWc)
  • USB Debugging in Settings->Application->Development must be ticked on for proper rooting
  • Flashing stock LK7 and lited LK7 wont remove your apps and files. It just reflash the system partition.
  • I've removed google apps (gmail, youtube, maps) so if you use them just download them from the market.
  • Try using Holo Launcher which in my opinion is superior to TW Launcher.

Credits:
 
Last edited:

WiCiO_MeDi

Senior Member
Apr 29, 2011
391
200
Bielsko-Biała
www.technologiepc.pl
If you have some ideas about changes feel free to share ;)

Removed apps (deodexed):
LK7 apps - 91.49 MB (dev-host)
Just copy apk file to /system/app folder and set permissions to 644 (rw- r-- r--)

Changelog:
2012-12-22 aeM ROM v1.3
  • updated source firmware to UK I8160XXLK7 (built 30.11.2012, changelist #1214896)
  • restored some system apps to maintain functionality (ie.: Stock TWLauncher, Swype, LiveWallpapers, SimToolkit)
  • bumped the version number :p

2012-12-10 aeM ROM v1.2
aeM_ROM_v1.2 for CWM/TWRP - 178.15 MB (dev-host)
aeM_ROM_v1.2 for ODIN - 147.52 MB (dev-host)
  • updated source firmware to multiCSC I8160XXLK6 (built 15.11.2012, changelist #1211243)
  • restored some system apps to maintain functionality (ie.: MTP, TWLauncher, Voice Search)
  • made ZIP package for custom recovery
  • added more build.prop tweaks
  • restored TWLauncher (but modded) to maintain STOCK look
  • bumped the version number :p

2012-12-02 aeM ROM v1.1
aeM_ROM_v1.1 odexed - 127.84 MB (dev-host)
aeM_ROM_v1.1 deodexed - 131.05 MB (dev-host)
  • updated source firmware to UK I8160XXLK5 (built 15.11.2012, changelist #1211379)
  • removed more apps
  • removed TWLauncher and replaced it with Holo Launcher
  • added AppWidgetPicker
  • made deodexed and zipaligned package
  • bumped the version number :p

2012-10-24 aeM ROM v1.0
aeM_ROM_v1.0 - 155.56 MB (dev-host)
  • initial release

ToDo:
0. Ideas?

FAQ:
1. Will this ROM void my warranty?
YES! But you can revert to stock and the phone will look as a brand new and will revert the warranty.

2. Will this ROM increase my flash counter?
NO!

3. I've got a LK7 firmware and a custom kernel right now. Will I have to reflash the kernel after flashing this ROM?
No. The kernel remains intact as you only flash the csc and system.

4. I've got many apps installed right now and I don't want to loose them.
Upgrading the firmware with ODIN doesn't format the system partition, it only 'repopulate' it with the 'new' files so all your settings, sms/mms, apps and other stuff will remain intact.

5. I see some bloatware like 'Google books', you said it was lite..!?
This app is only in specific CSCs and I can't remove it without voiding the samsung signature thus breaking the CSC procedure during the first reboot after flashing. You can remove this app yourself (i.e. TitaniumBackup).

TIPS:
If you want a REALLY clean system then you could make this VERY complicated procedure:
[Req: rooted rom, adb and odin 'installed' on pc, phone connected to pc by usb]
1. enter recovery (turn on the phone with VolUp+Home)
2. on pc:
adb shell
su
wipe all (disregard the warning about /etc not being empty)
exit (exits su)
exit (exits shell)
adb kill-server
3. select 'reboot the system' in the recovery and enter download mode (during turning on VolDown+Home)
4. on pc: flash my rom with odin
5. wait for reboot and live happily with CLEAN system :D

or for CWM/TWRP just format data/cache/system partitions ;)
 
Last edited:

sdke

Senior Member
May 19, 2012
118
22
reserved

If you have some ideas about changes feel free to share ;)

Looking for answers:
1. How to decrease the img filesize?
I've removed more then 100mb and the size is still the same even after compressing, weird...

2. That's all for now ;)

Great to see that we have an other 'custom' rom. It's a great base to add a theme, other tweaks,..
 

arroyo

Senior Member
Mar 14, 2009
416
388
Bydgoszcz
@WiCiO_MeDi

You can always deodex those apps that has been left. Also you can make this ROM flashable thru CWM or TWRP. Please do not add any apps/themes/transitions. This ROM is a GREAT base for anyone who want to play on his own rules with modding. Anyway... dobra robota!
 
  • Like
Reactions: msarna

WiCiO_MeDi

Senior Member
Apr 29, 2011
391
200
Bielsko-Biała
www.technologiepc.pl
Will try with init.d, why not.
As of themes/apps/transitions i'm adamant about not including any so don't worry ;)

Regarding CWM:
My idea was to create light rom, easy to flash (odin) and without any fuss with commands in adb/recovery/terminal. Also the "NO" status of the flash counter is a big issue for me since we haven't got any way to reset it as of now and the warranty is a must with todays electronics.. unfortunately :(

Oh, and deodexing... forgot about it since I don't use themes ;)
 
  • Like
Reactions: msarna

Bocko92

Senior Member
Mar 13, 2011
237
15
Can u explain what is DBT and the contents of your dropbox folder, since it's a lot faster to download from?
 

msarna

Senior Member
Jan 23, 2012
80
22
Lodz
build.prop addons:
Code:
#
# MODIFIED BY aeM
#

# Improves audio and video recording quality
ro.media.enc.jpeg.quality=100
ro.media.enc.hprof.vid.bps=8000000
ro.media.enc.hprof.vid.fps=25

# Video acceleration and HW debugging
video.accelerate.hw=1
debug.egl.profiler=1
debug.egl.hw=1

# Disables error reports
profiler.force_disable_err_rpt=1
profiler.force_disable_ulog=1

# Saves power
ro.ril.power_collapse=1
pm.sleep_mode=1
wifi.supplicant_scan_interval=120

# Disables logcat
logcat.live=disable

# Phone rings immediately
ro.telephony.call_ring.delay=500
ring.delay=500

# Better signal
persist.cust.tel.eons=1
ro.config.hw_fast_dormancy=1

# Better call voice quality
ro.ril.enable.amr.wideband=1

# Disables sending of usage data
ro.config.nocheckin=1

# More volume steps in call
ro.config.vc_call_steps=10

# Uses Google's DNS for better internet speed
net.rmnet0.dns1=8.8.8.8
net.rmnet0.dns2=8.8.4.4
net.ppp0.dns1=8.8.8.8
net.ppp0.dns2=8.8.4.4
net.dns1=8.8.8.8
net.dns2=8.8.4.4

You are a genius. GENIUS.
Sine my counter is @15 most of this is not very important for me, but this tweaks to /system/build.prop are just great.

Phone has speed up twice - at least (I'll check battery life later).

So thank you veeery much :)
A no i: Dobra Robota :)

all best
 

WiCiO_MeDi

Senior Member
Apr 29, 2011
391
200
Bielsko-Biała
www.technologiepc.pl
Man, chill, it's just placebo i think 'cause those tweaks are really minor. Maybe you got something screwed with the system before the flash or the bloatware was choking up your phone.
Anyway: your welcome and dzięki ;)

Sent from my GT-I8160 using xda app-developers app
 

msarna

Senior Member
Jan 23, 2012
80
22
Lodz
Man, chill, it's just placebo i think 'cause those tweaks are really minor. Maybe you got something screwed with the system before the flash or the bloatware was choking up your phone.
Anyway: your welcome and dzięki ;)

Sent from my GT-I8160 using xda app-developers app

It crossed my mind but ...since i've got root i just remount /system to give it read-write permissions and modified inside stok build.props.
Then rebooted and phone went crazy fast :)

I'm running stok XXLI2 with 2.6.35.7HDTWRP kernel (TWRP 2.3.1.1) and Your's tweeks :)

All best and keep up good work :)

Powodzenia
 

arroyo

Senior Member
Mar 14, 2009
416
388
Bydgoszcz
@ WiCiO_MeDi
I think you should left 2 apps, that you have removed:
app/GenieWidget.apk ---> Cool News and Weather app
app/MobileTrackerEngineTwo.apk ---> This is the only app that can help is your phone is stolen. It helped my wife when she lost her i9070.

Also san you prepare the TWRP flashable version, for guys like me? I do not want to go thu ODIN and then Kernel change again.
 

Carpe-Dimi

Senior Member
Jul 13, 2011
476
196
@ WiCiO_MeDi
I think you should left 2 apps, that you have removed:
app/GenieWidget.apk ---> Cool News and Weather app
app/MobileTrackerEngineTwo.apk ---> This is the only app that can help is your phone is stolen. It helped my wife when she lost her i9070.

Also san you prepare the TWRP flashable version, for guys like me? I do not want to go thu ODIN and then Kernel change again.

Not sure ofcourse, but since this is a modified/cleaned stock rom, I suspect there's no kernel included. So flashing this via odin won't touch your kernel :)
I can be certain about this part, because I flashed and reflashed roms via odin for the sole purpose of testing to see if my kernel would change, and it never did.
 

arroyo

Senior Member
Mar 14, 2009
416
388
Bydgoszcz
You are right Carpe-Dimi, as far as you have DBT version of rom. If you don't, then you need to flash DBT before you flash Stock Lite, and this will flash your kernel.
 

sylar945

Senior Member
Sep 3, 2012
65
5
I can't download this rom. It's show me:
"Error (509)
This account's public links are generating too much traffic and have been temporarily disabled!"
whne I open the dropbox link.
 

WiCiO_MeDi

Senior Member
Apr 29, 2011
391
200
Bielsko-Biała
www.technologiepc.pl
Yep, both of you are right ;)
My rom wont touch kernel but you have to have DBT rom before the flash.
As for the apps.. I you really want them then just install them after the flashing.
Copy to /system/app and chmod 644

as for dropbox:
it seems that DB has download limits so i have to move to another mirror
any suggestions? mediafire is not free for files >200mb :(
 

Attachments

  • GenieWidget.apk
    708.4 KB · Views: 27
  • MobileTrackerEngineTwo.apk
    16.5 KB · Views: 29
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 29
    Lite version of stock firmware: UK I8160XXLK7 (built 30.11.2012, changelist #1214896).

    Rooted with SuperSU v0.99

    The ROM is for ODIN flashing and it won't increase your flash counter.
    There's also a ZIP version for CWM/TWRP.
    You can always add CWM and custom kernel by ADB and dd command also without increasing the counter so.. make your own decisions from now on :D

    Apps added:
    • AppWidgetPicker v1.2.3: groups widgets in selection screen
    • HoloLauncher v1.2.8: fast and light ICS style launcher, alternative to TW Launcher
    Apps removed:
    Code:
    AnalogClock, AnalogClockProvider, BluetoothTestMode, BuddiesNow, ChatON
    ChocoEUKor, Days, Divx, Dlna, DSMForwarding, DSMLawmo, DualClock
    DualClockProvider, EdmVpnServices, Email, EmailWidget, FactoryTest15
    fotaclient2, FTM, FTS, GameHub, Gmail, HelvNeueLT, HTMLViewer, Kies
    kieswifi, lcdtest, Maps, Memo, MiniDiary, MinimalHome, MobilePrint
    MobileTrackerEngineTwo, MusicHub_15, PanningTryActually, PhotoRetouching
    PlusOne, PolarisOffice, PostIt, Protips, PRUI, SamsungApps, SamsungAppsUNA3
    Samsungservice, SamsungWidget_News, SamsungWidget_ProgramMonitor
    SamsungWidget_StockClock, SamsungWidget_WeatherClock, SecretWallpaper1
    SecretWallpaper2, SelfTestMode, shutdown, SnsAccountFb, SnsAccountLi
    SnsAccountTw, SnsDisclaimer, SnsImageCache, SnsProvider, SocialHub
    SocialHubWidget, SPPPushClient, Street, Tasks, VoiceToGo, WlanTest
    wssyncmlnps, YouTube
    and some files:
    Code:
    etc/1_Power_on.ogg
    etc/PowerOn.wav
    etc/kies
    lib/libpolarisoffice.so
    lib/libKiesDataRouter.so
    build.prop addons:
    Code:
    #
    # MODIFIED BY aeM
    #
    
    # Disable boot animation for faster boot
    debug.sf.nobootanimation=1 
    
    # Disable debugging notify icon on statusbar
    persist.adb.notify=0 
    
    # Force launcher into memory
    ro.HOME_APP_ADJ=1 
    
    # Improves audio and video recording quality
    ro.media.enc.jpeg.quality=100
    ro.media.enc.hprof.vid.bps=8000000
    ro.media.enc.hprof.vid.fps=25
    
    # Video acceleration and HW debugging
    video.accelerate.hw=1
    debug.egl.profiler=1
    debug.egl.hw=1
    
    # Disables error reports
    profiler.force_disable_err_rpt=1
    profiler.force_disable_ulog=1
    
    # Saves power
    ro.ril.power_collapse=1
    pm.sleep_mode=1
    wifi.supplicant_scan_interval=120
    
    # Disables logcat
    logcat.live=disable
    
    # Phone rings immediately
    ro.telephony.call_ring.delay=500
    ring.delay=500
    
    # Better signal
    persist.cust.tel.eons=1
    ro.config.hw_fast_dormancy=1
    
    # Better call voice quality
    ro.ril.enable.amr.wideband=1
    
    # Disables sending of usage data
    ro.config.nocheckin=1
    
    # More volume steps in call
    ro.config.vc_call_steps=10
    
    # Uses Google's DNS for better internet speed
    net.rmnet0.dns1=8.8.8.8
    net.rmnet0.dns2=8.8.4.4
    net.ppp0.dns1=8.8.8.8
    net.ppp0.dns2=8.8.4.4
    net.dns1=8.8.8.8
    net.dns2=8.8.4.4
    
    # Signal (3G) tweaks
    ro.ril.hsxpa=2
    ro.ril.gprsclass=10
    ro.ril.hep=1
    ro.ril.enable.dtm=1
    ro.ril.hsdpa.category=10
    ro.ril.enable.a53=1
    ro.ril.enable.3g.prefix=1
    ro.ril.htcmaskw1.bitmask=4294967295
    ro.ril.htcmaskw1=14449
    ro.ril.hsupa.category=5
    
    # Net speed tweaks
    net.tcp.buffersize.default=4096,87380,256960,4096, 16384,256960
    net.tcp.buffersize.wifi=4096,87380,256960,4096,163 84,256960
    net.tcp.buffersize.umts=4096,87380,256960,4096,163 84,256960
    net.tcp.buffersize.gprs=4096,87380,256960,4096,163 84,256960
    net.tcp.buffersize.edge=4096,87380,256960,4096,163 84,256960

    Installation:
    1. Download and flash stock LK7 ROM:
    United Kingdom (sammobile hotfile)
    2. Download and flash lited LK7 availible in two versions:
    3. Check if I bricked your phone.. (just kidding ;) )

    Side notes:
    • Use 7zip to unpack downloaded files (http://7-zip.org/)
    • Use Odin v1.85 to flash (https://docs.google.com/open?id=0B9GFVatYEi9jbWYtalVMVFdBbWc)
    • USB Debugging in Settings->Application->Development must be ticked on for proper rooting
    • Flashing stock LK7 and lited LK7 wont remove your apps and files. It just reflash the system partition.
    • I've removed google apps (gmail, youtube, maps) so if you use them just download them from the market.
    • Try using Holo Launcher which in my opinion is superior to TW Launcher.

    Credits:
    4
    If you have some ideas about changes feel free to share ;)

    Removed apps (deodexed):
    LK7 apps - 91.49 MB (dev-host)
    Just copy apk file to /system/app folder and set permissions to 644 (rw- r-- r--)

    Changelog:
    2012-12-22 aeM ROM v1.3
    • updated source firmware to UK I8160XXLK7 (built 30.11.2012, changelist #1214896)
    • restored some system apps to maintain functionality (ie.: Stock TWLauncher, Swype, LiveWallpapers, SimToolkit)
    • bumped the version number :p

    2012-12-10 aeM ROM v1.2
    aeM_ROM_v1.2 for CWM/TWRP - 178.15 MB (dev-host)
    aeM_ROM_v1.2 for ODIN - 147.52 MB (dev-host)
    • updated source firmware to multiCSC I8160XXLK6 (built 15.11.2012, changelist #1211243)
    • restored some system apps to maintain functionality (ie.: MTP, TWLauncher, Voice Search)
    • made ZIP package for custom recovery
    • added more build.prop tweaks
    • restored TWLauncher (but modded) to maintain STOCK look
    • bumped the version number :p

    2012-12-02 aeM ROM v1.1
    aeM_ROM_v1.1 odexed - 127.84 MB (dev-host)
    aeM_ROM_v1.1 deodexed - 131.05 MB (dev-host)
    • updated source firmware to UK I8160XXLK5 (built 15.11.2012, changelist #1211379)
    • removed more apps
    • removed TWLauncher and replaced it with Holo Launcher
    • added AppWidgetPicker
    • made deodexed and zipaligned package
    • bumped the version number :p

    2012-10-24 aeM ROM v1.0
    aeM_ROM_v1.0 - 155.56 MB (dev-host)
    • initial release

    ToDo:
    0. Ideas?

    FAQ:
    1. Will this ROM void my warranty?
    YES! But you can revert to stock and the phone will look as a brand new and will revert the warranty.

    2. Will this ROM increase my flash counter?
    NO!

    3. I've got a LK7 firmware and a custom kernel right now. Will I have to reflash the kernel after flashing this ROM?
    No. The kernel remains intact as you only flash the csc and system.

    4. I've got many apps installed right now and I don't want to loose them.
    Upgrading the firmware with ODIN doesn't format the system partition, it only 'repopulate' it with the 'new' files so all your settings, sms/mms, apps and other stuff will remain intact.

    5. I see some bloatware like 'Google books', you said it was lite..!?
    This app is only in specific CSCs and I can't remove it without voiding the samsung signature thus breaking the CSC procedure during the first reboot after flashing. You can remove this app yourself (i.e. TitaniumBackup).

    TIPS:
    If you want a REALLY clean system then you could make this VERY complicated procedure:
    [Req: rooted rom, adb and odin 'installed' on pc, phone connected to pc by usb]
    1. enter recovery (turn on the phone with VolUp+Home)
    2. on pc:
    adb shell
    su
    wipe all (disregard the warning about /etc not being empty)
    exit (exits su)
    exit (exits shell)
    adb kill-server
    3. select 'reboot the system' in the recovery and enter download mode (during turning on VolDown+Home)
    4. on pc: flash my rom with odin
    5. wait for reboot and live happily with CLEAN system :D

    or for CWM/TWRP just format data/cache/system partitions ;)
    3
    so there must be a way to wipe the 'free space' like on the ntfs, right?

    EDIT:
    Yeap! Got it :D
    Code:
    dd if=/dev/zero of=zero.small.file bs=1024 count=102400
    dd if=/dev/zero of=zero.file bs=1024
    sync ; sleep 60 ; sync
    rm zero.small.file
    rm zero.file
    after this commands on the mounted system.img i've managed to make a file that is exactly the same size as the original but after compressing it has 155,5mb as opposed to 265,6mb without the 'zeroing procedure'!
    now this is what i call a progress ;)
    gonna reupload my lited package and MAYBE in some time gona make a newer release with some more tweaks ;)
    2
    Are you sure that 14 toggles (lidroid) is 100% stable?
    Cause i don't wanna waste my time on this feature just to get some bugs ;)

    as for themes.. every one can choose any theme they want so i won't add any to my rom.
    2
    Op how do i install twrp recovery ? I dont mind if flash counter goes up...
    here's the kernel with TWRP: http://forum.xda-developers.com/showthread.php?t=1962100

    As for counter not going up:
    1. Are ypu on a pre-rooted STOCK ROM? If yes, proceed to no. 2

    If no, create or download one from here: http://forum.xda-developers.com/showthread.php?t=1881964

    2. Do you have CWM installed already? If yes, proceed to no. 3

    If no, dowload antsm's kernel with CWM and flash via
    $su
    #dd if=/sdcard/kernel.bin.md5 of=/dev/block/mmcblk0p15
    #reboot

    3. After flashing CWM flash the TWRP ZIP file using CWM. And bam! no changes with the counter.

    Sent from my GT-I8160 using my superhuman powers