[CM12/12.1-UPDATED] S4 Display Color Profiles for CyanogenMod 11, 12, 12.1 - Galaxy S 4 General

### CM12(.1) UPDATE ### (see bottom)
Hey Folks,
are you also tired of the oversaturated colors of the S4 amoled display??
I found out that the S4minisettings.apk, that was originally developed for the S4 Mini by @F4k to regulate the saturation and other colour concerning features, does the job for the S4 aswell! It works very similar to the colour profiles built into samsung stock roms.
After installation you can find a new settings option "advanced settings" in systemsettings/display just like they're are built in into the carbon roms.
Installation:
Download the apk from the link below.
Then you have to manually put the s4minisettings.apk to /system/app and after that it's very important to set ownership and permissions as follows:
Owner: root, root
Permissions: rw,r,r (644)
reboot!
The main option to reduce the saturation is called "Mode - Set the mDNIe mode". I choose "natural" and the oversaturation of the display is gone!
Some other options don't apply until you switch screen off an on once.
___________________________________________________
The apk can be downloaded here:
http://forum.xda-developers.com/attachment.php?attachmentid=2443961&d=1386605141
original thread here (search for F4K's post):
http://forum.xda-developers.com/showthread.php?t=2558702&page=11
you may also want to have a look at s4miniarchive who did a good article/video about it:
http://www.s4miniarchive.com/2014/01/enable-color-saturation-galaxy-s4-mini-cyanogenmod11.html
all thanks go to @F4k for creating this nice apk!
###CM12(.1)-Instructions###
So, f4k made a new lollipop version of this tool S4MiniSettings and built it into his S4 Mini cm12 rom. I extracted it and offer it to you for download.
Instructions:
- extract zip
- copy the folder "S4Minisettings" to /system/app folder
- set permissions of the folder to rwxr-xr-x (755), the apk to rw-r--r-- (644)
- reboot
- after reboot there is a new icon in the app drawer
- if you prefered the setting "natural" from the kitkat version, now choose "movie"
Notes:
- Important: SELinux level higher than "strikt"/"enforcing" is needed to write to system folder and/or set permissions, and the apk to be loaded at boot. Custom kernels like Alucard mostly got SELinux set to "moderat".
- Don't be confused about the app name - it does work with the S4 - definitely!

Doesn't S4 4.4.2 have this by default? I can do same changes through my Display settings - no need for additional apk.

I use kernel perseus to better experience with real colors.
Enviado do meu GT-I9500

creage said:
Doesn't S4 4.4.2 have this by default? I can do same changes through my Display settings - no need for additional apk.
Click to expand...
Click to collapse
The "S4" has this by default in the Touchwiz ROM it ships with, but this thread is about CyanogenMod.
Speaking of which, it possible to adjust color cast in CM11 on my Note 8.0 under Display/Display Advanced. Maybe this feature will also come to CM11 on the i9500.

When i reboot nothing happends :/ i have everything like you said, bit it doestn appear. I have cm 11 snapshot m3, help?

Or does this only work on nightlies build?? :crying:

elmaku said:
When i reboot nothing happends :/ i have everything like you said, bit it doestn appear. I have cm 11 snapshot m3, help?
Click to expand...
Click to collapse
Did you set the permissions and owner correctly? Otherwise it can't work.

Peter Semper said:
Did you set the permissions and owner correctly? Otherwise it can't work.
Click to expand...
Click to collapse
the permissions are exactly like you have it, but still its not working. It doesnt scan my apps when I reboot :/. Also worth noting, every time i go to see the permissions or change it it says in a square. "The current file system is read-only. Do you want to remount as read-write and continue the operation?" I click yes, then i change it rw--r--r and reboot and nothing happends. When I go check it againg is the same prosses all over againg.
Edit: Also, in my settings I have Display & lights instead of "Display" as the video shows. I know nothing and I understand this may be a dumb question, but it may had to do with the problem? sorry.

Over-saturated colours of S4? Oh Dear Lord :|

elmaku said:
the permissions are exactly like you have it, but still its not working. It doesnt scan my apps when I reboot :/. Also worth noting, every time i go to see the permissions or change it it says in a square. "The current file system is read-only. Do you want to remount as read-write and continue the operation?" I click yes, then i change it rw--r--r and reboot and nothing happends. When I go check it againg is the same prosses all over againg.
Click to expand...
Click to collapse
Which file manager do you use? "root explorer" i.e. has sometimes problems and sais it's write protected. I use "root browser" which does a good job, mostly.

devilsdouble said:
Over-saturated colours of S4? Oh Dear Lord :|
Click to expand...
Click to collapse
killjoy

Peter Semper said:
Which file manager do you use? "root explorer" i.e. has sometimes problems and sais it's write protected. I use "root browser" which does a good job, mostly.
Click to expand...
Click to collapse
I have used both! and none of them works when I reboot . Man what a bad luck I have.

elmaku said:
I have used both! and none of them works when I reboot . Man what a bad luck I have.
Click to expand...
Click to collapse
And also tried the file manager provided with cm 11? Just have to "unleash" it in the options, I mean enable root mode.

Peter Semper said:
And also tried the file manager provided with cm 11? Just have to "unleash" it in the options.
Click to expand...
Click to collapse
Nope... just tried it and it doesnt optimize the apps when rebooting. I'm stuck.

elmaku said:
Nope... just tried it and it doesnt optimize the apps when rebooting. I'm stuck.
Click to expand...
Click to collapse
Very strange, you must have done something wrong.

Peter Semper said:
Very strange, you must have done something wrong.
Click to expand...
Click to collapse
I really don't understand :/... It is just not detecting it... maybe an option I have enable? I hate these saturated colors... :/ maybe it is only on nightlies?

Another options
splitterzelle said:
Hey Folks,
are you also tired of the oversaturated colours of the S4 amoled display??
I found out that the S4minisettings.apk, that was originally developed for the S4 Mini by F4K to regulate the saturation and other colour concerning features, does the job for the S4 aswell! It works very similar to the colour profiles built into samsung stock roms.
....
The apk can be downloaded here:
http://forum.xda-developers.com/attachment.php?attachmentid=2443961&d=1386605141
....
all thanks go to F4K for creating this nice apk!
Click to expand...
Click to collapse
This apk requires way too many permissions for the task it performs... Suspicious...
There is another option: KTweaker tool which comes with Ktoonsez kernels also allows to modify this setting (works with CM11 kernel, not only with Ktoonsez) .
After all this setting can be set via kernel "/sys" filesystem. From terminal emulator execute command:
Code:
echo 2 > /sys/class/mdnie/mdnie/mode
To make this change permanent (survive reboots and ROM updates) one may use init.d supplied with CM11, and create additional script in /data/local/ (in this location script will survive CM update).
Seems like init.d in CM11-M10 doesn't start scripts in /data/local/userinit.d/ directory, so the only option is to place script code to /data/local/userinit.sh
Permissions of this script must be set to 0755 (-rwxr-xr-x).
For anyone who interested in adopting this method I've prepared template script (also it sets some other available screen options, not only mode):
Code:
#!/system/bin/sh
# For SGS4 screen mode can be chosen from:
# 0 - STANDARD
# 1 - DYNAMIC
# 2 - MOVIE
# 3 - NATURAL
echo 3 > /sys/class/mdnie/mdnie/mode
# For SGS4 screen scenario can be chosen from:
# 0 - UI_MODE
# 1 - VIDEO_MODE
# 2 - VIDEO_WARM_MODE
# 3 - VIDEO_COLD_MODE
# 4 - CAMERA_MODE
# 5 - NAVI
# 6 - GALLERY_MODE
# 7 - VT_MODE
# 8 - BROWSER
# 9 - eBOOK
echo 0 > /sys/class/mdnie/mdnie/scenario
# Other parameters are boolean: 0 - Disabled, 1 - Enabled
echo 0 > /sys/class/mdnie/mdnie/negative
echo 0 > /sys/class/mdnie/mdnie/outdoor
Additionally I've prepared TWRP (CWM should work also, but I've not tested) installable version of this script (see attachment).
In that case if you dislike my default setting you'll need to unpack it, edit "data/local/userinit.sh" and pack it back using zip.
PS
This MAY work with other Samsung AMOLED devices. I can confirm that it works with galaxy tab 7.7 (p6800).

qolob said:
This apk requires way too many permissions for the task it performs... Suspicious...
Click to expand...
Click to collapse
It's not suspicious in any way! The developer f4k who wrote this little apk is a very honorable guy, just have a look at his profile and all of the work he does...
This apk does the job perfectly and doesn't do any harm to nothing.
Your remark/comment is very unnessessary here. So why don't you go start a thread your own instead of lousing this one up?

splitterzelle said:
It's not suspicious in any way! The developer f4k who wrote this little apk is a very honorable guy, just have a look at his profile and all of the work he does...
This apk does the job perfectly and doesn't do any harm to nothing.
Click to expand...
Click to collapse
I'm not trying to blame anyone in anything.
I'm not a pro in android programming and maybe such permissions are implied to all apk's that manage system settings.
However I can't see any reason for app that manages screen settings to require permissions to make calls, access user contacts etc. and it seems suspicious to me. That's all.
splitterzelle said:
Your remark/comment is very unnessessary here. So why don't you go start a thread your own instead of lousing this one up?
Click to expand...
Click to collapse
When I was searching how to setup screen settings in CM11 on SGS4 I've found only this thread. And when I've managed to solve this problem with alternative method I've decided that other users maybe interested in this information. I've posted to Your thread because I thought that it is a good idea to post all possible solutions for 'S4 amoled display colour profiles with cyanogenmod 11' in one thread to help other people find them quickly and in one place.
Sorry if I was wrong and violated something.

