large files not downloading when screen is locked - Xiaomi Redmi Note 3 Questions & Answers

I'm using resurrection remix latest nougat nightly+ radon latest kernel.
while downloading large files on WIFI, 5 or 10 mins after the screen turns off, the download somehow getting discontinuous. as soon as the phone is unlocked, download continues again.
(wifi on during sleep: always,
cpu governors were changed, big:conservative & small:impulse
but these changes should not affect the download )
can somebody find out the problem why is this happening?

Dont enable dynamic fsync when you install radon. Its clear on description when isntall radon. Enable dynamic fsync will make trouble when screeen off. When copy large file

Related

Sharing CPU Sleeper APP. (EUGENE_373)

Lemme note here, I deserve no credit, all code and all work was done by Eugene_373 and anyone mentioned below, this is simply a share from the T-MOBILE GALAXY s2 section of XDA, I have fully tested this app and found it to be working wonderfully on my SGH-I777
I love eugene's deving hence the share I hope you all enjoy if this has some way helped you in anyway go over to eugene's profile donate/thank him
App Version:
CPU Sleeper
~Free to all XDA Memebers
~ Must Be Rooted to use App
What is it?
Its a fairly simple App that will put CPU 1/2/3 OFFLINE when the screen turns off. Once the screen comes back on, it will allow CPU 1/2/3 back ONLINE.
How does it work?
Since we have Dual & Quad core CPUs, we have a CPU 0 and a CPU 1/2/3, core 0/1/2/3, while the screen is off we really only need to have 1 core active "CPU0", this App will make sure CPU 1/2/3 shuts off while the screen is off, then resumes normal usage when the screen comes back on.
Compatibility?
Works with any Dual Core & Quad Core Devices!
~ICS
~Gingerbread
Battery Saving?
Battery savings all depends on Usage & idle times.
App Download: CPUSleep.apk
Version 1.5 Release Notes:
~ Battery Drain issues 100% Fixed
~ Screen on Lag 100% Fixed
~ SU issues 100% fixed
~ Auto-Start on reboot 100% Fixed
~ Fixed Auto-Start killing Cell Service
~ Su Request on Screen Wake Fixed
~ Debugging enabled for those wanting to check if it's working.
Credits:
Handlerexploit for co-creation of this wonderful App.
Script Version!
Code:
This time I present to you a script that will in theory (and so far for me, in reality) save us some battery without having to risk our hardware with undervolting! I present to you...
[B]CPU Sleeper[/B]
[U]What is it?[/U]
Its a fairly simple script that will put CPU 1 OFFLINE when the screen turns off. Once the screen comes back on, it will allow CPU 1 back ONLINE.
[U]How does it work?[/U]
Since we have dual core CPUs, we have a CPU 0 and a CPU 1, core 1 and core 2, while the screen is off we really only need to have 1 core active, this script will make sure CPU 1 shuts off while the screen is off, then resumes normal usage when the screen comes back on.
[B][COLOR="red"]WARNING! READ THIS![/COLOR][/B]
This script relies on init.d OR script manager! CM9, for some reason, tends to run this at the exact same time it runs some other script (I forget atm which) and it will clash, causing no boot! CM9 users MUST use the script manager version install! Flex Reaper appears to work fine with it as init.d. I strongly urge you to use the script manager version of this, NOT the flashable version. Always make a nandroid backup before modifying the system, including this!
[U][COLOR="Red"]Instructions[/COLOR][/U]
Available in 2 versions, script only version which you can place wherever you want and run however you want, or a CWM/TWRP flashable zip that will place the file for you in /system/etc/init.d and set permissions.
[I]Version 1: Flashable[/I]
Same as any of my flashable releases, I did most of the work for you!
Make a full backup
Download to external SD card
Install from SD card
Pick the cpu sleeper zip file
it'll be almost instant
reboot
Shouldn't be any need to clear caches or anything like that.
[I]Version 2: Script only[/I]
This can be run in 2 ways, via init.d support, or via script manager. Both are pretty similar, and can be done a number of ways, however this is the basis of how.
[U]Init.d supported kernel:[/U]
Make a backup!
Download the script file, making sure no extensions get added onto the file. Copy the file to /system/etc/init.d and set the permissions to the following:
XOX
XOX
XOX
Once done, reboot the system, and it will take effect when your system is finished rebooting.
[U]Script Manager[/U]
This method is probably the better method, and should work with any kernel/ROM. Download the script file, making sure no file extensions get added, and copy it to /system/etc. Set the file permissions to:
XOX
XOX
XOX
Once done, load up script manager, select browse as root (if it isn't already set from the crossix mod method in the guide) then browse to /system/etc and select the script file S98cpu_sleep, then select ROOT and BOOT options. After this is set, reboot system.
[U]What do I do if I can't boot after using this?[/U]
You made that backup, right? Ok, then here is what you do.
Hold the power button until the tablet powers off
Press and hold the volume down button, next to the screen lock switch
Press and hold Power (while holding volume down)
Once the recover kernel message comes up, release the buttons
In CWM go to advanced, mounts, mount system, then format system
In TWRP, go to wipe, then wipe system
In CWM go to restore, advanced restore, restore ONLY system
In TWRP select restore, then uncheck all so ONLY system is checked
After restoring system, wipe cache and dalvik cache, then reboot system.
System should boot normally.
[B]Downloads[/B]
Available in 2 versions, script only version which you can place wherever you want and run however you want, or a CWM/TWRP flashable zip that will place the file for you in /system/etc/init.d and set permissions.
Dual Core:
Download: [COLOR="Red"]Script Only - Recommend Install via Script Manager App[/COLOR]
[URL="http://d-h.st/N1N"]CPU Sleeper script only[/URL]
Quad Core:
Download: [COLOR="Red"]Script Only - Recommend Install via Script Manager App[/COLOR]
[url=http://www66.zippyshare.com/v/9249467/file.html]cpusleep[/url]
[COLOR="Red"]Download: ClockworkMod Recovery .zip for T989 / I727[/COLOR]
[url=http://www19.zippyshare.com/v/51836824/file.html]CPU_Sleeper.zip[/url]
Thanks to [COLOR="DarkGreen"]pio_masaki[/COLOR] for rewriting the OP
Used this for a day now. Seems to work. Will test some more. Using the app by the way.
Ported VK w/ bad ass Jkay.
Siyah synthetics and K-tuned for maximum performance.
hotplug, sched_mc
I'm running aokp + fluxxi also..is this app any different from hotplug settings or SCHED_MC level settings in xxTweaker?
Krysten17 said:
I'm running aokp + fluxxi also..is this app any different from hotplug settings or SCHED_MC level settings in xxTweaker?
Click to expand...
Click to collapse
Hotplugging and sched_mc are kind of synonymous. The difference is that sched_mc allows you to force a particular pattern of behavior (1 = fill 1 core first, 2 = activate both). This app attempts to force 1 core offline when the screen is off. It's kind of like an extreme version of sched_mc = 1 in that it doesn't allow both cores to be activated. However, I'm not sure if it is capable of preventing the second core from coming online. It may check periodically and subsequently turn it off. I don't think it would have much benefit on our devices; our hotplugging is competent and sufficient. I suppose anything is worth trying though.
looks interesting!
Every now and then i get cpusleep has been granted superuser permissions when the screen is on and im surfing the net or playing a game.
Ported VK w/ bad ass Jkay.
Siyah synthetics and K-tuned for maximum performance.
stevehkim said:
Every now and then i get cpusleep has been granted superuser permissions when the screen is on and im surfing the net or playing a game.
Ported VK w/ bad ass Jkay.
Siyah synthetics and K-tuned for maximum performance.
Click to expand...
Click to collapse
Oh I forgot to update the APK link its been updated download and install the latest version
Sent from my SGH-I777 using Tapatalk 2
Here's the original thread created by the app dev if anyone was wondering:
http://forum.xda-developers.com/showthread.php?t=1745132
Tried it for almost 3 days. Didnt help. No noticeable gains so I uninstalled
just uninstalled it too after seeing no real gain for two days.
Sent from my SGH-I777 using xda app-developers app
Thanks for all who posted. I'm running xxtweaker fluxii aokp . Any advice other than what's listed here for hot plug settings. Thanks
Sent from my SGH-I777 using xda premium
Does it work fine with setcpu ?

[ROM] [TF201] [JB Bootloader] AOKP JB Unofficial - JZO54K - Oct 31 2012

This is an unofficial build of AOKP (Android Open Kang Project) for the new Jelly Bean bootloader for the Transformer Prime.
This uses a modified version of my Jellybean CM device & vendor tree... including the new 3.1 Jelly Bean kernel and the new Jelly Bean drivers and proprietary files. THIS REQUIRES THE NEW JELLY BEAN BOOTLOADER.
For the most case, this ROM uses the official commits to the AOKP github. The exceptions are the TF201 device specifics. This ROM uses the new 3.1 Jelly Bean kernel and the new Jelly Bean drivers and proprietary files.
Highlights of this ROM:
1) Android Jelly Bean 4.1.2 JZO54K
2) Built using the latest AOKP changes as of 31 Oct 2012 6:30PM Pacific Time (GitHub / Gerrit)
3) Uses the a modified and tweaked version of my CM10 TF201 device tree with the Jelly Bean 10.4.2.15 kernel (3.1) and proprietary files & drivers with some changes (GitHub)
4) Needs the new Jelly Bean 10.4.2.15 bootloader [IMPORTANT: Flashing over an incorrect bootloader can permanently brick you device.]
5) HDMI audio/video streaming and bluetooth audio streaming (AVRCP 1.3 ready)
6) Camera and microphone
7) 4-way reboot menu (Reboot, Recovery, Fastboot & APX Mode)
8) Includes all the files and changes need for the Google Widevine DRM [untested!!]
9) CIFS and NTFS (read-only) support
10) Dock battery display
12) All other features of AOKP and Jelly Bean (full hardware acceleration, Project Butter, HD video, customisable notification toggles & many more)
13) Some custom addons and feature ports by me...
New in Oct 31 2012 build:
1) BFQ v5, SIO & V(R) I/O schedulers. SIO set as default
2) Lulzactive & Pegasusq CPU frequency governors.
3) Standardise CPU frequency tables' values & disable Asus system mode CPU speed restrictions
4) Enabled zRam/Compcache & KSM (Kernel SamePage Merging) support
5) Fixed model number & LCD density
6) Several device overlay updates and cleanups (bunch of updates for JB)
7) Auto-brightness turned off by default
8) Cleaned-up & updated release tools script (this creates the zip packages)
9) Set correct permission for BtService.sh (Bluetooth DUN) script
10) Force NV_FPS_LIMIT to 60 for all performance modes
11) Device Advanced settings menu to set Asus performance modes (defaulted to Balanced). This is not for the CPU speed, rather the Tegra performance setting (cpuX.sh like functionality) [Read know issues below]
13) Updated device power profile based on official JB release
Known issues:
1) Some locale specific layout for the dock keyboard may not work
2) Auto-brightness is funky [Use the app Lux for auto-brightness]
3) NTFS support is read-only
4) exFAT is not yet supported
5) Torch does not work
6) The "Device Advanced settings" does not show up in the Setting menu. If you want to use it, use an after-market launcher (Apex, ADW, Nova, etc.), and create a Shortcut to the Asus Transformer Prime settings...
Important:
1) Wipe data/factory reset if coming from any other ROM
2) After flashing a build, it is a good idea to wait for 5-10 mins after bootup to allows everything to settle in
3) If you have not upgraded to the official Jelly Bean ROM yet, you will need to flash my CM10 Oct 13 2012 build or a stock JB ROM first to upgrade your bootloader, and then you may flash the latest build here.
4) Make sure you use a recovery compatible with the new Jelly Bean bootloader after flashing this ROM.
The usual 9 yards:
1) Have you read this post properly. Read it again!!
2) You need to have an unlocked bootloader
3) You need to have a custom recovery (CWM or TWRP)
4) It is a good idea to have enabled nvFlash (thanks to AndroidRoot) so that you can recover from almost any brick
5) Neither I, nor the AOKP team, nor the AndroidRoot team take any responsibility if anything goes wrong. Use at your own risk
6) Always make sure you create nandroid backups regularly
aokp_tf201_unofficial_Oct-31-12-jbbl.zip [IMPORTANT: You need to upgrade to the JB bootloader before flashing this. You must do a full wipe!!]
Google Apps Pack 20121011
GitHub Sources:
Device Tree
Kernel
Vendor Tree
Tweaks & Mods:
1. GPS Config Tweaks (Multi-Region):
This has various regionally optimized GPS configuration tweaks to inprove GPS locking.
Download tf201-GPSTweaks.zip and flash using TWRP recovery
tf201-GPSTweaks.zip - Dev-Host
tf201-GPSTweaks.zip - Goo.Im
2. SysCtl And DNS Tweaks:
This has a set of SysCtl tweaks to improve multi-tasking and overall performance as well as makes use of the Google DNS servers which are generally faster.
Download tf201-SysCtlAndDNSTweaks.zip and flash using TWRP recovery
tf201-SysCtlAndDNSTweaks.zip - Dev-Host
tf201-SysCtlAndDNSTweaks.zip - Goo.Im
3. Build.Prop Tweaks:
A compilation of build.prop tweaks tested on the TF201
Read here
4. EXT4 Journaling Tweaks: (Advanced Users Only. Manual Steps Involved)
If you don't understand these commands, you probably should lean more about them before using these tweaks.
Read here
Useful threads:
TF201 NVFlash
TF201 nvFlash General Users Guide [Unbrick/Recover/Downgrade/Upgrade]
[ADB/FB/APX Driver] Universal Naked Driver
TWRP Recovery For JB Bootloader
Support the project:
Donate to AOKP
Donate to AndroidRoot
Donate to me (craigacgomez)
Credits:
AOKP Team & Contrbutors, AndroidRoot Team, CyanogenMod Team & Contributors, Jermaine, TeamWin
Google, Asus, nVidia
Goo.im, Dev-Host
Me!!
New in Oct 28 2012 test build:
1) Latest AOKP changes and kernel & drivers from the official Jelly Bean update
2) Uses the stock Jelly Bean kernel (no extra features like the Oct 27 build)
3) Fully functional dock keyboard
Older Releases:
New in Oct 27 2012 test build:
1) Latest AOKP changes and kernel & drivers from the official Jelly Bean update [The kernel has all the same features as my unofficial CM10 kernel which are listed below]
2) Low memory killer tweaks (memory compaction) [Ported from CM10 Nexus 7 kernel]
3) Standardise CPU frequency tables' values.
4) Disable Asus system mode CPU speed settings
5) Enabled KSM (Kernel SamePage Merging) & zRam/Compcache support
6) Added LCD density property to build.prop
7) Lulzactive CPU Frequency Governor v2: Created by Tegraak. Based on "interactive" governor, inspired by erasmux's "smartass" governor [Ported from clemsyn's Nexus 7 kernel]
8) Pegasusq CPU Frequency Governor: Samsung's own multi-core aware governor. Based on "on demand", controls hotplugging [Ported from clemsyn's Nexus 7 kernel]
9) SIO I/O Scheduler [Ported from clemsyn's Nexus 7 kernel]. Set as default.
10) V(R) I/O Scheduler [Ported from clemsyn's Nexus 7 kernel]
11) BFQ v5 I/O scheduler [Ported from CM10 Nexus 7 kernel]
Going to be testing this once download and backups are finished nice to see a new ROM here.
After "Initiating swagger" tablet just restarts.
nizhnyk said:
After "Initiating swagger" tablet just restarts.
Click to expand...
Click to collapse
Keep the issue reports coming.... it'll help me...
craigacgomez said:
Keep the issue reports coming.... it'll help me...
Click to expand...
Click to collapse
ok will try to re-install, since nobody else has similar issue.
AOKP Wallpapers doesn't work not a big deal, some navigation bar settings dont stick like setting the spacing between the soft buttons, also the recent apps button has the glow cut off. All minor bugs that don't affect performance at all. I feel performance is below that of cm10 but for an early test build it is fantastic
Not sure if its just mine but the Navigation soft keys are not space correctly. Too wide. With 4 soft keys it takes up half of the left side. Just reporting. Can't wait for more. Thanks Craig.
xxxdroidxxx said:
Not sure if its just mine but the Navigation soft keys are not space correctly. Too wide. With 4 soft keys it takes up half of the left side. Just reporting. Can't wait for more. Thanks Craig.
Click to expand...
Click to collapse
Yes you can change the space in settings.
Will go back to cm10, don't think I like AOKP, it's basically same cm10 just loaded with a lot of stuff that I don't need, and looks like it's slowing the performance, animations from changing apps or from pop-up's are very slow and laggy.
craigacgomez, any way you could fix MTP connection (I have to use it a lot) ?)) On this rom it does't work too.. or maybe that's just me. But other than that your cm10 rom is great)
nizhnyk said:
Yes you can change the space in settings.
Will go back to cm10, don't think I like AOKP, it's basically same cm10 just loaded with a lot of stuff that I don't need, and looks like it's slowing the performance, animations from changing apps or from pop-up's are very slow and laggy.
craigacgomez, any way you could fix MTP connection (I have to use it a lot) ?)) On this rom it does't work too.. or maybe that's just me. But other than that your cm10 rom is great)
Click to expand...
Click to collapse
AOKP focuses more on extra customisation... CM10 more on features & stability... there is a lot of cross merging between th e two...
I haven't had any issues with MTP, so could you provide a logcat?
So far so good, installation with only one hiccup, a hot reboot while opening for the first time Play and a freeze while navigating in Performance Menu.
Fr a try it's already a masterpeace !
wifi won't turn on
craigacgomez said:
AOKP focuses more on extra customisation... CM10 more on features & stability... there is a lot of cross merging between th e two...
I haven't had any issues with MTP, so could you provide a logcat?
Click to expand...
Click to collapse
saved those logs right after restarting tablet and connecting to computer. (Shows message: Unfortunately, the process android.process.media has stopped)
nizhnyk said:
saved those logs right after restarting tablet and connecting to computer. (Shows message: Unfortunately, the process android.process.media has stopped)
Click to expand...
Click to collapse
Do you have a micro SD card? What is it formatted as??
craigacgomez said:
Do you have a micro SD card? What is it formatted as??
Click to expand...
Click to collapse
ext4, used for data and cache, I think I should try to remove the mounts from vold.fstab, but really never had that problem before and always using SD card.
nizhnyk said:
ext4, used for data and cache, I think I should try to remove the mounts from vold.fstab, but really never had that problem before and always using SD card.
Click to expand...
Click to collapse
Yes, that's your problem... vold won't handle ext4... your logcat says it could not understand the volume type...
W/MountService( 415): getVolumeState(/storage/sdcard1): Unknown volume
Unless you modify the kernel ramdisk to handle the data to sd, it will fail....
craigacgomez said:
Yes, that's your problem... vold won't handle ext4... your logcat says it could not understand the volume type...
W/MountService( 415): getVolumeState(/storage/sdcard1): Unknown volume
Unless you modify the kernel ramdisk to handle the data to sd, it will fail....
Click to expand...
Click to collapse
ok I removed the mounting from vold, still doesn't work. still shows "getVolumeState(/storage/sdcard1): Unknown volume" I think its going to show it even if there is no sd card inserted, and normally bad sd card will not cause MTP to not work.
nizhnyk said:
ok I removed the mounting from vold, still doesn't work. still shows "getVolumeState(/storage/sdcard1): Unknown volume" I think its going to show it even if there is no sd card inserted, and normally bad sd card will not cause MTP to not work.
Click to expand...
Click to collapse
Can you share the output of the "mount" command???
nizhnyk said:
After "Initiating swagger" tablet just restarts.
Click to expand...
Click to collapse
That may not have anything to do with the ROM
Sent from my Transformer Prime TF201 using XDA Premium HD app
If you have HarryBean 1.3 correctly installed you can safely install this rom correct?

