[ROM][6.0.1] CyanogenMod 13 for Kingzone K1 Turbo

Search This thread

degrus

Senior Member
Apr 29, 2013
430
800
Sfax
to fix vpn in all cm12.1 roms add this in init.cm.rc

# Define TCP buffer sizes for various networks
# ReadMin, ReadInitial, ReadMax, WriteMin, WriteInitial, WriteMax,
setprop net.tcp.buffersize.default 4096,87380,524288,4096,16384,524288
setprop net.tcp.buffersize.wifi 524288,1048576,2097152,262144,524288,1048576
setprop net.tcp.buffersize.lte 524288,1048576,2560000,262144,524288,1048576
setprop net.tcp.buffersize.umts 4094,87380,524288,4096,16384,524288
setprop net.tcp.buffersize.hspa 4094,87380,524288,4096,16384,524288
setprop net.tcp.buffersize.hsupa 4094,87380,524288,4096,16384,524288
setprop net.tcp.buffersize.hsdpa 4094,87380,524288,4096,16384,524288
setprop net.tcp.buffersize.hspap 4094,87380,1220608,4096,16384,1220608
setprop net.tcp.buffersize.edge 4093,26280,35040,4096,16384,35040
setprop net.tcp.buffersize.gprs 4092,8760,11680,4096,8760,11680
 

Mr.Ak

Senior Member
Jan 14, 2015
4,411
1,969
21
*RESTRICTED AREA*
to fix vpn in all cm12.1 roms add this in init.cm.rc

# Define TCP buffer sizes for various networks
# ReadMin, ReadInitial, ReadMax, WriteMin, WriteInitial, WriteMax,
setprop net.tcp.buffersize.default 4096,87380,524288,4096,16384,524288
setprop net.tcp.buffersize.wifi 524288,1048576,2097152,262144,524288,1048576
setprop net.tcp.buffersize.lte 524288,1048576,2560000,262144,524288,1048576
setprop net.tcp.buffersize.umts 4094,87380,524288,4096,16384,524288
setprop net.tcp.buffersize.hspa 4094,87380,524288,4096,16384,524288
setprop net.tcp.buffersize.hsupa 4094,87380,524288,4096,16384,524288
setprop net.tcp.buffersize.hsdpa 4094,87380,524288,4096,16384,524288
setprop net.tcp.buffersize.hspap 4094,87380,1220608,4096,16384,1220608
setprop net.tcp.buffersize.edge 4093,26280,35040,4096,16384,35040
setprop net.tcp.buffersize.gprs 4092,8760,11680,4096,8760,11680

Awesome work,hope you will x-port DU 10.0 for mt6592 from Ara's build.
 

nervehammer

Senior Member
Nov 29, 2013
393
425
New Delhi
springrole.com
to fix vpn in all cm12.1 roms add this in init.cm.rc

# Define TCP buffer sizes for various networks
# ReadMin, ReadInitial, ReadMax, WriteMin, WriteInitial, WriteMax,
setprop net.tcp.buffersize.default 4096,87380,524288,4096,16384,524288
setprop net.tcp.buffersize.wifi 524288,1048576,2097152,262144,524288,1048576
setprop net.tcp.buffersize.lte 524288,1048576,2560000,262144,524288,1048576
setprop net.tcp.buffersize.umts 4094,87380,524288,4096,16384,524288
setprop net.tcp.buffersize.hspa 4094,87380,524288,4096,16384,524288
setprop net.tcp.buffersize.hsupa 4094,87380,524288,4096,16384,524288
setprop net.tcp.buffersize.hsdpa 4094,87380,524288,4096,16384,524288
setprop net.tcp.buffersize.hspap 4094,87380,1220608,4096,16384,1220608
setprop net.tcp.buffersize.edge 4093,26280,35040,4096,16384,35040
setprop net.tcp.buffersize.gprs 4092,8760,11680,4096,8760,11680
Is this fix works in mm based ROM ?

somewhere in map of CS:GO
 

bravonova

Senior Member
Mar 6, 2015
2,258
1,686
Pune
Redmi Note 10
to fix vpn in all cm12.1 roms add this in init.cm.rc

# Define TCP buffer sizes for various networks
# ReadMin, ReadInitial, ReadMax, WriteMin, WriteInitial, WriteMax,
setprop net.tcp.buffersize.default 4096,87380,524288,4096,16384,524288
setprop net.tcp.buffersize.wifi 524288,1048576,2097152,262144,524288,1048576
setprop net.tcp.buffersize.lte 524288,1048576,2560000,262144,524288,1048576
setprop net.tcp.buffersize.umts 4094,87380,524288,4096,16384,524288
setprop net.tcp.buffersize.hspa 4094,87380,524288,4096,16384,524288
setprop net.tcp.buffersize.hsupa 4094,87380,524288,4096,16384,524288
setprop net.tcp.buffersize.hsdpa 4094,87380,524288,4096,16384,524288
setprop net.tcp.buffersize.hspap 4094,87380,1220608,4096,16384,1220608
setprop net.tcp.buffersize.edge 4093,26280,35040,4096,16384,35040
setprop net.tcp.buffersize.gprs 4092,8760,11680,4096,8760,11680

Awesome work,hope you will x-port DU 10.0 for mt6592 from Ara's build.