qolob said:
I'm not trying to blame anyone in anything.
I'm not a pro in android programming and maybe such permissions are implied to all apk's that manage system settings.
However I can't see any reason for app that manages screen settings to require permissions to make calls, access user contacts etc.
...
Sorry if I was wrong and violated something.
Click to expand...
Click to collapse
Mostly when there are high ranking permissions for an app requested, it isn't because of maliciousness of the author, it's often just carelessness of the creator not deactivating them in the building tool's presets he uses.
And after all, just don't be so mistrustful about things coming from senior xda developers......
This method I announced here is very simple to install, safe and works perfectly even with the latest nightlies so far.

Related

[TASKER] tRUE - Tasker Recovery User interfacE - AUTODL CM7 NIGHTLY! | V2.1.2 - 8/16

Hi all -
NOTE: This project is on permanent hold until Tasker 1.1.2 is officially released. There are lots more features that will make it much easier both from a development end and a user end to use tRUE. I regret that I can't work on this now, but there are just too many Tasker limitations to work around that will be dealt with in Tasker 1.1.2. This will hopefully be by the end of the month, but may take into mid-October.
Furthermore, Koush has locked down writing commands to recovery starting with CWM5. If your ROM uses CWM5 for its recovery, it will not be compatible with tRUE.
Introduction
Welcome to tRUE - the Tasker Recovery User interfacE. The main goal of this Tasker profile scheme is to act as a replacement for most ROM Manager Premium features.
Why tRUE? How is it better than ROM Manager?
tRUE replicates ROM Manager functionality by writing commands to /cache/recovery/extendedcommand; these commands get executed upon reboot to recovery, just like ROM Manager. But there's lots more that tRUE can do!
Automatically download and install latest CM7 nightly for your device, at a time or context of your choice! GApps flashed automatically for free!
Bulk update-flash install - great to flash kernels, fixes, and more, along with your nightly!
One-touch and scheduled backup - Click a widget and immediately perform a Nandroid backup! Or, let it run automatically every night!
Free with Tasker - Tasker's the greatest $6 app out for Android, and it can replace lots of apps you typically pay for!
TO DO: Flash profiles: Flash any set of zips you want at any time!
TO DO: One-touch Nandroid restore of latest backup!
TO DO: Simple backup management - automatically delete old auto-backups!
I'm always listening for ideas as well, please contribute to the development of this project!
What's in the ZIP
The following Tasker profiles:
tRUE-nightlywget
tRUE-nightlyMD5
tRUE-nightlyinstall
tRUE-nightlycheck
tRUE-boot
The following Tasker tasks:
tRUE-AddNewZip
tRUE-boot
tRUE-cwm
tRUE-flash_nightly
tRUE-flash_user_zip
tRUE-nandroid
tRUE-NandroidWidget
tRUE-nightlycheck
tRUE-nightlyinstall
tRUE-nightlyMD5
tRUE-nightlywget
tRUE-restorenandroid
tRUE-RestoreWidget
tRUE-SETUP
tRUE-s_volts_scheduler
tRUE-UPGRADE
tRUE-wget_gapps
tRUE-wipe_cache
The folder "tRUE", which contains:
folder "download" - contains gapps-gb-20110729-signed.zip, and will contain your downloaded nightlies
folder "scripts" - contains checkupdate.sh, flashzip.sh, install_nightly.sh, nandroid.sh, wipe_cache.sh, get_CWM.sh, s_volts_scheduler.sh
Requirements
Tasker 1.1+, available on the Android Market or Tasker website
Secure Settings Plugin, available on the Android Market
For now, ROM Manager (free or premium) - I only need this for the directories it creates, I'll do it myself later
Coming from tRUE 2.1.1?
See this post; download the scripts folder and replace yours with this. It corrects some issues if you have a CWM that was both detected by ROM Manager and is not CWM2.x or 3.x.
Installation
Make sure you're already running a CM7-based ROM. tRUE does NOT wipe /data and perform the first-time-install instructions for your device; if you try to do so, you might brick!
In Tasker, click Menu->Preferences->Misc and check the box "Allow External Access". This allows Tasker to pass arguments to the shell scripts run by Secure Settings Plugin.
UPGRADING USERS: Delete all old tRUE profiles and tasks. (Sorry about the tedious installation! It'll be more streamlined in the future.)
Download the attached ZIP. Place the tRUE folder in the root your SD Card. (UPGRADING USERS: it will suffice to replace the scripts folder with the one from the zip.) Place *.tsk.xml in /sdcard/Tasker/tasks . Place *.prf.xml in /sdcard/Tasker/profiles.
Open Tasker, hit the Menu Button->Profile Data->"Import One Task". Import the 19 tasks. (WOW THAT'S ALOT! It's what you get with awesome functionality )
Repeat previous step, but with profiles. Import the 5 profiles.
Exit Tasker by hitting the check-mark. This will save the profiles and tasks.
NEW USERS: Re-enter Tasker, the click Tasks and select "tRUE-SETUP". Click the play button.
UPGRADING USERS: Re-enter Tasker, then click Tasks and select "tRUE-UPGRADE". Click the play button.
Download the GApps package below and place in /sdcard/tRUE/download. Or, run the task "tRUE-wget_gapps"
Edit the "tRUE-nightlycheck" profile to suit your needs - currently it'll fire every day at 4am, if your device is powered.
Setup will try to automatically detect your device's CM7 codename; if it can't, enter the codename (i.e., cdma_droid2, vibrantmtd, glacier, etc)
Create the tRUE widgets - on your home screen, long-press, then click "Widgets"->Tasker->Tasks->tRUE.
Usage
When a new nightly is available, tRUE will automatically wget the zip and leave it in /sdcard/tRUE/download . You can skip this process if you download the zip yourself and place it in that folder. It then performs an MD5 check; if the check succeeds, it writes commands to /cache/recovery/extendedcommand to perform a Nandroid backup; wipe your cache and dalvik-cache; flash the nightly; flash the GApps package; and flash any zip you provide. See below.
Use tRUE-AddNewZip to add update-flashables to your nightly installation. I install Glitch Kernel and my own Software GPS Fix for my Vibrant. tRUE looks at /sdcard/tRUE/toflash.txt and installs zips in order. You can either use tRUE-AddNewZip or manually edit this file.
Limitations and Bugs
Currently tRUE-nightlywget is kind of slow - I tried to provide download percentage so you don't patiently wait wondering how long the download will take, but this seems to actually slow down wget, and sometimes wget actually quits out. I can't replicate this all the time.. I might have to just remove the download percentage indicator. Sorry!
AFAIK, all variants of CM7 run on ClockworkMod3+; I only provide commands to use CWM3+. If you're running CM7 and are on CWM2 or below, please let me know ASAP so I can include functionality.
It seems that if you abort a script via the Secure Settings plugin notification (it fires when I use a script), no more scripts will fire until after a reboot. I am working with the developer of the plugin to see if it's a true bug or an issue between keyboard and chair.
Right now, tRUE-nightlycheck will run the entire download and install process even if it couldn't detect you were on CM7. If you're not running a CM7-based ROM, YOU MIGHT BRICK UPON TRYING TO USE tRUE. FOLLOW THE CM7 FIRST-INSTALLATION INSTRUCTIONS BEFORE ATTEMPTING TO USE tRUE.
To Do
Only enable vibration when user presses the tRUE-nightlycheck widget - this way the user can sleep soundly without his phone vibrating in the middle of the night
Manage deletion of old nightlies - maybe keep 2 or 3, but delete older ones?
Menu-driven interface to more ROM Manager-esque - one widget to access all functions, instead of many
Add "flash profiles" - allows you to quickly go from vanilla CM7 to MIUI to some other CM7-based ROM, while flashing all your extras for you
Add one-touch Nandroid restore widget
on setup, create clockworkmod folders (to store backups) if it doesn't already exist
Add profile to perform automatic Nandroid backups
If I helped improve your CM7 experience, PLEASE hit the Thanks button! Or even better, donate This has been a really fun project for me and I hope my work helps you too!
Changelog
Code:
V2.1.2:
- fixed issue where having CWM that was not version 2 or 3 (e.g. 4) was not detected by shell scripts
V2.1.1:
- fixed wget looping error - had to remove attempted wget workaround for failed downloads
- fixed "typo" - forgot an End If statement in tRUE-installnightly
V2.1:
- Menu-driven UI - single widget "tRUE" to do nightly check, backup, recovery, add to profile
- one-touch backup/restore - perform with tRUE widget
- if S_volts_scheduler detected, save it before flashing a nightly and restore upon boot
- notifications after boot if you just flashed, backed up, or restored
- support for CWM 2.x
- bug fix - /cache/recovery/extendedcommand not always written - fixed by mounting /system before writing (via scripts)
- bug fix - adding zip to flash profile didn't use full pathname; now also makes sure that the file the user selected actually exists (wtf?)
V2:
-initial release of tRUE - a complete rewrite of AutoCM7 with
loads more features and robustness!
Downloads
http://cmw.22aaf3.com/gapps/gapps-gb-20110729-signed.zip GApps package (07/29)
COMING IN NEXT VERSION
I'm going to start using SL4A to do the heavy lifting. Writing for Tasker is exhausting and difficult. No new features will be added until V3, when everything will be written with Perl/bash; Tasker will be used only to support the Perl scripts. This gives me the ability to really use UI (show download progress, list cool menus, etc), and improve my own sanity! I get to write in a real programming language!
V2.1.x will contain bugfixes as reported by the community.
bug fix: S_volts_scheduler not restored correctly on new flash still - workaround in progress
FREQUENTLY ASKED QUESTIONS
Q: Why is the install process so tedious?
A: Tasker was designed to be very extensible, but wasn't designed to be able to run what some might call an app. There is discussion to implement mass-import of tasks and profiles in future versions of Tasker.
Click to expand...
Click to collapse
Q: JESUS CHRIST, 24 DIFFERENT THINGS TO IMPORT!?
A: See above. You're getting what's essentially a ROM Manager Premium replacement for free! If you wanted easy-to-use with no freedom to customize, go buy an iPhone
Click to expand...
Click to collapse
Q: Why do I need Secure Settings plugin? Why didn't you use Locale Execute plugin?
A: With Locale Execute Plugin, running commands as root requires granting permission to every single command that uses it. People got around that by writing all possibly needed commands into a single shell script, then used Tasker to pass arguments back and forth. SSP in the end makes the install process easier for the user. It also lets me look at exit codes and capture STDERR and STDOUT - both tasks are much more difficult than necessary using Locale Execute.
Click to expand...
Click to collapse
Q: Why are the icons so ugly!? Couldn't you pick better ones?
A: I could have - but that requires that users have Tasker icon packs installed, and in the end icon packs are just for aesthetics - I don't think making it a requirement to install more stuff before you get to play with tRUE just to make icons look pretty is worth it. You're free to change the icons, though!
Click to expand...
Click to collapse
Q: Why should I use tRUE instead of ROM Manager Pro!? It seems like a lot of work (both for me to install and you to develop) to replicate a well-known app.
A: Tasker is AWESOME is why. It's $6.50 on the Market (or $5 if you buy it directly from the developer), and that's the best 6.50 you could possibly spend. I replicate so many app functionalities with it, it probably saved me a good $15 in the long run. Contrast to RMP, which is $6 and only manages your ROMs. Not that that's a bad thing! A lot of apps are out there that let you control basic stuff on your phone - but Tasker can replicate the functionality of a LOT of apps out there. This started mostly as an exercise to see how far I could push Tasker.
Click to expand...
Click to collapse
Q: YOU'RE SO AWESOME, PLEASE HAVE MY BABIES!
A: I appreciate the gesture Really all I need from you is to push the Thanks button and post with your experience, questions, comments, bug reports, etc. If you're feeling REALLY generous, hit the donate button I do this in my spare time because it's fun and I love Tasker. I don't expect anything in return for me sharing the work that I would have done anyway.
Click to expand...
Click to collapse
Updated to v1.1. Found a bug where the device name was not being passed correctly to the shell script; also turned on Secure Settings notifications for debug purposes. Please re-download and try it out if you've had problems with V1.
update to v1.2, fixed bug where gapps package was accidentally deleted after new nightly found
Many thanks, this sounds awesome, will give it a go, though I have already purchased the rommanager premium (just for nightlies actually).
Looking forward to seeing more advanced useful profiles, I'm loving tasker as well.
This is pretty neat, I'm testing it on my Droid X right now.
I don't suppose there's any way to implement some sort of progress bar for the download? It's basically a wait-and-find-out process right now.
strictlyrude27 said:
[...] Create a new profile, and set your own contexts. I prefer to have a context of 4AM, if the device has power, and if I'm currently connected to wifi. [...]
Click to expand...
Click to collapse
Care to elaborate please? I'm stuck at point 7 What profile should I create and how. Thanks! Looking forward to testing this.
Sunblood said:
This is pretty neat, I'm testing it on my Droid X right now.
I don't suppose there's any way to implement some sort of progress bar for the download? It's basically a wait-and-find-out process right now.
Click to expand...
Click to collapse
I can't do a progress bar, but I think I can do a toast notification of how much of the file was currently downloaded..
I plan on doing a rewrite with more robust options and capabilities, but it's kind of on the backburner for right now..
Let me know if you run into errors, please! I'm kind of surprised more people aren't using this setup..
mi3x said:
Care to elaborate please? I'm stuck at point 7 What profile should I create and how. Thanks! Looking forward to testing this.
Click to expand...
Click to collapse
In Tasker, just hit the Plus sign on the bottom to start a new profile. Then select the first context you want the download check to fire. Like I said, I have mine set to fire at 4am every day. Then, set CM7_AutoInstall as the task to perform. Finally, long-press the first context once the profile is created to add more. I only want to have downloads happen when I'm power is connected.
Thanks, I guessed that was the way, but just wanted to be sure. Now looking forward to seeing CM7 build 16 today or tomorrow to test this. Will post my results. Many thanks again, nice work.
Another question, does it flash it directly over the existing build, or could you think of something to wipe cache before? I always wipe cache and dalvik as instructed in Q&A in CM thread.
Sent from my GT-I9100 using Tapatalk
Ok, my first report.
First, as a new build was released I tried to test the task directly, but after some minutes, I cancelled the script. Then, I browsed to the CM7 folder and I saw the build 9 downloaded there (I am on 15, and the new one was 16).
I thought it was because I cancelled the script, so I deleted the zip there, and placed instead my actual build i.e 15.
Re-ran the task again, all good, it d\l and flashed the rom on my phone, but instead of having build 16 on my phone, it was the build 9, (from 30/07).
So there must be a bug, I assume.
Just wanted to let you know, hope you'll fix it as I'd love to use it.
Sorry for my English
mi3x said:
Ok, my first report.
First, as a new build was released I tried to test the task directly, but after some minutes, I cancelled the script. Then, I browsed to the CM7 folder and I saw the build 9 downloaded there (I am on 15, and the new one was 16).
I thought it was because I cancelled the script, so I deleted the zip there, and placed instead my actual build i.e 15.
Re-ran the task again, all good, it d\l and flashed the rom on my phone, but instead of having build 16 on my phone, it was the build 9, (from 30/07).
So there must be a bug, I assume.
Just wanted to let you know, hope you'll fix it as I'd love to use it.
Sorry for my English
Click to expand...
Click to collapse
What device do you have? I'll look into it..
Sent from my SGH-T959 using XDA App
Im on Samsung Galaxy S2.
Nice catch. I just looked at the mirror page for your device.. Since 9 is a single digit, it's the last link on the page. I assumed that the last link is always the latest mirror.
If you try again tomorrow or the next day it should work, since eventually Build 9 will be removed from the page. I'll try to work on this this week (along with the rewrites).
Sent from my SGH-T959 using XDA App
The last couple times I tried the script, it will start the download and pop up with "Download completed with errors" a few minutes later (not long enough to actually finish the download) and then reboot and try to install the failed package. CWM fails the hash check and reboots normally.
Droid X (shadow)
Sunblood said:
The last couple times I tried the script, it will start the download and pop up with "Download completed with errors" a few minutes later (not long enough to actually finish the download) and then reboot and try to install the failed package. CWM fails the hash check and reboots normally.
Droid X (shadow)
Click to expand...
Click to collapse
Thanks for the catch. I check the MD5 before I reboot into download mode, and it's supposed to error out if the check fails.
All, I will try to have V2 released this weekend. Life's a bit hectic right now and frankly there wasn't a whole lot of interest in this project from the community before, so nobody tested for me all this stuff.. thanks for the help!
I find it very interesting, so I will gladly help if possible. Thanks again.
Sent from my GT-I9100 using Tapatalk
does this also wipe /data/ after flashing?
XlAfbk said:
does this also wipe /data/ after flashing?
Click to expand...
Click to collapse
I would hope not.
One suggestion: I use Rom Manager Janitor to clean up old backups on boot so I only have ~3 or so, but it specifically looks for the naming system that Rom Manager uses so it doesn't delete manual backups. Could you use the same naming convention or do you just pass the "backup" command to CWM and let it do its own thing?
Otherwise, I'd rather stick with RM's backup and just have this script flash the nightly.
The notifications that SecureSettings throws up (not the ongoing, but the one-off errors and such) don't activate the Clear button in the dropdown window so I have to click it to clear them. It's probably an issue with SecureSettings but I thought I'd let you know.
Finally, I have two gapps zips in the AutoCM7 folder. 20110613 and 201106130. Can I delete one?
Update on my issue: I'm going to try and get a screenshot of the error message that the download spits out. It shows the download hit 100% but the file size keeps increasing until ~102mb, then the md5 check fails. Manually downloading (i.e. via rom manager) works fine.
Screenshots:
http://i.imgur.com/Ix4jo.png
http://i.imgur.com/0BPBJ.png
http://i.imgur.com/a8Vn9.png
As you can see, the download hits 100% about halfway through the actual filesize. The MD5 of the downloaded file actually matches the md5 on the nightly site, but it says the md5 fails. Manually selecting the zip with Rom Manager works just fine.

[Guide] Supercharger V6 for everyone, make your phone faster

I wrote this guide for originally in elk759's JB CM10 thread, but with some modifications it works with every ROM and every phone.
I thought other guides were too hard to understand so I concluded all neccessary information and nothing more.
This guide is for Windows, because it uses a Windows tool to make the process MUCH easier. This only affects the modding of services.jar, so look at the original Supercharger thread for instructions withot the Windows tool.
Here are the benefits of using SUPERCHARGER, I cn approve that it works, it's faster, more apps can run and no launcher redraws!
___________________________________________________________________________
Sources:
http://forum.xda-developers.com/showpost.php?p=12058585&postcount=1
http://forum.xda-developers.com/showpost.php?p=18703418&postcount=5021
zeppelinrox said:
What's it do?
It makes your phone FAST... super snappy with better multitasking!
It rearranges and fixes the OOM Groupings and Priorites and lowmemorykiller values.
So basically, it's a COMPLETE MEMORY MANAGEMENT FIX!
It's the ONLY one of it's kind
NO LAUNCHER REDRAWS, faster than ever, multitasking is better... why?
Because it works with the lowmemorykiller and letting it work the way it's meant to work.
Also, because of the rearrangement, it works the same on all roms!
The problem with using minfree tweakers like AMM or AKMO is that it doesn't work the same on all roms.
Secondary apps may be in slot 3 on some roms but in slot 5 in others!
That's why you hear people comment "I tried AKMO but it didn't do anything..."
Most likely it didn't do anything because the apps weren't sitting where they were expected to be.
So fasten your seat belts and enjoy the ride!
Click to expand...
Click to collapse
zeppelinrox said:
And -=Maximum Overdrive=- was born!
Upside: You can run up to 70 apps if you have enough RAM.
Downside: NONE
Click to expand...
Click to collapse
zeppelinrox said:
The Kick Ass Kernelizer
What Does The Kick Ass Kernelizer Do?
Memory Management++
MFK Calculator Info - explanation for vm.min_free_kbytes
LinuxInsight - The /proc filesystem documentation (Fantastic!)
XDA [REF] Startup script speed tweaks OP by hardcore
XDA Speed up your system with the noop scheduler
TCP Speed & Security
Security and Hardening the TCP/IP stack to SYN attacks
Click to expand...
Click to collapse
zeppelinrox said:
The 3G TurboCharger
In case of connection issues, see the notes in the 3G TurboCharger section at the top of /system/build.prop!
Homework/Background Info... see the folllowing links for resources used.
XDA Thread 1
XDA Thread 2
XDA Thread 3
Wi-Fi AfterBurner.
XDA Thread (Faster WIFI - N Standard Enabling)
The 3g build.prop tweaks aren't really anything new... but I did put a new spin on it! ;^]
You can find various individual configurations but as far as I know, my script is the only one that lets the user choose from more than one configuration.
Click to expand...
Click to collapse
___________________________________________________________________________
IF YOU HAVE ANY PROBLEMS, LOOK FIRST AT THE Q&A BELOW!
1. Prerequisites:
SuperCharger_Starter_Kit_xxx.zip (contins busybox, sqlite and zipalign)
[*]V6_SuperCharger_for_Android-Update9_RC11_xxx.sh.pdf
Script Manager for starting scripts (on first run enable root browse AND run every script with su rights, the skull and bones symbol)
ES File Explorer (with root rights in settings->root management)
optionally: Terminal Emulator
Recommended for everyone and REQUIRED for 4.0+ Roms:
pepcisko's Windows tool for patching services.jar
Place the V6_Supercharger script and the Supercharger_Starter_Kit.zip content to "/sdcard/V6"
Place the Windows tool somewhere on your Hard Drive
Install the required apps
2. Installation of Starter Kit:
Start SManager and confirm root rights when browsing
go to sdcard/V6/1_SuperCharger_Starter_Kit and click on StartMeUp.sh
select the SU button (skull + bones) and RUN it as script and follow the instructions (install at least busybox for being safe that everything works)
3. Patching services.jar
Background information (could be very useful):
Patching the services.jar gives you the multitasking mod. Apps shouldn't restart all the time, they will stay in RAM as long as they can.
Patching the services.jar is REQUIRED for Android 4.x.x, but you don't have to use multitasking mod.
For the other Android versions it isn't required, you only need this if you want to have multitasking mod, too.
If you have Sense 4.0+ and want multitasking mod, you have to follow this, more complex tutorial.
But you can also use this method, but your visible app limit stay at 8 Apps, instead of 50!
extract the Windows tool and launch it
You can choose between online mode (phone drivers needed) or offline mode, I'll explain offline mode:
make sure you have root rights in ES Explorer and that you mount system as R/W (read/writable)
copy the services.jar from /system/framework to your SD, and connect your phone to PC
move the services.jar to the framework folder of the Windows tool directory
in the windows tool specify your Android version + if the rom is odexed/deodexed
now press "enter" -> "y" for supercharge -> "enter" for die die-hard launcher -> "enter" -> "y" for multitasking -> "enter" -> "y" to delete temporary files
You have patched the services.jar, now you have two options (both files are in "dist" directory):
Place the update-signed.zip on sdcard and install it via recovery
OR
Place the modded services.jar (and if odexed rom the services.odex too) to /system/framework and overwrite. Then you have to set owner and permissions:
In Terminal Emulator
su
(confirm SuperUser Request)
busybox mount -o remount,rw /system
cd /system/framework
chown 0.0 services.jar
chmod 644 services.jar​
Now go into recovery (or stay there after flashing update-signed.zip) and wipe cache & dalvik cache.
On your next reboot apps should be optimized.​
4. Supercharger Installation
Remember: I can't promise, that the guide is always up to date. So it could happen that after an update of the script, the option numbers are different. Look at the text on the right side of the option
start the /sdcard/V6/V6_SuperCharger... script with SManager with SU rights
follow the instructions of driver options: You will be asked for Scroll Speed but also various tweaks which can improve the performance
The script calculates the preferred FreeMem size, you can use them or set your own prefered size:
After you have declined to use the calculated option you are in Driver's Console, you can choose between 33 options.
The Options 2 to 9 set the MinFree size, for the different Ram Size of the devices.
For the Desire I recommend option 6 which is called "balanced". You can try a lower or a higher option, too.
Lower values are better for Multitasking, higher values are better for the speed on the visible app.​
go back to driver options and type 21 for Nitro Lag Nullifier, confirm with N (could be unstable, you don't have to use this)
After you are finished press option 17 for Engine Flush and after that option 32 for SuperClean& Restart
After the restart you should open SManager again and navigate to /system/etc/init.d, click on S99SuperCharger and enable SU + Run on Boot.
Press Save. This should avoid issues if you want to launch Supercharger Script again (for me it worked without doing that)​
Widgets for easy and fast freemem change:
For compairing settings, you can make widgets, settings will be changed instantly:
- you have to select the option you want to use as a widget (e.g. option 5 of supercharger) one time in V6_Supercharger script
Your selected options will appear as a small script in sdcard/V6_Supercharger/PowerShift_Scripts
- long press on home screen, click on Widgets and select SManager
- choose the script you want to use (e.g. 512HP_UnLedded...)
Q&A Supercharger
Q: Supercharger says "sorry, your rom wipes service entries on boot". Is it an issue?
A: No you can ignore it. You'll stay supercharged. (thx to abelle_abelle for the hint)
Q: Supercharger says that I'm only 75%/50% supercharged. What is the reason?
A: Propably the services.jar hasen't been patched right. Check if the services.jar is replaced and if the owner and the permissions are right. Try it out with offline mode in the Windows tool.
Q: Do I have to patch the services.jar again after rom update?
A: If you flash the rom you have to replace the original services.jar again. I don't know if you can use the previous patched services.jar.
Q: Do I have to run the whole script again after a rom update?
A: You have to run the Supercharger script again, but it has stored the last settings and can restore them. Then you have to Wipe Cache & Dalvik, reboot and set /system/etc/init.d/S99SuperCharger to run with SU rights + at boot.
Q: Did my settings stick?
A: If Supercharger says "100% supercharged" everything should be fine. If you think there is something wrong, because of a particular message paste the log text in pastebin.com and give me the link in your post.
Q: Do I have to install the Supercharger StarterKit?
A: No, you cann try it without this first if you want. BUT some busybox versions doesn't work with Supercharger (everything below 1.16.2 and even some versions above 1.16.2.
The StarterKit installs a recommended version.
Q: My phone is getting slower from time to time.
A: This can happen if you don't reboot often (1 or 2 days). The cache is growing and there is less and less RAM.
If you don't want to reboot all the time you can make the EngineFlush in V6_SuperCharger (option 17) and a script will be created (!FastEngineFlush.sh). You can make a widget for it after you set it as favorite or launch it normally in Script Manager.
A more detailed guide about making widgets is written above.
Q: Everythings (apps and launcher) stucks after NitroLagNullifier/V6 Supercharger installation. What can I do?
A: The user abelle_abelle had this issue. He had to hard reset his device (hard reset wipes your partitions -> deletes your data) and had to reinstall the rom.
Q: Are there any possibilites to make my rom even faster?
A: Yes, with KickAssKernelizer (KAK):
http://forum.xda-developers.com/showpost.php?p=32508611&postcount=35
Maybe I will write a bit more detailed guide for this. You can see what it does at the benefits of Supercharger at the top of my first post.​----------------------------------------------------------------------------------------------------------------------------------------------------------
It took me long to test and to write please give a Thanks if I helped you
Also thank the creator of the scripts (check links)
Reserved for possible addition and Q&A
Have been using this for some time, and I can confirm it works.
Sent from my toaster.
I'm stuck in the CM logo screen after installing service.jar (online mode) and wiped davlink and cache.
aledex said:
I'm stuck in the CM logo screen after installing service.jar (online mode) and wiped davlink and cache.
Click to expand...
Click to collapse
Which Rom you are using?
Androidmarketuser said:
Which Rom you are using?
Click to expand...
Click to collapse
I'm sorry, I thought I edited the post. I'm using Elk's CM10 for Desire.
After trying several times to wait after having wiped cache and davlink (and fixed permissions) I re-flashed the rom and tried to apply the superchager script.
Problem 1: not enough spaces on the system (I'm using INT2EXT)
Problem 2: supercharger only at 50%
Problem 3: Apex launcher not recognized
Should I try to re-do everything, maybe this time with the offline method? But how to avoid the system space problem?
aledex said:
I'm sorry, I thought I edited the post. I'm using Elk's CM10 for Desire.
After trying several times to wait after having wiped cache and davlink (and fixed permissions) I re-flashed the rom and tried to apply the superchager script.
Problem 1: not enough spaces on the system (I'm using INT2EXT)
Problem 2: supercharger only at 50%
Problem 3: Apex launcher not recognized
Should I try to re-do everything, maybe this time with the offline method? But how to avoid the system space problem?
Click to expand...
Click to collapse
First off, I used it for CM10 too but without int2ext.
The reason for 50% is propably the unpatched service.jar(at beginning I had this issue too)
First, I would try to use the offline mode, the utility propably hasn't patched anything so try if it's working by manual way.
Just put the service.jar on PC, patch it and replace it. Then start the Supercharger V
script gain and it should be 100%.
otherwise do that:
On your SD Card there should be a Supercharger.html with a "log" or sth like that, please send it to me.
Additionally check if there is a "V6 Supercharger" folder on your SD, created by the script.
And check the output of the Windows tool! Be sure you have phone drivers on your PC and your phone is connected without SD Card Read if you use online.
-------------------------------------------
The space on system shouldn't be a problem, you have to use at least 250mb system (so stock hboot), int2ext only mounts /data on ext, so as I understood it is used for fatsys hboots which have 450mb system and NO space for data...
Why do you think that the space is a problem? Where did you notice it?
The APEX problem can be discussed after getting the rest work...
Please give feedback whether it worked or not
Androidmarketuser said:
First off, I used it for CM10 too but without int2ext.
The reason for 50% is propably the unpatched service.jar(at beginning I had this issue too)
First, I would try to use the offline mode, the utility propably hasn't patched anything so try if it's working by manual way.
Just put the service.jar on PC, patch it and replace it. Then start the Supercharger V
script gain and it should be 100%.
otherwise do that:
On your SD Card there should be a Supercharger.html with a "log" or sth like that, please send it to me.
Additionally check if there is a "V6 Supercharger" folder on your SD, created by the script.
And check the output of the Windows tool! Be sure you have phone drivers on your PC and your phone is connected without SD Card Read if you use online.
-------------------------------------------
The space on system shouldn't be a problem, you have to use at least 250mb system (so stock hboot), int2ext only mounts /data on ext, so as I understood it is used for fatsys hboots which have 450mb system and NO space for data...
Why do you think that the space is a problem? Where did you notice it?
The APEX problem can be discussed after getting the rest work...
Please give feedback whether it worked or not
Click to expand...
Click to collapse
Here's my problem:
1 - Installation of starter kit:
http://i50.tinypic.com/dqp5qf.png
2 - Patch of services.jar went ok with offline mode, but when I try to change permissions
http://i45.tinypic.com/34drlog.png
(this problem is obviously related to point 1)
Supercharger.html in attachments
aledex said:
Here's my problem:
1 - Installation of starter kit:
http://i50.tinypic.com/dqp5qf.png
2 - Patch of services.jar went ok with offline mode, but when I try to change permissions
http://i45.tinypic.com/34drlog.png
(this problem is obviously related to point 1)
Supercharger.html in attachments
Click to expand...
Click to collapse
Do you have stock hboot?
Try to delete some unnecessary preinstalled apps with file explorer.
(I search for some which you could delete...)
Edit: in system/app/ you can delete at least Calenar.apk, ES File Explorer.apk and Email.apk (after backup I think you can delete Gallery2.apk too, don't know how this affects on camera)
This should free at least 4mb and should be enough.
The file was just a help file and not a log, sorry for the mistake, thought it would create a og, but you have showed me the eroor with the pics...
Hey mate can you make a youtube video showing the steps. I understand better with visuals, and thanks for sharing.
Sent from my HTC Desire using xda app-developers app
Androidmarketuser said:
Do you have stock hboot?
Try to delete some unnecessary preinstalled apps with file explorer.
Click to expand...
Click to collapse
Yes I have stok hboot, and this is the first time I try to install V6 on a JB rom.
Concerning the lack of space I've done like you said, thank you!... BUT when I try to install binay 3.1 (which should fix the segmentation faults) it points out that it's only for ICS and aborts the installation. So I fixed the permission manually.
Now I'm going to check the rest and see what happens.
Fixed permission, flashed update-signed.zip, wiped davlink and cache, rebooted and... well, after HTC logo the screen turned off and only the hardkeys were illuminated
I'm going to flash the rom again and start from the beginning for the third time.
aledex said:
Yes I have stok hboot, and this is the first time I try to install V6 on a JB rom.
Concerning the lack of space I've done like you said, thank you!... BUT when I try to install binay 3.1 (which should fix the segmentation faults) it points out that it's only for ICS and aborts the installation. So I fixed the permission manually.
Now I'm going to check the rest and see what happens.
Fixed permission, flashed update-signed.zip, wiped davlink and cache, rebooted and... well, after HTC logo the screen turned off and only the hardkeys were illuminated
I'm going to flash the rom again and start from the beginning for the third time.
Click to expand...
Click to collapse
I saw that you are going to install Paranoid anyway, I have flashed CM10 recently so I have to redo my Supercharger and I will explain it in detail for you.
I will edit this post but give you a overview first.
I recommend to flash Gapps first and then enable a2sd.
Try installing Supercharger without the use of Starter Kit, Busybox, SQlite and SU binaries (v3.2) are preinstalled (if you want to check for update anyway check it in SuperUser app)
StarterKit is designed to give everyone the TESTED busybox version, to avoid problems, but try it without the installation of StarterKit, just if it doesn't work because of busybox get the one of StarterKit (I will try it with preinstalled version, not the one of StarterKit)
So here are my steps, I'll try:
1. patch services.jar with offline mode, then put the output service.jar with ES File Explorer in /system/framework
2. With terminal emulator I will set the permissions and the owner
3. I will launch the Superuser script.
You can try this while I am using this method, too, but in any case I will report if it works or not
Edit: I decided to make a video, for this I will use StarterKit too, to show everything.
chico1620 said:
Hey mate can you make a youtube video showing the steps. I understand better with visuals, and thanks for sharing.
Sent from my HTC Desire using xda app-developers app
Click to expand...
Click to collapse
I'll have to see, I have only a camera of the year 2005 or a old samsung phone of the year 2008/2009
I don't know if the quality would be good enough + I would do it only for 4.0+ ROM
Androidmarketuser said:
I'll have to see, I have only a camera of the year 2005 or a old samsung phone of the year 2008/2009
I don't know if the quality would be good enough + I would do it only for 4.0+ ROM
Click to expand...
Click to collapse
Does not matter my problem is the terminal coding i dont want to mess it up and change something crucial.
Sent from my HTC Desire using xda app-developers app
chico1620 said:
Does not matter my problem is the terminal coding i dont want to mess it up and change something crucial.
Sent from my HTC Desire using xda app-developers app
Click to expand...
Click to collapse
I'm currently making a video but I don't know if I can upload it today, but tomorrow you'll have it in any case
Quality is good I noticed.
Androidmarketuser said:
I'm currently making a video but I don't know if I can upload it today, but tomorrow you'll have it in any case
Quality is good I noticed.
Click to expand...
Click to collapse
Omg ty mate, i will be looking forward to it. Im also trying to follow your guide and see how things go, jopefully i succeed
Sent from my HTC Desire using xda app-developers app
Androidmarketuser said:
I saw that you are going to install Paranoid anyway, I have flashed CM10 recently so I have to redo my Supercharger and I will explain it in detail for you.
I will edit this post but give you a overview first.
I recommend to flash Gapps first and then enable a2sd.
Try installing Supercharger without the use of Starter Kit, Busybox, SQlite and SU binaries (v3.2) are preinstalled (if you want to check for update anyway check it in SuperUser app)
StarterKit is designed to give everyone the TESTED busybox version, to avoid problems, but try it without the installation of StarterKit, just if it doesn't work because of busybox get the one of StarterKit (I will try it with preinstalled version, not the one of StarterKit)
So here are my steps, I'll try:
1. patch services.jar with offline mode, then put the output service.jar with ES File Explorer in /system/framework
2. With terminal emulator I will set the permissions and the owner
3. I will launch the Superuser script.
You can try this while I am using this method, too, but in any case I will report if it works or not
Click to expand...
Click to collapse
Thank you, you are very patient and nice!
Yes I'm indeed trying Paranoid, because it solves the big problem I had with Elk's CM10 (wifi not working with wifi networks with PEAP), although it is slower and I intend to revert back as soon as the problem is fixed.
I will try your method, hoping that the hateful fragmentation fault problem doesn't occur anymore. :fingers-crossed:
aledex said:
Thank you, you are very patient and nice!
Yes I'm indeed trying Paranoid, because it solves the big problem I had with Elk's CM10 (wifi not working with wifi networks with PEAP), although it is slower and I intend to revert back as soon as the problem is fixed.
I will try your method, hoping that the hateful fragmentation fault problem doesn't occur anymore. :fingers-crossed:
Click to expand...
Click to collapse
Thanks for you thanks
I don't know if it is rally the segmentation (or whatever it's called) because it only occurs in ICS, if you want to install the su binary of the StarterKit it says NO because you don't need this (I think so)
I will upload a video tomorrow and I hope it solves your problem, for me everything's working fine
Does reinstalling the rom gets rid of the script? Because I'm currently using mildwild 5.0 and when I installed the supercharger script the rom got slightly slower, so I was wondering if reinstalling the rom gets rid of the script. Maybe I picked the wrong choices when installing the script I'm gonna wait for you to make a video so I can correctly do it.
Sent from my HTC Desire using xda app-developers app
chico1620 said:
Does reinstalling the rom gets rid of the script? Because I'm currently using mildwild 5.0 and when I installed the supercharger script the rom got slightly slower, so I was wondering if reinstalling the rom gets rid of the script. Maybe I picked the wrong choices when installing the script I'm gonna wait for you to make a video so I can correctly do it.
Sent from my HTC Desire using xda app-developers app
Click to expand...
Click to collapse
Reinstalling the rom deletes supercharger, because system is wiped (i think so)
The Video will show how you install the script, there aren't man decisions which you can choose incorrectly.
The speed is especially affeced by multitasking mod (keeps apps in memory, a bit less RAM for games) and freemem options which you choose in supercharger script, I recommend Option 6 for balanced settings.
AS I said the video only shows the basic things (and only for 4.0+)...
Edit: Video wont have many anotations, will be under time pressure
Sent from my HTC Desire using xda app-developers app

[TOOL] SimpleSU v0.7

So.
As i was slowly preparing DSC v2.0 i met a hard decision: what root tool to include
Both Superuser and SuperSU are nice, but quite heavy
I decided to take my own way - rewrite su executable itself to suit my vision:
I've aknowledged that i have not modified my root access list for half a year. I don't need and don't want a separate Java process to control root access. I want a simple way to allow root access for application (via whitelist), but block unwanted (i.e. all not in list). Still, it should allow end-user to install either SuperSU or Superuser.
In short - ideal su solution for myself that should also work good for depersonalized custom ROM (with predefined access list), leaving it to end-user to decide which app he will install for superuser access.
And i didn't find a ready solution, so decided to write my own.
Here it is (attached):
SimpleSU
Simplest and lightest superuser solution (with access control)
How it's done:
Same as usual SU for Linux with control access list read from /system/etc/dsc.su_list
dsc.su_list structure is very simple:
One line per android app (case sensitive), windows and unix line breaks should be supported fine.
Current proposed list for DSC 2.0 (and an example):
dsc.SimpleSU.acl
dsc.settings
dsc.uv
dsc.levels
dsc.mugen
jackpal.androidterm
ru.org.amip.ClockSync
eu.chainfire.supersu
eu.chainfire.supersu.pro
com.ryosoftware.adbw
com.googlecode.droidwall.free
com.noshufou.android.su
de.schaeuffelhut.android.openvpn
de.schaeuffelhut.android.openvpn.installer
com.elsdoerfer.android.autostarts
com.speedsoftware.rootexplorer
com.geeksoft.screenshot
com.rerware.android.MyBackupPro
com.ghostsq.commander
ws.plattner.cifsmanager
mobi.pruss.superdim
com.force.timezonefixer
com.bigtincan.android.adfree
Caller process tree is walked till init, if match is found, access is granted.
How to install?
Via adb shell:
Code:
adb push su /system/xbin/
adb shell chmod 6755 /system/xbin/su
adb push dsc.su_list /system/etc
adb shell chown root.root /system/etc/dsc.su_list
adb shell chmod 644 /system/etc/dsc.su_list
Note that you have to manually add entries to white list (/system/etc/dsc.su_list) to grant root access in form of app full Java class name. For example, it's com.keramidas.TitaniumBackup for Titanium Backup.
As pointed by dr911, works in multiuser environment (being a linux binary).
Currenly SimpleSU supports two command formats:
Usual: su -c 'make me a sandwich'. Note that only "-c" works now. Seems to be enough though. Command simply passed to the shell.
Legacy (as seen in Google/Android su source): su username make me a sandwich. Shell is not executed in this case, so no environment variables right now in this format.
Have fun,
Sergei.
Changelog:
02.04.2013: v0.7. ":service" suffix granted root access for already granted app, more logging on reject. (0.6 had only more logging)
27.11.2012: GUI updated - forgot about remounting /system in rw mode. Attached to this post.
21.11.2012: GUI done. http://forum.xda-developers.com/showpost.php?p=34439975&postcount=41
14.11.2012: v0.5. LD_LIBRARY_PATH fixup (taken from ChainsDD), pointed by Rupert Rawnsley. Also some legacy format command-line handling changed. Also, insecure version added (no checks made, asked=granted).
11.11.2012: v0.4. Code cleanup, no longer beta, revised and fixed code with potential string overflows.
09.11.2012: v0.3b. Code changed to allow legacy format command execution.
09.11.2012: v0.2b. Fixed call with multiply parameters. OpenVPN installer works. Dynamic linking, so very small binary. Logging to system log.
07.11.2012: Fixed segmentation fault on reject, added version and build date, removed debug info.
A request:
If somebody owns Pro/Elite/other commercial Superuser or SuperSU - would you provide it's full Java class name?
For example, it's
eu.chainfire.supersu
com.noshufou.android.su
for free versions.
eu.chainfire.supersu.pro
Sent from my Amazon Kindle Fire using Tapatalk 2
Can I avoid these little delays (the appearing popup of SuperSU or Superuser) with this alternative?
And if I have Superuser preinstalled can I delete it and are there other files which belongs to it and can be deleted?
Thank you for sharing your work
com.noshufou.android.su.elite for Superuser Elite
Hi
Have you noticed any improvement in terms of speed etc? Is superuser really that heavy? How much RAM can i get by using this and ditching the superuser app? We can use this in our Galaxy 3 forum !
Get the list of all android activities from here
http://activities.droidicon.com/
Androidmarketuser said:
Can I avoid these little delays (the appearing popup of SuperSU or Superuser) with this alternative?
And if I have Superuser preinstalled can I delete it and are there other files which belongs to it and can be deleted?
Thank you for sharing your work
Click to expand...
Click to collapse
Delete system/xbin/su and uninstall your superuser app from the system.
Oh. Looks SimpleSU got in news
Androidmarketuser said:
Can I avoid these little delays (the appearing popup of SuperSU or Superuser) with this alternative?
And if I have Superuser preinstalled can I delete it and are there other files which belongs to it and can be deleted?
Thank you for sharing your work
Click to expand...
Click to collapse
You won't experience any delays - but in cost of manually editing the list. And no popups, it's simply a linux binary. After replacing su binary you may uninstall Java part.
Shree_Jamdar said:
Have you noticed any improvement in terms of speed etc? Is superuser really that heavy? How much RAM can i get by using this and ditching the superuser app? We can use this in our Galaxy 3 forum !
Click to expand...
Click to collapse
I did experience lags when using Superuser and SuperSU. I don't think modern device would benefit from SimpleSU. I expect to free 15-20MB. Good for Streak with 512MB.
I may eventually write a list editor, but most probably won't.
Again, this tool would do as preinstalled SU solution in Custom ROM (though i can't test >2.3 compatibility):
Grant predefined (and included in ROM) apps the superuser rights.
Allow end-user to choose and install he's preffered SU solution right from Play Store.
--
Have fun,
Sergei
_n0p_ said:
You won't experience any delays - but in cost of manually editing the list. And no popups, it's simply a linux binary. After replacing su binary you may uninstall Java part.
I did experience lags when using Superuser and SuperSU. I don't think modern device would benefit from SimpleSU. I expect to free 15-20MB. Good for Streak with 512MB.
I may eventually write a list editor, but most probably won't.
Again, this tool would do as preinstalled SU solution in Custom ROM (though i can't test >2.3 compatibility):
Grant predefined (and included in ROM) apps the superuser rights.
Allow end-user to choose and install he's preffered SU solution right from Play Store.
--
Have fun,
Sergei
Click to expand...
Click to collapse
Exactly what I searched, thanks :good:
I will test it on my old Desire with Android 4.1, I can tell you whether it's compatible or not.
nice tool...very lite. i m using this in extreme barebone roms for my galaxy mini. really nice, but the problem is only some apps r being granted permissions, some denied.
i hope u increase the list of activities. then this is a hit for me
good luck..
Android_United said:
nice tool...very lite. i m using this in extreme barebone roms for my galaxy mini. really nice, but the problem is only some apps r being granted permissions, some denied.
i hope u increase the list of activities. then this is a hit for me
good luck..
Click to expand...
Click to collapse
Can you provide an example of app you have added to the access list, but it didn't work?
i looked in the op and still dont understand how to install?? flash the simple SU zip in recovery.. then what???
evo401 said:
i looked in the op and still dont understand how to install?? flash the simple SU zip in recovery.. then what???
Click to expand...
Click to collapse
if you couldnt read/understand the OP, then your probably better off sticking with SuperSU or SuperUser...
Heres my non-developer understanding (potentially flawed):
Its a binary, with manual entry's (IE text editing) of pre-approved apps, it doesnt have a frontend/gui like SuperSU or SuperUser which allow you to graphically chose what to allow and what to deny...
OP: I like it so far, as for your thoughts on a graphical editor, I for one would love to see one, and before I get jumped for saying then whats the difference between the other options, an editor would be short and sweet, open, edit list, close, ram once again free (since that is the concern), instead of having it stay resident in RAM...
On that note, if I may, there are tools like Rays Toolbox and Android Tuner (formerly system tuner), that I would like to put in a feature request for them to add an editor in the app (Android Tuner already has a few editor's, adding a SimpleSU editor would just add to the overall completeness of the toolkit) to edit the list for SimpleSU, with your permission of course!
Thanks again!
Latest version working on Galaxy fit !!! It really imporves performance on low ram(We got 256mb) devices maybe OP might consider sharing it by moving thread to a more general location on xda rather than on a device forum my thoughts.
Dark Passenger said:
Latest version working on Galaxy fit !!! It really imporves performance on low ram(We got 256mb) devices maybe OP might consider sharing it by moving thread to a more general location on xda rather than on a device forum my thoughts.
Click to expand...
Click to collapse
Yes, exactly.. it works on galaxy y duos and galaxy yseries.. its better to move it to android app development section may be? as it will get more support there i feel.. Please do consider op.. And thanks for this cool app.. Its awesome. And i dont think it needs an editor, as we can have editors from many apps .. i have around 4-5 apps which has editors.. surely users who use this app will be bit advanced users..
and i bet all of them will have file editors.. and all file explorer apps comes with editors nowadays.. well , just my thoughts.. but if you can keep the file browser to bare minimum and keep size of apk less.. then i would surely like to see it too
i am hoping to use this from now on.. so i will give review for new updates.. have you pushed it to play store? i think you should do that.. many will like this idea!
Thanks again..
As far as i understood we can edit it to add new apk names to give permission.. Because Android_united kinda confused me.. So, asked this again.. i did use it and it did worked.. its just may be he didnt see that?
Works like a charm! The only problem I had is that I was doing this through Terminal Emulator, and for some reason, when i did all this, superuser perrmisions were not granted for Terminal Emulator. After a little digging i found that i have to add this line
Code:
jackpal.androidterm2
and leave the one that's there by default
Code:
jackpal.androidterm
to the dsc.su_list
Now it works, i have SU for Terminal Emulator, Adfree, and i added SetDNS (Impossible to use Google play on CM7.2 without it )
I like the idea of this but be extra careful to only whitelist activities you really use.
I could imagine a malware somehow managing to enter your system and masquerading as one of the prepopulated entries in dsc.su_list, though of course no such vulnerability exists so far.
Thank you for feedback.
--
I cannot publish it on Play Store - it's not an Android app. To publish it, i need to write SimpleSU Installer, or something like that (see below).
--
Regarding editor - it would be nice if someone else would write it I really don't expect to have enough free time required.
--
A 0.4 version i consider as stable (revised potentially bad code with possible string overflows) attached to first post.
--
Malware that could act as Java class - i thought of several scenarios, but any requres root access beforehand. And if you install an app - it's your responsibily to be careful.
--
Have fun,
Sergei
_n0p_ said:
Can you provide an example of app you have added to the access list, but it didn't work?
Click to expand...
Click to collapse
titanium backup, es-file explorer. i tested wit only these 2. as these 2 weren't gaining root access, so i stopped using this. if u want me to test wit more apps, i can help u out.
will be using this surely once it receives more updates :good:
:good: gud luck..

[ GUIDE ] ViPER|Atmos V4A Sony Beats Edition + Audiophile 100% working tutorial on S7

Here is a complete guide on how to get V4A stock and V4A Sony Beats Edition working on your Samsung Galaxy S7 Device. Please note I have tested this personally on my own S7 Edge SM-G935F and it is working 100%. There was a few bumps along the way to get everything working and if it wasn’t for @guitardedhero help and everyone else involved I wouldn’t have figured it out. There were similar tutorials HERE and HERE that offered some insight but didn' provide a fully working procedure so I put together my own guide that will work for sure.
You will need a rooted device for this to work (SuperSU by @Chainfire CF-AUTO-ROOT) and a working recovery TWRP version 3.0.0 or above found HERE
As usual please backup all your data and files (internal and external SD cards) as mistakes can be made and things don’t always go as planned
0. In your SuperSU app go to setting and deselect/un-tick “Mount namespace separation” (this is causing issues with the installation process on this and other devices)
1. Install BusyBox by Stephen (Stericson) with the default settings of /su/xbin
2. Install the latest version of Viper4Android (currently 2.4.0.1) from the official website - LINK or if you prefer use the older version as it has been favored for providing better quality. (Do not open just yet, only install)
2.3.4.0 with its Super Quality driver is absolutely superior to 2.4.0.1 and its driver in every aspect, it's almost not even fair. I promise you, this build will absolutely blow your mind, especially when used with the ViPER|Audio™ Audiophile™ 4.0 Profile @guitardedhero
3. Make sure Viper4Android has write permissions (this should be on as default but check just in case) Settings -> Applications -> Application manager -> V4A -> Permissions -> and make sure all available options are enabled.
4. Freeze the stock Sound Alive or Adapt Sound app using Titanium Backup.
5. Open up Root Explorer (or your preferred root browser) and change the system to MOUNT R/W
6. Go to root/system/etc/ and rename the file audio_effect.conf to audio_effect.conf.backup
7. Download the modified audio_effect.conf from HERE and copy it to /system/etc/ and /vendor/etc/
(This last location will have no files, it may be skipped?)
8. Set permissions of the new files to rw-r-r (0644) (important! Or you may have boot loops)
9. Change your system back to MOUNT R/O and exit.
8. Restart your device in recovery and flash THIS FILE HERE and reboot (I didn’t perform any wipes)
9. Once your device reboots, open up V4A and grant root permissions and install the requested drivers.
10. Reboot once again and this should be it…
You should now have V4A working on your device
If you feel the stock V4A isn’t giving you the correct audio niche or experience then consider changing to ViPER|Atmos™ 4.8.1 Sony™ Beats™ Edition by @guitardedhero – (I have not tested other editions found here on the OP Thread, they may or may not work… any volunteers ??? )
FLASH THIS FILE TO GET STARTED ViPERAtmos 4.8.1 Sony Beats Driverless.zip
Once your phone reboot you will have a new looking V4A icon and upon opening it should work but your Dolby Atmos app will keep crashing until you FLASH THIS FILE dap_r6.5.zip - Fresh Dolby Atmos App file.
And here is a quick guide written by @guitardedhero to enable the Audiophile profiles...
I don't recommend others to flash without an acceptable backup to restore as this build drops compatibility big time for some devices resulting in no in-call volume for example. It is the custom version I built for my Nexus 6 ViPER|Atmos™ Audiophile™ rom and is just absolutely incredible!
Post-install instructions:
In v4a:
Menu > Show Notification (disable through notification shade if you wish)
Menu > Ui Setting > Expert
Menu > Save Effect Profile > As New Effect > Stock
Download and extract ViPERAudio Audiophile Profile 4.0 zip from the OP attachments section or HERE.
Search in:
/data/media/legacy/ViPER4Android/Profile
and
/storage/emulated/0/ViPER4Android/Profile
until you find the Stock folder you just saved earlier.
Take note that this is your working v4a directory.
Copy the Kernel and Profile folders in the ViPERAudio Audiophile folder you extracted earlier and paste them into the /ViPER4Android folder of your working v4a directory. Compare the folder and file permissions to the Stock folder and files and set them to the same permissions if necessary.
In v4a:
Menu > Load Effect Profile > Audiophile 4.0
Recommended Dolby Atmos™ Settings:
Music tab highlighted at the top
Open or Flat EQ preset
All three effects at the bottom turned Off except for Dialogue Enhancer if it sounds good to you.
Troubleshooting and additional steps will be written here shortly...
Please find all needed and extra files bellow...
REVISED - ViPERAudio_audio_policy_S7_Edge.zip has been added...
First! :highfive:
I've got one more goodie, provide me your stock /system/etc/audio_policy.conf and I'll provide ViPER4Android processing like you guys have never seen! (heard)
Fantastic tutorial from which many will certainly benefit! @themoto
Great job! :good:
guitardedhero said:
First! :highfive:
I've got one more goodie, provide me your stock /system/etc/audio_policy.conf and I'll provide ViPER4Android processing like you guys have never seen! (heard) :good:
Click to expand...
Click to collapse
ill post it shortly, still fixing up this guide and correcting everything...
GODSPD said:
ill post it shortly, still fixing up this guide and correcting everything...
Click to expand...
Click to collapse
:good:
find it bellow
guitardedhero said:
:good:
Click to expand...
Click to collapse
Here is my original file from the the Galaxy S7 Edge SM-G935F found inside the .rar file
GODSPD said:
Here is my original file from the the Galaxy S7 Edge SM-G935F found inside the .rar file
Click to expand...
Click to collapse
audio_policy.conf
guitardedhero said:
audio_policy.conf
Click to expand...
Click to collapse
my mistake, here is the right file...
GODSPD said:
my mistake, here is the right file...
Click to expand...
Click to collapse
Here you go, friend!
Feel free to add this to your OP, a flashable audio_policy for you and your friends! :good:
Thanks! 2 questions..
1) what's the battery drain like compared to without v4a?
2) how do we fully revert back to stock and remove v4a?
Thanks for this guide, kinda got stuck at step 5 though, couldn't figure out how to mount r/w using es file explorer with root? When I tried to change the filename of audio_effects.conf it said task failed which is because I didn't mount r/w I assume
You made my day man
2.3.4.0 is way better than 2.3.4.1 by miles.
I have GS5 besides my 7 edge and the reason i kept it around is the sound quality, i always favored it to listen to music over my 7 edge and just figured out the reason; 2.3.4.0 is installed on my GS5.
GS5 -----> drewer
Sent from my SM-G935F using Tapatalk
GODSPD said:
ill post it shortly, still fixing up this guide and correcting everything...
Click to expand...
Click to collapse
Is there any difference between your thread and this one ?
http://forum.xda-developers.com/s7-edge/how-to/guide-viper4android-enforcing-stock-t3337148
I see you've linked the other 2 posts in your op. It may have been better to just include the additional information in that thread, only a suggestion
sawdoctor said:
Is there any difference between your thread and this one ?
http://forum.xda-developers.com/s7-edge/how-to/guide-viper4android-enforcing-stock-t3337148
I see you've linked the other 2 posts in your op. It may have been better to just include the additional information in that thread, only a suggestion
Click to expand...
Click to collapse
the op had added some profile and kernel for v4a. and also dolby atoms
relax24 said:
Thanks! 2 questions..
1) what's the battery drain like compared to without v4a?
2) how do we fully revert back to stock and remove v4a?
Click to expand...
Click to collapse
1) Battery drain - I haven't noticed any significant changes on my device
2) If you install the apk just uninstall it and unfreeze your Sound Alive
3) and undo any changes
sawdoctor said:
Is there any difference between your thread and this one ?
http://forum.xda-developers.com/s7-edge/how-to/guide-viper4android-enforcing-stock-t3337148
I see you've linked the other 2 posts in your op. It may have been better to just include the additional information in that thread, only a suggestion
Click to expand...
Click to collapse
The first guide didn't provide a fully working method, try it and it will keep asking you to reinstall drivers, the second was designed for the S6 and provided a different method, here it is covered 101% plus additional sound mods, profiles, Atmos, and much more.
GODSPD said:
The first guide didn't provide a fully working method, try it and it will keep asking you to reinstall drivers, the second was designed for the S6 and provided a different method, here it is covered 101% plus additional sound mods, profiles, Atmos, and much more.
Click to expand...
Click to collapse
No problem thank you for your reply??
Sent from my SM-N920C using Tapatalk
hookguy said:
Thanks for this guide, kinda got stuck at step 5 though, couldn't figure out how to mount r/w using es file explorer with root? When I tried to change the filename of audio_effects.conf it said task failed which is because I didn't mount r/w I assume
Click to expand...
Click to collapse
just try it with root explorer app from the store, the second you open it it has that option displayed in the top right hand corner, you cant miss it...
Any reason why the audio sounds high pitched/faster after installation?
El Maestro said:
You made my day man
2.3.4.0 is way better than 2.3.4.1 by miles.
I have GS5 besides my 7 edge and the reason i kept it around is the sound quality, i always favored it to listen to music over my 7 edge and just figured out the reason; 2.3.4.0 is installed on my GS5.
GS5 -----> drewer
Sent from my SM-G935F using Tapatalk
Click to expand...
Click to collapse
How did you install 2.3.4.0?
When I download the zip I can't flash it, and It is not possible to install the apk's inside it either