[kernel][v3.5] leanKernel: minimalistic kernel (1/28/16)

[kernel][v3.5] leanKernel: minimalistic kernel (1/28/16)
leanKernel is not for everyone.
My philosophy is to keep the kernel footprint as small as possible by trimming as much fat as possible, and at the same time keeping it stable, power efficient, and fast. leanKernel is designed to be a drop in replacement for stock kernel, and so it tries not to deviate too far from stock.
You will find that it's lacking some of the bells and whistles of other custom kernels, so if you like features you came to the wrong thread.
Here's a longer post on what leanKernel is about.
Also folks, please read the FAQ before asking questions.
INSTRUCTIONS
If you like to stay as close to stock as possible: 1) Download and flash the normal leanKernel build here (find the latest zip file) in recovery. 2) Reboot and enjoy better performance and battery life (hopefully). That's it! There's no need to flash stock kernel first, or to wipe caches.
If you like to customize, read through the feature list below, the FAQ (post #2), the changelogs, and optionally the entire thread. Then you'll know what to do.
DOWNLOAD (flash in recovery)
v1.x is for Android 5.0, and v2.x is for Android 5.1
main download
mirror (may need to refresh browser to see latest)
PREREQUISITE
Unlocked bootloader, custom recovery installed
Push bullet channel: imoseyon
FEATURES
custom voltage control - use your favorite app
updated to latest 3.10 Linux
interactiveX - screen_off_maxfreq support (default 2.2Ghz)
sw crypto drivers updated (to use arm NEON instructions) for better encryption/decryption performance. Sequential 180MB/s reads, 60MB/s writes (using dd)
latest Linaro gcc 4.9 toolchain (optimized for a15 - thanks to Christopher83)
fat trimmed and various performance tweaks
f2fs support (updated to latest source from Samsung)
force encryption turned off (changed to encryptable)
overclocked to 2.9ghz (experimental - available as a separate build for now)
underclocked to 223mhz (experimental - available as a separate build for now)
Async Fsync
init.d support
cpu-boost control - enable/disable via lkconfig
lkconfig script for customizing leankernel (open terminal app, become superuser, then type "lkconfig" without quotes)
patched mpdecision to prevent changing min/max freq provided as flashable zip (in util directory)
color control (thanks to @savoca)
charging led support
a lot of unnecessary stuff removed from stock kernel
some components updated to Linux 3.18
random generation optimization including e/frandom support
pc/usb charging with boosted current ~300-400mA
some selinux fixes, selinux is enforced by default - staying true to stock (you can easily disable using lkconfig)
SLUB allocator updated to Linux 3.18
wake gesture control from flar2, modified for leankernel (also disabled in-call)
vibe strength control
much of the code is up to date with latest from CodeAurora
(mostly for devs) /sys/module/selinux/parameters/force_audit sysfs node to audit all/hidden selinux denies.
power aware cpu scheduling
faux sound enable/disable by sysfs (and lkconfig)
wakelock control (smb135x, wlan_rx, msm_hsic and sensor_ind)
leanKernel core control script
user option to prevent mpdecision/msm_thermal from changing min/max frequencies: frequency mitigation preventer
supports kexec for multirom
LKCONFIG
You can use lkconfig script to make custom changes to leanKernel (along with popular apps like Kernel Tweaker and Trickstermod). To run lkconfig, open terminal app, "su" (without quotes) to become superuser, enter, and then type "lkconfig" without quotes, then enter.
Code:
[email protected]:/ $ su
[email protected]:/ # lk
leanKernel configurator
---
0) display current settings
1) cpu frequency control
2) wake gesture control
3) wakelock control
4) charging led
5) rgb/picture control (advanced)
6) rgb/picture control (simple)
7) vibe strength
8) power saving mode for cpu scheduler
9) faux sound control
10) selinux mode
11) min/max freq change prevention
21) check top 10 wake locks (ie. wakeup sources)
please enter a number (or press enter to exit):
CHANGELOG
https://github.com/imoseyon/leanKernel-shamu/wiki/Marshmallow-ChangeLog
Thanks to @guitarshredder87, @Wera750, @akellar, and @grisha1 for testing test builds!
XDA:DevDB Information
Leankernel: Minimalistic Kernel, Kernel for the Nexus 6
Contributors
Imoseyon
Source Code: https://github.com/imoseyon/leanKernel-shamu
Kernel Special Features:
Version Information
Status: Stable
Created 2014-11-26
Last Updated 2016-01-31
FAQ
I'm having trouble waking the phone sometimes. Help!
We haven't really figured out exactly what's causing it - but there seems to be evidence that it's not limited just to leanKernel. One thing to try: if your ROM has a feature that prevents accidental wakeups, disable it!
I can't seem to get min and max freq to stick! What are these mpdecision zip files in the util directory?
* Read this post: http://forum.xda-developers.com/showpost.php?p=58135730&postcount=1474
* Short version: This is actually by design of mpdecision. If you want this behavior to change, I recommend that you 1) flash latest stable leankernel, 2) flash the custom no-freq mpdecision, and then 3) disable cpu-boost via lkconfig. Do not disable mpdecision if you go this route. Also, if you flash ROM, you must re-flash custom mpdecision. To go back to normal, flash the stock mpdecision file.. Launch lkconfig, choose core control, and choose one of the options in core control.
Will flashing leankernel decrypt my phone storage?
If you're already encrypted, then it will stay encrypted after flashing kernel, *until* you format data. Once you format you will stay decrypted until you decide to encrypt again (see below). If you're already decrypted, leanKernel will not force encrypt automatically.
What do I do to encrypt again?
There are several ways to do this. One way (easiest for me at least) is to adb in (or in terminal emulator):
Code:
[email protected]:/ # start encrypt
You will see the phone hot boot and once it comes up you will be encrypted again. Keep in mind that if you want to decrypt again you'll have to wipe.
How do I check the PVS BIN of my cpu?
Code:
[email protected]:/ # cat /proc/cpu/msm_acpu_pvs
The number you get should range between 0 and 15 (inclusive). If you ended up with 15 congratulations. If you ended up with 0, go get it exchanged! Stock frequency/voltage table: http://pastebin.com/ZyGA9Tec
Which kernel control app do you recommend?
When v1.0 gets released it should come with "lkconfig" for tweaking some of the options. Otherwise, I tried Trickster and KernelTweaker, and they both seem to work ok.
What are ondemandX and interactiveX?
ondemandX and interactiveX are very very close to "stock" ondemand and interactive governors, respectively. The only difference is screen_off_maxfreq sysfs support. This means that it gives you the ability to limit phone's max frequency when screen is off. This feature could be effective in reducing battery usage, especially if you have a misbehaving app (or two) that consume cpu cycles while screen is off. The default value is 2265600 - if you change the value to your top speed you're effectively disabling the feature and restoring stock behavior completely. You can use an app like Trickster or Kernel Tweaker to modify screen_off_maxfreq.
HELP! I messed up with lkconfig - how do I go back?
Do not fret. Flash lkconfig_cleaner.zip from the "util" directory.
(If you want to do this manually), reboot the phone into recovery, mount /data, and delete everything in /data/data/leankernel. Once things are back to normal, re-run lkconfig to re-do your settings.
What is cpu-boost?
Read this post: http://forum.xda-developers.com/showpost.php?p=57215289&postcount=535
What is the best RGB setting?
http://forum.xda-developers.com/showpost.php?p=57265483&postcount=620 (old)
http://forum.xda-developers.com/showpost.php?p=59092146&postcount=3017 (new)
What is power aware scheduling?
Read this post: http://forum.xda-developers.com/showpost.php?p=58313978&postcount=1651
I missed your kernel when I switched to N5. Glad to have you here
hmm.. a kernel. since its the first one posted here, im trying it out
Hell yeah. Ready to flash
Sent from my AOSP on Shamu using XDA Free mobile app
If I flash this it will decrypt right cool
digweed4me said:
If I flash this it will decrypt right cool
Click to expand...
Click to collapse
It should not decrypt if you're already encrypted, unless you re-format/wipe. But no guarantees.
Imoseyon said:
It should not decrypt if you're already encrypted, unless you re-format/wipe. But no guarantees.
Click to expand...
Click to collapse
What app should we use to control? I remember you used to have your app right
holy **** Imoseyon. you made my Thunderbolt usable way back when. so glad to see you developing for the N6 now
digweed4me said:
What app should we use to control? I remember you used to have your app right
Click to expand...
Click to collapse
Flashed it and yes decrypted thanks a lot
IMO!! Good to see ya again man. Can't wait to run your work again.
Appreciate it!
digweed4me said:
What app should we use to control? I remember you used to have your app right
Click to expand...
Click to collapse
You mean lkconfig? Yeah that's coming later (along with a whole lot more).. If you're talking about f2fs, you'd want to use custom recovery but TWRP for shamu doesn't support f2fs yet - i had to do everything manually.
Imoseyon said:
It should not decrypt if you're already encrypted, unless you re-format/wipe. But no guarantees.
Click to expand...
Click to collapse
i am still encrypted, and did not decrypt after flashing. so, all worked as it should.
Can we flash on stock ROM or is a custom ROM required?
So let me see if I get this straight: I'm on stock, unlocked bootloader, rooted, and encrypted (as far as I know--I never decrypted), so if I flash this it won't decrypt my device? I was kinda hoping it would.
Secondly, I'm good to flash this with stock ROM? I'm hoping for a bit better battery life.
Thanks devs! I got a feeling development for our device is gonna be NUTS!!
You don't buy a Mustang for the gas mileage.
nycdiplomat said:
Can we flash on stock ROM or is a custom ROM required?
Click to expand...
Click to collapse
I'm on a stock ROM.
pathtologos said:
So let me see if I get this straight: I'm on stock, unlocked bootloader, rooted, and encrypted (as far as I know--I never decrypted), so if I flash this it won't decrypt my device? I was kinda hoping it would.
Secondly, I'm good to flash this with stock ROM? I'm hoping for a bit better battery life.
Thanks devs! I got a feeling development for our device is gonna be NUTS!!
You don't buy a Mustang for the gas mileage.
Click to expand...
Click to collapse
wipe before flashing, youll be decrypted. if you dont wipe, you stay encrpted.
pathtologos said:
So let me see if I get this straight: I'm on stock, unlocked bootloader, rooted, and encrypted (as far as I know--I never decrypted), so if I flash this it won't decrypt my device? I was kinda hoping it would.
Secondly, I'm good to flash this with stock ROM? I'm hoping for a bit better battery life.
Thanks devs! I got a feeling development for our device is gonna be NUTS!!
You don't buy a Mustang for the gas mileage.
Click to expand...
Click to collapse
AFAIK, there's no way to decrypt without having to wipe unfortunately. Going the other way (unencrypted to encrypted) is super easy though, and no data loss.
nycdiplomat said:
Can we flash on stock ROM or is a custom ROM required?
Click to expand...
Click to collapse
im on rastapop, an aosp based custom rom.
simms22 said:
wipe before flashing, youll be decrypted. if you dont wipe, you stay encrpted.
Click to expand...
Click to collapse
Thanks for your quick response. Wipe what tho? Cache, dalvik, and what else? Hope you don't mean all my data.
You don't buy a Mustang for the gas mileage.

