[MOD][15/06/12] Improve your One X multi tasking using script - HTC One X

Improve your One X multi-tasking using this simple and quick script!
User Feedback from this script:
"Nubzori: Thank you so much. After 10mins of testing, loaded bunch of apps, news, twitter, pulse, xda, chrome, clock, task manager, none of these refreshed"
Note: this script only works on roms that support init.d, it's been brought to my attention that init.d is not supported on some stock roms/kernels although it must be said; Why the hell would anyone want a stock rom??
UPDATE 15/06/12 - Thanks to Orical who has advised me this link here is a solution to those having problems with getting init.d scripts to work. This basically gives you the ability to enable init.d scripts in any rom!!!
Steps to installing script - EASIEST METHOD
1. Download this script of your choice and transfer to your phone (using USB cable or download direct to your phone or AIRDROID or whatever)
2. Rename from multitasking.txt to just multitasking (without any extensions) and place this in your /etc/init.d/ or system/etc/init.d (if you cannot see this, make sure your es file explorer is showing hidden files and folders which can be changed within the settings of es file explorer, also you need to make sure you go up to root directory which is again enabled within es file explorer)
3. You must be rooted to access this folder (make sure you set es file explorer to go up to root directory). These scripts alter the minfree values in your lowmemorykiller system module.
4. Once you have moved script file to init.d to mark as executable by clicking on script and setting permissions as executeable within es file explorer.
5. OR Just open the file and you can find several options, one you need is 'linux handler', choose that and next select execute option. It will now executed automatically.
Alternative method of installing script:
adb remount
adb push C:\Users\your name here\Desktop\multitaskingxtremextra system/etc/init.d
adb shell
chmod 644 system/etc/init.d/multitaskingxtremextra
adb reboot
From what I know of, the android system generally handles around about 5/6 apps in memory without any problems, any more apps and then you start getting refreshes, I've tested using LBE firewall (running as service), battery status, firefox with multible tabs open, gmail, messaging, gallery and the sense launcher (as this is an app as well). Any more and it starts recycling ram for some reason and you will get refresh on some apps (depends on which app)
Troubleshooting:
Can't find init.d, here is the answer:
Use the root explorer to copy it to system/etc/init.d
Just open the file and you can find several options, one you need is 'linux handler', choose that and next select execute option. It will now executed automatically.
The default values for the One X are:
STOCK ONE X TEGRA:
8192, 10240, 12288, 14336, 16384, 20480
My multitasking script alters this to:
2560,4096,6144,7680,8704,10240
My multitaskingxtreme script alters values to:
1536,2048,3584,5120,8704,10240
My multitaskingxtremeextra has the xtreme script as well as:
Dirtybackgroundratio 70
Dirty Ratio 90
VFScachepressure 10
And kill oom allocating task 1
my multitaskingultimate has the same as multitaskingextremeextra except the minfree values are more aggressive for the best multi tasking you can get on the one x
512,1024,1280,2048,3072,4096 - this is the best settings I have used for multitasking and have run 6/7 apps and some cases more without refreshing on a full SENSE 4 rom which is impressive if you ask me, the combination of apps where Firefox, Chrome, Gallery, Youtube, Dialer, etc.
You should notice that most apps will not reload when multitasking (except if you are intense gaming such as shadowgun or something intense like riptide), in some cases too many apps running will cause refresh if multi tasking, take note in the fact that htc senses software uses up alot of ram leaving little free as it is for other apps.
If you want to return to default values, simply delete the script from your init.d and reboot your android phone
If this has helped you please hit the Thanks button rather than post thanks!!
My test was using chrome beta, ebay, gallery, file explorer, ebookdroid, whatsapp, gmail, text message and all did not refresh whilst using,
I will also experiment with different scripts & methods and post any alternatives that may further improve multi tasking on the one x.
NOTE: I hold no responsibility should you damage your phone in anyway using this script. However damage is unlikely.
Information:
min free kbytes (vm.min_free_kbytes)
This is used to force the Linux VM to keep a minimum number of kilobytes free. The VM uses this number to compute a pages_min value for each lowmem zone in the system. Each lowmem zone gets a number of reserved free pages based proportionally on its size. Default is 2048kb.
dirty ratio (vm.dirty_ratio) and dirty background ratio (vm.dirty_background_ratio)
This controls how often the kernel writes data to "disk" (in our case the internal microSD system card, not the removable microSD card). When your apps write data to disk, Linux actually doesn't write the data out to the disk right away, it actually writes the stuff to system memory and the kernel handles when and how the data is actually going to be flushed to the disk. These values represent a percentage, the higher the percentage, the longer it waits to flush, the lower the percentage, the more often flushes will occur. Now remember, we are dealing with solid state storage, not the traditional disk platter and spindle. So we are actually able to delay flushes a little longer with solid state versus a traditional hard drive disk.
VFS Cache Pressure (vm.vfs_cache_pressure)
Now here is where it gets interesting! File system cache (dentry/inode) is really more important than the block cache above in dirty ratio and dirty background ratio, so we really want the kernel to use up much more of the RAM for file system cache, this will increas the performance of the system without sacrificing performance at the application level. The default value is 100, as a percentage, and what you want to do is lower the value to tell the kernel to favor the file system cache and not drop them aggressively.
oom allocating task (vm.oom_kill_allocating_task)(enable or disable, generally in Linux this value is either a "1" or a "0," representing as on or off.)
This enables or disables killing the OOM-triggering task in out-of-memory (oom) situations. If this is set to zero, or disabled, the OOM killer will scan through the entire task list and select a task based on heuristics to kill. This normally selects a rogue memory-hogging task that frees up a large amount of memory when killed. If this is set to non-zero, or enabled, the OOM killer simply kills the task that triggered the out-of-memory condition. This avoids the expensive task list scan, which can take mass amounts of time and "hang" or freeze the system.
This thread would like to thank the following:
rayford85 - for pointing out #!sysbin in script which i stupidly left out and alternative installation method
Nubzuri - for pointing out to those who could not find init.d
rycon33 - for pointing out that init.d not supported on some stock kernels/roms
My MODS
----------------------------------------------------
[MOD] Improve Multi-tasking on HTC One X
----------------------------------------------------
[Currently owned devices]
- HTC One X Tegra 3
- Motorola Xoom
- HTC Sensation
- HTC Desire HD

Thanks a lot, much better multitasking now
Sent from my HTC One X using XDA

i thought it's about time we got something like this and decided to bother modifying the values, it is a noticeable difference!

Would this be the same or similar script to the one in this thread?
http://forum.xda-developers.com/showpost.php?p=26437514&postcount=93

My phone is rooted but I can't find the init.d folder. I have \etc but no init.d. Should I create the folder or just place it in etc?

nope its my own script, for some reason the op hasn't replied back yet about his script so i couldnt test it and decided to make my own, so far it is better than the original minfree on the htc one x tegra 3,
also you need to be using es file explorer make sure you can view all files/folders (including hidden) in settings of es file explorer

Does the phone need to be rooted ?

I downloaded es file explorer and set the hidden file/folder option. I still can't find /etc/init.d
I can see other hidden files and folders in other directories but can't locate init.d
Any ideas?

thanks for this

Thanks for your contribution .

@silentkill @john9 please hit the thanks button and you are welcome,
creepinchi: make sure you have access to your root directory, follow my instructions above in the first post, you need to be able to go up to root directory then you will see etc folder then go into init.d folder then place script here

I don't want to root my machine yet, is it possible to modify the files the other way?

don't you need to make the script executable chmod +X ?

yes executable, sorry forgot to mention this, will update main post

quick question if you/i made this as a cwm zip would you need to Mark it as executable In es?
Sent from my HTC One X using xda premium

I'm not sure I've not really tried, why don't you give it a go

Thanks! Only a quick test but seems much better on my One X. Chrome Beta has gone from reloading every time I dared to leave it to only reloading if I open 5 or so apps. Great job, makes the shiny sense multitasking screenshots seem a bit less silly now

mox123 said:
I'm not sure I've not really tried, why don't you give it a go
Click to expand...
Click to collapse
Will do when I get back on my pc.
Sent from my HTC One X using xda premium

P.m' d you with values.

I am rooted and have show hidden files enabled but still can't find the file. Is this only for the tegra 3 version?

Related

[APP] Apps2NAND - fast data access - choose what to move! [added support for Froyo]

