Post Reply

Prompt [SCRIPT][MOD] Odex All apps in /systema/app and /data/app 02v[Odexed ROMS ONLY]

OP la2o

27th September 2014, 01:21 PM   |  #1  
la2o's Avatar
OP Member
Thanks Meter: 68
 
87 posts
Join Date:Joined: Mar 2014
Donate to Me
WORKS ON ALL ANDROID PHONES, YOUR ROM MUST BE ODEXED!!!
Quote:

*I am not responsible for anything that happens to your device after flashing this zip file*
*Use at your own risk*


Hello Everyone!

Today I present to you, the ODEX Script.

Odexes the following folders. /data/app, /system/app, /system/priv-app

What this basically does is odex all of the apps you downloaded or apps that are in the /system/app folder

Benefits:-

1) Apps load faster

2) Apps work better

3) Decreased boot time ;P

Quote:

HOW TO INSTALL?

1) Download the zip file

2) Flash it

3) It is recommended, but not required for this
Clear Cache and Dalvik Cache

4) Open Terminal Emulator. Download it if you don't have it.

*Please do not leave the terminal until the script is done.
Thank you
5) Type "su" then "odex"

6) RESTART TO APPLY CHANGES

6) Enjoy ))

Changelog:-

02v:- Odex all apps in /system/app folder.
No need to restart to fix the apps that have been odexed.
No more error reporting.

01v:- First Version

The Script:-
Quote:

#!/system/xbin/bash

echo "RESTART TO APPLY CHANGES"
echo "Remounting /system/ as rw"
mount -o remount,rw /system
sleep 5

echo "Starting Odexing Apps"

echo "Starting in /data/app folder..."

echo "Started at $( date )"

echo "Deleting /data/app odex files"
sleep 1
echo ""

for y in $( find /data/app -name *.odex); do

rm $y
echo "Deleted $y"

done

echo "Deleting /system/app odex files"
sleep 1
echo ""

for x in $( find /system/app -name *.odex); do

rm $x
echo "Deleted $x"

done


for i in $( ls /data/app ); do


echo $i

o="${i%.*}.odex"

echo $o

if [ "$i" != "mcRegistry" ]; then

dexopt-wrapper "/data/app/$i" "/data/app/$o"

chmod 644 "/data/app/$i"
chmod 644 "/data/app/$o"


fi

done

echo "Finished Completing /data/app Folder"
echo ""
echo "Odexing /system/app folder"
sleep 3

for i in $( ls /system/app ); do

echo $i

o="${i%.*}.odex"

dexopt-wrapper "/system/app/$i" "/system/app/$o"

chmod 644 "/system/app/$i"
chmod 644 "/system/app/$o"

done

echo "Done running the script, current date is $( date )"
sleep 1

Attached Files
File Type: zip La2o Odex App Script 01v.zip - [Click for QR Code] (635.3 KB, 8 views)
File Type: zip La2o_Odex_App_Script_02v.zip - [Click for QR Code] (635.3 KB, 23 views)
Last edited by la2o; 30th September 2014 at 02:20 PM.
The Following 2 Users Say Thank You to la2o For This Useful Post: [ View ]
27th September 2014, 11:32 PM   |  #2  
Senior Member
Thanks Meter: 68
 
297 posts
Join Date:Joined: Jun 2014
So things like updates, will it replace the odex file? Or delete it?

Verstuurd vanaf mijn SM-G900F met Tapatalk
The Following User Says Thank You to Sock12345 For This Useful Post: [ View ]
28th September 2014, 04:43 PM   |  #3  
la2o's Avatar
OP Member
Thanks Meter: 68
 
87 posts
Join Date:Joined: Mar 2014
Donate to Me
Quote:
Originally Posted by Sock12345

So things like updates, will it replace the odex file? Or delete it?

Verstuurd vanaf mijn SM-G900F met Tapatalk

I believe it keeps it, not sure though.

But if you run my script, it deletes the odex. Then remakes it.
Last edited by la2o; 28th September 2014 at 04:48 PM.
The Following User Says Thank You to la2o For This Useful Post: [ View ]
29th September 2014, 09:27 AM   |  #4  
bervin's Avatar
Senior Member
Thanks Meter: 280
 
1,186 posts
Join Date:Joined: Nov 2009
Quote:
Originally Posted by la2o

I believe it keeps it, not sure though.

But if you run my script, it deletes the odex. Then remakes it.

So every time my apps gets updated through playstore i need to run "odex" command again?
The Following User Says Thank You to bervin For This Useful Post: [ View ]
29th September 2014, 09:52 AM   |  #5  
la2o's Avatar
OP Member
Thanks Meter: 68
 
87 posts
Join Date:Joined: Mar 2014
Donate to Me
Quote:
Originally Posted by bervin

So every time my apps gets updated through playstore i need to run "odex" command again?

I don't think so, you don't need to run it every time it app updates
I recommend to run the command every 2 weeks - a month
The Following User Says Thank You to la2o For This Useful Post: [ View ]
Post Reply Subscribe to Thread

Tags
mod, odex, stock, tweak
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Galaxy S 5 General by ThreadRank