[MAGISK][mido]White Torch Light with Dual Flash for Camera and More

This is my personal MAGISK mod that I use. It's quite versatile as one can change it depending on what one needs. It's just a matter of uncommenting/commenting out the related lines, beginning with 'write /sys/....'
You'll find them in the common folder in services.sh and post-fs-data.sh.
Currently it has been set up to change the yellow torch light in custom ROMs to white while retaining the camera's dual flash.
You do not need to change anything if you just need the above functionality, just download and load the mod in Magisk.
However, if you wish to try out the other tweaks included then you'll need to unzip it, change the wanted values and zip them again to be able to flash it in Magisk; I use ZArchiver.
All these tweaks were cherry picked from the sample.sh script so generously provided by @DarthJabba9 in his thread.
If your looking for more cool tweaks and tweaks for devices without Magisk, you should check out his thread.
Tweaks available in this MOD:
-white flash light and/or torch (depending on what you change)
-limit max CPU scaling frequency (for more battery life)
-set idle GPU to 133 Mhz (for more battery life)
-correct screen retention for Tianma displays
-change the read ahead value for external storage
Read the codes in the services.sh and post-fs-data.sh to find out more.
This has been tested on Oreo but should work for Nougats as well
Enjoy!!
Download
CREDITS:
@DarthJabba9
WORD OF CAUTION:
Apart from using the values provided in the scripts by un-commenting them, do not try to change the values or lines on your own if you're not aware of what it does/will do. It can seriously damage your device and anyone including me shall not be held responsible for it.
'''Update:'''
'''07/10/2018'''
using only
write /sys/class/leds/led:torch_1/max_brightness 0
Thanks man.. ??
Will this work in lineageOS 15.1 (build 2018-06-18) on mido?
Will i have to unpack and repack it if i just want white light from notifications panel or just installing from magisk will be sufficient?
Sorry , I am a noob.
Yes
Yes, just use as is
OP updated for more clarity, thanks
This module of your magisk could have bad effect in custom kernel sir?
jhun3xx said:
This module of your magisk could have bad effect in custom kernel sir?
Click to expand...
Click to collapse
In which way?
thapaavijeet said:
In which way?
Click to expand...
Click to collapse
In speed and batt life sir.. Im using overclock kernel
jhun3xx said:
In speed and batt life sir.. Im using overclock kernel
Click to expand...
Click to collapse
If your just using the mod as is, without changing anything in it, then it does not do anything else other than change the torch light colour.
jhun3xx said:
In speed and batt life sir.. Im using overclock kernel
Click to expand...
Click to collapse
If your just using the mod as is, without changing anything in it, then it does not do anything else other than change the torch light colour.
Noob here!
I want this tweak:correct screen retention for Tianma display.
What to do in service.sh?Should i remove the"#"sign from that line or what?
Sent from my Redmi Note 4 using XDA Labs
arvarobert said:
Noob here!
I want this tweak:correct screen retention for Tianma display.
What to do in service.sh?Should i remove the"#"sign from that line or what?
Click to expand...
Click to collapse
Yeah, remove, zip and then load in Magisk.
However, I'm not sure that it will work coz I guess it has got something to do with the kernel too.
You may try and let me know, would be great!
thapaavijeet said:
Yeah, remove, zip and then load in Magisk.
However, I'm not sure that it will work coz I guess it has got something to do with the kernel too.
You may try and let me know, would be great!
Click to expand...
Click to collapse
Ok i will inform you, but how to know if it's working?
Sent from my Redmi Note 4 using XDA Labs
arvarobert said:
Ok i will inform you, but how to know if it's working?
Click to expand...
Click to collapse
I was trying this for sometime now and it appears that this only works with kernels that have support for KCal control.
However, I might be completely wrong considering that I'm a bigger noob than what you yourself claim to be....
I was trying to take screenshots of screen retention... :laugh: :silly:
thapaavijeet said:
Yeah, remove, zip and then load in Magisk.
However, I'm not sure that it will work coz I guess it has got something to do with the kernel too.
You may try and let me know, would be great!
Click to expand...
Click to collapse
Hey man, this module does not seem to work in RR unofficial by endless. This rom has XiaomiParts included in it wherein you can adjust the white/yellow led brightness. I only want white led in torch but dual led in camera flash.
Sorry for quoting this. Just needed to get your attention
chickentuna said:
Hey man, this module does not seem to work in RR unofficial by endless. This rom has XiaomiParts included in it wherein you can adjust the white/yellow led brightness. I only want white led in torch but dual led in camera flash.
Sorry for quoting this. Just needed to get your attention
Click to expand...
Click to collapse
could you get the output of these three commands from a terminal emulator or adb. You would require root privileges to run them
Code:
cat /sys/class/leds/led:flash_1/max_brightness
cat /sys/class/leds/led:torch_1/max_brightness
cat /sys/class/leds/torch-light1/max_brightness
thapaavijeet said:
could you get the output of these three commands from a terminal emulator or adb. You would require root privileges to run them
Click to expand...
Click to collapse
All done using default led settings
Edit: This is with the magisk module enabled
chickentuna said:
All done using default led settings
Click to expand...
Click to collapse
unpack the mod zip and remove the comment in the below line in service.sh
Code:
#write /sys/devices/soc/qpnp-flash-led-25/leds/led:torch_1/max_brightness 0
to
Code:
write /sys/devices/soc/qpnp-flash-led-25/leds/led:torch_1/max_brightness 0
zip all the files again and load it in Magisk.
Check if that works
So currently I'm running on these settings and this gives me super bright while torch along with dual flash as long as I focus and click.
Can someone out there please guide us on what the appropriate values should be before one of us ends up blowing our leds.
I could only figure out that one of them should be always set to zero for the white torch
Code:
write /sys/devices/soc/qpnp-flash-led-25/leds/led:torch_1/max_brightness 2000
write /sys/class/leds/led:flash_1/max_brightness 1000
write /sys/class/leds/led:torch_1/max_brightness 0
write /sys/class/leds/torch-light1/max_brightness 1000
changed the values again in hopes for moderation
thapaavijeet said:
unpack the mod zip and remove the comment in the below line in service.sh
to
zip all the files again and load it in Magisk.
Check if that works
Click to expand...
Click to collapse
Tried. Didn't work

Categories

Resources