Optimise loading for deodexed roms - XPERIA X8 General

Hello guys this is a little trick i have found over the web and i want to share with you
For more info take a look here
Advantages:
More free RAM.
Faster launch for system & user apps during the second launch.
Gives as much as of a performance boost as ODEX without odexing.
Smoother app switching.
Disadvantages:
Might break some apps.
Instructions:
1) Open build.prop and search this line: dalvik.vm.dexopt-flags
2) Change the line in dalvik.vm.dexopt-flags=v=n,o=v
3) Save and reboot
4) Enter recovery and wipe cache and dalvik cache
5) Reboot again and enjoy
Note: dalvik.vm.verify-bytecode = false will do the same but it is used in the old version
All credits goes to AndWise

Reserved

What is this command does? I mean is it skips some integrity check or smthng like this?
Sent from my E15i using xda premium

Asycid said:
What is this command does? I mean is it skips some integrity check or smthng like this?
Sent from my E15i using xda premium
Click to expand...
Click to collapse
This command disable verification. Classes will not be verified by dexopt, and unverified code will be loaded and executed. I tried this in MiniCM 9 and it seems to make phone smoother

Related

[Tutorial][Tweak][Deodex] Disable verify-bytecode!

First of all, i take no credit for this. Thanks to nibras_reeza for this tweak! I've tested this for SGA and I can feel an even better performance boost though i'm already using Grif_07's CM7.1 Kang Beta 2! You can go to the original thread here - Get more RAM and faster responses by disabling verify-bytecode!. I've added some instructions that would be more applicable for Ace.
You'll need:
Terminal Emulator
CWM
Root Explorer or File Expert (or any file manager that has root access)
This tweak will give a performance boost in deodexed ROMs as much as odexing system & data apps. This is an alternative for odexing.
1) Open Terminal Emulator on phone or adb shell from PC and type the following.
Code:
su
setprop dalvik.vm.verify-bytecode false
setprop dalvik.vm.dexopt-flags v=n,o=v
reboot recovery
2) Wipe both caches and reboot system
3) Open root explorer, go to /system/ and edit build.prop in R/W mode then add these lines:
Code:
dalvik.vm.verify-bytecode = false
dalvik.vm.dexopt-flags=v=n,o=v
If lines starting with dalvik.vm.verify-bytecode or dalvik.vm.dexopt-flags exist already, please modify them as above. Note that there might be two entries for dalvik.vm.dexopt-flags; remove the second one.
4) After saving build.prop, reboot to recovery then wipe both caches again.
5) Reboot system. Done.
nibras_reeza said:
Advantages:
More free RAM.
Faster launch for system & user apps during the second launch.
Gives as much as of a performance boost as ODEX without odexing. Themer friendly.
Smoother app switching.
Disadvantages:
Might break some apps.
You can read more information about this on here and here.
Click to expand...
Click to collapse
To undo this tweak,
Type the following in Teminal Emulator.
Code:
su
setprop dalvik.vm.verify-bytecode true
reboot recovery
Then wipe both caches then reboot.
Anyone can comment on this tweak? I don't know about it, but it sounds a little bit extreme on the phone :S
Just did everything as described. Nothing bad happened. Improvements have not yet seen it.
AlterJack said:
Anyone can comment on this tweak? I don't know about it, but it sounds a little bit extreme on the phone :S
Click to expand...
Click to collapse
Yup, requires a bit of experience in Android tweaking.. but i can say my phone's definitely faster
Done, can't see any changes, hope Ill see em soon
After the application of this method arises a problem: SGA freezes after extract and reinsert the SD.
Already, four people can attest.
Lovetz said:
After the application of this method arises a problem: SGA freezes after extract and reinsert the SD.
Already, four people can attest.
Click to expand...
Click to collapse
uh oh. i did not try to extract/reinsert SD yet.
but can reboot solve the problem?
mundixx said:
uh oh. i did not try to extract/reinsert SD yet.
but can reboot solve the problem?
Click to expand...
Click to collapse
yeah reboot cures freeze, but only once, next time u extract/reinsert your SD, phone will freeze again, undoing this by using comand from first post, and replacing prop file with original made thing's worse, all apps after rebooting force closed. Reinstalling rom cured all problems.
ak1t said:
yeah reboot cures freeze, but only once, next time u extract/reinsert your SD, phone will freeze again, undoing this by using comand from first post, and replacing prop file with original made thing's worse, all apps after rebooting force closed. Reinstalling rom cured all problems.
Click to expand...
Click to collapse
when you applied the code or restore the build.prop, did you clear both caches? that way, the system rebuilds it and prevents the force closes
mundixx said:
when you applied the code or restore the build.prop, did you clear both caches? that way, the system rebuilds it and prevents the force closes
Click to expand...
Click to collapse
sure I cleared them
mundixx said:
First of all, i take no credit for this. Thanks to nibras_reeza for this tweak! I've tested this for SGA and I can feel an even better performance boost though i'm already using Grif_07's CM7.1 Kang Beta 2! You can go to the original thread here - Get more RAM and faster responses by disabling verify-bytecode!. I've added some instructions that would be more applicable for Ace.
You'll need:
Terminal Emulator
CWM
Root Explorer or File Expert (or any file manager that has root access)
This tweak will give a performance boost in deodexed ROMs as much as odexing system & data apps. This is an alternative for odexing.
1) Open Terminal Emulator on phone or adb shell from PC and type the following.
Code:
su
setprop dalvik.vm.verify-bytecode false
setprop dalvik.vm.dexopt-flags v=n,o=v
reboot recovery
2) Wipe both caches and reboot system
3) Open root explorer, go to /system/ and edit build.prop in R/W mode then add these lines:
Code:
dalvik.vm.verify-bytecode = false
dalvik.vm.dexopt-flags=v=n,o=v
If lines starting with dalvik.vm.verify-bytecode or dalvik.vm.dexopt-flags exist already, please modify them as above. Note that there might be two entries for dalvik.vm.dexopt-flags; remove the second one.
4) After saving build.prop, reboot to recovery then wipe both caches again.
5) Reboot system. Done.
To undo this tweak,
Type the following in Teminal Emulator.
Code:
su
setprop dalvik.vm.verify-bytecode true
reboot recovery
Then wipe both caches then reboot.
Click to expand...
Click to collapse
Need Help I don't understand what i should edit for the line "dalvik.vm.dexopt-flags=v=n,o=v"
actually on my Build.prop it's "dalvik.vm.dexopt-flags=m=y"
so do I need to replace by v=n ? o=v ? both ? or need to times dalvik.vm.dexopt-flags with v=n and second one with o=v ? I'm confused :S
can U help me :S

