Hi everyone
Instructions as follows, based on the one here but modified for Optimus 3D and my personal experience:
Prerequisites:
Rooted Optimus 3D with CWM installed
USB debugging enabled
Root explorer or any similar software (must have R/W access to system)
Android SDK with ADB installed
Java SDK installed
LG USB drivers installed
xUltimate downloaded and unzipped somewhere.
Instructions:
This was tested and working using v21D. YMMV for other roms, depending on what apps can or cannot be deodexed.
BACKUP YOUR ROM USING CWM. THIS IS VERY IMPORTANT. I WILL NOT ACCEPT ANY RESPONSIBILITY FOR ANY BRICKED PHONES.
Connect your phone to your computer.
Move the following apps in /system/apps to /sdcard/odex. These files will refuse to deodex using xUltimate:
Maps.apk and Maps.odex
Phonesky.apk and Phonesky.odex
PolarisOffice.apk and PolarisOffice.odex
PlusOne.apk and PlusOne.odex
VoiceSearch.apk and VoiceSearch.odex
Open Main.exe after extracting xUltimate, enter '5' and hit enter, accepting all prompts.
After some time, the deodexing process will complete and it will turn green and say the process was successful.
Open Root Explorer again, delete ALL of these apps in /system/apps. You'll get them back later after copying the deodexed files over. THIS IS REQUIRED OR YOUR PHONE WILL BOOTLOOP.
ApplicationManager.apk
ApplicationManager.odex
BookmarksWidget.apk
BookmarksWidget.odex
Browser.apk
Browser.odex
Calculator.apk
Calculator.odex
CarHome.apk
CarHome.odex
DrmProvider.apk
DrmProvider.odex
DrmService.apk
DrmService.odex
FavoriteContactsWidget.apk
FavoriteContactsWidget.odex
Finance.apk
Finance.odex
Gmail.apk
Gmail.odex
HiddenMenu.apk
HiddenMenu.odex
HiddenSIMUnlockManu.apk
HiddenSIMUnlockManu.odex
LGercui.apk
LGercui.odex
LGSetupWizard.apk
LGSetupWizard.odex
LGSetupWizardNotiForGB.apk
LGSetupWizardNotiForGB.odex
News.apk
News.odex
oem_install_flash_player.apk
oem_install_flash_player.odex
PicoTts.apk
PicoTts.odex
Protips.apk
Protips.odex
Richnote.apk
Richnote.odex
RichnoteWidget.apk
RichnoteWidget.odex
S3DApps.apk
S3DApps.odex
S3DGallery.apk
S3DGallery.odex
S3DGameAsphalt.apk
S3DGameAsphalt.odex
S3DGameGolf.apk
S3DGameGolf.odex
S3DGameNova.apk
S3DGameNova.odex
S3DGuide.apk
S3DGuide.odex
S3DSpace.apk
S3DSpace.odex
SetupWizard.apk
SetupWizard.odex
SmartShare.apk
SmartShare.odex
Street.apk
Street.odex
Talk.apk
Talk.odex
TodayPlusWidget.apk
TodayPlusWidget.odex
TtsService.apk
TtsService.odex
WeatherWidget.apk
WeatherWidget.odex
WhatsNew.apk
WhatsNew.odex
Click to expand...
Click to collapse
Turn on USB storage mode on your phone, copy done_app and done_frame to the internal SD card.
Turn USB storage mode off, open ADB in command prompt and enter the following commands. Make sure the # or $ signs have appeared after every command before continuing with the next step.
su (allow any superuser requests that appear here)
mount -o rw,remount -t ext4 /dev/block/mmcblk0p7 /system
busybox cp /sdcard/done_app/* /system/app/
busybox cp /sdcard/done_frame/* /system/framework/
rm /system/app/*.odex
rm /system/framework/*.odex
chmod 644 /system/app/*
chown root.root /system/app/*
chmod 644 /system/framework/*
chown root.root /system/framework/*
mount -o ro,remount -t ext4 /dev/block/mmcblk0p7 /system
reboot
Click to expand...
Click to collapse
If mount -o ro,remount -t ext4 /dev/block/mmcblk0p7 /system returns an error that device or resource is busy, ignore it and just reboot.
The first reboot will take a while, be patient.
After the phone reboots, you can move the files from /sdcard/odex back to /system/apps.
You're done! You can install any deodexed theme now
Mostly deodexed v21D files: Mediafire
Extract the files somewhere and follow the instructions from step 7 onwards.
This method should work for most stock roms. Make sure you make another CWM backup after the process to ensure everything remains as is afterwards
Another advantage of an almost fully deodexed rom is that the phone feels so much faster and smoother
EDIT: Verified that the ICS theme does not work with this method Lots of FCs everywhere. Try at your own peril.
Remember to hit thanks below
Related
I seem to be frequently flashing or messing up my G1 so I decided to write some shell scripts to help out but they seem to only half work if at all. Actually I'm not sure what they did because they displayed no output.
This script is supposed to backup the default init.rc and mountd.conf files then replace the existing ones with the modified ones.
Though it does not work.
Code:
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
mkdir /system/sd
busybox cp -a /system/etc/mountd.conf /sdcard/recovery/mountd.conf.bak
busybox cp -a /system/init.rc /sdcard/recovery/init.rc.bak
busybox cp -a /sdcard/recovery/mountd.conf /system/etc/mountd.conf
busybox cp -a /sdcard/recovery/init.rc /system/init.rc
then this is the next set to move the apks and the program caches which doesn't work.
Code:
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
busybox cp -a /data/app /system/sd
rm -r /data/app
ln -s /system/sd/app /data/app
busybox cp -a /data/app-private /system/sd/app-private
rm -r /data/app-private
ln -s /system/sd/app-private /data/app-private
rm -R /data/data/com.android.browser/cache/webviewCache
ln -s /sdcard/cache/webviewCache /data/data/com.android.browser/cache/webviewCache
rm -R /data/data/com.android.vending/cache
ln -s /sdcard/cache/marketCache /data/data/com.android.vending/cache
rm -R /data/data/com.google.android.street/cache
ln -s /sdcard/cache/streetCache /data/data/com.google.android.street/cache
reboot
Plus both run and output no errors either. Who knows what problems I'll run into because I have no idea what they actually did.
Anyone see anything wrong here?
Well I'll help you.
1-) After you back up the mount and stuff and put the other back, you MUST reboot before keep going.
2-)After boot then you can copy the files or make the symlink. I suggest you dont copy the app to the sdcard on teh scrip since they should be there already. so do that manually once then the script just delete the folders and then crate the symlinmks.
I have a menu that does that and I have got some experience as why it works one day and not the other.
Rafase282 said:
Well I'll help you.
1-) After you back up the mount and stuff and put the other back, you MUST reboot before keep going.
Click to expand...
Click to collapse
I took the reboot out after the mountd.conf and init.rc did not appear to copy due to the lack of /dev/mmcblk0p2 hoping to see some sort of output why it did not run. Unfortunately it runs and backs up the files but does not replace them with the modded ones.
Rafase282 said:
2-)After boot then you can copy the files or make the symlink. I suggest you dont copy the app to the sdcard on teh scrip since they should be there already. so do that manually once then the script just delete the folders and then crate the symlinmks.
Click to expand...
Click to collapse
Not copying the apps is a good idea, modified the script to not do so.
Rafase282 said:
I have a menu that does that and I have got some experience as why it works one day and not the other.
Click to expand...
Click to collapse
Does Android require that you do a chmod on all shell scripts first?
On Debian I usually just use sudo sh ./ and it runs the script w/o changing anything on the file permissions so I figured Android would be similar if I just ran them as root. Still I see a lot of people requiring a chmod 777 on any guide referring to running shell scripts.
I will try that and report back with my findings. Thanks for replying.
Does Android require that you do a chmod on all shell scripts first? I just have to type m oon anywhere in the androud shell and my scripts run, for that i put it on /system/bin and do a chmod 4755 to the file. it is still needed to type su before you run the script.
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
mkdir /system/sd
cp /sdcard/media/Data/mountd.conf /system/etc/mountd.conf
cp /sdcard/media/Data/init.rc /system/init.rc
Thats my code for copying the modified files to the right place. So maybe you should try that.
Oh for androoid you dont unless you put it on /system/bin then you will have to use sude and sometiems it still wont run due to lack or permisions so is better to do a chmod 4755
Well I made the changes suggested and did a chmod on all the files prior to running but with no luck.
The odd thing is if I use the shell scripts as a guide list it works perfectly but if I try to launch them as a shell script all sorts of strange undesirable things happen to my phone.
The time consumed trying to use the scripts and recover from what happens from what they do out weight the effects of typing everything in.
joshtheitguy said:
Well I made the changes suggested and did a chmod on all the files prior to running but with no luck.
The odd thing is if I use the shell scripts as a guide list it works perfectly but if I try to launch them as a shell script all sorts of strange undesirable things happen to my phone.
The time consumed trying to use the scripts and recover from what happens from what they do out weight the effects of typing everything in.
Click to expand...
Click to collapse
you can only run the script once .. when the "ln -s" has already been done it has to be undone before trying to run the script again .. otherwise you would be copying the files onto themselves .. not sure if you've tried running it more than once
LucidREM said:
you can only run the script once .. when the "ln -s" has already been done it has to be undone before trying to run the script again .. otherwise you would be copying the files onto themselves .. not sure if you've tried running it more than once
Click to expand...
Click to collapse
These scripts were intended for my usage after a system restore from a update.zip file which wipes /system in the process.
My intentions were to:
1. remount the fs rw
2. copy the original init and mountd files to the sd then copy the modified to their respective places in the system folders then reboot
3. reboot then create the sym links appropriately then move my caches too
Well unfortunately the only thing that works is the backing up of the original init and mountd files.
joshtheitguy said:
These scripts were intended for my usage after a system restore from a update.zip file which wipes /system in the process.
My intentions were to:
1. remount the fs rw
2. copy the original init and mountd files to the sd then copy the modified to their respective places in the system folders then reboot
3. reboot then create the sym links appropriately then move my caches too
Well unfortunately the only thing that works is the backing up of the original init and mountd files.
Click to expand...
Click to collapse
yes .. but you can't create the sym links when they already exist .. running the update.zip only wipes the /system .. not /data .. if the links were there before the update.zip they will be there after
i use xUltimate2.2.1 to deodex jpa all file
http://forum.xda-developers.com/showthread.php?t=700904
adb shell
su
stop
mount -o rw,remount /dev/block/stl6 /system
rm /system/app/*.odex
rm /system/framework/*.odex
cp /sdcard/done_app/* /system/app/
cp /sdcard/done_frame/* /system/framework/
reboot
================
fine done app is 97 file .org app is 117 file
some file not have odex,lost many time in this..
================
try Zipalign now ,is only apk need Zipalign?
http://forum.xda-developers.com/showthread.php?t=594615
Also tried to deodex, I had 97 app files and 22 frame files but I`ve messed the whole thing up with adb (probably because of my small experience with it) so now I need to flash the firmware again
done_frame is 21 file,org have 44 file,framework-res.apk and twframework-res.apk not have odex ,i lost many time this .
try this adb command is work..
DISCLAIMER: I am not responsible for what you do and how that affects your phone.
I know manual deodex tutorials exist out there for *other* phones already, but these instructions are particular to the Droid Charge using things already available on the Charge forum.
These are for Windows machines only as I do not have anything else. It assumes you have converted to ext4, are rooted, and are running a CWM Recovery.
Grab the latest xUltimate version here.
Unzip xUltimate to a folder of its own.
Plug your Charge in via USB and run Main.exe, phone should be recognized and a list of numerical options should be presented to you.
Choose #5 (Pull and Deodex all). This will take quite awhile. Be patient. It will beep and turn green and say "Press any key to continue..." when it is finished.
Exit out of xUltimate and mount the phone as USB Mass Storage.
Copy/Move "done_frame" and "done_app" to the root of your sdcard.
Reboot the phone into CWM Recovery and verify under mounts and storage that /sdcard and /system are mounted.
Open a command prompt window and do the following:
Code:
adb shell
su // You should see a # prompt at this point, if not, you can't continue.
stop
mount -o rw,remount -t ext4 /dev/block/stl10 /system
cp /sdcard/done_app/* /system/app/
cp /sdcard/done_frame/* /system/framework/
rm /system/app/*.odex
rm /system/framework/*.odex
exit // May need to exit twice to get to base command prompt.
adb reboot
Congratulations! Your phone should now be deodexed. You can now utilize something like http://code.google.com/p/smali/ to make changes to .dex files, though this is only recommend if you absolutely know what you're doing.
when i get to cp /sdcard/done_app/* /system/app/
It wont read
Hi,
I developed a custom Settings.apk with some changes.I installed it on emulator it woks fine.But when i install on device,after reboot the Settings application is not visible.I checke using ADB whether it is system/app or not,it is in system/app
but not visible.
I tested on LGP350 device
My steps are
1)Rooted the phone using GingerBreak
2)Take backup of Setting.apk,Settings.odex
3)Remove Setting.apk,Settings.odex from system/app
4)Copied my custom Settings.apk to System/app(i have no Settings.odex )
5)Reboot the device
My command sequence is :-
C:\Users\ramkumar\.android\avd\android_simulator.avd>adb shell
$ su
# mount -o remount,rw -t yaffs2 /dev/block/mtdblock1 /system
# chmod 777 system/app
# exit
$ exit
C:\Users\ramkumar\.android\avd\android_simulator.avd>adb push Settings.apk system/app
C:\Users\ramkumar\.android\avd\android_simulator.avd>adb reboot
After reboot there is no Settings app on my device
Hj, how do you install settings.apk on emulator?
Ramkumar Pinninti said:
Hi,
I developed a custom Settings.apk with some changes.I installed it on emulator it woks fine.But when i install on device,after reboot the Settings application is not visible.I checke using ADB whether it is system/app or not,it is in system/app
but not visible.
I tested on LGP350 device
My steps are
1)Rooted the phone using GingerBreak
2)Take backup of Setting.apk,Settings.odex
3)Remove Setting.apk,Settings.odex from system/app
4)Copied my custom Settings.apk to System/app(i have no Settings.odex )
5)Reboot the device
My command sequence is :-
C:\Users\ramkumar\.android\avd\android_simulator.avd>adb shell
$ su
# mount -o remount,rw -t yaffs2 /dev/block/mtdblock1 /system
# chmod 777 system/app
# exit
$ exit
C:\Users\ramkumar\.android\avd\android_simulator.avd>adb push Settings.apk system/app
C:\Users\ramkumar\.android\avd\android_simulator.avd>adb reboot
After reboot there is no Settings app on my device
Click to expand...
Click to collapse
sorry for my english!
Hj, how do you install settings.apk on emulator?
I try to install settings.apk, but It error.
Please tell me how to install it on emulator.
What emulator do you use?
thanks!
I've a problem installing Java in my 858:
I follow theses steps:
Open Terminal Emulator
su
mount -o remount,rw /dev/block/mtdblock3 /system
cp /sdcard/jbed.apk /system/app
cp /sdcard/libjbedvm.so /system/lib
but at the last command say me the memory is not enought, so retried but say the file exist and is read only, open the explorer i see the file is some kb versus the 3 mb in sdcard, i tried in terminal change permission with chmod in 777 at this file, tried in adb, tried to eliminate but nothing to do, i've smartlucky rom 2.4 (froyo 2.2.2 rooted).
Some suggestion ?