[ROM][11.0][UNOFFICIAL] LineageOS 18.1 [sumire/E6653] tuned rebuild 2022-11-23 + cooldown tuning + camera quality guide - Xperia Z5 Android Development

*** Disclaimer
I am not responsible for any damage you made to your device.
Potential heat problems still there in this ROM.
If you unlock your bootloader from stock rom, be sure to backup your drm keys / TA partition in case you want to go back to stock ROM (otherwise drm keys are forever lost, and you may be missing camera features if you go back).
You have been warned.
Click to expand...
Click to collapse
I did a rebuild of LineageOS 18.1 with the sources of Berni-0815 and tarkzim, many thanks to them for their hard work!
SELinux: enforcing
Camera: Stock camera works ok at first glance (up to 8MP, camera.disable_zsl_mode=0 is set).
Small further tweaks in device/sony/kitakami-common/system.prop:
Spoiler
ro.config.hw_quickpoweron=true
ro.ril.power_collapse=1
pm.sleep_mode=1
wifi.supplicant_scan_interval=180
power_supply.wakeup=enable
ro.config.hw_power_saving=1
ro.HOME_APP_ADJ=1
profiler.force_disable_err_rpt=1
profiler.force_disable_ulog=1
ro.kernel.checkjni=0
ro.kernel.android.checkjni=0
debug.performance.tuning=1
Flashing and tuning Instructions:
Clean flash advised.
From TWRP:
1. Flash ROM + optionally gapps in a row (read https://wiki.lineageos.org/gapps and https://forum.xda-developers.com/t/...-e6653-build-2022-11-18.4517491/post-87743699), Google app may cause high battery drain though (deactivate it if need be/Google Go being a possible alternative)
Click to expand...
Click to collapse
2. Optionally: Restart to recovery / TWRP, then flash magisk
Click to expand...
Click to collapse
Attached images showing sample setup with Google apps. MMApp is Magisk renamed apk.
Click to expand...
Click to collapse
Install Android System WebView Beta to get updates for WebView (or bromite webview and ff-updater app on F-Droid).
Install Google Google Go app if you want to use Google Assistant (Google app may cause high battery drain). Chimera seems to be possible to be disabled anyway: https://forum.xda-developers.com/t/...ry-drain-due-to-google-play-services.4406617/ (edit: disabling chimera seems to cause other problems in logcat, so better leave it as it is).
For temperature cooldown use a Kernel Manager like Smartpack Kernel Manager / Franco Kernel Manager by Franciso Franco / EX Kernel Manager by flar2 (root/magisk required) and set:
- CPU: set CPU governor of little CPU to "ondemand" - saves a bit of energy compared to "interactive" cpu governor. Don't change big CPU governor (especially if you set minimum of big cpu cores to 0), because Smartpack will crash then.
In CPU governor tunables optionally also set powersave_bias to something higher than 0 (up to 100), like 50 or even 100 works fine (reduces CPU upclocking a bit)
- CPU hotplug: minimum big CPU cores to 0. Edit: Set Busy Down threshold to 40 and Busy Up threshold to 70 or 80 to reduce the probability of big CPUs being activated.
- Thermal: turn on all three thermal drivers (seems to work despite the warnings).
Click to expand...
Click to collapse
- Edit: set GPU governor to "simple_ondemand" too, it's more balanced than msm-adreno-tz.
If you don't use graphics intensive apps, also set GPU max frequency to 180 Mhz - this makes a huge difference in Passmark PerformanceTest app - Open GL ES Unity benchmark (complex space game simulation), but the other 2D and 3D benchmarks in the same app are not much affected by this.
Click to expand...
Click to collapse
- i also changed I/O scheduler of internal/external sd card to deadline noop (simplest one / is supposed to save a little bit of energy). Passmark Performance Test didn't show much difference on them anyway. And disabled I/O stats for internal and external SD card.
Edit: see https://forum.xda-developers.com/t/...ng-camera-quality-guide.4515659/post-87794505
Click to expand...
Click to collapse
- Also turn on Battery saver mode (Extreme battery saver). Without it, little CPUs will clock high, with Battery saver, little CPUs will try to clock down
- and optionally Data Saver mode (quick settings)
- switch off NfC and Ambient display.
- Also enable Dark mode with pitch black Background and set a pitch black wallpaper (apps in Playstore for this available).
- Install naptime (with aggressive doze, disabling motion detection/enabling the first five options) helps for saving energy a lot. If you don't use Playstore, on F-Droid there also Doze alternatives to Naptime, like ForceDoze, beware who you give root though / or use adb to give the doze app the required permissions.
For further debloating: use the attached shell script sumirecleanapp.sh as root in adb shell or TWRP Terminal (TWRP Advanced section) with System partition mounted as writable (execute the script with "sh sumirecleanapp.sh" in the Terminal application). You can use the script direcdtly after flashing ROM and gapps in TWRP to shorten the first boot too (need to remount System partition as writable because other installscripts unmount it). Look at the comments in the script before you do so, to avoid deleting apps you might wanna use. They are backed up to /sdcard/sumirebackup/ and corresponding system subfolder though in case you wanna reinstall them. In case you reinstall an app make sure to chmod 755 to the dir and 644 to the apk files.
Click to expand...
Click to collapse
Sources (lineage-18.1 branches):
ROM: https://github.com/LineageOS/android.git
Kernel: sony msm8994 https://github.com/Professor-Berni/android_kernel_sony_msm8994
Vendor: https://github.com/Professor-Berni/proprietary_vendor_sony
Device-tree:
kitakami-common https://github.com/Professor-Berni/android_device_sony_kitakami-common
sumire https://github.com/Sony-MSM8994-Dev/android_device_sony_sumire
Local manifests: https://github.com/Professor-Berni/local_manifests (devices.xml modified to use tarkzim's sumire device sources)
Download:
ROM https://drive.google.com/drive/folders/1uq_O3lgPX4fjmzKpqnOoWIdxBvVch3bO
Issues:
Potential heat problems (tweaking advised/see instructions above,). If your phone crashes you're probably running too hot.
Edit: Stock Voice Recorder app is working
Audio/microphone recording of Whatsapp/Telegram should work
Edit: The screen brightness seems alright, no suddenly dimmed display
If you experience an app not starting (potential SELinux errors) please post a logcat with "avc: denied" errors (use MatLog app or adb logcat | grep "avc: denied")
Contributors
berni-0815, tarkzim
Thanks to LineageOS
LineageOS – LineageOS Android Distribution
LineageOS Android Distribution
lineageos.org
Build system:
Linux Mint 21, 8 GB Ram, 8 GB swap partition, ~170 GB SSD space used for the whole Linux partition with the compiled sources (repo option --depth=1), 4,5 GB ccache used.
Had to modify build/soong/java/droiddoc.go to avoid out of memory error while building the ROM, so there
after
cmd.BuiltTool(ctx, "metalava").
Flag(config.JavacVmFlags).
Click to expand...
Click to collapse
i inserted:
Flag("-J-Xmx6114m").
Click to expand...
Click to collapse

Using HedgeCam 2 (fork of Open Camera) as photo app recommended (camera2-API works there).
Also turning on some Autofocus bugfixes there may help (but test yourself).
To focus anew tap on the screen where you want the focus on.
Best results when you get a green circle and then take the photo.
Manual ISO mode makes the camera server crash on Camera2-API, so use Auto ISO mode (you can restart camera server in Hedgecam by switching the API back and forth also) or disable Camera2-API.
Note:
After using Hedgecam with Camera2-API and then builtin camera app, the latter one doesn't seem to work properly.
If you want to remove the internal Camera app, move the folder /system/system_ext/priv-app/Snap to somewhere else on /sdcard (as backup). To do so, in TWRP mount System partition, then use TWRP File manager or Terminal (advanced section).
Edit: Integrated the removal of the buitin camera app Snap into my debloating script (sumirecleanapp.sh)
Edit 2: Updated recommended camera settings, see below:
[ROM][11.0][UNOFFICIAL] LineageOS 18.1 [sumire/E6653] tuned rebuild 2022-11-23 + cooldown tuning + camera quality guide
*** Disclaimer I am not responsible for any damage you made to your device. Potential heat problems still there in this ROM. If you unlock your bootloader from stock rom, be sure to backup your drm keys / TA partition in case you want to go back...
forum.xda-developers.com

Overnight test (flight mode) of 11 hours with the above settings resulted in same accu battery percentage after the 11 hours (10% before/10% after).

CPU, CPU hotplug and GPU governor tuning suggestions updated in the first post (see also attached screenshots).
When surfing in Opera with deskop site mode, the temperatures stay like below 50 degrees at the moment with this.
Edit: For better surfing performance and battery life use mobile browser mode instead of desktop browser mode by default in your browser... complex websites (for example YouTube) suck up a lot of power for rendering in desktop mode.

Update for best Hedgecam 2 settings, giving more consistent good picture quality:
In Hedgecam 2 settings, Camera Controls, set Touch to Capture.
This enables you to click on a spot on the screen where you want the picture focus on, and take the picture immediately!
(instead of having to click on a spot in the picture to focus, and then press the camera button some seconds later - with the risk of losing autofocus, and iso auto mode changing in the meantime).
Also in Hedgecam 2 settings, Bug fixes, enable alternative flash method: Torch
These were the most consistent settings to get good picture quality in suboptimal lighting conditions for me, and also easy to use!
Note: picture quality will be best when the focus circle (where you tap the camera preview picture) turns green when (or shortly before) you take a photo.
So if you're intent to have a good quality picture just take 2 or 3 shots where Hedgecam 2 (for at least one of the pictures) gives you the green circle feedback. Focus and quality will be good then
See also the attached photo, and for comparison with HTC camera app 20MP and Open camera app 8 MP on sumire, see here in the crdroid 11 thread (same foto spot and similar lighting conditions):
[ROM+KERNEL][UNOFFICIAL][11.0] crDroid
*** Disclaimer I am not responsible for any damage you made to your device You have been warned crDroid is designed to increase performance and reliability over stock Android for your device also attempting to bringing many of the best features...
forum.xda-developers.com

For anyone interested in crDroid, i did a crDroid Android 11 / crDroid version 7.23 build for Xperia Z5/sumire, similar to this LOS 18.1 build:
[ROM+Kernel][11.0][UNOFFICIAL] crDroid 7.24 Android 11 - NOT STABLE [sumire/E6653] build 2022-11-18
*** Disclaimer I am not responsible for any damage you made to your device. Potential heat problems still there in this ROM. If you unlock your bootloader from stock rom, make sure to backup your drm keys / TA partition in case you want to go...
forum.xda-developers.com

Note: Flamegapps Device Health Services app (including Google Playstore app update for it), seems to break accu battery statistics in Settings.
Potentially SELinux or other permissions related.
So for the moment don't install Flamegapps Device Health Services (use config script).
Google app showing a lot of battery drain now, didn't use it much, just some Voice commands for Weather and Alarm clock with Assistant. Reasons could be Google Voice recognition machine learning (?). (i didn't activate the constant Google Assistant Voice listening by Hey Google). Or maybbe because i reinstalled english language(?)
A bit too much anyway.
Edit: Google Go app instead of Google app seems to work fine regarding battery usage.