Remix 3.0.207 - newer kernel ?

Hello all, please has someone already succeeded in running Remix with newer kernel ? I'm asking as I have some issues that I hope could be solved by using newer kernel...
I already tried booting it with 4.9 kernel taken from some beta Android 7.1 for x86. (I had to unsquash the system.sfs and squash it again using gzip, as that kernel has no support for LZ4 compression). The kernel itself boots ok, I can even boot to shell using DEBUG=2. But when trying normal boot, it ends with some emergency remount r/o and reboots so quickly I can't read the messages. It also says it saves logs to some location, but there are no saved.
The issues I see, that I hope could be better using newer kernel then with the original 4.4 from Remix 3.0.207 are:
- Some CPU idle states problem, probably related to quite new Intel CPU J4205, causing system very very slow and unusable. As workaround I'm booting with "idle=halt" option, but that probably has bad influence on cpu power. The 4.9 kernel seems to work ok even without this option.
- After wakeup from standby, the 1st CPU core runs on max. frequency all the time, and at the same time problems like bad video playback performance start. No process seems to be causing that, there is still some 380% out of 400% cpu idle, similar like before standby.

Development [Kernel][GKI][05.03.2023][Android 13] Kirisakura 1.0.3 for Sony Xperia 1 IV aka "Nagara"

