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..
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've tried the method below and it doesn't seem to work........it doesn't give me errors......but it doesn't delete the files that I don't want anymore.
I did try searching the forums but didn't see any posts regarding this....but seeing how new the 1.5 firmware it is...I didn't think there would be a post on it anyway and didn't think the command prompt or the location of these files would change
Any help is appreciated
-Type su
mount -o rw,remount -t yaffs2 /dev/block/
mtdblock3 /system
rm -r /system/media/audio/ringtones
rm -r /system/media/audio/notifications
I did this yesterday, and removed all the stock ringtones and replaced with htc defaults.
I did this from ADB shell, I suppose you can do it from the terminal, matter of fact I'm sure you can.
The trick is to use busybox.
#commands below
busybox rm -rf /system/media/audio/ringtones # remove ringtones
busybox rm -rf /system/media/audio/notifications # removes notifications
# this removed all my ringtones and folders
After that I just used "adb push c:\ringtones /system/media/audio/ringtones"
That simply took whatever .ogg / .mp3 ringtones and put them back on the system memory of my G1.
Using JF 1.5, didn't need to go into recovery or anything.
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
I used the xUltimate-v2.3.3 to make deodex.
Then it comes to two folders "done_app" & "done_frame"
I copy the two folders into my sdcard, and I want to use adb shell to push & replace
files to system/app /frams
down are my situation.
===========================
C:\android-sdk-windows\tools>adb shell
[email protected]:/$ su
su
[email protected]:/# stop
.................................then it stop...I can't do anything
===========================
down are the sample code from internet
============================
adb shell
su
stop
mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system
cp /sdcard/done_app/* /system/app/
cp /sdcard/done_frame/* /system/framework/
rm /system/app/*.odex
rm /system/framework/*.odex
mount -o ro,remount -t ext3 /dev/block/mmcblk1p21 /system
reboot
=====================================
Can you help me ?
I did wrong on what step....
My OS system is windows7 x64 in command line.
dickluo said:
i used the xultimate-v2.3.3 to make deodex.
Then it comes to two folders "done_app" & "done_frame"
i copy the two folders into my sdcard, and i want to use adb shell to push & replace
files to system/app /frams
down are my situation.
===========================
c:\android-sdk-windows\tools>adb shell
[email protected]:/$ su
su
[email protected]:/# stop
.................................then it stop...i can't do anything
===========================
down are the sample code from internet
============================
adb shell
su
stop
mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system
cp /sdcard/done_app/* /system/app/
cp /sdcard/done_frame/* /system/framework/
rm /system/app/*.odex
rm /system/framework/*.odex
mount -o ro,remount -t ext3 /dev/block/mmcblk1p21 /system
reboot
=====================================
can you help me ?
I did wrong on what step....
My os system is windows7 x64 in command line.
Click to expand...
Click to collapse
記得右鍵點擊cmd圖標,選擇 以管理員身份運行。 看看你是不是忘記了這一步~
No use about that.
Maybe I'll try it on winxp system.
Sent from my ME865 using xda premium
Hello!
How I can deodex stock KitKat ROM without CWM/TWRP?
Is this possible via ADB?
I know now how we can deodex our stock without CWM
I was trying this on KitKat but I have LG Seccurity Error
We can deodex files via KitKat deodexer (file in atatchment) and next type these command in ADB:
Code:
adb shell
su
stop
mount -o rw,remount /system/ /system/
cp /storage/external_SD/app/* /system/app/
rm /system/app/*.odex
cp /storage/external_SD/framework/* /system/framework/
rm /system/framework/*.odex
cp /storage/external_SD/framework/webview/paks/* /system/framework/webview/paks/
rm /system/framework/webview/paks/*.odex
cp /storage/external_SD/priv-app/* /system/priv-app/
rm /system/priv-app/*.odex
mount -o rw,remount /system/ /system/
reboot
external_SD is our location of deodexed files