I think this better to be posted to Galaxy S I9000 Android Development.
So I posted it once more at here:
http://forum.xda-developers.com/showthread.php?p=7694817#post7694817
Board Admin, please feel free to delete this.
Hi all,
I took so many from here. It's time for me to contribute little to the community.
The lag issue of Galaxy S bother many ppl.
I tried many different method.
Yes the lag issue was improved and Quadrant score is higher.
But there are always some weird things happen... like sudden lag/black screen.
After I upgraded to firmwre I9000ZSJH1, the lag issue is improved a lot!
But still, there are rooms for improvement.
So I wrote a cmd which will help to generate a .sh file, which will move apps data stored under /data/data/ to the internal NAND memory (/dbdata/data) for faster access.
The Galaxy S built in 1xxMB of fast access NAND memory. It is a waste if we don't utilize them.
However, it is impossible to move all apps' data to the tiny NAND memory.
So here is a tool for you to customize what app's data you want to move.
Recommand to move the core Android apps and the apps that you use frequently.
Like Dialer, Contacts, Dolphin Browser, Facebook, Astro File Explorer......
Steps :
1. open [1.app.list.xls] and edit colume A and B.
colume A should be the data folder name of the apps you want to move.
colume B is the name of the apps (optional)
2. after you've done, simply "copy & paste" everything onto a notepad and save it as [2.apps.list.txt]
3. fireup the [3.Apps2NAND.cmd]
4. within few sec, a file [App2NAND.sh] will be created.
5. use Gscript to load and run the App2NAND.sh file. (the script requires root access. so make sure you have it!)
For experienced user :
Step 1 actually is just for user to manage the apps more clearly.
A user with little cmd knowledge may know the script only requires [2.app.list.txt] to work with.
You can skip Step 1 and directly go to Step 2 to edit the file.
The format should be { app data folder name + <tab> + app name }
Remarks :
Apps that moved to NAND may not be restore with Titanium Backup.
App link will be broken by doing so.
(I also include Linpack and Quadrant to the app list to cheat higher benchmark scores . You may remove it if you don't want to.)
Apps2NAND - fast data access - choose what to move! [added support for Froyo]
update 18 Nov 10:
Found some friends here still want to use this "old school" lagfix
1st of all, thanks to your support.
When I wrote this script, it was still the golden age of Eclair (2.1). So the script is definitely not prepared for Froyo (2.2).
However, just by changing few lines can make this script survives on Froyo. So here I updated a script for Froyo (apps2nand.Froyo.zip).
I haven't tested it since I am very satisfied with the [Spike Speedy Edition v3.0 OC], which comes with more advanced lagfix options (sztupy).
(I wrote something that even myself don't use now.... So it's really suprised and appreciated~)
But this script still has it merit ~~~~~~~~~ simple!
(and battery friendly, just a feeling~ no actually statistic~)
If you are interested in antique and brave enough, try it on Froyo. And let me know if any issues. I will try my best to fix.
===================================================
update 18 Aug 10:
Now included Installation and Uninstallation for this script.
Tried several times on my i9000 and it works.
Please read and follow the readme.txt inside the zip.
One tricky part for this script : it will failed when SU permission is not allowed in time during the script is running.
I have pause the script with 10 secs for you to allow the SU on i9000.
Make sure you allowed it.
If you failed to do so, no worry. it won't change anything.
Just simply re-run the script again.
===================================================
Hi all,
I took so many from here. It's time for me to contribute little to the community.
The lag issue of Galaxy S bother many ppl.
I tried many different method.
Yes the lag issue was improved and Quadrant score is higher.
But there are always some weird things happen... like sudden lag/black screen.
After I upgraded to firmwre I9000ZSJH1, the lag issue is improved a lot!
But still, there are rooms for improvement.
So I wrote a cmd which will help to generate a .sh file, which will move apps data stored under /data/data/ to the internal NAND memory (/dbdata/data) for faster access.
The Galaxy S built in 1xxMB of fast access NAND memory. It is a waste if we don't utilize them.
However, it is impossible to move all apps' data to the tiny NAND memory.
So here is a tool for you to customize what app's data you want to move.
Recommand to move the core Android apps and the apps that you use frequently.
Like Dialer, Contacts, Dolphin Browser, Facebook, Astro File Explorer......
For experienced user :
Step 1 actually is just for user to manage the apps more clearly.
A user with little cmd knowledge may know the script only requires [2.app.list.txt] to work with.
You can skip Step 1 and directly go to Step 2 to edit the file.
The format should be { app data folder name + <tab> + app name }
Remarks :
*** Apps that moved to NAND may not be restore with Titanium Backup. App link will be broken by doing so.
*** Please make a nandroid backup before apply this!
*** I am not responsible for any damage caused by this script.
(I also include Linpack and Quadrant to the app list to cheat higher benchmark scores . You may remove it if you don't want to.)
Is NAND where devices like HTC Desire and Nexus One store their Apps?
well this is almost what paul did some days after the phone got released...
lyno said:
Is NAND where devices like HTC Desire and Nexus One store their Apps?
Click to expand...
Click to collapse
Yes, which is why they needed APPS2SD in Froyo.
So....when are you posting the script?
If you want I'll create a program that spits out the .txt file rather than do it in excel, copy paste etc.
Jonas.M said:
well this is almost what paul did some days after the phone got released...
Click to expand...
Click to collapse
yes. that's what Paul did as I mentioned in my script.
But he simply push everything to NAND which oneday, you will find out of space.
Using my script, you can decide what to move, depending on the frequency of the apps usage.
lyno said:
So....when are you posting the script?
If you want I'll create a program that spits out the .txt file rather than do it in excel, copy paste etc.
Click to expand...
Click to collapse
the script is updated and posted.
the excel is just for user to maintain their app list easily.
my script only works with the txt file.
you may skip the excel part if you like.
and thanks for your offer, lyno.
Is it possible to make a script that automatically moves smaller apps to the nand?
I mean it's not worth moving large games, but anything under 2MB should be considered.
Maybe use some intellegent calculation, if all the apps under XMB use less than 50% of free space on nand, increase X until it is efficiently used up.
Also there is HEAPS of space to be freed in NAND, delete stock ringtones, and other.
seems great
hmm, would moving to nand make those specific apps run faster than they would be if they were previously running under ext2/3/4 partitions provided for by the various lagfixes out there?
What happens if an app in the list is not on the phone, does it just skip it?
sturmeh said:
Is it possible to make a script that automatically moves smaller apps to the nand?
I mean it's not worth moving large games, but anything under 2MB should be considered.
Maybe use some intellegent calculation, if all the apps under XMB use less than 50% of free space on nand, increase X until it is efficiently used up.
Also there is HEAPS of space to be freed in NAND, delete stock ringtones, and other.
Click to expand...
Click to collapse
MiG123 said:
hmm, would moving to nand make those specific apps run faster than they would be if they were previously running under ext2/3/4 partitions provided for by the various lagfixes out there?
Click to expand...
Click to collapse
sturmeh, that requires more complex scripting skills, which is out of my knowledge...
and I think instead of choosing the apps2NAND depending on size, I think the "Frequency" of using the apps may be more appropriate.
e.g. I use TouchPal IME a lot. So I move it to the NAND.
Now when I type, TouchPal act lightening!!!
MiG123, I haven't done a serious comparison. But as I remembered, Apps2NAND gives me more "smooth" feeling.
Actually, you shouldn't compare Apps2NAND to other Apps2SD or EXT.
Since Apps2NAND only offers you around 1xxMB of app storage space. Way too far from the others experts' methods.
I suggest using this is because I am using the latest 2.1 ROM, I9000TGYJH1 (http://www.multiupload.com/UTKSZPTKCG), which the lag problem seems improved a lot. But on top of it, I don't want to waste that 1xxMB of internal RAM, so I introduce this method.
To let user choose what core apps that should be put into NAND so
- space is not wasted.
- certain apps enjoy even faster response time.
lyno said:
What happens if an app in the list is not on the phone, does it just skip it?
Click to expand...
Click to collapse
yes.
the script will skip the apps that is not in the list.
MiG123 said:
hmm, would moving to nand make those specific apps run faster than they would be if they were previously running under ext2/3/4 partitions provided for by the various lagfixes out there?
Click to expand...
Click to collapse
Definitely, the hardware is multitudes faster.
Where's the file? Can't seem to find it on the first page
Anyhow. Do you symlink the old location to the new location, thus being able to keep the link intact? That should sort out any problems with backup solutions such as Titanium Backup.
How do you find the app's data folder name?
mekwall said:
Where's the file? Can't seem to find it on the first page
Anyhow. Do you symlink the old location to the new location, thus being able to keep the link intact? That should sort out any problems with backup solutions such as Titanium Backup.
Click to expand...
Click to collapse
lyno said:
How do you find the app's data folder name?
Click to expand...
Click to collapse
mekwall, sorry. removed by mistake.
have uploaded back again now.
yes. it uses symlink method (from Paul's concept) :
ln -s /dbdata/data/appsname /data/data/appsname
i dunno how's Titanium Backup works but it just failed to restore any apps that has used Apps2NAND...
that's why i provide the Uninstallation method to restore it back and then run Titanium Backup to backup all apps and data.
lyno, you may try the Astro File Explorer (market).
It has a function to backup the installed apps out to /sdcard.
The name of the backuped apps will be named exactly the same as it's data folder name.
e.g. Brut's Google Map -> brut.googlemaps.apk
this whoe procedure demands root-access, right?
yes. since it involves moving folders between /dbdata and /data.
Sent from my GT-I9000 using XDA App

V6 Supercharger for Xperia Arc HOW TO ?

Good Evening,
i want to optimize the RAM Managment of my Arc
but idont really now how Supercharger works.
How must i begin ?
Can anyone write a how to ?
dubist said:
Good Evening,
i want to optimize the RAM Managment of my Arc
but idont really now how Supercharger works.
How must i begin ?
Can anyone write a how to ?
Click to expand...
Click to collapse
zeppelinrox said:
Before you start reading, just know that this is not difficult to implement... it's easy.
1. Download a script. 2. Load it. 3.Select what you want. EASY.
It works on ALL Android devices - Custom Roms or Stock Roms, Phones or Tablets, it doesn't matter!
Also Note: Nothing else does what The V6 SuperCharger does!
................Not AutoKiller Memory Optimizer, Not Auto Memory Manager, Not Minfree Manager...
................And NOTHING BEATS IT. PERIOD.
So... if somebody says to you that V6 SuperCharger does the same thing as [pick any app], tell them to first read about what they're talking about so that they can actually have an informed opinion.
Get A Taste of The V8 SuperCharger - Grab the 3G TurboCharger & Kick Ass Kernel Tweaks Installation Scripts!
......................................................... - V8 SuperCharger Alpha for Milestone!
==================================================================================
Memorable User Comments: "Feels like I have a new phone!", "Supercharger rocks bro, I'm actually mad I waited so long to do it...","I wish I hadn't upgraded yet", "Now I can wait to upgrade", "I was about to throw this phone through the wall", "I was about to return it but now I don't have to", "This cured my phone of cancer!", "Oh man... just applied the V6 Supercharger Script by ZeppelinRox on my Android.. I think it fixed everything..", "I can't live without this!", "My phone is better than new!", "my phones has turned god mode on or somthing"
==================================================================================
99SuperCharger Tweaking: Of course, I don't own any rights in regards to the actual tweaks applied to system settings.
This means anybody is free to mess with OOM groupings, OOM prioriteis and minfrees.
So it's fine to modify and share your tweaked 99SuperCharger file as long as you leave the credits intact
Developers may include the attached V6 SuperCharger Installation Script in their roms. (This installs 99SuperCharger)
The attached V6 SuperCharger installation script may NOT be disassembled in any way, or be used as a part of any memory management app or package.
This is because it is no different than an app/apk found in the market. It's an installation program.
I don't own any right to tweak OOM Groupings, OOM Priorities, or minfree values. But I do own this program.
ATTN DEVS: If you want to use the V6 SuperCharger memory system in your ROM, give proper credit and a HTML link to this thread.
..................Of course, baking it into the rom is 100% fine.
..................You can include a copy of the attached installation script in the system/xbin folder so users can use it with terminal emulator
.................. - giving it a short name is fine as it's a pain to type long file names in terminal.
..................Do not modify it, do not rebrand it (ie. It's not called "V6script"). Thank you.
This is the only permissible distribution of the attached installation script - unmodified, in a custom rom and in the system/xbin folder.
Modification and redistribution of the attached installation script is not permitted at all.
This means that you cannot feel free to zip up the attached installation script with other tweaks and this means that it is not be edited and shared.
ATTN USERS: If you use or encounter a ROM with the V6 SuperCharger memory system, without proper credit given and no SuperCharger source links, please make the Developer aware of it, and if necessary, please let me know about it. Thank you.
Personal Use: You may tweak the V6 installation script (leaving credits intact) to your own personal liking as long as it is NOT redistributed in any way.
If you want to share this, just link to this thread.
If you want to make a thread in other forums telling people about it, that's great.
But I would prefer that you do not post a copy of the V6 SuperCharger installation script in those forums.
If you already have a thread with a copy attached, I won't bother you about it. But please don't attach further updates.
Your co-operation is very much appreciated.
I don't want diluted/broken V6 SuperCharger installations floating around and then have people say it doesn't work.
==================================================================================
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!
==================================================================================
Note: Do this at your own risk, regardless of how little risk there is - since I included UnSuperCharging
........ Well, do a nandroid anyway, if you like
Requirements:
1. Rooted Phone. Milestoners, you can use Universal Androot (not in market ?)
2. Script Manager or Terminal Emulator to run the script. Stock ROMs can also use SM to load up boot scripts!
3. Busybox 1.18.2 OR LOWER - 1.18.3 or newer are VERY much a hassle with errors that should NOT be errors!
4. AutoStart Script by me - Enables Stock ROMS (Milestone) to utilize etc/init.d for boot scripts.
Stock ROMS (Milestone) - Vulnerable recovery is not required!
Installing/Using:
1. Download the attached V6_SuperCharger_for_Android*.txt script and save to your sdcard.
... Do NOT run the V6 SuperCharger install script at boot!
2. Load the script (V6_SuperCharger_for_Android*.txt) into Script Manager and select "Run as Root."
3. Touch the screen for the soft keyboard or slide out the keyboard and get SuperCharged! Just pick an option!
4. READ the script's output!
5. Afterwards, READ the html HELP FILE in the root of your SD Card!
6. Disable "Lock Home in Memory" if your ROM has this option.
7. Optional: For a quick status check, you can put a Script Manager widget for V6 SuperCharger on you desktop
Cool! - Here is a Visual V6 SuperCharger Installation Tutorial (Screen Caps!) by MalarKeY007 (thanks dude)
If you are using compcache and have lag or slow down after SuperCharging,
DISABLE compache, wipe caches and re-enable it.
Also make sure to uncheck/disable lock home in memory! (and leave it unchecked)
Note: V6_SuperCharger-AOR.zip is for use with Milestone's Androidiani OpenRecovery. Even if you have a Milestone, don't run it within Android.
........ AOR Usage: Extract to the root of your sdcard (Directory structure is in the zip)
.......................... You will now have a SuperCharger Menu on the main screen. Simply select the menu and select 1 of the 12 options.
Main points:
- CUST-OOMIZER! Use your settings without Autokiller Memory Optimizer or Auto Memory Manager!
- For newer phones with lots of ram, use the 3rd slot to set how much free ram you want.
- If you have /system/etc/rootfs/init.mapphone_umts.rc, it makes a backup and edits that single file. This is nice and tidy.
... Thank to kabaldan for pointing out the importance of certain things.
- Most Custom ROMs - If you have a /system/etc/init.d folder, it creates 99SuperCharger in there and edits /data/local.prop (20 entries added for adjusting priorities and groupings). You shouldn't need to configure anything else.
- Stock ROMs - If you have neither, it creates /data/99SuperCharger.sh which you can load up on boot (run as root) with Script Manager. The OOM groupings work as well since it happens on boot in local.prop (20 entries added)
Note: For some reason, the minfree levels do not stick on some Custom ROMs. I don't know why this is. Maybe a bug in GingerBread?
........ You can check /res/user.log to see if it ran...
........ If this happens to you, use Script Manager to load /system/etc/init.d/99SuperCharger "on boot" and "run as root"
In case of any error, you will find a related help file in the root of your SD card.
So... I think this covers ANY Android ROM
It also determines if you're using Script Manager and gives appropriate information/tips/help files depending on what other factors are present.
The above is really ALL YOU NEED TO KNOW.
The V6 SuperCharger script does everything!
Anything below is extra info!
It's just a single file... 806 lines (807 if you count the blank line at the end LOL)
The Nitty Gritty... For Geeks!
If you read Post #3 (History Parts 1-3), you'll see that at first it was only about minfrees and launcher redraw.
But after installing GingerBread, I saw that it needed more work than Froyo LOL.
Groupings were ALL MESSED UP and made NO SENSE to me whatsoever...
So I figured out how to group them more like CM6 (Froyo) but that still wasn't good enough...
So I further rearranged the OOM Groupings and Priorites and lowmemorykiller values and created a SuperCharger for phone memory...
THE ONLY COMPLETE MEMORY MANAGEMENT FIX!
Upon installation, V6 SuperCharger will first clean up any previous supercharging so none of your files get cluttered.
But if you toggle between Hard To Kill and BulletProof launchers, the memory adjustments aren't affected.
So you can leave your minfrees at stock/default settings and apply the Hard To Kill Launcher and still get the OOM Grouping/Priority fixes.
So if you love your ROMs memory settings, just try the HTK Launcher/OOM Fix... you won't regret it
It's pretty awesome
Here are some snaps....
Before...
After...
During....
Bonus....
Say Buh Bye to AKMO or any app that has to load on start up to change minfrees...
So did you notice the difference in groupings?
By default, CM7 has nearly all the apps in slot 5 and the launcher in slot 3.
Slightly aggressive settings will kill any chance of multitasking in that situation.
After SuperCharging, the apps get moved to slot 3 while the launcher is in slot 2 but the most important item in slot 2.
I've read, "oh you don't need to run any scripts for memory management..."
Well that's not true.
Playing with minfree values is one thing... it's playing with minfree levels... it's not really memory management...
Look at the pics above... now THAT's memory management...
If you look below at Post #3... that's how it all started... good background info in case you're wondering what the hell I'm talking about.
Notes: Minfree changes take effect immediately! This means you can switch from Balanced settings to Gaming and back again without rebooting!
.......... Switching between Hard To Kill and BulletProof Launchers require a reboot to take effect.
.......... Disable your OS's "Lock Home in Memory" option, if it has it. This takes effect immediately.
.......... Or use "Lock Home in Memory" as a "Saftey Lock" - to toggle your launcher from "Bulletproof" (0) or HTK (1) to "Weak" (2)
.......... Note: "Lock Home in Memory" is not 1 with my OOM Grouping/Priority Fixes
Cool Tip: Sometimes it's difficult to keep a wanted background app alive, such as an SMS app.
............. If you're in this situation, check out how to Bulletproof Background Apps!
Remember: When using scripts, use the SuperUser app to DISABLE SuperUser permissions for AMM!
................. It can still monitor your OOM groupings but it can't change your custom settings on boot.
................. If you have AKMO installed, disable it's option to Apply Settings at Boot!
If you are using compcache and have lag or slow down after SuperCharging,
DISABLE compache, wipe caches and re-enable it.
Also make sure to uncheck/disable lock home in memory! (and leave it unchecked)
V6_SuperCharger-AOR.zip is for Androidiani OpenRecovery for Milestone!! - For Milestone ONLY!
Click to expand...
Click to collapse
This is my setup for V6 Supercharger:
Download the Supercharger script (V6_SuperCharger_for_Android-update9_beta_6.sh.txt) and put in into your SD card.
Load the script (V6_SuperCharger_for_Android-update9_beta_6.sh.txt) into Script Manager and select “Run as Root.” (Do NOT run the V6 Supercharger install script at boot!)
Touch the screen for the soft keyboard or slide out the keyboard and Select “MegaRAM 2″
Once it’s applied then choose “Nitro Lag Nullifier“
Then click setting menu, choose config mode, u will see a check box named “browse as root”, tick that box
From the main screen of Script Manager click back twice
Go to data/ and run 99SuperCharger.sh install script at boot and reboot your device
i dont have the option MegaRam
i use the Option 1000 HP Number 17
Than i run the Nitro Lag Nullifier
and than i go out to config and tick the browse as root
than i go to data and select that the supercharger99 must start at boot.
Now i have restart my phone how can i see if this tweaks are working ?
now i have only 71 Free Ram and without the Programm i had 190MB Free :S
dubist said:
i dont have the option MegaRam
i use the Option 1000 HP Number 17
Than i run the Nitro Lag Nullifier
and than i go out to config and tick the browse as root
than i go to data and select that the supercharger99 must start at boot.
Now i have restart my phone how can i see if this tweaks are working ?
now i have only 71 Free Ram and without the Programm i had 190MB Free :S
Click to expand...
Click to collapse
It's not physical memory it's virtual memory.
this means ?
Just to update this thread if anyone looking, here's the Supercharger thread that gets regularly updated.
http://forum.xda-developers.com/showthread.php?t=991276
Nitro Lag filter is in the newer beteas, isn't it?
I think I use update 8 (latest non beta update) and I can't remember that I had that option.
Btw if you update with FlashTool and don't wipe data SuperCharger doesn't get cleared, so no need for a fresh install
Sent from my iPad 2 using Tapatalk
Flo95 said:
Nitro Lag filter is in the newer beteas, isn't it?
I think I use update 8 (latest non beta update) and I can't remember that I had that option.
Btw if you update with FlashTool and don't wipe data SuperCharger doesn't get cleared, so no need for a fresh install
Sent from my iPad 2 using Tapatalk
Click to expand...
Click to collapse
Or just take a backup of 99SuperCharger.sh
ShyamSasi said:
This is my setup for V6 Supercharger:
Download the Supercharger script (V6_SuperCharger_for_Android-update9_beta_6.sh.txt) and put in into your SD card.
Load the script (V6_SuperCharger_for_Android-update9_beta_6.sh.txt) into Script Manager and select “Run as Root.” (Do NOT run the V6 Supercharger install script at boot!)
Touch the screen for the soft keyboard or slide out the keyboard and Select “MegaRAM 2″
Once it’s applied then choose “Nitro Lag Nullifier“
Then click setting menu, choose config mode, u will see a check box named “browse as root”, tick that box
From the main screen of Script Manager click back twice
Go to data/ and run 99SuperCharger.sh install script at boot and reboot your device
Click to expand...
Click to collapse
for point no.9 i opened the script and when the dialog pops up i press run as root then run...do i need to do anything else or have i done something wrong?
You have to select the tweak you want to apply before you quit.
And then you go data and make 99supercharger.sh run as root and run at boot.
Sent from my iPad 2 using Tapatalk
Flo95 said:
You have to select the tweak you want to apply before you quit.
And then you go data and make 99supercharger.sh run as root and run at boot.
Sent from my iPad 2 using Tapatalk
Click to expand...
Click to collapse
Ive ran the supercharger ive chosen multitasking option dont know if thats wise. But then I ran the 99supercharger script but never ticked run at boot. So do I repply the v6 supercharger tweak then the 99 script or shall I run it again.
Sent from my LT15i using Tapatalk
Just browse to 99supercharger.sh, thick run at boot and you're good to go.
Sent from my iPad 2 using Tapatalk
how to
Hi
Im having issues installing v6 supercharger on my arc. I followed the tutorial:
http://forum.xda-developers.com/showthread.php?t=1334834
I got:
- stock rom+root
- busybox 1.18.2
- script manager setup as described in tutorial
- script on the sdcard
I tick run as root, click run and... the result is in the attachment. I got some syntax error. Any idea what went wrong? pls help!
Use a newer version
I broke my phone somehow using this?
So, I followed the instructions & here's what happened.
After the phone rebooted asking to do a clean? the screen went blank & stuck there for 15 minutes. I'm pretty sure that the instructions said that it might get stuck in a boot loop. IF that happened, just take out the battery. So that's what I did.
Apparently, big mistake.
Now, My LT15A won't do anything. When I push the power button, I get a big fat nothing. Not vibration. no LED.
So I've tried to flash the phone with a Generic UK firmware, but the phone doesn't even connect to flashtool.
The phone was under warranty, so I'm wondering if what I've tried will have voided it (pretty sure, but I'm new to this)
Here's what I (used to ) have:
LT15A rooted with Titanium & bloatware removed
Rogers - bootloader locked
Android 3.4.3 *.42
Hi,
You have to remove the battery, put it again, and start your phone. Repeat two or three times.
Maybe I wasn't clear. The phone won't turn on. Period. No vibration, no LED. Nothing.
Tried with wotan? If you can connect it in fastboot?
Sent from my LT15i using XDA App
I've tried to use FlashTool & I can't connect. I haven't tried Wotan. What is that.
I've since sent my phone in for a repair under warranty. I haven't unlocked the bootloader (as far as I know) to see if they will repair/replace it. If they won't honour the warranty, I'll try that.
Thanks.

[SCRIPT]Hardkey LED off & microSD read ahead cache.

I like a stripped down, fast, power efficient install of android on my LGOV, so I decided to post up two scripts that I use to achieve this. But 1st off I have to give credit where credit is due since I did not "invent / write" these bits of code. I just discovered them through other peoples work and adapted them to my situation / phone.
1st off is obijohn and his amazing Bumblebee v2.4 ROM which you can find here Bumblebee v2.4 ROM
2nd round of credits goes to mmraz for his "External Notification LED MOD" which can be found here External Notification LED MOD
3rd round of credits goes to just Googling and reading XDA threads about the LGOV which lead me to learn how to disable the bootup animation which shaved 20 seconds off of my boot time.
1) obijohn's Bumblebee ROM has a simple script in /system/etc/inid.d that modifies the SD read ahead cache from the stock 256KB to 1024KB in order to achieve greater Read performance. Well I ended up buying a 32GB Class 10 microSD card and found through testing (using SDtools and SD-Booster from the Google Play Market) that 1024KB was not the optimal setting for my new microSD card. I found that 3072KB was the sweet spot for my new microSD. But I didn't want to have an APP installed just to set the read ahead cache when I could set it via a script in /system/etc/init.d that would execute MUCH earlier than what the APP could set in the system. So I used obijohn's script and just modified his value of 1024KB up to 3072KB. The script will be attached to this post for you to put into your /system/etc/init.d. I'd suggest that you use the above mentioned APPS to determine the "sweet spot" for your read ahead cache then edit this script to reflect that change. Then uninstall those APPs so as to not waste space. this script is called 07sdspeedfix
2) mmraz's post dealt with adding a Notification LED for sms using SL4A, Tasker and 6 scripts to toggle on/off the capacitive LED's in the 4 hard keys on our phone. I didn't have any interest in a message LED, but I was interested in his scripts as they allowed me to use SL4A (and later Script Manager) to run his scripts to completely disable the LED's after boot in order to conserve power consumed by the 3 LED's that illuminate the 4 hard keys. This required me to use 3 scripts and SL4A or Script Manager and wait almost 150 seconds for the LED's to be turned off. After looking at his scripts, it occurred to me that I could strip down the scripts and put just 2 lines of code in 1 script in /system/etc/init.d to turn off the LED's within 5 seconds of the phone being turned on. And then I could uninstall SL4A & Tasker entirely so they were not consuming internal storage or running as background services. This script is called 10lights_out
if you want to use these scripts just download theme here and put them in /system/etc/init.d with and ensure permissions are set as rwxr-x---
3) This last item is just to disable the boot animation after the "LG" logo so as to shave ~15-20 seconds off of your boot time. There is not attachment for this. you just have to edit your /system/build.prop with the following line:
debug.sf.nobootanimation=1
With the two attached files you just have to "right click & Save As". Once you have saved the files just remove the .txt portion of the name and put them in the /system/etc/init.d folder. The XDA forums required a valid file extension name for me to upload them.

FIX for using Boeffla 2.6 kernel on Gnabo V8 and V8 SE

I have been solidly using Gnabo V8 versions along with modded Boeffla kernels for stock touchwiz. During my experiances with mixing the two to get the best performance and usability, I have found some tricks to make a solid and very usable custom ROM that most WIFI only tablet users may find overall the best out there.
He key is what packages to use and how to configure.
Step one is removing unconfigureable or hidden settings that you cannot wipe. This makes sure what ever customizations you have done are gone and will not mess with how the installs function.
My way was to perform a clean for new ROM in Philz, and install a stock 4.4.2 ROM. When rebooting, power off by holding down the power key, and when powered off remove the back cover and disconnect the battery connector for 2 minutes. Reconnect and allow the stock ROM to finish installation setup. Make sure Bluetooth, wifi, miracast and other functions operate as they should. Once verified everything is functional, reboot into recovery and perform a full wipe for new ROM install, clear both caches, and install the Gnabo V8 version you have picked. DO NOT... Repeat do not install any other patches or additions outside of applying SU from Philz recovery and loading a SUupdate.zip. Reboot and perform the installation setup and let the tablet set for 15 minutes once the setup has placed you at the home screen.
You now have a clean base to start with further updating to Boeffla 2.6 Kernel and other minor patches to the apps that have been placed into the system.
Reboot into recovery and apply the Boeffla 2.6 kernel, and TiBackup.zip.
Once booted, remove the old Civato kernel utility and what ever apps you find useless. To add to your list of app removal for replacement... Video, Video Player, Music Sharing, Voice Note, Multimedia Service Layer, S Voice, and S Finder.
I will post all the apps and priv-apps in zipped folders for manual installation. They will fix some issues that were left uncorrected. Plus add features lost in Video playback, like play next, and sharing.
As for applying patches and Civato odexing tool, they cannot be installed through the recovery installer as they apply improper permissions and framework gets broken. Boeffla kernel doesn't work well with the framework.jar patch. Plus the 2.6 kernel has the Bluetooth fix built in. I will also include zipped folders of the patches to manually apply.
Along with the patch apks, I will include a zipped lib file collection to add further inhancements. One is to allow cropping in Photo Studio and a nicer way to clip videos.
Optional zipped folders to allow odexing, and fixed power off charging images.
Sounds like a lot, but with the zips being easy to place in a manually created system folder, all you need to do is run a few shell commands to allow 644 permissions and root users and owners. Then cut and paste into their respective folders.
Only TwFramework, Bluetooth.apk and Settings Provider will need to be copied over. The TwFramework is to remove the black bar on top, and Bluetooth.apk and secsettings.apk which fixes wallpaper functionality. Studdering is fixed by the kernel, and may not need bluetooth.apk replacement.
Right now i am messing with a few different Video.apk files for their stability and function, in wanting as many enhanced options as possible without FC issues.
Will start posting my zip files and instructions for permissions and using the odexing tool.
See post #2
Zip files and their permissions
The zipped bin folder has a single file. It should have 755 and 0 root 2000 shell
The zipped OdexerTool folder files should have 755 and 0 root 0 root.
Create the folder OdexerTool with 755 and 0 root 0 root as well.
The remaining zipped folder's files should have 644 and 0 root 0 root.
You will need to change face extension to zip or allow overide of detection by open as.
Will add more zipped folders... app, priv-app and lib in separate posts due to limitations on posting a reply.
PRIV-APP & Native Language files for Keyboard
All of the RAR folder's files should have 644 and 0 root 0 root, and are to be cut and pasted into their respective system folders.
Voice files for native languages.
The RAR files cover most of Europe, and outside countries, along with America, Canada, and Brazil.
Just find your local folder and set the permissions to have 755 and 0 root 0 root, and cut and paste into VODB. Inside the folder all files should be set to have 644 and 0 root 0 root permissions.
APP files for added features and patching.
Ok, I selected the best option for video... it has two looks. At and below a dpi setting of 197 it is white, and above it is dark. So most may like not being stuck one way or another.
Just set the permissions to 644 and 0 root 0 root, and cut in paste into the system app folder after removing video and other apps. That my not be over written.
LIBS for added 5 features and imaging
These are not required but are needed for using Studio and some S5 apps and or changing to another UI that supports S5 enhancements. There is more Stagefrieght capabilities as well.
You will need some of the apps and priv-apps to find the libs useful.
TWEAKS
Please note my attached build.prop is modified to use a tab 8.4 build and has a mix of system tweaks.
I have found a sweet spot with the Boeffla kernel utility... it gives great speed improvements without being tempermental.
Though, since I have been messing around with various system apk swaps... some small issues during tests were attibuted with the apk not playing well with the Gnabo ROM, not the kernel.
Since I have stablized my tweaking, the combination of ROM and kernel are stable enough to keep my tweaks permanent.
I set my governor to PegasusPlus with both internal and external memory to row. I use x633 64GB SD card, so slower speed types my need Bfq. I am able to get 2x to 4x the throughput with row row configuration. Noop performed the best for me, but was unstable under heavy loads, so I kept row as my safe optimal setting, running 256k for intenal cache and 2048k for my 64GB external memory.
CPU has been adjusted to 100mhz min to 1920mhz max with a -.025mv undervolt. I can run -.050mv undervolt but I find at heavy cpu usage it becomes unstable.
I set my GPU in a linear adjustment with the last 3 settings to push 700mhz with no undervolting.
Sound settings were minimal... only adjusted speaker gains to 60, as anything above caused distortion. Kept equalizer off and set mic gains to 31, with privacy mode enabled and DAC direct.
Display and LED, I turned off status and kept it disabled.
Misc 1, I set my power to 1800ma and ignore unstable power.
Tcp settings to LP.
Kernel delay is set to 0
Permissive, busybox and frandom set as enabled.
You will need to start busybox installer and remove installed busybox to run busybox from the kernel.
Samsung updates...
I usually don't bother with Samsung's gapps on updates, but I found that allowing quickconnect.apk to update made it worth while. I was familiar with Quick Connect when I used my personally modded stock 4.4.2 ROM with S3 UI and a bunch of S5 apps and libs, with a S2 Diamond ROM secsettings.apk. It was great but just felt too overly stretched to fit S5 apps proper. At the time I was happy but I could not tweak for best performance, as Boeffla Kernel was not available and stuck with Civato's kernel. I got use to Quick Connect being fully optioned, and it seems nobody had bothered using Quick Connect v1.6, so they would not know any different.
I tried a few tricks to get the update, and the best one was to use a stock untouched QuickConnect.apk, QuickConnect.odex, QuickConnectInteraction.apk and QuickConnectInteraction.odex. You will need to delete the data and remove them both before manually populating the files. Though the catch to making QuickConnect work is to only do QuickConnect files first and reboot, then do the QuickConnectInteraction files and reboot. Else QuickConnect will not work.
Oh another thing one must do... edit the system.db file and add QuickConnect in the list for it to show in the quick settings list.
The nice thing about the newer version of QuickConnect, is that it allows grouping your favorites on top of scanned devices, and you can relabel and assign images for personalization. The main reason I use QuickConnect is that I can eliminate two settings... Miracast and Bluetooth, and have other settings available without need to expand my quick settings list. QuickConnect also does a better job at mirracast functionality, as it disconnects without the bloody delay.
SFinder v1.100
After some more testings with various Sfinders... I found one that combines the S5 look and feel with tablet interface, and its speedy to boot.
Not sure if Samsung Content Agent helps, as it is an app I loaded in recently. Some SFinder apps use it and others don't.
I think my battery consumption has decreased since updating my Samsung apps. I get just about the same battery time with 4.4.2 as I do with my 4.2.2, which is a first. 11% per hour with miracasting while streaming is pretty good IMO.
If anyone is up to replacing their SFinder, here is v1.100

[DEBLOAT] [OOS, Customs] Tomatot Debloater 4.1 (+++Battery, RAM, Privacy)

Hello guys,
Introduction
Today is my first step in the android development world. And I'm starting with something very little. I've created this tool for myself but I thought I could share it, as it could be useful to you as well and you could help me to improve it.
Big announcements
1) Officially supported custom ROMs:
-OmniRom
-LiquidRemix
-Skydragon
-ArrowOS
-AEX
What can you expect from flashing my script?
I think my script is interesting because its utility is completely complementary with a custom ROM or kernel: what it does has nothing to do with the kernel, so it doesn't interfere at all. And it's concrete stuff, not some supposed-to-be optimization where you're not even sure it's going to do something. I'm usually not a huge fan of these apps / modules.
-You'll get more privacy: I've removed Qualcomm telemetry, OnePlus telemetry as well as some Google Telemetry (but you can't expect too much as long as you use gapps)
-You'll get better battery life: less apps running in the background, less wakelocks, less services communicating with servers to send telemetry.
-You'll get better performance: for the same reasons. Don't expect a huge difference as our phone is very smooth already.
-The feeling of having a clean device. And this has no price.
As a proof, see this (both screenshots were taken after a fresh boot):
Extreme script:
https://imgur.com/2O47su8
19 system apps running, for a total of of 31 services running. I'm not counting Google Play services as the number of services running keep changing.
No script:
https://imgur.com/E5cEr7P
36 apps running, for a total of 60 services running! I find the difference quite huge.
What does it do?
The point is to be very very basic. Obviously I don't intend to to share something as powerful and exhaustive as xXx. My objective is to only focus on bloatwares, not features.
Also, I wanted to make a script simple enough so anybody can use it, understand it and modify it depending on your needs.
I think I can call myself a flasholoic, as I flash ROMs quite often, even when I'm happy with the current one. There are many time consuming and boring tasks when it comes to clean flash a new ROM. However, for most of them, there's a solution. For example, Titanium Backup, to mention just one.
With this script, you'll be able to skip the very boring process of removing/freezing all the system apps you don't use.
You can use this script with no worries whenever you flash your new ROM.
Why don't i Freeze apps instead of removing them?
Ideally, I would prefer to only freeze apps so the setup can stick after an update or a dirty flash, however, I don't know how to do it from recovery. Freezing works with the command from package manager "pm disable {package_name}", however, it's only available when the phone is running.
What version should I install?
-Invisible script: Install it, enjoy. I basically removed only apps related to telemetry or that don't have any function. You should still have all the apps you're using and all the features you like.
-Light Script: Invisible + apps that I consider rarely use (because they're useless or because alternatives are much popular). It should fit to 80% people without any change to make.
-Extreme script: Invisible + light + a few Google Apps (most of them can be reinstalled) and features that are not absolutely necessary but useful for some people, like face unlock for example. I wouldn't recommend it to anyone who hasn't check the .txt file first. The light script is almost as good anyway.
How to Install?
Simply reboot to TWRP, flash the zip, reboot and enjoy.
If this doesn't work, you can try three different things:
-Try to use blu spark Recovery instead of other ones.
-Try to mount system in recovery before flashing my .zip.
-Try to install Magisk and this module: https://github.com/Magisk-Modules-Repo/busybox-ndk
-Try to install the script on both slots
At least one of these options should fix things for you.
Known incompatibilities
-If the script doesn't do anything, check installing instructions.
-If an app keeps force closing when you try to open it (for example the Google app, gmail, amazon, etc.), it's because you don't have any webview selected. You can select one in the developer settings and if you don't have any you can install one from the play store (Android System Webview).
-If some apps are remaining, it's because it's system apps you updated and they became user apps. You can just uninstall them like any other user apps and it will completely disappear.
-If an app that is included in the script freezes, but it's also available in the playstore, uninstall it with Titanium Backup, reboot and reinstall the app from play store.
-If you're using substratum, you must edit my script and remove this line: "/system/system/app/OpSkin",
-If your bank app doesn't work, you can try to add back Stk (sim toolkit), as the app helps for authentication.
-In general, search this thread if you want more details / understand why.
F.A.Q.
-I don't want to use this debloater anymore or it broke something I miss, how can I go back to normal?
=> Dirty flash your current setup (ROM, twrp, reboot to twrp, magisk, kernel, anything else you want)
-Does this script work for X or Y ROM? Can you make a debloater for X or Y ROM?
=> If you understand how my tool work, then you will understand that my scripts can potentially work on any ROMs, but each ROM has its specific apps so some bloatware won't be removed, most likely. I won't support any new ROM except if I end up trying it myself. I prefer to avoid to create new scripts blindly especially if I've never experienced the ROM.
-I flashed your deblaoter and now some apps keep force closing
=> "If an app keeps force closing when you try to open it (for example the Google app, gmail, amazon, etc.), it's because you don't have any webview selected. You can select one in the developer settings and if you don't have any you can install one from the play store (Android System Webview)."
Where can I get more info?
Check the .txt file in the download section. It lists all the apps included in the different scripts AND all the apps not included (so you can see what apps you want to potentially add, it's much easier to work like that)
How are the apps sorted in the .txt file?
-First, by categories (each category starting with #) (invisible, light, extreme, etc.)
-Then, they're sorted by their type (reserve / app / priv-app / other)
-Then, simply by alphabetic order.
-At the end of the document file, there are some explanations about some apps that can sound... mysterious about whether it's safe or not to delete them.
How to edit the script and make it work? (TUTORIAL)
Prerequisites
-Root (ideal but not mandatory)
-File manager (ideal but not mandatory, I recommend Amaze https://play.google.com/store/apps/details?id=com.amaze.filemanager&hl=en_AU )
-TWRP
Then you have two alternatives
a) Use your computer (Windows): you will need Zip Builder https://forum.xda-developers.com/an...g/tool-zip-builder-v4-2-1-build-sign-t3739556
b) Use your phone: then you will need MiXplorer ( https://forum.xda-developers.com/showthread.php?t=1523691 )
Steps to follow
1) Download my script.
2) Unzip it. Browse to META-INF\com\google\android and open "updater-script" in a notepad. (I'd recommend you notepad++ ( https://notepad-plus-plus.org/download/ )
3) Add some apps you want to delete, or remove the apps you want to keep. To see what apps are on your device, use a file manager that can use root and check the apps you have in /system/app and system/priv-app. The priv-app are usually more sensitive so be cautious with them.
4) Don't forget that on every line, you need a comma at the end, except for the last app of the list.
5) You don't need to touch any other lines, except if you want to have fun and change what TWRP will display: it's the lines with
Code:
ui_print("")
6) Save your file.
7) a) Windows alternative. Follow instructions to install properly Zip Builder. Then shift + right click on the parent folder of the META-INF folder and click on "Build Zip...". If Zip Builder is set up properly, you will see the option I just mentioned. You can also open the program and browse to the parent folder where META-INF is.
Copy the .zip to your phone and you're good to go!
7) b) Android alternative: Install MiXplorer. Long press on the META-INF folder. Confirm the creation of the archive, pick the name you want and make sure that "store" is selected, below "zip". Then select the newly created zip, and click on the "Sign" option. Choose Testkey. It will create yourzip-signed.zip. That's the file you need to flash in TWRP.
8) Flash in TWRP
Let me know if you need any help or if something is not clear to you.
Downloads, risks, credits, Information
Where to download?
Check the attachments!
What are the risks, or why is it actually pretty safe to use it?
1) If you use my scripts, as I've tried all builds, I can assure you in the worst scenario you will loose a few features you might have wanted to keep.
2) If you try to make your own script:
a) You misspell a system folder: (it's case sensitive, careful): well the script will just ignore it and try to remove a folder which doesn't exist, so no consequence at all, just a useless line in your script.
b) you mess up with how you're meant to write the script: for example, you forget a comma or you leave it on the line of the last app you want to delete. Well, no worries, TWRP will just not flash the script so nothing happens. Just check your code to find the mistake.
c) Your script is fine but delete a core app that the system needs. Again, no worries! You will bootloop. In this case, you need to dirty flash your current setup (for example, flash OOS, flash TWRP, reboot to recovery, flash Magisk, flash your favorite kernel, reboot). Then you can try to find the culprit in your code, remove it, and try again your script.
Just in case, you know the XDA saying: "flash at your own risk!"
Credits!
First of all, I'd like to credit @Primokorn for his tutorial which helped me a lot. Basically everything in my script I owe him. I've just made it even more simple and focused on only debloating. Also, and obviously, it's adapted for our OnePlus 6. Right now, it's optimized for OOS 9.0.3, but depending on how the project evolves and how popular it will get, I could make "special editions" for open betas as well as AOSP ROMs.
I would also like to thank @TKruzze for his amazing tool "Zip Builder", which makes me save a lot of time everytime I want to try / build a new script.
Thanks to @Zios01 for inspiring me about "optimizing" OOS.
Information
"Tomatot- Debloater"
Contributors
@Tomatot-
Source Code: everything is in the zip.
Created 2018-11-20
Last Updated 2019-12-23
Changelog
Tomatot Debloater 4.1 for OOS
-REMOVED FROM THE SCRIPT:
Light:
TeleService (necessary for some operators)
Extreme:
SdCardService (necessary for file managers)
ModuleMetadataGooglePrebuilt (necesary for permissions)
Tomatot Debloater 4.0 for OOS
REMOVED/CHANGED :
- All folders (and there are lots of them) that don't exist anymore (usually they got moved to another path)
ADDED
- "/data/india/india.img"; (let me know if it works)
- A few new apps that are most likely useless.
Previous updates:
Tomatot Debloater 3.3
-All apps in /reserve are now deleted in the invisible script. If new apps are added by OP, they'll be automatically deleted as I added the whole folder (you can check the script to understand). Thanks to @nirogu325 for the idea!
-Moved DiracManager to the light script since some people like using it.
-Added OPWidget, it seems to be a new app added by OP
-Added OPWallpaperResources to the extreme script as I'm not sure what it does
-Removed OPSimContacts since it breaks the OP phone app.
Tomatot Debloater 3.2
-Added amazon apps hidden in /vendor/etc/apps
-Removed Rftoolkit on the Omni script
Thanks to @bojiokia and @nirogu325 for pointing me out they existed and that they were on all devices.
Tomatot Debloater 3.1.1
Thanks to @nirogu325 for his help to figure out how to mount /vendor and how to remove Rftoolkit properly
Removed also a folder that doesn't exist (LiveWallpapers)
Tomatot Debloater 3.1
I have decided to only use " run_program("/sbin/mount", "/system"); " to mount system from now on. It seems to be the most reliable / universal way to do so.
The Omni update has no change except I switched to the new mounting way.
### New entries for Invisible Script
OPCommonLogTool
Traceur
Rftoolkit
### New entries for Light Script
ARCore_stub
CarrierDefaultApp
CtsShimPrebuilt
CtsShimPrivPrebuilt
### New entries for Extreme Script
LiveWallpapersPicker
LiveWallpapers
OPSafe
SdCardService
uimremoteclient
WAPPushManager
DocumentsUI
IFAAService
OnePlusGallery
VpnDialogs
Tomatot Debloater 3.0
-All main scripts that are up to date are now 3.0 for a purpose of clarity.
-Except the LiquidRemix script, no apps have been added/removed from the scripts.
-Omni/Liquid/Skydragon have a similar level of debloating.
-Since a lot of users reported issues of the script not working, I figured out it was because for some reasons some recoveries don't execute busybox commands properly. I switched to edify commands. The main benefit is that it should work for everyone 100% of the time. The disadvantage is that it won't work for other devices. It might be the same path for the 6T but I need people to check. For other devices it won't work 100%. What you can try however, is to mount system before flashing. It should make the script work.
OOS 2.5.2
-Removed DeskClock as it's the clock app that a lot of people need. I thought it was the widget, my bad.
OOS 2.5.1
-Removed WebViewStub from all scripts since it may affect the webview selecting setting.
OOS 2.5
-Added BluetoothMidiService to the extreme script because 99% people won't use it (check Google to check what it is)
-Added ProxyHandler for the same reason
-Added ManagedProvisioning for the same reason, in the light script. ( Work Profile Setup apk. It's useless for most people. Obviously don't delete it if your company gave you this phone, but then you shouldn't flash it in the first place! )
OOS 2.4
-Removed a few useless lines in the script.
-Cleaned up the .txt file, now all packages explained are sorted alphabetically.
-Moved CNEService to the extreme script as it breaks wifi calls.
-Moved HotwordEnrollmentXGoogleWCD9340 to the extreme script as it might break OK Google.
-Moved WebViewStub to the invisible script
-Added YouTube to the light script as it doesn't break YT Vanced.
-Added Chrome to the extreme script. Don't forget to have a working/activated webview!
OOS 2.3
HotwordEnrollmentXGoogleWCD9340 : moved to extreme as it breaks ok google
EmergencyInfo : moved to extreme as it could break double press power button to open camera
datastatusnotification : moved to extreme as it allows the system to cap data.
Added DeskClock to the light script
Added WebViewStub to the light script
OOS 2.2.1 / custom 1.2
-Unified numbers for all OOS sripts / all custom ROMs scripts so it's just easier to follow / maintain.
-OOS: moved OPBackup to the extreme script as it breaks system updates. It doesn't matter since if you have Magisk and TWRP you can't update via OTA but some people like having all settings working so... Now with the light script you shouldn't have any "broken" feature.
-Custom: removed DocumentsUI so it's possible to access external storage.
v2.2
-Removed Chrome from the script as it can break webview. There is not reliable fix as Android system struggles to properly select "Android System Webview". Feel free to freeze or uninstall Chrome as long as you update android system webview and make sure it's selected in developer settings.
-Put back Gmail2 in the script as now installing it as a user app shouldn't break the app anymore.
-Now the script should be completely bug free.
-if you had issues with gmail, dirty flash your current setup first.
v2.1
-Fixed a broken setting on ALL scripts, see this for more info: https://forum.xda-developers.com/showpost.php?p=78287566&postcount=103
-Added setup apps to the light script as I intended in the first place
-If you come from an older script, you should dirty flash your current setup again because otherwise the broken setting won't come back. Sorry for the mistake.
v2.0.2
-Fixed OPFilemanager on light and extreme scripts.
v2.0.1
-Fixed a few mistakes I wrote, extreme script will work now.
v2.0
-Completely resorted the apps so it makes more sense. I have a little more hindsight and for most apps I actually know what they do and if it's dangerous to remove them or not. Hence, the extreme script hasn't changed but the light is significantly different. It will remove more useless apps but not remove apps that most users use. A bit smarter I'd say.
-And I would like to introduce you the invisible script, the ones who really can't deal with making sure the script works for them, they just want to make their phone lighter. Easy peasy, hassle free.
-To see how I resorted apps, please check "List of systems apps SORTED & EXPLAINED v2.0.txt" or just have a look at the end of this post.
v1.8.1
-Removed Rftoolkit as it's a vendor app and I can't make it disappear for some reasons. I'd recommend you to freeze the app.
-Removed "datastatusnotification" as it's necessary to keep track on data usage.
v1.8
-Only the extreme script is updated
-Added a few more apps, including OPSes which sens telemetry I think. I couldn't find anything explaining exactly what it does but I've been running my script for some time now and 0 issue.
-Here is the list:
Code:
"/system/system/app/OPSesAuthentication",
"/system/system/app/SeempService",
"/system/vendor/app/Rftoolkit",
-Yes, changelogs are shorter and shorter
-However, 92 apps included now!
v1.7.2
-Added Music2 to both scripts.
v1.7.1
-Removed from the script OPAppCategoryProvider as it was breaking battery stats.
v1.7
-Only uploaded the extreme version as it's experimental and the light version would be the same
-I'm trying a few more apps that seem useles, but I need more feedback. Some telemetry from Qualcomm should be gone as well.
-Here are the new apps
Code:
"/system/system/priv-app/OnePlusWizard",
"/system/system/app/AutoRegistration",
"/system/system/app/datastatusnotification",
"/system/system/app/PlayAutoInstallConfig",
"/system/system/app/RFTuner",
"/system/system/priv-app/OPAppCategoryProvider",
v1.6
-Added more apps in both scripts
-Now the light script includes this category " #APPS THAT CAN BE FOUND ON PLAY STORE" as you can reinstall them very easily (and you won't even loose them if you updated them once).
-Expect more privacy as I've deleted more telemetry from both OP and Qualcomm.
-Documentation updated
-Here is the list
Code:
"/system/system/app/GoogleContactsSyncAdapter",
"/system/system/app/OpSkin",
"/system/system/app/HTMLViewer",
"/system/system/app/uimremoteclient",
"/system/system/priv-app/CallLogBackup",
"/system/system/priv-app/CNEService",
"/system/system/priv-app/OPAod",
"/system/system/priv-app/SharedStorageBackup",
v1.5
-Fixed a few entries as they were not written properly. So some apps that were already included will actually be removed this time. Thanks to @zyvex_14 for his help and support.
-I've added these apps that can be safely removed.
Code:
"/system/system/app/Account",
"/system/system/app/QdcmFF",
"/system/system/app/WapiCertManage",
"/system/system/priv-app/DiracAudioControlService",
"/system/system/priv-app/OPCellBroadcastReceiver",
-As always, I've updated the advanced documentation.
-You can now download a .txt file with all the documentation: all system apps are sorted and the shady ones are explained.
Now, Tomatot Debloater Extreme v1.5 removes 72 apps and your device still runs perfectly, if not better
Tomatot Debloater Light v1.5 42 apps and you basically don't loose any feature
v1.4
-Quite satisfying build: I feel like the script is almost final.
-Here are the new lines I added, to the different versions.
"/system/system/app/OPBackup",
Code:
"/system/system/priv-app/BackupRestoreConfirmation",
"/system/system/priv-app/Tag",
"/system/system/priv-app/OPFaceUnlock",
"/system/system/priv-app/EmergencyInfo",
"/system/system/priv-app/Turbo",
v1.3
I forgot to update the scripts when they're flashed so TWRP will display "v1.2 when it's actually v1.3, so no worries
-Merged with xXx all the apps where I was sure they could be removed without risks. Still some apps I need to sort out.
-Now I have 2 scripts
LIGHT = SAFE TO DELETE FOR ALMOST EVERYONE + APPS THAT CAN BE FOUND ON PLAY STORE (they will just become user apps if you updated them at least once)
EXTREME= SAFE TO DELETE FOR ALMOST EVERYONE + APPS THAT CAN BE FOUND ON PLAY STORE + SAFE TO DELETE IF YOU USE ALTERNATIVE APPS OR JUST DON'T NEED THE APP + EXPERIMENTAL STUFF SOMETIMES
To see their content, check advanced documentation.
v1.2
-Added OP user apps (that you can uninstall without root when to flash a new ROM). I didn't think of them at first because they're easy to remove and once you do, they don't come back after you reinstall the ROM. However, with the script, they will leave the system partition for good, which is cleaner. And it will be useful for people who didn't delete them already.
-Removed "usb_drivers.iso." it's what makes the windows explorer show the OP6 as a CDROM when you plug it to your computer. So you can have access to drivers. It's pretty useless except for the first time you plug your phone to your computer. And still, there are plenty other ways to install drivers.
-I've updated the list of the apps in the first post.
v1.1
-Fixed the "card" app.
v1
-Initial release
Works like a charm for me, many thanks.
I just had to edit your file for the "card" app, + few others lines I deleted to keep some apps I use, such as 'Duo'.
In your file, it is written "Card", but my app was named 'card' and apparently the C in capital letter makes it not work (for this app specifically).
zyvex_14 said:
Works like a charm for me, many thanks.
I just had to edit your file for the "card" app, + few others lines I deleted to keep some apps I use, such as 'Duo'.
In your file, it is written "Card", but my app was named 'card' and apparently the C in capital letter makes it not work (for this app specifically).
Click to expand...
Click to collapse
Wow, you're already a pro! Well done mate. I don't know if it was your experience with editing a script but if it is, I'm glad my my guide makes sense and that some users already benefit from it. And thank you for pointing out my mistake.
I'm uploading a 1.1 update with the fix.
Don't forget to flash again your script if you update your ROM.
First time I manipulated and edited this kind of file, so many thanks for your tuto, very helpful in my case.
Just one additionnal question, is there somewhere a list of all bloatwares that can be safely removed? Or is your list exhaustive for our OP6?
zyvex_14 said:
First time I manipulated and edited this kind of file, so many thanks for your tuto, very helpful in my case.
Just one additionnal question, is there somewhere a list of all bloatwares that can be safely removed? Or is your list exhaustive for our OP6?
Click to expand...
Click to collapse
Humm usually on different when you search for it on Google, you find threads that explain what services to disable, but 99% of the time they're also device specific.
I've never found a universal list with all the bloatware common to all Android phones. If you have a doubt about an app in particular, google it and you'll have your answer. However, what I've found out trying different scripts is that there are some apps i can freeze without any consequences, whereas if I try to delete them with my script, the phone will end up in a bootloop.
Unfortunately, this project is very recent for me and I didn't do any exhaustive testing so I don't know exactly what apps were breaking my script.
Ideally, i'd have to create another script that bring back the apps I remove so I can try one by one and see which apps are safe to remove. Because right now, everytime, flashing back OOS, rebooting to make sure it works, then going back, flashing my script, checking again, etc. it takes a lot of time so it will take some time before I can be more accurate.
At least right now I have a good base of what apps I'm sure I can remove.
Now when I'll have enough time I could try one by one to delete apps and see how it goes. I just to find a way to not have to reflash the whole system every time.
If anyone has a suggestion he's welcome!
I'd say that @Zios01 knows a lot about the topic since he probably tried himself what apps are safe to debloat.
You can read his script as well to see what apps he removes and you can assume it's safe to add them to my script.
I perfectly understand that you can't try one-by-one all of them, it gonna turn you crazy otherwise to flash-reboot-check and so on...
As you wrote, this is a good start and a good base, let's see also if someone has more experience with the others apps/bloatwares.
Anyway, thanks again for your answers and contact provided, I will try to find his script as well.
zyvex_14 said:
I perfectly understand that you can't try one-by-one all of them, it gonna turn you crazy otherwise to flash-reboot-check and so on...
As you wrote, this is a good start and a good base, let's see also if someone has more experience with the others apps/bloatwares.
Anyway, thanks again for your answers and contact provided, I will try to find his script as well.
Click to expand...
Click to collapse
Here it is.
I had to add the .txt extension to upload it. Also, I changed the name so it won't work. It's just for "science".
You will see he doesn't use the same "language" at all, and it's way more complicated than my script. However, it's not hard to spot the apps he's referring to.
Btw, as I already said, the good thing with this script is that it will ignore errors. So if you add a line to your current script, you can flash it and it will just remove the one app you added. You don't have to make an entire new file for your v2.
OK, so I added several lines based on XxX script.
I did a reboot and no bootloop, that is already a good point .
Now I am going to test my phone and if everything works ok and still flawless, I will share my file.
zyvex_14 said:
OK, so I added several lines based on XxX script.
I did a reboot and no bootloop, that is already a good point .
Now I am going to test my phone and if everything works ok and still flawless, I will share my file.
Click to expand...
Click to collapse
When I did my little experiments and I was deleting the wrong files, it was just not booting, stucking on OnePlus logo. Just once it booted, but shut down immediately and took me to recovery.
So you should be fine. But yeah maybe only after a week or something we'll find out that a tiny but sometimes useful feature doesn't work.
Thanks for your work! I would suggest using Magisk if possible as the changes aren't permanent. Except if you want to achieve that it's permanent
Tomatot- said:
When I did my little experiments and I was deleting the wrong files, it was just not booting, stucking on OnePlus logo. Just once it booted, but shut down immediately and took me to recovery.
So you should be fine. But yeah maybe only after a week or something we'll find out that a tiny but sometimes useful feature doesn't work.
Click to expand...
Click to collapse
Indded, that is what I worry about, that everything looks fine and finally after some days (maybe earlier :crying something doesn't work like it should be.
That is why I would like to test prior sharing my file.
Macusercom said:
Thanks for your work! I would suggest using Magisk if possible as the changes aren't permanent. Except if you want to achieve that it's permanent
Click to expand...
Click to collapse
It does sound like a good idea! I will investigate this possibility and let you know. I'm not sure I have enough knowledge and experience.
https://forum.xda-developers.com/apps/magisk/module-terminal-debloater-debloat-t3584163
So I've found this Magisk Module which seems quite impressive tbh. It seems quite easy to use and safe as well. It's honestly way more advanced than my script.
But at the same time, I feel like it doesn't do much more than a classic freeze with Titanium Backup.
You still have to go every time you install a ROM through all the apps you want to remove. You could write down numbers but it's risky, if you change ROM or even you update your ROM and numbers change, it could mess up everything. So I still think my solution had advantages compared to this Magisk Module.
However, I might use the module to see what apps break the device or not. Then I can improve my script a little. I will also think about making a Magisk Module out of it, but I'm not sure it will make things much better.
My ultimate goal is just to "flash it and forget about it until you flash a new ROM/update". So it wouldn't matter if you can remove it or not.
There are 2 possibilities when using my idea:
1) I (I isn't me, I speak for users in general) am happy with the script, I don't loose any features. So I don't need to touch it. Flashing it once in TWRP isn't a burden at all. Especially since it takes like 2 seconds to flash. Then it's the best solution since, once you have your script you like, you can always keep it.
2) I am happy with the script but I want a few apps back. Sure, having a Magisk module could make things easier as I could just remove the module (considering it has a restore feature), but I would need to edit the module or the script, and then apply it again. It one of the apps break the system and makes the device bootloop, even with a Magisk module, it will be hassle to fix it. It's just more simple to flash the ROM again like I'm doing now.
Now you need to ask yourself this:
1) Do you prefer to have more features at the cost of spending some time setting up your device every time you flash a ROM? Then use Titanium Backup or Terminal Debloater.
2) Do you prefer to take some time once to setup your script properly but then you won't have to care about it for, theoretically, until you get a new device? Then go with my script.
If my script gets some attention, I'm pretty sure within a few weeks I / we will be able to propose enough scripts to make (almost) everybody happy.
Like script 1 extreme debloating
Script 2 medium debloating
Script 3 light debloating
So 99% users are satisfied, and then the pickiest ones can always make their own script since it's very easy to edit my script.
Am I making a point?
What's with the .iso file and /system/reserve?
Tomatot- said:
https://forum.xda-developers.com/apps/magisk/module-terminal-debloater-debloat-t3584163
If my script gets some attention, I'm pretty sure within a few weeks I / we will be able to propose enough scripts to make (almost) everybody happy.
Like script 1 extreme debloating
Script 2 medium debloating
Script 3 light debloating
I think this will be a great way to debloat to each individual preference. Will be watching this thread for these updates:good:
Click to expand...
Click to collapse
Sh0X31 said:
What's with the .iso file and /system/reserve?
Click to expand...
Click to collapse
I didn't know about /system/reserve, thankj you for sharing. From what I understand, it's the apps that come pre installed but are removable. It seems like once you delete them they don't come.baxk after a dirty flash. However I can remove them so the script is useful after a clean flash. Thanks!
What are you referring to with the .iso though?
Tomatot- said:
I didn't know about /system/reserve, thankj you for sharing. From what I understand, it's the apps that come pre installed but are removable. It seems like once you delete them they don't come.baxk after a dirty flash. However I can remove them so the script is useful after a clean flash. Thanks!
What are you referring to with the .iso though?
Click to expand...
Click to collapse
I mean the usb_driver.iso
Sh0X31 said:
I mean the usb_driver.iso
Click to expand...
Click to collapse
What about it?
Sh0X31 said:
I mean the usb_driver.iso
Click to expand...
Click to collapse
Not sure what it is, but xXx has it available for debloat on his room as well

Categories

Resources