Kirisakura-Kernel for the Sony Xperia 1 IV
Hello everyone,
To keep it short: Here is Kirisakura- GKI - Kernel for the Sony Xperia 1 IV aka Nagara. Nagara is the internal codename for this years development platform of Sony Mark IV devices.
I would appreciate if everybody that flashes the kernel, reads at least once through this opening post and the following ones.
Kirisakura - Kernel is designed to bring a handful of beneficial features to the device, while ensuring excellent performance and smoothness to get you safely through the day!
If you expect a custom kernel to magically improve your devices battery life manifold and this is your only priority then this might not be the right place for you.
There´s also a cpu-battery saver mode that cuts back the CPU max- freqs, but without the disadvantages like delayed notifications from built into the system user-space power-saving modes.
If that got your curious, I welcome you to continue reading if you´re still interested!
Now lets continue with a list of features in the next paragraph!
Main Features:
- Based on kernel/common 5.10.149
- compiled with Clang 12.0.5
- CPU-Battery saver to be able to restrict max cpufreqs on the fly, without enabling powersaving modes that might cause missed notifications (see second post)
- SSG IO scheduler for reduced overhead and less CPU cycles (more lightweight and android optimized)
- Power saving workingqueues enabled by default
- Change various drivers to use power efficient workingqueues. This compliments EAS in general
- implement LRNG (thanks @arter97, see arter kernel OP for more info )
- Enable support for TTL spoofing
- wakelock blocker with the ability to block any wakelocks (dangerous, use with caution)
- please read [URL="https://arstechnica.com/gadgets/2018/08/p-is-for-power-how-google-tests-tracks-and-improves-android-battery-life/"]this for further info
- f2fs improvments for better efficiency
- scheduler improvements
- psi fixes
- Flashing the kernel will keep root!
- Flashable via EXKM, FKM or TWRP (if available) on a rooted system!
Flashing Guide, Download and Changelog
Requirements:
- unlocked Bootloader
- USB-Debugging in developer options enabled
- latest adb and fastboot binaries
- working adb and fastboot environment
- magisk root
- a backup of stock boot.img or your magisk patched boot.img in case you want to go back to stock.
How to flash the Kernel:
1. Download the latest kernel.zip and make sure you have properly updated to the latest matching Firmware (check the feature list for the current firmware the source is based on). When there´s an OTA update for the Sony Xperia 1 IV it takes Sony a while to release the source code for the new OS and me a while to build a new kernel. If you don´t want to face any issues, wait until I either release an updated kernel or give green light because there were no kernel changes.
If you want to be sure there are no issues, always make sure to run the firmware the kernel is built for!
If you feel adventurous and try in advance, make sure you have a backup ready!
2. Flash the kernel.zip via latest TWRP (if available), EXKM or FKM app and do a full reboot.
3. Reboot and profit.
DOWNLOAD:
Download is located always in this folder, or attached to the release posts in case AFH is wonky.
https://www.androidfilehost.com/?w=files&flid=335705
Important: Read after Download
Please take a look at the second post after flashing the kernel!
Changelog:
Android 12
1.0.0 Initial Release
Android 13
1.0.0 https://forum.xda-developers.com/t/...-xperia-1-iv-aka-nagara.4480653/post-87711541
1.0.1 https://forum.xda-developers.com/t/...-xperia-1-iv-aka-nagara.4480653/post-87945391
1.0.3 https://forum.xda-developers.com/t/...-xperia-1-iv-aka-nagara.4480653/post-88241223
Donations:
Donations are not mandatory but very welcome if you want to support development or just buy me a coffee/tea
If you like my work: http://paypal.me/freak07
Credits:
Sony for the development device, giving me the opportunity to create this project!
@osm0sis for all his work, including the ak3 installer!
@tbalden for being the best HTC, Pixel, OnePlus and now Asus wingman!
@LeeDroid and @mwilky for their awesome roms and work I used on multiple devices!
@Captain_Throwback for all the mentoring and guidance!
@Eliminater74 for bringing me into the game and the Inspiration
@nathanchance for his upstream guidance and assistance
@RenderBroken for helping me out
@flar2 for all his work
@joshuous for all the help he provided to me in the past!
@arter97 for giving me advice
@kdrag0n for his help and advices!
@topjohnwu for magisk!
Source Code: https://github.com/freak07/Kirisakura_GKI_Nagara
F.A.Q:
Question: Is root preserved when flashing this kernel?
Answer: Yes, the AnyKernel.zip will detect root and keep it.
Question: Safetynet does not pass on my phone since I unlocked the phone, why is this so?
Answer: Google introduced hardware backed attestation recently. Unfortunately the old kernel tricks to still get safetynet passing won´t work. Instead you will have to rely on some magisk modules. Short guide in post #4 below.
Question: How do I return back to stock or another kernel.
Answer: Extract boot.img from the matching firmware you are on (you can do so by using this tool or similar ones found on XDA and when googling around) and flash via fastboot. If you want to keep root flash back the magisk_patched_boot.img. Or dirty flash your rom and re-root.
Question: Why is having Magisk installed mandatory for this kernel?
Answer: The kernel uses a ramdisk overlay to apply some settings after boot. If you are not rooted these settings will not get applied and you miss some of the optimizations.
Question: How to report bugs properly?
Answer: Have a look at post #3 in the linked thread. The linked guide is a pretty good starting point.
Before reporting any bug make sure you´re running on a stock configuration. That´s means you´re not using any mods, tweaks in kernel managers or other root tweaks , magisk modules, scripts or other modifications that alter various functions like sound mods, data traffic, sleeping behaviour, scheduler, magical battery tweaks etc.
Try to describe the issue as detailed as possible! Give your exact setup, like rom, magisk version, kernel version.
Is the issue reproducible? Does it happen frequently?
Provide logs, otherwise debugging is a lot harder. If you can already reproduce the issue and provide logs it greatly limits the amount of time I have to spent until I figure out how to reproduce it.
Feature Documentation:
Here´s a brief documentation about some of the features included in the kernel that can be changed as the user desires.
They can be accessed via either terminal, scripts or for example EXKM manager ( tools -> user settings).
CPU-Frequency Limiting:
Another option is CPU-Freq Limiting. You can now limit the CPU frequency to a few different levels with a sysfs interface. Original implementation is from @tbalden, I only changed it to be accessible via traditional root methods.
Main Switch:
sys/module/cpufreq/parameters/batterysaver
Set this option to "1" to enable the feature
Max-Frequency Selection (Input boosts, such as scrolling boost or app launching boosts will still apply, if touch boost restriction is not set to 1)
sys/module/cpufreq/parameters/batterysaver_level
Set this to "1" to restrict the max CPU-Freqs to 1,6GHZ/1,9GHZ/2,22GHZ (Little Cluster/Big Cluster/Prime Core)
Set this to "2" to restrict the max CPU-Freqs to 1,4GHZ/1,6GHZ/1,8GHZ (Little Cluster/Big Cluster/Prime Core)
Set this to "3" to restrict the max CPU-Freqs to 1,1GHZ/1,1GHZ/1,1GHZ (Little Cluster/Big Cluster/Prime Core)
Touch-Boost Restriction
sys/module/cpufreq/parameters/batterysaver_touch limiting
Set this to "1" to restrict the powerhal from boosting over the limit defined in batterysaver_level
Set this to "0" to allow the powerhal to boost above the values defined in batterysaver_level, but only during interaction with the Phone!
Screenshots:
View attachment 5309899View attachment 5309901View attachment 5309903
This is for example very useful during gaming to prevent additional heat, if not the highest performance from the CPU is required. Check if the game is running fine on level 1 or 2, and you´ll notice much less heat. Powerdraw will be reduced as well.
Another very useful trick while doing video calls or long extended navigation sessions with google maps to preserve battery or keep the phone from heating. Especially during summer if the ambient temperatures are high.
This is a very easy way to preserve battery or reduce heat without toggling the battery save mode in settings as that restricts background data usage, which can lead to delayed notifications.
How to pass Safetynet after unlocking the bootloader
With the introduction of hardware backed safetynet attestation, passing safetynet has become a lot more complicated.
Some probably remember a while ago, flashing a kernel that forced some flags was enough to pass it. However these days are gone.
Below is a short guide how to pass safetynet on phones that are flagged to use HW attestation (such as the ROG 5).
1. Make sure you´re running latest magisk canary.
2. In Magisk Manager enable both zygisk and deny list.
4. Download the latest Universal Safety Net Fix from @kdrag0n ´s github for zygisk cand flash it in Magisk Manager. Reboot.
5. Profit
Oh, my God! thank you so much for making the IV kernel
am I right to assume that CPU frequency limiting can help the phone not overheat when taking photos?
You are Awesome
tomatoketchup said:
am I right to assume that CPU frequency limiting can help the phone not overheat when taking photos?
Click to expand...
Click to collapse
yes. it should at least slow down the heat buildup. that´s the main goal behind it.
please note that 4k 120fps recording or other demanding tasks might not work without stutters if CPU gets restricted too much.
Apart from app loading times, if the usage is not super demanding level 3 works without major stutters in the UI on 120fps refresh rate.
htcmage said:
Oh, my God! thank you so much for making the IV kernel
Click to expand...
Click to collapse
Thaiban said:
You are Awesome
Click to expand...
Click to collapse
Freak07 said:
yes. it should at least slow down the heat buildup. that´s the main goal behind it.
please note that 4k 120fps recording or other demanding tasks might not work without stutters if CPU gets restricted too much.
Apart from app loading times, if the usage is not super demanding level 3 works without major stutters in the UI on 120fps refresh rate.
Click to expand...
Click to collapse
excellent <3, I don't need 4K 120fps recording I actually only do 1080p 24 because I like stabilization. so going to flash 64.0.A.8.25 and this kernel after that. million thanks!
It's a small amount, but I donated it, thank you always
htcmage said:
It's a small amount, but I donated it, thank you always
Click to expand...
Click to collapse
Thank you very much! I greatly appreciate it.
Hahaha... Hello my good friend @Freak07. Didn't know you were into Sony as well.
@Freak07 can you port it to xperia pro i ?
Developer, I have a question
If I use my work profile (shelter or island apk) I can't get into the settings menu I get a popup stating that the system UI is shutting down, maybe it's kernel related?
Should I uninstall Uperf before flashing?
Also thanks for this excellent work.
great work!Thx
to those who flashed, how is battery live ?
ist compüatible with latest sony update?
Would be interested to know, if it supports the old android kernels feature to emulate CD and DVD. Its a feature that DriveDroid needs to emulate a bootable DVD drive from an *.ISO hosted from an android device over USB. it was present in my older devices until XZ1 Compact and i was able to boot my pc off from a iso file hosted on my android device. It was much convinient than using silly PXE boot over eth0
No more update ?
Mrxyzl said:
No more update ?
Click to expand...
Click to collapse
OP will update when new Kernel sources are released and he has time. Mentioned in the first post.

Categories

Resources