[SCRIPT] No-lag solution to CM7/9 "low memory" notifications (STEP BY STEP,FIXED TB)

[SCRIPT] No-lag solution to CM7/9 "low memory" notifications (STEP BY STEP,FIXED TB)
23/01/12 - Now with Titanium Backup support!
The Titanium Backup team is awesome. I contacted them and within 3 days they had a working fix. To make sure that titanium backup works properly all you need to do is download the latest version from the market, go into 'preferences' and select 'follow all symbolic links' in the 'Troubleshooting' section at the bottom. That's it. Now you'll be able to backup normally and then restore your apps in any other rom. Neat!
Click to expand...
Click to collapse
Okay, I've found a rather excellent solution to the low storage problem that plagues the CM7 and CM9 roms - without causing the lagginess of the ".nodatadata" approach. It's not my work but was posted by drefnel on the Cyanogenmod forum. It's very smart: instead of moving the whole of /datadata (fast yaffs2) to /data (slower ext4) and so introducing lag it keeps most apps' non-performance critical data on /data and moves performance critical sqlite databases and xml preference files to the fast /datadata.
Installing this fix is a two step process:
Phase 1 - some prep, takes around 10 minutes to complete. Only has to be done once.
Phase 2 - running the script whenever you've installed new apps and used them once or twice. this just involves hitting a shortcut on your home screen. boom!
The original guide can be found here we need to make a few alterations and I've done a step-by-step below:
Step by step guide
I take no responsibility if using these instructions messes up your phone. They worked for me and you should always be able to restore using the clockworkmod backup. But you can't say you haven't been warned.
Make sure you're running CM7 or TeamHacksung's CM9 or Onecosmic ICS.
This will NOT work on encrypted phones.
DO A NANDROID BACKUP BEFORE YOU BEGIN.
Phase 1 - (if you've already used the ".nodatadata" method then start at step 4)
1. Download Terminal Emulator
2. Open terminal emulator and then enter each of the following followed by return:
su
touch /datadata/.nodatadata
3. Reboot (this might take a while as the OS will be making changes to your filesystem).
4. Open terminal emulator and then enter each of the following followed by return:
su
rm /data/data/.nodatadata
5. Reboot into recovery, go to "mounts & storage" and then select "format datadata". Reboot normally.
6. Go to the market and download GScript Lite. Open it and close it again - this should create a folder called "gscript" in your sdcard. Unzip the file attached in this post and place the script in it in that folder.
7. Open up GScript Lite, press menu and add script. Click load file, select the script file, make sure that "needs SU" is selected and click save.
8. Run the script by tapping it. You should see GScript report its progress and finally the script should finish. Press close and gscript will crash out (can't have it all ).
Phase 2
Add a shortcut to this script on your desktop.
CM7 - long-press and hold a blank area of your home screen, select 'add shortcut', and then select 'gscript lite'. select the script you've just added.
CM9 - go into your app drawer, select the 'widgets' tab, find 'gscript lite', press and hold it and move it onto your home screen. select the script you've just added.
You should use the shortcut after you've installed new apps and used them a few times. There's no harm in not using the script for a while, all that will happen is that app may become a bit laggy until you use the script to move its data to /datadata.
That's it. Congratualtions!
You can flash new CM roms and the script will carry on working fine, but if you wipe data in recovery then you'll have to start from the beginning
You won't be able to easily go back to the original configuration or use the ".nodatadata" method (you'll need to Titanium Backup, wipe everything and then restore), but you'll never miss them.
Good luck
I hope this helps people out. We should find a way of better automating the steps to make it more noob friendly and maybe Team Hacksung and One Cosmic could incorporate it into their ROMs. (Essentially the script needs to be run periodically to make sure that the performance critical /data/data elements of new apps are copied across to /datadata - apart from that it's not too different from the ".nodatadata" approach).
Personally using the much simpler .nodatadata approach, i found that after a rom (cm9) install, most lag goes away after using it for a few hours, although I have heard the speed of the flash memory is not equal on all devices... so could be laggy for some regardles of usage.
Yup I've tried both and the script approach is definitely much quicker in my case. I'm going to see if I can simplify this procedure somewhat.
Sorry for being a noob.. I am not sure how to apply the script to my Android device... Should I use Terminal Emulator on my Galaxy S and type the script in there? Would you mind to guide me through the process? Thanks a lot
Now with a step-by-step guide.
Man you are awesome! Thanks for your guide!
Wouldn't it be an idea tu use scriptmanager (free or pro) instead of gscript? it can run scripts on boot.
Maybe later, when the standard kernel for cm9 will support init.d, it can be an init.d script?
And oh, I will put a link to this thread in the wiki, you can edit the wiki yourself also if you ask for acces.
seem like there is no one try on OneCosmic, and im going it a shot!
will report later~
Zatta said:
Wouldn't it be an idea tu use scriptmanager (free or pro) instead of gscript? it can run scripts on boot.
Maybe later, when the standard kernel for cm9 will support init.d, it can be an init.d script?
And oh, I will put a link to this thread in the wiki, you can edit the wiki yourself also if you ask for acces.
Click to expand...
Click to collapse
Good points. The reason I chose GScript was its user friendliness and simplicity. There are define advantages in running this script at boot. (I'd much prefer to have things run automatically before the GUI appears (as in init.d) rather than clog up GUI boottime as Script Manager would require.)
The phenomenal uptime I get with Android means that I don't reboot very often. Ideally we'd want something that monitored the data/data folder and ran the script on the appearance of new folders. I'm not sure how you'd automate that without resorting to Tasker. Maybe init.d is the best we can do when it's supported. In the meantime a GScript shortcut on the desktop that I hit once every couple of days feels like the best option so far!
Sent from my GT-I9000 using XDA App
Code124Y said:
seem like there is no one try on OneCosmic, and im going it a shot!
will report later~
Click to expand...
Click to collapse
Tested on OneCosmic and it working good for all but picture/gallery gone...
what i mean is it scan no photo nor any image on my phone~
using gallery+ giving me the same view(nothing in gallery)
but other then this 2 gallery, im try with quickpic also and yup it show pic~
but i want the original picture gallery from the 4.0.3... any help?
There are more advantages in scriptmanager. You are not bound to a specific location on the scared for example, with gscript it has to be in /sdcsrd/gscript folder. And you can make a widget with this script in it, making it a one-click operation but I believe that is a paid feature (and gscript can do something similar, no?)
On the other hand, it is as you say, a bit more complicated.
Also making it a init.d isn't a full solution. Every update from the ROM will wipe the /system/etc/init.d so the script needs to be reinstalled.
Maybe a cwm-flashable would be needed than, everybody here can flash. In that case also the initial commands could be run during flashing.
Taptalked u see
Zatta said:
...Maybe a cwm-flashable would be needed than, everybody here can flash. In that case also the initial commands could be run during flash
Click to expand...
Click to collapse
Yup, a flashable zip which runs initial commands and then appends on an init.d script seems like the way to go. Once the CM9 kernel supports I'll learn how to make these (essentially lazy, me)
BTW, making a one click operation from GScript is easy. Just add the GScript shortcut to your home screen and it will prompt you which script you want to run on click (remember that shortcuts are now grouped with widgets in ICS)
Sent by airmail.
Code124Y said:
Tested on OneCosmic and it working good for all but picture/gallery gone...
what i mean is it scan no photo nor any image on my phone~
using gallery+ giving me the same view(nothing in gallery)
but other then this 2 gallery, im try with quickpic also and yup it show pic~
but i want the original picture gallery from the 4.0.3... any help?
Click to expand...
Click to collapse
Have you tried clearing the data for the gallery app? Worth a shot.
Sent by airmail.
revthanki said:
Have you tried clearing the data for the gallery app? Worth a shot.
Sent by airmail.
Click to expand...
Click to collapse
not needed already, becoz reboot seem to be fixed...
Samsung galaxy S GT-I9000 miui.us latest rom
I just have a question popped up in my mind, after applying this script,when I update my teamhacksung ROM in the future(i.e the future build15), will it causes any problem / break my phone?
leolee0209 said:
I just have a question popped up in my mind, after applying this script,when I update my teamhacksung ROM in the future(i.e the future build15), will it causes any problem / break my phone?
Click to expand...
Click to collapse
Absolutely shouldn't, as long as pawitp doesn't ask you to wipe data. If he does then you'll have to start again
Flash away!
Sent by airmail.
People, beware that this will break your TitaniumBackup, I was tested myself
Funnnny said:
People, beware that this will break your TitaniumBackup, I was tested myself
Click to expand...
Click to collapse
How do you mean? A bit more detail please. It really shouldn't, as Titanium Backup does respect symbolic links...
Sent by carrier pigeon.
mispost
10 char
Originally Posted by Funnnny<br />
People, beware that this will break your TitaniumBackup, I was tested myself
Click to expand...
Click to collapse
<br />
<br />
How do you mean? A bit more detail please. It really shouldn't, as Titanium Backup does respect symbolic links...<br />
<br />
<br />
Sent by carrier pigeon.
Click to expand...
Click to collapse
When I backup, wipe and restore, titaniumbackup just restore the symlink, not the actual data
Sent from my GT-I9000 using Tapatalk

[SCRIPT] Simple Dalvik Cache Cleaner

Dalvik cache cleaner is a shell script which clears the Dalvik cache that can be used with Android Terminal Emulator.
Root and busybox is required, if you don't know what root and/or busybox is then do NOT bother using the script.
Place the shell script in the main directory.
With Android Terminal Emulator type:
su
sh /sdcard/Dalvik_cache_cleaner.sh
The process should be close to instant depending on how much files you have in the directory.
Download: http://caftp.3owl.com/Shell_Scripts/Dalvik_cache_cleaner/Dalvik_cache_cleaner.sh
It worked
~~~~~~~~~~~~~~~~~~~~~
Samsung galaxy s2
Rom: Jedi knight 6
kernel: Jedi kernel 2
~~~~~~~~~~~~~~~~~~~~~
And you thought celebrities weren't smart! =P
Is this also intended to run on every boot, ie via init.d
thebrainkafka said:
Is this also intended to run on every boot, ie via init.d
Click to expand...
Click to collapse
No, that would also waste too much time on boot then on a normal boot due to rebuilding the cache everytime.
When you uninstall an application, usually a dalvik cache file is left over wasting space.
But if you want you can use ROM Toolbox from JRUMMY APPS INC. in the Play Store.
There is a Scripter in that application that you can use for such thing but the problem is that when I tryed using the su binary in the shell script, there is an issue where the su binary in the shell script will just cut off the other parts of the script and only the su binary so your answer would be fat chance unfortunately. :/
Sent from my Sony Tablet S using xda premium
Issue fixed.
Is this the same as wiping dv cache through recovery. Also what will be the script for wiping cache? Will it be rm /cache?
Thanx!
The-Droidster said:
Is this the same as wiping dv cache through recovery. Also what will be the script for wiping cache? Will it be rm /cache?
Thanx!
Click to expand...
Click to collapse
Yes and the code is:
#!/system/bin/sh
rm /data/dalvik-cache/*
reboot
Click to expand...
Click to collapse
I'm not sure if /cache/ is really dalvik cache, on devices with OTA update support the OTA zip's will be stored their with other stuff but if you want I can give you the code for that.
On linux (That also means android) use 'chmod 755' for the permissions for the shell script.
I have tried adding 'su' but that fails has the terminal only executes the su binary so the rest of the script does not get executed.
Using the 'echo' binary to say out what it is doing is a fail has the terminal does not go anywhere due to the echo binary getting executed but it will not display output in the terminal anyway making the script not being executable.
Sent from my Sony Tablet S using xda premium
Man I am full with ideas.
I can create a shell script to do:
[OTA]
Remove OTA Update zip in cache
Copy OTA Update zip from cache to SDCard
[Files and Folders]
Remove LOST.DIR (That is just a useless folder )
Wipe SD Card
Wipe Zip files (useful for custom roms on your SD which you don't want anymore)
Well soon I should get more ideas so the OTA shell scripts will not be possible unless I get a rootable device with OTA functionallity (I do have a Sony Tablet S but I forgot to root it but I went and installed the firmware update without noticing) so it would be the Nexus 4 I would test it on in March.
The thing is that more shell scripts I create more pages I have to add to my website to give information about it, how to use it and the download link which can take around 10 Minutes just by editing the code, make backup and then upload via FTP.
Sent from my Sony Tablet S using xda premium
New shell scripts available which should be available tomorrow and if not a few days.
They are:
Aptoide Cleaner - I found out that the xml files are adding numbers to their file extensions so I built a script which can remove that problem real fast.
Take Out Bin - Removes all or at least most useless directories like LOST.DIR and LazyList, they are just a few.
ExtSD and USB Cleaner - Same has 'Take Out Bin' but it does it on the external SD Card while on USB, LOST.DIR will be erased has that should not be there.
-OLDER PROJECTS-
Dalvik Cache Cleaner - Read the first post.
Andro.Shell.Crash - This is good for developers has this does crash/lag/freeze the OS which can help a root exploit get in, of course there is different effects depending on the hardware and software, if the device is fast and has good hardware then it is possible that it may just lag and/or freeze but for older devices with older hardware can just crash.
NOTICE: The older projects are already out and available to download on my website.
I will be creating a forum about these shell scripts but I am not sure about the Aptoide one for many reasons.
I know that I am not suppose to be talking about this on a thread which has a different purpose but yeah, just an update.
EDIT: I uploaded and programmed the webpages from my tablet using WM FTP Client and DroidEdit Pro so that was a bit too early but all well, new thread(s) should come in tomorrow depending what will happen tomorrow (It is 03:30AM so it would count has today anyway).
Anyone can please guide me how to remove this script???
Thank you in advance
romelcool said:
Anyone can please guide me how to remove this script???
Thank you in advance
Click to expand...
Click to collapse
You just delete the shell script, you only use it in the Terminal Emulator so once you run it, it will wipe the dalvik cache so it will not do such thing in every boot.
Sent from my Nexus 4
Man I think you should create a script which are:
Auto clean of cache || Optimize App || Kill Media Process
If it's possible to you to create script with the list below that will be awesome ! ..
what is the code for auto cleaning cache every 30 minutes ? ..
and also auto optimize application every 24 hours ? ..
kill media process ?
I hope you could help me with this .. Thanks !
CoolApps said:
Download: http://caftp.3owl.com/Shell_Scripts/Dalvik_cache_cleaner/Dalvik_cache_cleaner.sh
Click to expand...
Click to collapse
Gone!
jidanni said:
Gone!
Click to expand...
Click to collapse
That's because I switched sites between 2012 - 2015. This thread was very inactive so I missed it out and didn't update the link with the new one.
The current server I use for it has some files that I'm aware of that are more often downloaded by users which means I ended up removing the shell scripts along with others that don't need to be there. I made a backup of everything before, by the way.
I don't feel that there's a need restore the file and plus, this thread's old.
Because of the sudden bumps of a thread that currently serves no purpose, something should be done about it to avoid further confusions.
Sent from my Nexus 4 using Tapatalk
Can you please tell me what your script did.
I made my own script that does
su -c 'find /data/data/*/cache/* -delete'
This one line saved me from installing multi-megabyte apps that do the same thing.
Is there anything more I should add to my script?
Now I can finally have enough room so Google Play can update apps again!
Thread closed at OP's request.

[GUIDE] The Ace Xperia Play Setup 1.2! ~ Dalvik Tunning!

Ace Xperia Play​Hello Guys! , after scavenging the whole of the Xperia Play Forums I present to u the best Xperia play Setup in my opinion (and some others...)
First off i Wanna Give some Quick Thanx to:
ozzmanj1 - He Convinced me Heavily about the Stock Rom + A Working Odex Script!
TLRTheory - He convinced ozzmanj1 who convinced me,
Wedgess - A real developer!
DoomLord - Where would we be without him?
juwe11 - The Great Ramscript
LENAROX - The Unique and Amazing Pro-Tunned ADJ
Ryuinferno - Uni Init.d
Zepplinrox - Sclean
Bakisha - Telling me about Odexing!
CosmicDan - Dalvik Dexopt Flags
NOTE! You Must do these in order for the Best Stuffs, Also Please Read Everything
So Lets start shall we?
Oh wait no, Get some Coffee or another Beverage and get ur xP and Hook it up to ur PC,
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1. Backing Up!
First of were going to need some backups incase Anything goes wrong, So Go Ahead and:
-Reboot into CWM Recovary > Make a CWM Backup
-Reboot back into ROM > Download Titanium Backup and Run a Backup of All User Apps
-Power off you Device > Put it to Charge > (While waiting for Charge) Pull out the SD-Card and Manually mount into PC (Otherwise just do it normally with Android on, NOTE! it will take much longer) Now Cut Everything into a Secure location onto your PC
2. Preping
Just some things u need to be able to go to the next step:
-A Fully Charged Battery
-An Empty SD-Card
-Some more Coffee
now to continue we need to wipe all old things:
-Reboot into CWM > Wipe:
--System
--Data
--Cache
--Dalvik Cache
--SD-Card
--Battery Stats
now power off the device and keep it hooked up to power
Download the Following:
Xperia Play 52 Enhanced v3 Firmware
Flashtool
Lupus GB v12 LagFixed Edition
Now install Flashtool and copy the Xperia Play 52 Enhanced v3 Firmware to the flashtool firmwares folder
3. Flashing
Time fore the main moment,
-Run Flashtool (NOTE! if u have 64-bit, run the 64bit, also sometimes u have to like 6 times click it to open...)
-Disconnect your Device
-Connect the device in Flashmode (Will promt how to)
-Let it do its work (NOTE! If it asks to install drivers, go to the flashtool subfolder names drivers, run the .exe and select the list with xperia play in and select flashmode, then reboot)
-Now disconnect the device AND DONT BOOT UP
-flash Lupus GB v12 LagFixed Edition
-Now Gracefully boot up the device knowing you have the cleanest xp in existent,
4.Restoring
Now u can copy ur SD Card back, Advice : enable msc for faster transfer
U can also restore all apps via Titanium Backup, just download the app and restore
5. Root
When rebooting allow lupus gb to root
then go to playstore and install superuser and update the su binary
6. Fine-Tunning
This is the good stuff,
so we need to get performance and battery TOP NOTCH!
First off i recommend fine tunning the Android native settings, so adjust ur ringtones and etc... anothing thing is Leave animations on,
Then delete all apps u can from data/app, eg hotshots, fb and the rest of the sony junk
Now off to tweaking!, download:
Uni-Init.d
AutoMagical Debloater
Key for AutoMagical Debloater: JzzTXhl0MJlkga6fbLy5OXI2-FwXAXI_ZMU3MkRxE9I
Now download:
Root Browser
So first off reboot into recovary, and flash the Uni-Init.d zip
Now Flash Debloater.zip then Reboot x2
Open Root Browser and navigate to /system/app and here i cant help much, this is ur brain and eyes, manually compare whats in the zip i provided and the /app folder and remove stuff so ur devices apps are equal, now u may get some FC's but its nothing to dangerous to worry about,
Reboot now!
Some more debloating:
Navigate to system/etc, press search and type *.apk u should find some apk files, of their Verizon/Sony related, delete them!
Their is also another thing we can do called Odexing, be aware that doing this will result in you not being able to mod any framework files
Download the Odex Zip First, Flash it in CWM then Wipe Cache and Dalvik Cache and reboot x2 Then:
- open terminal emulator (will be installed automaticaly)
- type su to obtain root permission
- type dexo -h to show possible commands for your phone
- type dexo -one of the option that you have decided
I & Ozzmanj1 recommend Odexing Everything - all
7. Tweaking
Suprisingly enough, All tweaks existent on android SUCK, (Joking) basically what im saying is we only need 3 tweaks
first off open root browser, go to /system and open build.prop, now allow editing:
Input the following for everyday use and generally amazing performance in eveything
Code:
# Pro-Tuned ADJ 1.2 by LENAROX.
ro.FOREGROUND_APP_ADJ=0
ro.VISIBLE_APP_ADJ=4
ro.PERCEPTIBLE_APP_ADJ=3
ro.HEAVY_WEIGHT_APP_ADJ=2
ro.SECONDARY_SERVER_ADJ=1
ro.BACKUP_APP_ADJ=5
ro.HOME_APP_ADJ=6
ro.HIDDEN_APP_MIN_ADJ=7
ro.EMPTY_APP_ADJ=15
#ultimate assassin mode.
#ro.SECONDARY_SERVER_ADJ=15
#ro.HIDDEN_APP_MIN_ADJ=3
or if ur extreme and want amazing games and pretty much no multitasking then this:
Code:
# Pro-Tuned ADJ 1.2 by LENAROX.
ro.FOREGROUND_APP_ADJ=0
ro.VISIBLE_APP_ADJ=4
ro.PERCEPTIBLE_APP_ADJ=3
ro.HEAVY_WEIGHT_APP_ADJ=2
ro.SECONDARY_SERVER_ADJ=15
ro.BACKUP_APP_ADJ=5
ro.HOME_APP_ADJ=6
ro.HIDDEN_APP_MIN_ADJ=3
ro.EMPTY_APP_ADJ=15
#ultimate assassin mode enabled.
save and exit, now reboot or cary on to next tweak and then reboot after that
Next up were going to optimize dalvik verification and optimization, to do this were going to navigate to /system/build.prop and open it and start editing, look for something like this:
Code:
dalvik.vm.dexopt-flags=m=y
after lots of reasearch i came across a thread where CosmicDan Explained how dalvik vm worked with this and etc, and acording to him setting the dalvik vm to this parameter will increase performance all over the board
So replace with this:
Code:
dalvik.vm.dexopt-flags=m=y,v=n,o=v,u=n
Done, now reboot 2 times, then continue on to the next tweak!
Now Init.d Tweaks, We only need 1, So open up root browser and navigate to /system/etc/init.d (this is long text, so i recommend save as file then in android cp and paste, if ur going to do this paste it into notepad++ and then save as .sh and then rename and remove .sh extension, we save as .sh to get the linux formatting so no bootloops or inactive scripts r their...) and make a new file called "97ramscript", Within the script input the following:
Code:
#!/system/bin/sh
# Copyright© 2011 Juwe11
if [ -e /sys/module/lowmemorykiller/parameters/minfree ]; then
echo "2560,4096,6144,12288,14336,18432" > /sys/module/lowmemorykiller/parameters/minfree
fi
if [ -e /proc/sys/vm/swappiness ]; then
echo "20" > /proc/sys/vm/swappiness
fi
if [ -e /proc/sys/vm/vfs_cache_pressure ]; then
echo "70" > /proc/sys/vm/vfs_cache_pressure
fi
if [ -e /proc/sys/vm/dirty_expire_centisecs ]; then
echo "3000" > /proc/sys/vm/dirty_expire_centisecs
fi
if [ -e /proc/sys/vm/dirty_writeback_centisecs ]; then
echo "500" > /proc/sys/vm/dirty_writeback_centisecs
fi
if [ -e /proc/sys/vm/dirty_ratio ]; then
echo "15" > /proc/sys/vm/dirty_ratio
fi
if [ -e /proc/sys/vm/dirty_backgroud_ratio ]; then
echo "3" > /proc/sys/vm/dirty_backgroud_ratio
fi
then save,now long press and set permissions to all of them (basically tick all 9 boxs)
now reboot
8. Keepin it Clean
Now we have everything done and our xPlay is Top notch but we need to keep it top notch!
so download:
Clean Master , And clean caches and empty folders regulary, HOWEVER please dont use TASK KILLERS, their terrible and ruin performance!!!
next up, install Busybox, Download this:
Super Cleany and open root browser and copy Super Cleany to /system/xbin, then set permissions to all (basically tick all 9 boxs), then Open Busybox and install it using the smart install, just use all defualt settings, once installed uninstall the app
Now download Terminal Emulator and type "su -c sclean" but only do this every like 2-3 weeks or when u feel ur device is extremely laggy, what it does? this cleans the device thoroughly and then reboots!
next thing is to disable startup programs, Download ES Task Manager and run the startup apps, click optimize then u can disable the following manually:
Google Play Store
Messaging
u can also disable anything u know of, eg titanium backup!
thats it, everything else leave it, Word for the wise: Dont disable anything u dont know,
Also just a general tip, dont install useless apps, eg Facebook as u can use it thru the browser!
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
That's it! I hope u liked it!
Also please gimme a tnx I spent ages typing this,
Hey pizza_dox don't thank me for pushing the whole "stock". Thank TLRtheory. I PMd him about his setup as he was always talking about the performance of stock. So he's the one who convinced me. However I do appreciate you thanking me. And I would like to thank you for your work. You are always updating your roms and scripts and posting guides or setups. It goes a long way. So thank you
Sent from my R800i using xda premium
---------- Post added at 09:50 PM ---------- Previous post was at 09:41 PM ----------
Also remember all the extra junk you mentioned to me in the system folders such as apps and files thar weren't necessary but left by Sony. Even after you delete the apps some of the files remain. You gave me another 35-40mb of storage.
Sent from my R800i using xda premium
Oh ok, still...
Oh yea forgot those apps, well I was sorta in a rush, will update now,
Edit
Thanx, also I updated but I'm slowly finding stupid typos ans random grammar errors...
(was in a rush...)
Sent from my R800i using xda app-developers app
Is the kernel from Lupus with Lagfix is that the same as Lupus v12.5?
Someone should do a comparison video showing off stock debloated and OCed on games and some emulators. Is it really better for gaming?
Fenrir007 said:
Someone should do a comparison video showing off stock debloated and OCed on games and some emulators. Is it really better for gaming?
Click to expand...
Click to collapse
When I switched from CDMA to the GSM model back in Feb of this year, I tried all sorts of custom roms. What made me really notice the difference was MC4. I could never get past 26fps on a number of custom ROMS. I then flashed the .79 ftf and deblaoted the hell out of it. Big difference. I ran a FPS meter and was getting 40-42fps on stock debloated no V6 supercharger scripts. No nothing. I was overclocked to 1.1ghz on performance and SIO. Ran smooth as silk.....
Dont this the wrong way, I am extremely appreciative of everyone who assists and participates on the XP forum with custom roms however I simply will not go back to a custom rom. Now that being said I did take the systemui.apk form the NXT Rom and replaced it over the stock systemui.apk and I have working toggles on a stock rom.
ozzmanj1 said:
When I switched from CDMA to the GSM model back in Feb of this year, I tried all sorts of custom roms. What made me really notice the difference was MC4. I could never get past 26fps on a number of custom ROMS. I then flashed the .79 ftf and deblaoted the hell out of it. Big difference. I ran a FPS meter and was getting 40-42fps on stock debloated no V6 supercharger scripts. No nothing. I was overclocked to 1.1ghz on performance and SIO. Ran smooth as silk.....
Dont this the wrong way, I am extremely appreciative of everyone who assists and participates on the XP forum with custom roms however I simply will not go back to a custom rom. Now that being said I did take the systemui.apk form the NXT Rom and replaced it over the stock systemui.apk and I have working toggles on a stock rom.
Click to expand...
Click to collapse
Did you notice any difference in emulators? Oh, and I remember trying MC4 on Auroraplay and it was pretty smooth, but I'm not sure about the fps. Might check that next time.
I only use emu up to n64 and everything runs great.
Sent from my R800i using xda premium
Nice guide. Maybe to add odexing script at the end, when it's debloated, to save data space..
I also switched to .79 recently as daily driver. Debloated, odexed, installed new systemui and smartsearch dialer, and it's flying...
Antutu score is around 5500, on stock speed, and i didn't see any lag in games, not even MC4.
ozzmanj1 said:
Is the kernel from Lupus with Lagfix is that the same as Lupus v12.5?
Click to expand...
Click to collapse
Yep,
Bakisha said:
Nice guide. Maybe to add odexing script at the end, when it's debloated, to save data space..
I also switched to .79 recently as daily driver. Debloated, odexed, installed new systemui and smartsearch dialer, and it's flying...
Antutu score is around 5500, on stock speed, and i didn't see any lag in games, not even MC4.
Click to expand...
Click to collapse
Well i aimed to save battery & Performance, forgot about odex, , but generally i see no difference in odex
Pizza_Dox said:
Well i aimed to save battery & Performance, forgot about odex, , but generally i see no difference in odex
Click to expand...
Click to collapse
Not much difference is speed, but it can save around 50-60MB from data partition. And debloadet GB rom have a lot of spare space in /system partition.
Ofcorse, not needed for most users with lupus kernel, and is highly optional.
Bakisha said:
Not much difference is speed, but it can save around 50-60MB from data partition. And debloadet GB rom have a lot of spare space in /system partition.
Ofcorse, not needed for most users with lupus kernel, and is highly optional.
Click to expand...
Click to collapse
Okai, , Well where can i find the Odex Script,
Pizza_Dox said:
Okai, , Well where can i find the Odex Script,
Click to expand...
Click to collapse
I can't recall did i download it somewhere, but i know that Aurora ROM have odexing script in it
EDIt: X-game rom thread have odexing script separate. It's in end of first post
Bakisha said:
I can't recall did i download it somewhere, but i know that Aurora ROM have odexing script in it
EDIt: X-game rom thread have odexing script separate. It's in end of first post
Click to expand...
Click to collapse
tnx will add to op,
The odex file gives me an error when attempting to flash in in recovery. CWM
Oh OK... Well I'm on ICS now (ICS browsing is not good...), just Google it,
Sent from my R800i using xda app-developers app
Pizza_Dox said:
Oh OK... Well I'm on ICS now (ICS browsing is not good...), just Google it,
Sent from my R800i using xda app-developers app
Click to expand...
Click to collapse
Yeah, I was already on it. Just wanted to let you and everyone know first. Soon as I find an odex file I will post a link here or embed it here.
---------- Post added at 07:38 PM ---------- Previous post was at 07:34 PM ----------
Here is a download link, its from GS4 but it says it works on everything from Froyo+
Thank to: MatrixDJ96 (XDA user who provided link) for him posting this:
Source:
http://forum.xda-developers.com/showthread.php?t=2400342
Download Link:
UniversalOdexScriptV62.zip
Link: https://googledrive.com/host/0B2ftBoBlBHTIWVZITGRMenpQeWM/
ozzmanj1 said:
Yeah, I was already on it. Just wanted to let you and everyone know first. Soon as I find an odex file I will post a link here or embed it here.
---------- Post added at 07:38 PM ---------- Previous post was at 07:34 PM ----------
Here is a download link, its from GS4 but it says it works on everything from Froyo+
Thank to: MatrixDJ96 (XDA user who provided link) for him posting this:
Source:
http://forum.xda-developers.com/showthread.php?t=2400342
Download Link:
UniversalOdexScriptV62.zip
Link: https://googledrive.com/host/0B2ftBoBlBHTIWVZITGRMenpQeWM/
Click to expand...
Click to collapse
Tnx alot, , Updated OP,
ozzmanj1 said:
Yeah, I was already on it. Just wanted to let you and everyone know first. Soon as I find an odex file I will post a link here or embed it here.
---------- Post added at 07:38 PM ---------- Previous post was at 07:34 PM ----------
Here is a download link, its from GS4 but it says it works on everything from Froyo+
Thank to: MatrixDJ96 (XDA user who provided link) for him posting this:
Source:
http://forum.xda-developers.com/showthread.php?t=2400342
Download Link:
UniversalOdexScriptV62.zip
Link: https://googledrive.com/host/0B2ftBoBlBHTIWVZITGRMenpQeWM/
Click to expand...
Click to collapse
Forgot to add this important stuff in order to use the odex script, sorry ya'll.
How to odex:
- download file
- go to recovery
- install zip
- reboot
- open terminal emulator (will be installed automaticaly)
- type su to obtain room permission
- type dexo -h to show possible commands for your phone
- type dexo -one of the option that you have decided
Pizza_dox can you add to your OP. Thanks
---------- Post added at 08:57 PM ---------- Previous post was at 08:16 PM ----------
Just a tip. I typed in SU in the terminal emulator that is installed from the script.
Then type in dexo -h and it gives you a list of options. If you want to odex your whole rom type in:
dexo -all
Then hit enter give it a minute, then it will reboot and you are done.

[N5] [FKU and PAM apps] Default kernel and Per App Mode Swaps.

So, In an attempt to get the configuration talk out of @franciscofranco's kernel thread, I decided to open this "swap meet"
As you may know I've wrote a couple scripts to make it easier to pull a backup of the kernel settings available through the franco kernel updater app.
Preparing files for sharing
Kernel Settings
so, if you want to share your kernel settings, grab the backup-script.sh file from here, run it either through a file manager or a terminal emulator, then head over to /sdcard/settings_backup/ and grab the restore-script.sh file, rename it to <your_user_name-defaults.sh> and post a link to it here.
Per App Modes
If you want to share you Per-App Modes settings, you'll need to use either the franco kernel updater or his stand alone Per-App Modes app, either way, the process is the same, just the file paths are a little different.
FKU App
So, if you use the fku app, go into fku -> Per-App Modes -> Manage your modes and click the BACKUP MODES in the top right corner. This creates an xml file of all your per app settings (one file per mode). These files are stored in /sdcard/franco.kernel_updater/saved_per_app_modes
Create a zip file including the modes you want to share and post it here.
Stand Alone Per-App Modes App
The process for using the stand alone app is the same. Per-App Modes -> Manage, and click BACKUP MODES in the top right corner again, this creates another batch of .xml files... Only they're stored in /sdcard/per-app_modes/saved_per_app_modes/
Once again, Create a zip file of the modes you want to share and post here.
Using Shared Settings
Okay, so you've downloaded the scripts and zips that you want to try out... how do you use them..
Kernel Settings
The scripts are easy, just run them (as root) through a file manager or terminal emulator.. then use fku or an init.d system to set the changes on boot if you want.
Per App Modes
The process for using the downloaded zips is just the reverse of sharing them...
Unzip the file and place the .xml files in the appropriate folder (/sdcard/franco.kernel_updater/saved_per_app_modes if you use fku, or /sdcard/per-app_modes/saved_per_app_modes/ for the standalone Per-App Modes app)
Then go into into your app, back to the manage page, where we clicked the BACKUP MODES last visit, only this time, click the LOAD MODES button.
Now, if you had copied the .xml file to the right folders, you should see the new PAM modules loaded into the list.
I will try to keep my signature link up to date with posted settings, and try to keep an eye out for identical or substantially similar settings.
For those using mobile apps and can't see signatures, here is the link to the scripts.
the backup-script.sh file is in the scripts folder, kernel and pam settings are in the settings folder.
Custom Paths for Per-App Modes
One thing that the stand alone app brought that hasn't (officially?) been ported back to the fku app is custom paths...
Giving you the ability to use any tunable setting in your Per-App Modes. --now in fku
While you can add and edit these easily through the stand alone app (and one reason why I think you should get it) once you know how the files work, thy can also be used in the main fku app...
Because of this, I am somewhat hesitant to give out the directions without approval from franciscofranco... Per-App Modes is a paid app of his and I would hate to take revenue out of his pocket.
Okay, since @franciscofranco has given me permission to release this, here we are...
This Zip file contains all the (useful) per app mode custom paths... to use this DO NOT FLASH IT... this is just a simple zip, nothing else... just unzip it in the right location...
If you use the fku app, then you need to unzip it and move/copy the files from the zipped folder to the franco.kernel_updater/per-app_custom_paths folder.
If you use the standalone per app modes then follow the same directions as fku, but put the files in the per-app_modes/per-app_custom_paths folder
Cautions and Warnings
-Any and all zips you find in this thread should NOT be flashed via recovery, don't try, bad things may happen...
-Permission errors may occur when running scripts from this thread as root. I haven't been able to figure out why, but some roms seems to set various file permissions to 444 instead of the 664 that my script expects... if you do encounter this situation, let me know and I'll give you a quick fix for it (requires adding a line to the scripts)
I haven't added the fix to my backup-script yet because I'm curious what files they are.. I've encountered 2 files so far
- Upon further testing, we've learned that root browser (app) might not work to run these scripts... adb shell and terminal emulator are working properly though. (backup script needed a small tweak as well)
Kernel setting scripts
Nexus 5
STOCK Settings
r46
aow1980
April 17, 2014
The Gingerbread Man
April 13, 2014
Tzfardaya
April 13, 2014
Vomer
July 22, 2014
Per-App Modes
The Gingerbread Man
April 13, 2014
Francisco Franco
May 11, 2014 - Low Power
May 12, 2014 - Games, Low Power
Vomer
May 11, 2014 - Low Power
Subscribed
Sent from my Nexus 5 using XDA Premium 4 mobile app
Subscribed! This is gonna be good! I'll upload a few of my setups soon!
Interesting Kernel settings , will give it a try and test your script. Thanks for sharing. Good luck with your thread
Tapatalk Team SlimRoms
This would be the perfect place to share some custom paths too
Subscribed and I'll see about linking to this thread from my learner lounge
Sent from my Nexus 5 using Tapatalk
The Gingerbread Man said:
This would be the perfect place to share some custom paths too
Subscribed and I'll see about linking to this thread from my learner lounge
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Yeah, I've got a zip of ALL the custom paths ready, just working on the write up for them...
and trying to solve a small moral dilemma with them...
This thread could also be used for all the supported fku devices if you were to split up the op into several device specific sections and ask about getting the thread moved to Android General forum. New posts can also be inserted on your behalf but you need to contact a moderator for both of these...
Sent from my Nexus 5 using Tapatalk
The Gingerbread Man said:
This thread could also be used for all the supported fku devices if you were to split up the op into several device specific sections and ask about getting the thread moved to Android General forum. New posts can also be inserted on your behalf but you need to contact a moderator for both of these...
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
I know, but I don't have the other devices to get the scripts set up for it.. and I'm more interested in working the nexus 5 right now..
I would have no problem if others wanted to use my scripts as a base for writing their own for swapping
Tzfardaya said:
Per-App Modes
The Gingerbread Man
April 13, 2014
Click to expand...
Click to collapse
FYI, getting a bad zip file here, but the tgbm.zip in your sig works just fine
(damn that was hard to write with auto correct on SwiftKey. Lol.)
Sent from my Nexus 5 using XDA Premium 4 mobile app
WettbackMartyr said:
FYI, getting a bad zip file here, but the tgbm.zip in your sig works just fine
(damn that was hard to write with auto correct on SwiftKey. Lol.)
Sent from my Nexus 5 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
heh, yeah, swiftkey autocorrection is a pain at times..
but I just downloaded through both the pc and nexus 5 and got clean downloads of that zip...
I'm not sure if the two gingerbread zip are different, but he just sent me the current batch today... (hence the date in the name) the others are from when I first worked on the scripts
Tzfardaya said:
heh, yeah, swiftkey autocorrection is a pain at times..
but I just downloaded through both the pc and nexus 5 and got clean downloads of that zip...
I'm not sure if the two gingerbread zip are different, but he just sent me the current batch today... (hence the date in the name) the others are from when I first worked on the scripts
Click to expand...
Click to collapse
Hmmmmmm :-/ I just can't get a good download on my Nexus 5. I'm not complaining tho, just trying to help for other people that may encounter the same. I got the scripts on my end one way or another.
Sent from my Nexus 5 using XDA Premium 4 mobile app
WettbackMartyr said:
Hmmmmmm :-/ I just can't get a good download on my Nexus 5. I'm not complaining tho, just trying to help for other people that may encounter the same. I got the scripts on my end one way or another.
Sent from my Nexus 5 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Try this one https://docs.google.com/file/d/0B2ar5BB6clkDQ0JfMVQ3NGtucEU/edit?usp=docslist_api I probably won't keep it in my drive long but feel free to get it while its there
Sent from my Nexus 5 using Tapatalk
How do I run (as root) or file manager for script ?where do I put the script file for kernel settings? I open the .sh file and it open and I see just texted files
Sent from my Nexus 5 using xda app-developers app
Just tested The Gingerbreads configuration and I must say I definitely see an improvement from the settings I had previously set. Nice job.
The Nexus 5 advocate (Team Inferno)
Ramone360 said:
How do I run (as root) or file manager for script ?where do I put the script file for kernel settings?
Sent from my Nexus 5 using xda app-developers app
Click to expand...
Click to collapse
It doesn't matter where the scripts are ran from, you run them either by selecting them in the file browser or running the following commands in a terminal emulator.
Code:
su
Then
Code:
sh <script-name>
Just realize that running the script alone will not keep the settings across reboots...
You need some other way to persist the settings... Either using fku or an init.d system.
My recommendation is fku, use these scripts to set the values all at once, then use the fku set on boot toggles.
All a shell script is is a text file with a series of shell commands, it's only purpose is to run a series of commands in a row to prevent forgetting one or making typos... It's like the old dos/Windows batch commands...
Tzfardaya said:
It doesn't matter where the scripts are ran from, you run them either by selecting them in the file browser or running the following commands in a terminal emulator.
Code:
su
Then
Code:
sh
Just realize that running the script alone will not keep the settings across reboots...
You need some other way to persist the settings... Either using fku or an init.d system.
My recommendation is fku, use these scripts to set the values all at once, then use the fku set on boot toggles.
All a shell script is is a text file with a series of shell commands, it's only purpose is to run a series of commands in a row to prevent forgetting one or making typos... It's like the old dos/Windows batch commands...
Click to expand...
Click to collapse
Sorry I still don't get it. I'm too familiar with terminal emulater. l always use root explorer. I downloaded the file but now my question is how do I run as root.
Sent from my Nexus 5 using xda app-developers app
Sent from my Nexus 5 using xda app-developers app
To run the script from terminal emulator you'll need to first locate the file.. But you need to be root to launch an .sh file.
Type "su" without quotes and let SuperSU prompt you, make sure you grant it root access.
Navigate to the file by using the "cd" command without quotes.
If you're like me..and downloaded it from a browser or Tapatalk.. You'd type cd storage/sdcard0/Download
Then run "ls" without quotes to make sure the file is in there. Once it is make a note of the name.
Type su FILENAME.sh (replacing filename with the actual name of the file) and hit enter. Should have worked. It did for me. If done correctly you should see no confirmation or error message. In Linux no messages are a good thing.
PS : don't forget to grant root to terminal emulator if you haven't yet. Remember to use FKU or init.d to make settings stick after reboot.
Edited to include "su" command for those who don't know how to run terminal emulator as root.
The Nexus 5 advocate (Team Inferno)

Categories

Resources