Is this fix works in mm based ROM ?

somewhere in map of CS:GO

@nervehammer it is clearly written thar it is for cm 12.1. You may try on cm 13.

Added those lines in init.cm.rc but unfortunately it didn't work.
 

rockydracer

Senior Member
Mar 2, 2015
271
67
to fix vpn in all cm12.1 roms add this in init.cm.rc

# Define TCP buffer sizes for various networks
# ReadMin, ReadInitial, ReadMax, WriteMin, WriteInitial, WriteMax,
setprop net.tcp.buffersize.default 4096,87380,524288,4096,16384,524288
setprop net.tcp.buffersize.wifi 524288,1048576,2097152,262144,524288,1048576
setprop net.tcp.buffersize.lte 524288,1048576,2560000,262144,524288,1048576
setprop net.tcp.buffersize.umts 4094,87380,524288,4096,16384,524288
setprop net.tcp.buffersize.hspa 4094,87380,524288,4096,16384,524288
setprop net.tcp.buffersize.hsupa 4094,87380,524288,4096,16384,524288
setprop net.tcp.buffersize.hsdpa 4094,87380,524288,4096,16384,524288
setprop net.tcp.buffersize.hspap 4094,87380,1220608,4096,16384,1220608
setprop net.tcp.buffersize.edge 4093,26280,35040,4096,16384,35040
setprop net.tcp.buffersize.gprs 4092,8760,11680,4096,8760,11680

How settings buffer size for TCP/IP STACK will fix vpn ?
Can you please elaborate ??

---------- Post added at 04:05 PM ---------- Previous post was at 03:59 PM ----------

@fire855 awesome work man . Respect !!
 

degrus

Senior Member
Apr 29, 2013
430
800
Sfax
this to fix fc end calll

diff --git a/libs/hwui/LayerRenderer.cpp b/libs/hwui/LayerRenderer.cpp
index 83f9c6a..d41baf2 100644
--- a/libs/hwui/LayerRenderer.cpp
+++ b/libs/hwui/LayerRenderer.cpp
@@ -194,6 +194,12 @@ Layer* LayerRenderer::createRenderLayer(RenderState& renderState, uint32_t width
return nullptr;
}

+ if (width == 0 && height == 0) {
+ ALOGW("Trying to obtain a zero-size layer, setting fall-back size 512x768");
+ width = 512;
+ height = 768;
+ }
+
caches.textureState().activateTexture(0);
Layer* layer = caches.layerCache.get(renderState, width, height);
if (!layer) {
 

arizshah

Senior Member
Feb 11, 2011
95
29
Karachi
www.facebook.com
this to fix fc end calll

diff --git a/libs/hwui/LayerRenderer.cpp b/libs/hwui/LayerRenderer.cpp
index 83f9c6a..d41baf2 100644
--- a/libs/hwui/LayerRenderer.cpp
+++ b/libs/hwui/LayerRenderer.cpp
@@ -194,6 +194,12 @@ Layer* LayerRenderer::createRenderLayer(RenderState& renderState, uint32_t width
return nullptr;
}

+ if (width == 0 && height == 0) {
+ ALOGW("Trying to obtain a zero-size layer, setting fall-back size 512x768");
+ width = 512;
+ height = 768;
+ }
+
caches.textureState().activateTexture(0);
Layer* layer = caches.layerCache.get(renderState, width, height);
if (!layer) {
where to put that file?
 

Mr.Ak

Senior Member
Jan 14, 2015
4,411
1,969
21
*RESTRICTED AREA*
this to fix fc end calll

diff --git a/libs/hwui/LayerRenderer.cpp b/libs/hwui/LayerRenderer.cpp
index 83f9c6a..d41baf2 100644
--- a/libs/hwui/LayerRenderer.cpp
+++ b/libs/hwui/LayerRenderer.cpp
@@ -194,6 +194,12 @@ Layer* LayerRenderer::createRenderLayer(RenderState& renderState, uint32_t width
return nullptr;
}

+ if (width == 0 && height == 0) {
+ ALOGW("Trying to obtain a zero-size layer, setting fall-back size 512x768");
+ width = 512;
+ height = 768;
+ }
+
caches.textureState().activateTexture(0);
Layer* layer = caches.layerCache.get(renderState, width, height);
if (!layer) {

Awesome work #Upt_mantabh
 

Surajlad9

Senior Member
Feb 19, 2015
68
32
Mumbai
New build: https://www.androidfilehost.com/?fid=24499762636007486
Changelog:
- Optimized encoder handling (Screen recording fixed)
- Fixed front camera recording
- Fixed sdcard mount
- Added SmartCover support
- Added headset icon
- Various other changes (selinux, init, ...)

Awesome Sir,
Encoder Handling Fixed, Means Now Youtube can Play 720p Without Old apk ?
Can This Could be fixed in Cm12.1 Too ?
 

eben80

Senior Member
Feb 17, 2010
309
107
Kosice
Thanks for the update. I can confirm lockscreen changes are now possible bit the phone fc issue still exists as well as YouTube quality, livescreen fc and screen rotation issues. Awesome effort fire. ?

PS : has anyone managed to format external sdcard as internal memory? On mine it just gets corrupted.

Sent from my K1_turbo using Tapatalk
 
Last edited:

Top Liked Posts