W
psi78 said:
Note: Flamegapps Device Health Services app (including Google Playstore app update for it), seems to break accu battery statistics in Settings.
Potentially SELinux or other permissions related.
So for the moment don't install Flamegapps Device Health Services (use config script).
Google app showing a lot of battery drain now, didn't use it much, just some Voice commands for Weather and Alarm clock with Assistant. Reasons could be Google Voice recognition machine learning (?). (i didn't activate the constant Google Assistant Voice listening by Hey Google). Or maybbe because i reinstalled english language(?)
A bit too much anyway.
Click to expand...
Click to collapse
For comparison: the Google app doesn't show up anywhere near top on my Google Pixel 2 XL, despite i use Google Assistant Voice commands for Weather and Alarm clock there too.

Ok, Flamegapps Device Health Services app and Google app seem to be not working correctly.
Probably better follow the LineageOS advice regarding gapps (make sure to flash gapps directly after flashing the ROM):
Google apps | LineageOS Wiki
wiki.lineageos.org
Google App potentially causing high accu battery drain with Mindthegapps too though (experienced it on crDroid with Mindthegapps).

Little update to debloating script sumirecleanapp.sh (see first post), changing permissions of backup files for Security reasons.

The following qcom and other tweaks can be added to /system/build.prop (tested it on crDroid ROM version for sumire), phone is snappier and a bit cooler then (unless it's all placebo):
debug.gralloc.enable_fb_ubwc=1
debug.qctwa.statusbar=1
debug.qctwa.preservebuf=1
#debug.qc.hardware=true
#com.qc.hardware=true
com.qc.hw=1
debug.qc.hw=1
ro.config.nocheckin=1
windowsmgr.max_events_per_sec=500
ro.max.fling_velocity=12000
ro.min.fling_velocity=8000
persist.mm.enable.prefetch=true
persist.data.mode=concurrent
# buffers shared between Camera and Video
vendor.vidc.enc.dcvs.extra-buff-count=2
vendor.vidc.enc.disable.pq=1
# Bluetooth
debug.bt.lowspeed=true
net.bt.name=Android
See also https://androidforums.com/threads/qualcomm-speific-build-prop-edits.548317/

New build 2022-11-23 is up (download link in first post).
LOS 18.1 as of 2022-11-21
More tuning and possible battery optimizations:
- Kernel tuned for cortex-a57.cortex-a53 big.little setup (crashes on crdroid were crdroid related, not kernel related)
- VM optimizations for cortex-a57
- Using Open GL ES 3.2 now in build.prop (instead of 3.1 as wrongly stated there before, drivers were already 3.2)
- boot process limited to CPUs 0-3
- some more optimizations in /system/build.prop
Clean flash or semi clean flash at least recommended (wipe Dalvik, Cache, System partitions, or if possible also Data partition)
PS: I'm staying on LOS now because of crashes on crDroid still occuring under high load (even with standard kernel)
Edit: modified files regarding ROM version 2022-11-23 here:
LOS18.1_source_modifications - Google Drive
drive.google.com

My gf broke her phone and is using my Xperia Z5 now (my main phone is a Google Pixel 2 XL nowaday).
Regarding telephoning, i noted there are more crackling sounds with VoLTE in mobile settings on, and less crackling when VoLTE is switched off (german Telekom carrier). This may be also because of SmartPack throttling down the CPUs in my setup, but not sure of that.

psi78 said:
My gf broke her phone and is using my Xperia Z5 now (my main phone is a Google Pixel 2 XL nowaday).
Regarding telephoning, i noted there are more crackling sounds with VoLTE in mobile settings on, and less crackling when VoLTE is switched off (german Telekom carrier). This may be also because of SmartPack throttling down the CPUs in my setup, but not sure of that.
Click to expand...
Click to collapse
well as it happens, gf uses the phone in another way than me, and for some reason the keyboard reacted sometimes not or very slow.
in the end i deinstalled Smartpack to just deactivate all the CPU throttling and also installed Gboard.
(Extreme) Battery Saver mode and Naptime still do a lot for cooldown though - CPU cores 0-3 still throttling down to lower frequencies with Battery saver, and naptime putting unused apps quicker to deep sleep.

Ah, crackling noise, for some reason it occurs frequently with system sounds (ringtone, button presses, etc.)
I have bought my mom a new phone, so I can test things on Z5 now.

works well,thank you.

Hello, during videocalls via viber the person I am calling with is hearing himself as an echo. Has enyone such problem? I dont know if it is spec of this phone or is something wrong, I didnt use this phone with stock rom before lineageos. Thanks.

in regards to audio crackling i have been suspecting that it's rendering the audio via Software Rendering (CPU gets overloaded hence Audio Crackling) instead of utilizing the built-in Qualcomm DAC for Hardware rendering if this is not the case then you might want to look on the playback bitrate and frequency. As far as i remember tarkzim set the audio bitrate and frequency to 32-Bit/48KHz while on the previous build from sony it was only at 24-Bit/192KHz

Ramon111 said:
Hello, during videocalls via viber the person I am calling with is hearing himself as an echo. Has enyone such problem? I dont know if it is spec of this phone or is something wrong, I didnt use this phone with stock rom before lineageos. Thanks.
Click to expand...
Click to collapse
Don't have any experience with Viber, sry. In case you want to test it on stock Sony ROM, you can use Sony's Flash Tool "EMMA" to go back to stock ROM:
https://developer.sony.com/develop/open-devices/get-started/flash-tool/

_harley said:
in regards to audio crackling i have been suspecting that it's rendering the audio via Software Rendering (CPU gets overloaded hence Audio Crackling) instead of utilizing the built-in Qualcomm DAC for Hardware rendering if this is not the case then you might want to look on the playback bitrate and frequency. As far as i remember tarkzim set the audio bitrate and frequency to 32-Bit/48KHz while on the previous build from sony it was only at 24-Bit/192KHz
Click to expand...
Click to collapse
Sounds plausible
Edit: Audio crackling may be a different issue than audio echos though?
There are some threads about voice echos here on xda, some attributing it to phone cases/covers, some to hardware problems, some to noise reduction, but i don't have a clue atm if it's possible to change that.
When i do video calls in home office (on PC with webcam) i sometimes experience the problem of hearing echos.of my voice when the other person isn't using headphones, and the voice coming out of the other person's speaker is loud and recorded by their microphone again. The other person using headphones is a workaround for that, but not sure if that's a similar issue there @Ramon111 . Does it work for you with other devices than the Z5?

Related

[ROM - Stock-based] Minimoto v1.7 XT862/XT860- Less is more.

This ROM is stock XT862 5.7.906 deodexed and meticulously optimised to make the lowest use of resources possible.
The zipfile download is just 75.9Mb - everything unnecessary has been removed, many resources hand optimised and blur/moto apps replaced where better alternatives exist.
Features :-
- All hardware, camera/camcorder, sensors, GPS, bluetooth, LEDs, HDMI etc working
- Reboot+screenshot on power menu
- MMS from CM7
- Calendar from CM7
- Networklocation fixed
- Minimum and auto brightness lowered to increase battery life with screen on
- Calculator replaced with latest (2012-12-20) MobiCalc (Scientific calculator with DEC/BIN/HEX conversion)
- Blur Setup removed
- Uses standard android account+sync settings, no more need for Blur services
- optimised blurphone/dialer UI
- black themed notification bar
- vol up/down wake
- Optimised Flash player (You must reboot once for it to work)
- HDMI fixed and fully tested now
- Smooth scrolling patch from MrObvious
- Camera from Atrix, hacked for 100% jpeg quality, added fps lowlight patch in 1.65
- Gallery replaced with QuickPic
- N1 Magic Alarm replaces Blur Alarm Clock, which was very big and slow for a simple alarm app.
- ICS iconset
- Pre-rooted
- Default browser forced to desktop view and always shows debug menus
- 1% battery (using icons lifted from mavrom's framework-res.apk)
- Notification power toggles from Steel Droid 4.8
- Very minimal Gingerbread Google Apps - much smaller than the one on goo.im
- Email app from CM7, syncs contacts/calendar/email from MS exchange, Office365, Gmail, Hotmail or any POP3/IMAP account
- Total control of over/under clocking/volting
- Busybox 1.20 replaces all binaries wherever possible (lowers disk/mem/cache usage)
- Latest Holo Launcher (2013-01-06) pre-installed and updatable
- DSPManager
- FMRadio
- Quickoffice (we have a license for this as part of stock ROM, so well worth having)
- Terminal emulator (2013-01-06)
- One alarm tone "alarm classic", one ringtone "ring", one notification tone "bells"
- No bootanim/sound (shows default android logo)
- init.d support
- command line tools
---- "rw" - read/write system
---- "ro" - revert to read only
---- "ssh"/"scp"
---- "zip" - create archives from cmd-line
---- "ash" as default shell using busybox
---- "zipalign" - force zipped APK contents to 32-bit boundaries for better use of RAM
---- "repack_apks" - rezip and zipalign a dir full of apks, cd to /data/app and run it to optimise apps downloaded from market
More details, credits, how-to for overclocking etc in 2nd post.
DOWNLOAD LINK - UPDATED v1.7 - Network location fixed, optimised camera and framework-res, icons from lotzakritters, updated hololauncher, terminal, superuser, flash mod, removed unused ducati binaries, removed unused libs, added reboot+screenshot, removed VZW location services and lots more optimisations.
http://d-h.st/bI1 - XT862 version
http://d-h.st/SOc - XT860 version, thanks to docardoso, updated to fix keymap
****FLASHING INSTRUCTIONS - IMPORTANT THESE ARE SPECIFIC TO MINIMOTO ROM****
This ROM should work with safestrap 2 or 3, but has only been tested on v3.05.
To flash, first create a ROM slot in SS3, activate that slot, wipe data, then install the ZIP.
Do not clear data again after installing - this ROM installs some necessary files to the /data partition.
Credits/Howtos
Credits :-
Hashcode - for every single thing that makes this phone still worth having. Particularly safestrap3, which allows me to mod ROMs on the train to/from work and still have a working phone the rest of the time
Buckmarble - for mavrom - I used Buck's /etc directory as a quick way to get this bootable under safestrap, and the battery icons from his framework-res.apk
http://forum.xda-developers.com/showthread.php?t=1612537
Chevycam94 - for Steel Droid ROM - I used his SystemUI.apk file to add power toggles.
I've used Chevy's to save time, but plan to do my own later with less theming.
http://forum.xda-developers.com/showthread.php?t=1278056
Opptimizer projekt - for the overclocking kernel modules
http://code.google.com/p/opptimizer/
Cyanogenmod team - for their fantastic mail/calendar/mms apps
http://www.cyanogenmod.org/
Motorola - for making all our lives more difficult
http://www.motorola.com
How-tos :-
===Over/Under Clock/Volt===
You can find a template overclocking script in /etc/init.d named "02overclock".
By default, all the options are commented out.
The script includes example values tuned for my specific CPU, so yours will probably not work with these values, but it also lists the default moto values for reference.
While testing, copy the script to /data and run it from there - don't put testing values in /etc/init.d or your device may bootloop.
To edit the script, type "rw" in terminal to enter read/write mode, then make the changes you want using your favorite text editor.
First, uncomment these lines
#echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
#echo 1 > /sys/devices/system/cpu/cpu1/online
#insmod /system/lib/modules/symsearch.ko
#insmod /system/lib/modules/overclock.ko
#echo hotplug > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
Then start trying various settings for the 0,1,2,3 Steps of CPU scaling.
See the following article for details on tuning the VSEL and clock speeds to your device - proceed with caution.
http://rootzwiki.com/topic/14511-opptimizer-projekt-milestone-overclock-for-omap4-devices/
Once you have a stable set of values, in terminal "cp /data/02overclock /etc/init.d" and reboot.
Now your phone will apply these values on every boot.
Sounds cool, might give it a shot.
Couple of cuestions:
what launcher does it have? ( I know I could easily replace it, but, just curious )
since it's deodexed, do you reckon rom toolbox themes would work?
thingonaspring said:
This ROM is stock XT862 5.7.906 deodexed and meticulously optimised to make the lowest use of resources possible.
The zipfile download is just 99.5Mb - everything unnecessary has been removed, and blur/moto apps replaced where better alternatives exist.
Features :-
- Pre-rooted
- Very minimal Gingerbread Google Apps - much smaller than the one on goo.im
- Email app from CM7 - syncs contacts/calendar/email from exchange, office365, etc, also supports gmail and hotmail (works for me even without a "plus" account!)
- Total control of over/under clocking/volting
- Busybox replaces all binaries wherever possible (lowers disk/mem/cache usage)
- Latest (2012-11-07) ADWLauncher pre-installed and updatable (fast stable modern launcher)
- DSPManager (replaces "audio effects" from stock)
- FMRadio
- Quickoffice (we have a license for this as part of stock ROM, so well worth having)
- Terminal emulator
- One alarm tone "alarm classic", one ringtone "ring", one notification tone "bells"
- No bootanim/sound (shows default android logo)
- TCP/Filesystem/VM tweaks
- init.d support
- command line tools "rw" - read/write system, "ro" - revert to read only, "ssh", "scp", "zip", "ash" as default shell (busybox)
- All hardware, camera/camcorder, sensors, GPS, bluetooth, LEDs etc working
More details, credits, how-to for overclocking etc to follow.
DOWNLOAD LINK
http://www.multiupload.nl/652II0AO7F
****FLASHING INSTRUCTIONS - IMPORTANT THESE ARE SPECIFIC TO MINIMOTO ROM****
This ROM should work with safestrap 2 or 3, but has only been tested on v3.05.
To flash, first create a ROM slot in SS3, activate that slot, wipe data, then install the ZIP.
Do not clear data again after installing - this ROM installs some necessary files to the /data partition.
Click to expand...
Click to collapse
Launcher - ADW, latest as of today.
Theming - should be possible, only some static resources in framework-res.apk have been modified, which I don't think will cause any problems.
I'll update 1st and 2nd posts with a lot more info in a few hours, am at work right now, so not cool to be spending too much time on forums.
If I understand correctly this is NOT overclocked by default?
Sent from my XT860 using xda premium
It looks fine so far, with one major exception: there is no settings->accounts & sync, so, since GMail is not installed by default, I cannot set my GMail account to sync after installing the app. (I do like to tweak these settings, so I'd have to see it back.)
Also, settings->battery & data manager->battery mode force closes (not a huge issue). Settings->battery & data manager->data delivery->Social applications force closes (expected that one.) If there is a way to disable these menu items, that would be a good thing - nobody like to get an FC.
Also, like Maverick, the default typeface dos not distinguish visibly between normal and bold type. In GMail, it is nearly impossible to tell which conversations have unread messages and which do not (unread have bold type on stock.) You can sort-of tell because unread and read conversations have a slightly different background, but it's too subtle to tell at a glance - you really have to look to see the difference.
Nice to see a new rom development
@Endoroid Yep - not overclocked by default - you need to tune the overclock script in /etc/init.disabled/02overclock, testing carefully. Only when you have good settings for your CPU should you copy that script to /etc/init.d so it applies on boot.
@doogald
settings->accounts & sync - I'd recommend using the built-in email client. It handles gmail really well and has sync settings in the app.
settings->battery & data manager->battery, settings->battery & data manager->data delivery->Social applications force closes, yep both those features are removed. I'll look into tidying up the XML so it no longer shows those settings.
A patch release has just been uploaded to the OP, its a fix for headphone connectivity, well worth having.
Next target is a tidyup of the settings menus and an effort to get notification power widget and better battery/signal indicators.
Meanwhile - does anyone know of a source for a better built-in browser APK?
The D3's default one doesn't remember mobile/desktop useragent settings, so I usually end up installing Opera instead.
it will be great if you add more languages to it....
thingonaspring said:
Meanwhile - does anyone know of a source for a better built-in browser APK?
Click to expand...
Click to collapse
how about dolphin? its very fast, and has a lot of enhancements.
thingonaspring said:
@doogald
settings->accounts & sync - I'd recommend using the built-in email client. It handles gmail really well and has sync settings in the app.
Click to expand...
Click to collapse
Thanks. I'll look at the email app, but I generally prefer the GMail app for important message support, etc. Second, I like to tweak the sync settings at times - turn off Google+, for example, or turn on Picasa if I am looking for photos that I know I have online, and then turn it off when I don't need it (most of the time). There are other apps that store sync settings in settings->accounts, such as Dropbox, so I'd like/need to have those settings exposed. Also, I know that some people like to sync Facebook or Twitter contacts.
Lastly, thanks for taking the time to develop this. It's great to see another ROM choice.
boazal said:
it will be great if you add more languages to it....
Click to expand...
Click to collapse
Hehe - so far I've been removing languages. It might be possible to make flashable language packs for it, I'll see if anyone's done something simillar.
@doogald
There are other apps that store sync settings in settings->accounts, such as Dropbox
Click to expand...
Click to collapse
Hmm, that does make sense yes. I'll have a look at reinstating it.
doogald said:
Thanks. I'll look at the email app, but I generally prefer the GMail app for important message support, etc. Second, I like to tweak the sync settings at times - turn off Google+, for example, or turn on Picasa if I am looking for photos that I know I have online, and then turn it off when I don't need it (most of the time). There are other apps that store sync settings in settings->accounts, such as Dropbox, so I'd like/need to have those settings exposed. Also, I know that some people like to sync Facebook or Twitter contacts.
Lastly, thanks for taking the time to develop this. It's great to see another ROM choice.
Click to expand...
Click to collapse
+1.
absolutely needed...
seems like global APNs were not set? I wasn't able to get 3G yet....
thingonaspring said:
DOWNLOAD LINK - UPDATED v1.01 patch release - Fixes headphone output (this is what we get for making last minute changes)
http://www.multiupload.nl/0VFD1QP9L6
Click to expand...
Click to collapse
Not to be rude, but that link doesn't work. It tries to redirect me to download some kind of client. 4 browsers have been tried.
thingonaspring said:
Hehe - so far I've been removing languages. It might be possible to make flashable language packs for it, I'll see if anyone's done something simillar.
@doogald
Hmm, that does make sense yes. I'll have a look at reinstating it.
Click to expand...
Click to collapse
Thanks, but could I reenable the account sync setttings somewhat urgently by myself?
I needed to set up for google+ instant upload, but G+ fc'd at settings... which seems related to this missing menu.
---------- Post added at 11:54 AM ---------- Previous post was at 11:52 AM ----------
Cyrus221 said:
Not to be rude, but that link doesn't work. It tries to redirect me to download some kind of client. 4 browsers have been tried.
Click to expand...
Click to collapse
had the same experience, but i found the link when i used Firefox nightly.
Cyrus221 said:
Not to be rude, but that link doesn't work. It tries to redirect me to download some kind of client. 4 browsers have been tried.
Click to expand...
Click to collapse
I was able to download using the PutLocker link yesterday. I just tried again, and it worked. (Chrome on my Mac... I always use a computer to download and get to the device either by direct connect or via Dropbox.)
@Cyrus221
You're looking at the interstitial advert between multiupload and the actual download site. Click "Skip Ad" in the top right, then you goto the actual download.
Don't blame me, blame crafty tactics by multiupload's commercial partners.
@palmwangja
I've found the reason AccountAndSyncSettings.apk isn't simply working when I reinstate it - it depends on moto's "blur" account syncing engine, which is heavily woven into a lot of the stuff I've removed to make this rom so small and efficient in the first place.
If we enable that bunch of settings, then the rom loses much of its point - being small and fast.
Instead of that, I'm looking at getting CM7's apk for the same function to work instead.
thingonaspring said:
Instead of that, I'm looking at getting CM7's apk for the same function to work instead.
Click to expand...
Click to collapse
Thanks for taking the time to try this. If you can get CM7's to work, that could be a big plus.
thingonaspring said:
@palmwangja
I've found the reason AccountAndSyncSettings.apk isn't simply working when I reinstate it - it depends on moto's "blur" account syncing engine, which is heavily woven into a lot of the stuff I've removed to make this rom so small and efficient in the first place.
If we enable that bunch of settings, then the rom loses much of its point - being small and fast.
Instead of that, I'm looking at getting CM7's apk for the same function to work instead.
Click to expand...
Click to collapse
Thanks, sounds like a plan.
BTW, Will there be any chance of getting a widget on notification bar, just like any other ICS roms?
Your rom seems really promising, and can be one of the best daily driver.

[ROM][KERNEL][4.1.2][STABLE][BATTERY] MimiRom V1 JB Sammy

MimiRom V1 Jellybean​
Intro
Every rooted user wants to get the last drop of juice from his/her highly overpriced , slim and shiny piece of metal-plastic junk . This 650 mb piece pleases every eye with its jaw dropping performance-power ratio and stable built with no FC's
Presenting MimiRom V1 Jellybean .
FAST - STABLE - DAILY DRIVER - BATTERY FRIENDLY
Features
Based on XELLC Stock firmware from Sammobile
battery friendly as per daily basis
very stable
daily driver
no bugs, lags
removed unwanted bloatwares
zip aligned
de-odexed
rooted by SU chainfire
stock looks, visuals
framework tweaks (modified framework.res )
Touchwiz tweaks (launcher)
added language support
camera app fixed.
320 dpi 326ppl
beats audio :- more in audio section
siyah 1.9.1+
added apps
internal SD card read / speed
cache/dalvix tweaks
fast charge
undervolting underclocking overvolting overclocking supported
changed clock and volt values
network tweaks
volds.fstab tweaks
increased write speed/ read speed for SD card
increased SD card priority over internal
fullscreen frame insta-change support
framerate change support
deep sleep support
enhanced S-voice input
kernal tweaks
FIXES
GS3 sudden death fixed for 0xf1 chips
exynos remote root access fixed
all share cast crash fixed
mediaserver taking insane battery fixed(app priority error)
MMS service fixed
Camera FC fixed
fixed root access in some devices
partially fixed laggy phone/ people app
fixed wifi direct "no device found"
fixed play store crash in low bandwidth
fixed update
fixed settings-device status land crash
fixed wssyncmnlps service insane rom
fixed maps taking unwanted data usage
fixed laggy landscape bodyscreen with S3 stock wallpaper
many more random fixes (too much)
AUDIO MODS
beats audio handler
enhanced audio output
enabled audio chip
crisp audio via bluetooth
reassigned voltage value to audiochip/less battery usage
changed normal equilizer
enhanced audio max vol
increased max audio volume for loudspeakers
default audio sampling tp 44100Khz ( less CPU usage, less battery)
added audio shampoo driver support
siyah audio tweaks
altered rock, jazz, bass boost profiles (use it to ) get it
VISUALS
beats audio bootscreen + sound
project butter framerate lowered (non detectable)
new less ram taking clock
new weather widget
nova launcher
buttery tansition/rotations
fairly battery transitions in powering mode
lowered LED voltages
high blink frequency
low intensity touch button light
AMOLED screen refresh rate to 57 Hz
better visual quality (x-engine from siyah)
APP SUPPORT / MODS
Settigns APK mods
default video player has more codecs now ( mkv dual layer support )
default audio player takes lower battery usage ( sleep audio player mode while running )
high quality audio output ( beats audio driver )
Reverse tethering
USB Mass Storage
Widgets
Over-Under Clocking
EMMC Check
more aggressive stock task manager
zip bootanim support
PERFORMANCE
Overall benchmark performance is lowered ( Antutu score , Quadrant score .. and other synthetic benchmarks ) because of extensive battery saving mods , but these mods wont affect general computing and mobile user experience , UNLESS MORE AGGRESSIVE BATTERY SAVING OPTIONS ARE CHOSEN .
To enter performance mode
1. Disable power saving option from settings
2. Open Set CPU
3. Choose HOTPLUG governor
4.Choose sio I/O scheduler
This will consume more battery .
Highly customized governors
highly customized I/O schedulers
BATTERY SAVING
Various tweaks are already mentioned .
In battery saving mode
Lowered voltages in Audio chip , camera LED , touch buttons , screen , CPU ... upto max permissible limits
Modified Samsung Stock Power Saving mode
User defined power saving from setCPU
Deep Sleep fixed .
Fast Charge in battery saving ( 135 % fast charging )
Undervolted Wifi ( less battery consumption during wifi )
Undervolted Audio play ( Less battery consumption during audio playback )
Many Many Many more battery saving tweaks
DOWNLOADS
in 2nd post
SUPPORT
PM on XDA
www.facebook.com/mi.mee.75
[email protected]
PM on XDA
PM on XDA
ask in comments
PM on XDA
thanks
PM on XDA
HOW TO INSTALL
download
put in external sd
boot into recovery
choose install zip from sd
choose the downloaded zip
" FLASHING"
Done
Reboot
*** WARNING : Backup INTERNAL DATA .. flashing this rom will wipe data !!
Credits
Inigo Lekanda ( emmc check )
d4fseeker and sakaschi ( easy ums )
gokhanmoral ( siyah kernel )
mimi_atmam ( me )
there are many others , but i dont know their names ( ive collected stuff from here and there and thus i dont remember names now ) .. please don't kill me in your minds , just PM me and i'll add you :angel:
DONT FORGET TO THANK
​
FAQS
How to enable power saving mode ?
Scroll down notification panel , click power saving. Now goto SETCPU . Underclock as per power savings . Chose Powersave governor and deadline io scheduler . I suggest 600mhz ~800mhz Max and 400mhz Minimum
for multitasking chose powersave + sio and keep the max at 700mhz and min at 500 mhz
for playing games of low resolution and low resource requirements.
DOWNLOADS
ROM
https://mega.co.nz/#!Cc0yBbSS!HumcXzckpBjZ2J5b_BmTvS1iZpIjBW610SwS95oEWao
KERNEL
http://d-h.st/6QQ
3 way reboot menu
NOTE : To make it work , copy the downloaded file <android.policy.jar> to system\framework and replace the already available file . You can use ROOT EXPLORER for this
http://d-h.st/Po7
mimi_atmam said:
DOWNLOADS
https://mega.co.nz/#!Cc0yBbSS!HumcXzckpBjZ2J5b_BmTvS1iZpIjBW610SwS95oEWao
Click to expand...
Click to collapse
How do I download the file? Just get the option to 'open' or 'import'. Gonna try this rom when I can
Sent from my GT-I9300 using xda premium
TonyK2005 said:
How do I download the file? Just get the option to 'open' or 'import'. Gonna try this rom when I can
Sent from my GT-I9300 using xda premium
Click to expand...
Click to collapse
I uploaded this on some NEW ZEALAND's Cloud drive site .
to download this .. you should have updated java . Use firefox and you will get the DOWNLOAD button .
Accept terms and just click download .
hello
I'll try your rom
a question, because the firmware XELLC?
How do you undervolt your screen?
Hey nice batterytweaks. But may I ask why you chose llc over mc3 or md2?
LentoViolentoMan said:
Hey nice batterytweaks. But may I ask why you chose llc over mc3 or md2?
Click to expand...
Click to collapse
Good question
Choosing llc over the new ones was a bit awkward as people has the notion that latest is the best . But the newer builds mc3 or md2 or the upcoming mds have RPTC ( Resource protocol thread computing ) . this means for every thread ( apps n stuff ) every cycle has to pass a system protocol ( long system permissions mainly XML or java frames ) . This makes the system app thread to take up more ram and cpu usage , eventually giving a battery drain and taking up more cpu power and ram . But on the other hand this provides protection for some bugs ( ex . exynos chip error and partly sudden death ) .
So what i did is took up the older yet most stable built , manually removed the threats which RPTC would remove , tweaked the rom to the MAX and here it is .
The end product is a Sammy rom , giving 16 17 hours of battery backup on 2100 mAH stock battery on normal usage ( 6 hours screen , 3 hours 3g calling , 8 hour audio playback , 2 hour gaming ) with being SUPERSTABLE
Another thing was enabling fastcharge .
fastcharge on newer builds is not stable . for some reason the phone wouldn't accept the extra power being delivered form the usb 3.0 port and ending up getting heated . this would destroy the phone forever , or the battery could explode too ( worst case scenario ) . So to avoid it , took up XELLC ( i personally like this build )
davtse said:
How do you undervolt your screen?
Click to expand...
Click to collapse
Undervolting the screen is not a healthy thing as it can destroy the screen forever , if not done properly .
Undervolting cannot be done on user levels, but while compliling the kernel source and describing the brightness levels , i could be . but that is not exactly undervolting the screen . yeah , you can call it undervolting the screen , indirectly
The only drawback i can see so far is that due to the rom version one can not use the newest versions of jkays framework which is certainly a decision making fact when chosing to install a rom or not. At least for me it is!
Apart from this sounds awesome!
I guess I'll give it a try this weekend to see wheather the other tweaks you provide can make up for it!
Sent from my GT-I9300 using xda app-developers app
userguy said:
The only drawback i can see so far is that due to the rom version one can not use the newest versions of jkays framework which is certainly a decision making fact when chosing to install a rom or not. At least for me it is!
Apart from this sounds awesome!
I guess I'll give it a try this weekend to see wheather the other tweaks you provide can make up for it!
Sent from my GT-I9300 using xda app-developers app
Click to expand...
Click to collapse
Yeah brother . I know people would be apprehensive about going on this rom because of its older firmware , but try it once .
Will try this!
Latest isn't always the best so perhaps this is for me
Will give it a try thou!
I am trying to download, but after some time I always get a "Network Error" message, I have tried with Chrome and Firefox, but no luck, could you upload it to some other server?
Regards
mimi_atmam said:
Good question
Choosing llc over the new ones was a bit awkward as people has the notion that latest is the best . But the newer builds mc3 or md2 or the upcoming mds have RPTC ( Resource protocol thread computing ) . this means for every thread ( apps n stuff ) every cycle has to pass a system protocol ( long system permissions mainly XML or java frames ) . This makes the system app thread to take up more ram and cpu usage , eventually giving a battery drain and taking up more cpu power and ram . But on the other hand this provides protection for some bugs ( ex . exynos chip error and partly sudden death ) .
So what i did is took up the older yet most stable built , manually removed the threats which RPTC would remove , tweaked the rom to the MAX and here it is .
The end product is a Sammy rom , giving 16 17 hours of battery backup on 2100 mAH stock battery on normal usage ( 6 hours screen , 3 hours 3g calling , 8 hour audio playback , 2 hour gaming ) with being SUPERSTABLE
Another thing was enabling fastcharge .
fastcharge on newer builds is not stable . for some reason the phone wouldn't accept the extra power being delivered form the usb 3.0 port and ending up getting heated . this would destroy the phone forever , or the battery could explode too ( worst case scenario ) . So to avoid it , took up XELLC ( i personally like this build )
Click to expand...
Click to collapse
this is the best reply i've ever had to a question.
however, i did not experience the batteryloss when i first flashed MC2. it was absolutely a relief compared to what we had seen only just before. Maybe it was an illusion but mc2 surely was wicked for the battery, almost like anonorom v23.
edit: flashed the rom and there are rising some painful questions:
what is the samsung account service still doing there?
why is software update service still there?
why the beats bootscreen with sound?
why flipboard?
why beats audio?
why group cast?
why paper artist?
why more services?
etc etc.. i hoped this was kind of a slimmed down rom, but now i've flashed it i have a bit of regret, i don't want to manually remove all the bloatware.
LentoViolentoMan said:
this is the best reply i've ever had to a question.
however, i did not experience the batteryloss when i first flashed MC2. it was absolutely a relief compared to what we had seen only just before. Maybe it was an illusion but mc2 surely was wicked for the battery, almost like anonorom v23.
edit: flashed the rom and there are rising some painful questions:
what is the samsung account service still doing there?
why is software update service still there?
why the beats bootscreen with sound?
why flipboard?
why beats audio?
why group cast?
why paper artist?
why more services?
etc etc.. i hoped this was kind of a slimmed down rom, but now i've flashed it i have a bit of regret, i don't want to manually remove all the bloatware.
Click to expand...
Click to collapse
Partially agree as OP stated
removed unwanted bloatwares
Click to expand...
Click to collapse
, anyhow to remove them it takes 5-10 minutes.
Thanks for the nice snappy rom !!
Cheers.....LinChina
LentoViolentoMan said:
this is the best reply i've ever had to a question.
however, i did not experience the batteryloss when i first flashed MC2. it was absolutely a relief compared to what we had seen only just before. Maybe it was an illusion but mc2 surely was wicked for the battery, almost like anonorom v23.
edit: flashed the rom and there are rising some painful questions:
what is the samsung account service still doing there?
why is software update service still there?
why the beats bootscreen with sound?
why flipboard?
why beats audio?
why group cast?
why paper artist?
why more services?
etc etc.. i hoped this was kind of a slimmed down rom, but now i've flashed it i have a bit of regret, i don't want to manually remove all the bloatware.
Click to expand...
Click to collapse
LinChina said:
Partially agree as OP stated , anyhow to remove them it takes 5-10 minutes.
Thanks for the nice snappy rom !!
Cheers.....LinChina
Click to expand...
Click to collapse
Samsung Account for using SApps . ( SApps have some really good apps only for samsung phones , such as photo editing apps that get embedded in some system options )
Software Update service is tricked and the access points are defined to my server . Means as per your requests ( and many others who might request for some changes ) the service will download updates. BUT ONLY WHEN I HAVE TURNED ON MY SERVER . Dont worry . it wont take neither your data usage , nor your cpu . and for the ram usage , you can surely KILL IT WITH FIRE
Beat Bootscreen , ahem , seriously i was bored of Samsung's Bootscreen as ive been seeing it since the phones from 2009 . Thats why. Sound... its just a 2 second ring . I dont see any wrong in that other than you starting your phone while giving an exam
Flipboard : Because many of us use it . Many NON SAMSUNG phone users download it from the playstore , SO why remove it at all ?
Group CAST : I kept it because many of my friends have GS3 and GS2's . Even my sis has GS2 .. And its a fun app. . Just a 800kb APK , which wont take anything , just a 1x1 icon space unless manually started
BEATS AUDIO : The main reason of using beats audio is that the driver it installs is CUSTOMIZABLE up to many levels . Undervolting the sound chip on stock audio driver gave some FC's . Being a X HTC user , the only solution i found was using beats . And if you are an audiophile , you will see the difference yourself
Paper Artist : The main advantage of using a sammy rom is cuz of its camera app that gives fabulous results. I kept it cuz sometimes , you may want to edit pictures .... Umm just kept it as per DAILY DRIVER basis .
More services ?? Please ELABORATE .
And .. This rom has been tested for 34 days . So , i SHOULD give outputs of a daily driver.
cheveguerra said:
I am trying to download, but after some time I always get a "Network Error" message, I have tried with Chrome and Firefox, but no luck, could you upload it to some other server?
Regards
Click to expand...
Click to collapse
Try it again now . I changed the location
I uploaded here because i couldn't find any other file sharing portals which gives a single 1gb file upload for free users . If you know any such portals , gimme the link and i'll post it there .
Thanks in advance .
LentoViolentoMan said:
this is the best reply i've ever had to a question.
however, i did not experience the batteryloss when i first flashed MC2. it was absolutely a relief compared to what we had seen only just before. Maybe it was an illusion but mc2 surely was wicked for the battery, almost like anonorom v23.
Click to expand...
Click to collapse
Battery Loss would probably start IF YOU USE IT for some time , and you've installed many 3rd party apps and games , and you use 3rd party launchers , widgets , custom clocks , live wallpapers etc .
I am waiting for the new MDS . Its going to be the best FW .
userguy said:
The only drawback i can see so far is that due to the rom version one can not use the newest versions of jkays framework which is certainly a decision making fact when chosing to install a rom or not. At least for me it is!
Apart from this sounds awesome!
I guess I'll give it a try this weekend to see wheather the other tweaks you provide can make up for it!
Sent from my GT-I9300 using xda app-developers app
Click to expand...
Click to collapse
jkay fw is now available for this rom .
http://205.196.120.238/3w5mcf3m55gg/r2dt9yhgudt63tv/XXELLC_JKay_Deluxe_Stock_v14_92_1.zip
mimi_atmam said:
jkay fw is now available for this rom .
http://205.196.120.238/3w5mcf3m55gg/r2dt9yhgudt63tv/XXELLC_JKay_Deluxe_Stock_v14_92_1.zip
Click to expand...
Click to collapse
does not work : Confuso:

[SCRIPT] crDroid+Pink Kernel Fix (possible for other ROMs too)

IMPORTANT: I think i reach the final build for this script. All in all i present two version of the script. One codename Balanced that is the initial script (and there for is the most balances i've got) and another codename Ultra Smooth as it is very smooth but may be too aggressive on background secondary services.
Balanced:
#!/system/bin/sh
echo "8192,16384,24064,32768,49152,65536" > /sys/module/lowmemorykiller/parameters/minfree
Empty Apps: 256mb
Content Providers: 192mb
Hidden Apps: 128mb
Secondary Server: 94mb
Visible Apps: 64mb
Foreground Apps: 32mb
https://mega.nz/#!NoJEXIiI!NXTetoxuwBMBzxsUCVIcrvEB_jxUSp3sE1z5e6VQIkc
Click to expand...
Click to collapse
Ultra Smooth:
#!/system/bin/sh
echo "9472,13824,19968,44544,58368,65536" > /sys/module/lowmemorykiller/parameters/minfree
Empty Apps: 256mb
Content Providers: 228mb
Hidden Apps: 174mb
Secondary Server: 78mb
Visible Apps: 54mb
Foreground Apps: 37mb
https://mega.nz/#!N4IiSboa!v4tSk1X_RZeGBJesrJbJUpJZvcdMiN2rTE4loTWHsYI
Click to expand...
Click to collapse
Hello, for all the Moto G users who have the crDroid ROM and have tried the Pink Kernel, i've made this topic so we can try to find the root from the performance issues with the combination of said ROM and Kernel.
For who follow my last post on both the thread of the ROM and Kernel, i had a theory about what was the issue.
After read the experience other users had with it and my own i came to the conclusion that the stability issue, force stop from heavy apps and even small reboots ("BSOD") came from a very different philosophy on the OOM (Out of Memory) configurations of the ROM stock Kernel (that don't have this issues) vs the Pink Kernel on this ROM.
With the Stock, i realize that we have much more free RAM (i got from 400mb free to 240mb free) then on Pink Kernel (that i was ranging from 280mb free to 144mb free). That is a big difference.
Our devices are amazing phones, but it RAM amount isn't the best now days, so i figured that heavy Apps (such as the Facebook one, the one who most had issues with the ROM+Kernel) just don't have much free RAM from the pool. So it hit the page file/swap (there for cause a very laggy experience and force closes) and if the page file/swap don't do the cut it reboot the phone.
On the stock kernel as it give much more free RAM it didn't had any of those issues (even though on my experience the Facebook App never run as smooth as the other apps, even on the stock kernel). So i tried my first attempt to remedy this issue.
As my Kernel management app of choice don't apply OOM settings after reboot (it go back to the stock one of the Kernel we have), and i like it as if it go wrong on boot it is ok again, i've made a simple script, so on every reboot it apply my settings and too that is a simple way that who don't use Kernel management apps can have this "fix".
I also don't like to use INIT.D for this as if it go wrong it will bootloop. With SManager (a free app on the play store) it is very safe if go wrong and if not.. it work just as INID.D in this case.
To who don't know how to use SManager, just get it on the play store. After open the app click on the menu button and choose new program. It will ask you to give a name, you can choose any one you like (i've choose OOM-FIX).
After give the name open it from the list within the app and click (to enable) the SU and BOOT option. After it click on the edit button so you can write the script.
On the script editor, here is the code of the script:
#!/system/bin/sh
echo "9472,13824,19968,44544,58368,65536" > /sys/module/lowmemorykiller/parameters/minfree
Click to expand...
Click to collapse
Now save everything and either run it or reboot.
If you do use a Kernel Management app who apply OOM custom settings on each reboot, this settings on the script represent:
Empty Apps: 256mb
Content Providers: 228mb
Hidden Apps: 174mb
Secondary Server: 78mb
Visible Apps: 54mb
Foreground Apps: 37mb
Click to expand...
Click to collapse
This was the best middle ground i found from the Pinky Kernel OOM vs the Stock (with my settings i'm getting from 386mb free to 244mb free).
I only tester for two days so far, but my experience on Facebook (the app who most gave me trouble) was very satisfactory. It isn't 100% perfect but for my use it is a good 85% (must remember that even on the stock kernel it wasn't 100% good).
The app don't lag as much, only if we spam commands such as click on the back button more then once at the same time it lag more then acceptable. But scroll down on the timeline, messages and person profile was very good.
Open too many pages inside the app lag a little too but nothing close to force boot or even force close the app for me.
But i'm not the most heavy FB user, neither the most heavy Phone user.
That is where you guys come in. If you guys who use the amazing crDroid ROM and love the Pink Kernel want to keep this combination, try this script/OOM settings i just shared, so if it need more tweaks (and if it really is the cause of the issue) we can do it. As for my use it is fine, but i want to know about on other phones and users/uses.
Just to share the full spec and config of my phone, it is a Moto G 4G LTE XT1040 using the latest crDroid with the latest Pink Kernel. I am not a heavy user and my GAPPS is the minimum pack. I greenify almost all apps on the phone (including many system ones), i have a big wakelock setting to not allow apps to wakelock and all in all i do the best to only let the apps i want to run (and usually are the foreground ones i've choose to use).
How ever i do use also Xposed and a lot of custom tweaks.
My Pink Kernel configuration (With 3C Toolbox) is a CPU profile that i'll share:
Profile:
Intelliactive @ min:300mhz and max 1,18ghz
All cores setup as free
TCP/IP Algorithm: Veno
SD Cache: 512
I/O: ROW
Double tap to wake: On
When the screen is off i have a userspace profile locked at 300mhz min and max frequency.
So there you go, who want to use the ROM and Kernel try this script or OOM out (you can try a Tune for profiles like mine too in case to emulate what my phone got as a result) and post the results, if it got better, worse or if it fix.
For me the phone is very present to use, VERY smooth and the Facebook App is manageable now.
NEW: INIT.D script Download:
https://mega.nz/#!N4IiSboa!v4tSk1X_RZeGBJesrJbJUpJZvcdMiN2rTE4loTWHsYI
(please do a NanoBackup before apply it, for test if it work open the terminal and type: cat /sys/module/lowmemorykiller/parameters/minfree).
Click to expand...
Click to collapse
CHANGELOG:
v0.1:
#!/system/bin/sh
echo "8192,16384,24064,32768,49152,65536" > /sys/module/lowmemorykiller/parameters/minfree
Empty Apps: 256mb
Content Providers: 192mb
Hidden Apps: 128mb
Secondary Server: 94mb
Visible Apps: 64mb
Foreground Apps: 32mb
Click to expand...
Click to collapse
v0.2:
#!/system/bin/sh
echo "13312,17664,19968,37120,53248,65536" > /sys/module/lowmemorykiller/parameters/minfree
Empty Apps: 256mb
Content Providers: 208mb
Hidden Apps: 145mb
Secondary Server: 78mb
Visible Apps: 69mb
Foreground Apps: 52mb
Click to expand...
Click to collapse
v1.0:
#!/system/bin/sh
echo "8191,12544,19968,37120,53248,65536" > /sys/module/lowmemorykiller/parameters
Empty Apps: 256mb
Content Providers: 208mb
Hidden Apps: 145mb
Secondary Server: 78mb
Visible Apps: 49mb
Foreground Apps: 32mb
Click to expand...
Click to collapse
v2.0a-Codename-Balanced:
#!/system/bin/sh
echo "8192,16384,24064,32768,49152,65536" > /sys/module/lowmemorykiller/parameters/minfree
Empty Apps: 256mb
Content Providers: 192mb
Hidden Apps: 128mb
Secondary Server: 94mb
Visible Apps: 64mb
Foreground Apps: 32mb
Click to expand...
Click to collapse
v2.0b-Codename-Ultra_Smooth:
#!/system/bin/sh
echo "9472,13824,19968,44544,58368,65536" > /sys/module/lowmemorykiller/parameters/minfree
Empty Apps: 256mb
Content Providers: 228mb
Hidden Apps: 174mb
Secondary Server: 78mb
Visible Apps: 54mb
Foreground Apps: 37mb
Click to expand...
Click to collapse
Pupet_Master said:
Hello, for all the Moto G users who have the crDroid ROM and have tried the Pink Kernel, i've made this topic so we can try to find the root from the performance issues with the combination of said ROM and Kernel.
For who follow my last post on both the thread of the ROM and Kernel, i had a theory about what was the issue.
After read the experience other users had with it and my own i came to the conclusion that the stability issue, force stop from heavy apps and even small reboots ("BSOD") came from a very different philosophy on the OOM (Out of Memory) configurations of the ROM stock Kernel (that don't have this issues) vs the Pink Kernel on this ROM.
With the Stock, i realize that we have much more free RAM (i got from 400mb free to 240mb free) then on Pink Kernel (that i was ranging from 280mb free to 144mb free). That is a big difference.
Our devices are amazing phones, but it RAM amount isn't the best now days, so i figured that heavy Apps (such as the Facebook one, the one who most had issues with the ROM+Kernel) just don't have much free RAM from the pool. So it hit the page file/swap (there for cause a very laggy experience and force closes) and if the page file/swap don't do the cut it reboot the phone.
On the stock kernel as it give much more free RAM it didn't had any of those issues (even though on my experience the Facebook App never run as smooth as the other apps, even on the stock kernel). So i tried my first attempt to remedy this issue.
As my Kernel management app of choice don't apply OOM settings after reboot (it go back to the stock one of the Kernel we have), and i like it as if it go wrong on boot it is ok again, i've made a simple script, so on every reboot it apply my settings and too that is a simple way that who don't use Kernel management apps can have this "fix".
I also don't like to use INIT.D for this as if it go wrong it will bootloop. With SManager (a free app on the play store) it is very safe if go wrong and if not.. it work just as INID.D in this case.
To who don't know how to use SManager, just get it on the play store. After open the app click on the menu button and choose new program. It will ask you to give a name, you can choose any one you like (i've choose OOM-FIX).
After give the name open it from the list within the app and click (to enable) the SU and BOOT option. After it click on the edit button so you can write the script.
On the script editor, here is the code of the script:
#!/system/bin/sh
echo "8192,16384,24064,32768,49152,65536" > /sys/module/lowmemorykiller/parameters/minfree
Now save everything and either run it or reboot.
If you do use a Kernel Management app who apply OOM custom settings on each reboot, this settings on the script represent:
Empty Apps: 256mb
Content Providers: 192mb
Hidden Apps: 128mb
Secondary Server: 94mb
Visible Apps: 64mb
Foreground Apps: 32mb
This was the best middle ground i found from the Pinky Kernel OOM vs the Stock (with my settings i'm getting from 386mb free to 244mb free).
I only tester for two days so far, but my experience on Facebook (the app who most gave me trouble) was very satisfactory. It isn't 100% perfect but for my use it is a good 85% (must remember that even on the stock kernel it wasn't 100% good).
The app don't lag as much, only if we spam commands such as click on the back button more then once at the same time it lag more then acceptable. But scroll down on the timeline, messages and person profile was very good.
Open too many pages inside the app lag a little too but nothing close to force boot or even force close the app for me.
But i'm not the most heavy FB user, neither the most heavy Phone user.
That is where you guys come in. If you guys who use the amazing crDroid ROM and love the Pink Kernel want to keep this combination, try this script/OOM settings i just shared, so if it need more tweaks (and if it really is the cause of the issue) we can do it. As for my use it is fine, but i want to know about on other phones and users/uses.
Just to share the full spec and config of my phone, it is a Moto G 4G LTE XT1040 using the latest crDroid with the latest Pink Kernel. I am not a heavy user and my GAPPS is the minimum pack. I greenify almost all apps on the phone (including many system ones), i have a big wakelock setting to not allow apps to wakelock and all in all i do the best to only let the apps i want to run (and usually are the foreground ones i've choose to use).
How ever i do use also Xposed and a lot of custom tweaks.
My Pink Kernel configuration (With 3C Toolbox) is a CPU profile that i'll share:
Profile:
Intelliactive @ min:300mhz and max 1,18ghz
All cores setup as free
TCP/IP Algorithm: Veno
SD Cache: 512
I/O: ROW
Double tap to wake: On
When the screen is off i have a userspace profile locked at 300mhz min and max frequency.
So there you go, who want to use the ROM and Kernel try this script or OOM out (you can try a Tune for profiles like mine too in case to emulate what my phone got as a result) and post the results, if it got better, worse or if it fix.
For me the phone is very present to use, VERY smooth and the Facebook App is manageable now.
Click to expand...
Click to collapse
You did an amazing job! Yesterday when I tried the kernel everything was softrebooting, now the phone is smooth as butter! First time we got pink kernel working on a ROM! Have my thanks
Sparubens said:
You did an amazing job! Yesterday when I tried the kernel everything was softrebooting, now the phone is smooth as butter! First time we got pink kernel working on a ROM! Have my thanks
Click to expand...
Click to collapse
Thanks m8, anything you don't like feel free to tell and we tune it even more
New setup/tune.
I think this will be final, check out the new values and test
Final build release.

12 Hours of Screen On

AFTER DOING EVERY SINGLE ONE OF THESE INCLUDING THE OPTIONAL ONES YOU'LL GET 12 HOURS OF SCREEN ON TIME
IF YOU EXCLUDE OPTIONAL ONES YOU'LL GET MINIMUM 7+ HOURS OF SCREEN ON TIME
First,obviously, you need a rooted OP3 or OP3T
If your device isn't rooted check this out.
There is several steps to achieve this results,
TAKE A BACKUP
This is the most important. In case you mess something up or this guide doesn't quite work for you, you can always go back to your old setup.
Pick a ROM that works best for you in terms of battery life (I am using this ROM)
Pick a kernel that works well with your requirements and the ROM (I am using Boeffla Kernel)
So the key to achieve the best amount of screen on time is underclocking your CPU and GPU. An average user shouldn't have any problems underclocking but some users that play games or care about benchmarks shouldn't underclock. There is optimal values that I found while messing around in the config app.
After flashing ROMs and kernels don't boot yet! We have more to flash!
Download AKT profiles and flash!
After you've done these you can boot up your OP3/OP3T
Now we have several things to do on the device:
First thing's first, let's tweak the frequencies! The optimal values are around 844 MHz for the little and 1324 MHz for the big CPU and minimum frequencies should be at lowest possible. For the GPU the best value seems to be 401 MHz and again minimum frequency is lowest possible.
Next! Let's set our ROM's battery profile to performance! Wait hold up there wasn't I talking about longer screen on time how is performance profile is going to help? Here is the answer: Since we have already underclocked our CPU and GPU setting this profile to performance will allow things to be used up a little more. And it will make you feel good
Now remember when we flashed AKT Profiles? Now we'll set that to performance.. Oh wait what? Performance again? YES! But we'll pick the most smooth one. Set it to Fusion Performance!
(Optional) Now we have things to do with apps. Download Greenify to hibernate things when you aren't using them. Select apps according to your preferences and hibernate.
(Optional) Now we'll play with some wakelocks. Download a wakelock detector app and monitor the wakelocks. After some amount of time you'll see some useless apps waking your device every now and then. Go to your ROMs wakelock disabled and disable those wakelocks! Show them who is the owner of the phone! (For example you can block The File Manager HD's wakelock since it has no job when screen is off and MX Player's wakelock because again what can a video player app do when you aren't watching anything.)
After this point if you see more lag increase the CPU and GPU frequencies or reduce them if you see no lag and if you want more battery!
This method might not turn out the same for everyone! You might disable some wakelocks that are important for the device and mess up things so be CAREFUL and when hibernating note that all the hibernated apps will stop pushing notifications! So don't hibernate WhatsApp, Messenger etc.
There is a screenshot below as a proof.
I know I've done nothing but writing this but still if you want to donate here it is LOL
*UPDATE*: Blocking the useless wakelocks allow OP3 to survive 24 hours (if you aren't using it at all) only 3G on (no wifi, no GPS ONLY 3G)
what io scheduler and readahead values you use ?
tadessi said:
what io scheduler and readahead values you use ?
Click to expand...
Click to collapse
cfq and 1024 the defaults that came with Boeffla

I've found the best ROM in terms of battery and performance!

Hello! I've found the best custom rom + kernel for my needs and I wanted to share with you guys.
In my opinion the smoothest, good battery backup (8-9 hours sot) and performance combo is Pixel Experience + and Predator kernel. To make all of your apps work properly enable force fulllscreen mode for any of them . Now let me share with you guys some battery tweaks:
1. Install Naptime and make sure that these options are enable:
https://imgur.com/a/TR0EV5d
2. Restrict any app in the background that you don't need to work in the background, like these apps:
https://imgur.com/a/INZF0Bi
3. Disable unused default apps like these:
https://imgur.com/a/PAqMJpr
and disable Google Assistant if you don't use it ( if you disabled Google app you will not found Search, Assistant and voice in the settings ): Settings - Google - Account services - Search, assistant and voice - Google Assistant - Assistant - General - Disable Google Assistant. Also disable location/ Find My Device, automatically data sync for apps.
4. Disable automatically backup for Google Photos.
Here are some apps which I use it and it will make your life easier:
- Youtube and Youtube Music without ads ( no need to root ): https://vancedapp.com/
- Magisk, needs to be flashed in custom recovery: http://www.mediafire.com/file/vzf3re143yb68uc/Magisk-v21.1.zip/file
- Google Camera. You will need to install "Remove Google Camera" module in Magisk first if you have it already installed in your rom, the link for this module is this one: http://www.mediafire.com/file/bhm6dhrrnqiar2d/RemoveGCam.zip/file
Google Camera ( if you don't have it already installed as default camera, you can install it as any apk file, no need to root ) , this is the download link for it: http://www.mediafire.com/file/eogevstxhlq0yvv/MGC+7.4.201+Parrot043+V1.1.apk/file
- L1 Security patch that will make Netflix stream more than SD: https://www.mediafire.com/file/85mrfht25lzjfjx/DRM_L1_Patch.zip/file
( needs to be installed in Magisk )
- I also changed the default launcher because it's not that customizable, and I found this launcher to be more customizable and well optimized:
http://www.mediafire.com/file/p6uxixksr05w17w/Systemless_ShadyLauncher-v1.5.zip/file
- If you want to have Dolby Atmos install these Magisk modules ( Install in this order ):
1. Audio Modification Library: http://www.mediafire.com/file/wigiq7cxf488frr/1.Audio_Modification_Library-v4.0(55).zip/file
2. Audio Configuration Database:
http://www.mediafire.com/file/hwj1zqs2a695hrz/2.ACDB-0.49.zip/file
3. Restart after you installed the first and the second module.
4. Dolby Atmos:
http://www.mediafire.com/file/zhu8i4o3tpflxlf/4.DolbyAtmos.zip/file
- Dark boot animations to not kill my eyes when I boot my phone in the evening :laugh: :
Android 10: https://www.mediafire.com/file/d4r6edkq5y9xl98/Android-10-Dark-Bootanimation-%28v1.0%29.zip/file
EvolutionX:
EvoX DARK Bootanimation systemless
MediaFire is a simple to use free service that lets you put all your photos, documents, music, and video in a single place so you can access them anywhere and share them everywhere.
www.mediafire.com
All these files I shared with you I am sure that have no viruses. I hope that I helped you and I have a question for you guys: What is the best combo for your needs? What custom rom and what kernel?
?thanks
Thanks buddy. Helped a lot. ^_^
Allen (=^w^=) said:
Thanks buddy. Helped a lot. ^_^
Click to expand...
Click to collapse
Always glad to help!
Please Hit Thanks if you love this tutorial It really helps a lot!
I use PE + with stock kernel without any tweaks and I get about 8 hours sot.
Those tweaks just **** up performance and multitasking
So in terms of performance it is worse
F4JL0 said:
I use PE + with stock kernel without any tweaks and I get about 8 hours sot.
Those tweaks just **** up performance and multitasking
So in terms of performance it is worse
Click to expand...
Click to collapse
Everyone has their own personal opinion. But I don't think that restricting apps to work in the background, Naptime or disable some bloatware can negativity affect the performance. On the contrary, it should improve performance and battery life.
Radu15 said:
Everyone has their own personal opinion. But I don't think that restricting apps to work in the background, Naptime or disable some bloatware can negativity affect the performance. On the contrary, it should improve performance and battery life.
Click to expand...
Click to collapse
Yeah ofc
Everybody uses their smartphones differently.
I use lot of multitasking.
Before i had miui it was so agresive on killing apps. That's why i switched and i use PE and it's beautiful.
And I tried storm breaker.. little difference in battery Life but it wasn't that smooth and fast as stock kernel.
At least for me
F4JL0 said:
Yeah ofc
Everybody uses their smartphones differently.
I use lot of multitasking.
Before i had miui it was so agresive on killing apps. That's why i switched and i use PE and it's beautiful.
And I tried storm breaker.. little difference in battery Life but it wasn't that smooth and fast as stock kernel.
At least for me
Click to expand...
Click to collapse
It doesn't have any effect multitasking in any way. The apps still don't refresh after leaving them in the background, the apps remains normal.
Use PE plus +Predator 9.1 very good working.
Best sound mod for lavender.
Download https://drive.google.com/folderview?id=10A1e3TevGFRuFIrF59P96jg4k3idfHXq
Go to twrp recovery
1. Mount System and Vendor.
2. Instal Pulse audio
3. Instal Sirenes
Reboot.
My choice of kernel Predator 9.1 HMP stable (old cam)
Im getting only 4hrs sot on stock kernel PE+

Categories

Resources