How to odex a ROM? - Galaxy S I9000 General

is there any script to odex the rooted ROM?

there is a script you can modify on the G1 Boards. (i assume you mean deoxed?)

masi0 said:
is there any script to odex the rooted ROM?
Click to expand...
Click to collapse
There is but ull lose theming capabilities.

Daneshm90 said:
There is but ull lose theming capabilities.
Click to expand...
Click to collapse
i dont care

masi0 said:
i dont care
Click to expand...
Click to collapse
Ok then try this
Code:
for i in /data/app/*.apk
do
odex=`echo $i | sed -e 's/.apk/.odex/g'`
echo "dexopt-wrapper $i $odex"
dexopt-wrapper $i $odex
done
Then do same but instead of /data/app do /system/app
Once done clean ur dalvik-cache directory and reboot.

Daneshm90 said:
Ok then try this
Code:
for i in /data/app/*.apk
do
odex=`echo $i | sed -e 's/.apk/.odex/g'`
echo "dexopt-wrapper $i $odex"
dexopt-wrapper $i $odex
done
Then do same but instead of /data/app do /system/app
Once done clean ur dalvik-cache directory and reboot.
Click to expand...
Click to collapse
thx will try tonight

Is there a similar script which will de-odex the apks in a rom?

SquidgyB said:
Is there a similar script which will de-odex the apks in a rom?
Click to expand...
Click to collapse
De-odexing must be done using smali/baksmali. Refer to my signature "Auto Deodexer".

Daneshm90 said:
De-odexing must be done using smali/baksmali. Refer to my signature "Auto Deodexer".
Click to expand...
Click to collapse
Thanks Daneshm90

Related

how to remove specific apps?

im kinda trying to learn a little but im running gumbo 1.5c and wanting to remove certain apps built in.
such as footprints, sprint tv, nascar etc..
download flips kitchen and you can remove the apps you want.
Be rooted and mount in cmd
adb shell
cd /system/app/
ls
Find apk name
rm appname.apk (CASE SENSITIVE)
reboot (After removing all desired apps)
epitaphromance said:
adb shell
cd /system/app/
ls
Find apk name
rm appname.apk (CASE SENSITIVE)
reboot (After removing all desired apps)
Click to expand...
Click to collapse
yeah but if he's a noob to this flips kitchen way would be easier.
If he's noob he should take a few mins to learn. But yes kitchen=easy. Search "adb For dummies. Actual name of thread. No insult intended.
Thread should close and let it be buried only to be LOOKED AT after a search. Ill be amazed if anything more is said. 5 bucks on questions about rooting and getting to shell are asked.
epitaphromance said:
Thread should close and let it be buried only to be LOOKED AT after a search. Ill be amazed if anything more is said. 5 bucks on questions about rooting and getting to shell are asked.
Click to expand...
Click to collapse
hey i tried those commands you posted it said "permission denied" or something like that, do i have to do this "root?" thing first?
Someone owes me 5. Haha well played
ok tried and i get this
# rm HtcFootprints.apk
rm HtcFootprints.apk
rm: remove 'HtcFootprints.apk'?
rm: cannot remove 'HtcFootprints.apk': Read-only file system
# rm Sprint_Nscar.apk
rm Sprint_Nscar.apk
rm: remove 'Sprint_Nscar.apk'?
gettins those messages?
after the line that says
rm: remove 'HtcFootprints.apk'?
do I hit Y?I tried typing y, yes and just reboot.
samrozzi said:
ok tried and i get this
# rm HtcFootprints.apk
rm HtcFootprints.apk
rm: remove 'HtcFootprints.apk'?
rm: cannot remove 'HtcFootprints.apk': Read-only file system
# rm Sprint_Nscar.apk
rm Sprint_Nscar.apk
rm: remove 'Sprint_Nscar.apk'?
gettins those messages?
after the line that says
rm: remove 'HtcFootprints.apk'?
do I hit Y?I tried typing y, yes and just reboot.
Click to expand...
Click to collapse
make sure your rooted and use flips kitchen, trust me. one click and reboot and your done.
fixxxer2008 said:
make sure your rooted and use flips kitchen, trust me. one click and reboot and your done.
Click to expand...
Click to collapse
does the kitchen work for gumbo 1.5? i'm pretty sure its designed to work with fresh, as i know it wouldn't work on modaco's rom.
the cmd prompt commands go
Code:
adb remount
adb shell
then you end up with the # prompt. from there follow the
Code:
cd /system/app/
ls
Find apk name
rm appname.apk (CASE SENSITIVE)
reboot (After removing all desired apps)
and make sure to reboot afterwards
samrozzi said:
ok tried and i get this
# rm HtcFootprints.apk
rm HtcFootprints.apk
rm: remove 'HtcFootprints.apk'?
rm: cannot remove 'HtcFootprints.apk': Read-only file system
# rm Sprint_Nscar.apk
rm Sprint_Nscar.apk
rm: remove 'Sprint_Nscar.apk'?
gettins those messages?
after the line that says
rm: remove 'HtcFootprints.apk'?
do I hit Y?I tried typing y, yes and just reboot.
Click to expand...
Click to collapse
Sounds like your running it through the emulator on the phone. Do on computer cmd prompt
yeah but with his kitchen dont you have to be running a flipz rom?
samrozzi said:
yeah but with his kitchen dont you have to be running a flipz rom?
Click to expand...
Click to collapse
i don't believe so?
fixxxer2008 said:
i don't believe so?
Click to expand...
Click to collapse
i'm prettttty sure it at least has to be based off fresh in order to work right, as i said the modaco 2.2 rom wouldn't work for me
Thread totally didn't close....
epitaphromance said:
Thread totally didn't close....
Click to expand...
Click to collapse
lol
you were right.
but seriously i searched "remove sprint apps" and there were 34 results.
this in particular is the thread i used
thanks thedudejdog and everyone else, got it to work. idk why didnt work before.
epitaphromance said:
Thread totally didn't close....
Click to expand...
Click to collapse
why should it close?
oh also the .odex files?
like i removed the footprints.apk can i remove the odex files?

Custom BootAnimation.zip does not work on MCRr4 FroYo with Sense

Hey guys i went and added a bootanimation.zip i made into /data/local directory but i noticed that my rom overlooks it and boots the default animation...the animation i tried wasworking with the mcr3.1 so it's not animation's fault.....is this feature disabled in this rom version ??????
lambrospower said:
Hey guys i went and added a bootanimation.zip i made into /data/local directory but i noticed that my rom overlooks it and boots the default animation...the animation i tried wasworking with the mcr3.1 so it's not animation's fault.....is this feature disabled in this rom version ??????
Click to expand...
Click to collapse
Doesn't work on any FroYo Sense roms, and either does flashing the zip. Adb works though I think.
Sent from my Desire using XDA App
try pushing it to system/media, without running that ROM, I can't tell where it has to be pushed, but all it means is that it must be pushed somewhere else
ok i pushed it to /system/customize/resource and it's working great
try my solution i postet @ modaco forums
just boot up your desire in recovery mode and first mount the system
mount system
Click to expand...
Click to collapse
change directory to /system/customize/resource
cd /system/customize/resource
Click to expand...
Click to collapse
then just setup the syslink
(if you get an error that there is already a bootanimation.zip just delete it with)
rm -r bootanimation.zip
Click to expand...
Click to collapse
ln -s /data/local/bootanimation.zip bootanimation.zip
Click to expand...
Click to collapse
CHECK TWICE THE CORRECT PATH. THE SYMLINK MUST BE MADE IN /system/customize/resource
check it simply with
ls -l
Click to expand...
Click to collapse
scroll a bit up and you should see: bootanimation.zip -> data/local/bootanimation.zip
if thats fine, your are done.
just put any bootanimation.zip to data/local and it should be shown @ startup. I only tested it @ The MCR r5 so im not sure if it works for other roms as well.
just push your favorite boot animation to /data/local and it *should* work.
Please confirm if it works.
hey man i used the guide in modaco but by mistake you told me to do the opposite one.........i symlinked the /data/local/bootanimation.zip to follow /system/customize/resource/bootanimation.zip
how do i delete this one ????? and if this works then i guess the opposite works too so i think we might have a solution
ok man so let's go
the command to delete the symlink is
ln -f instead of ln -s so problem fixed
then i created the correct symlink and pushed my bootanimation.zip and android_audio.mp3 (i symlinked that too) into /data/local
and now EVERYTHING WORKS AWSOMELY even the sound
Thanks a lot my friend!!!!!
nice to hear it works
if you made some mistake just go to /data/local and /system/customize/resource
and delete bootanimation.zip
rm -r bootanimation.zip
Click to expand...
Click to collapse
you can check it with ls -l should be gone then.
Its kinda weird. If i Push the Bootanimation to /data/local and /system/customize/resource it seems not to work. But if i symlink its working.
Whatever. No need Recovery anymore. Just push whatever you want to /data/local
@warrie87:
Thanks!!!
Works great with your tutorial ! tested on ModaCo R7.
Gaspedal said:
@warrie87:
Thanks!!!
Works great with your tutorial ! tested on ModaCo R7.
Click to expand...
Click to collapse
Or.....
Download boot animation changer from the market, then goto the web site Simproduction, where you will find a handy update.zip that has the exact symlink in it, in a flashable zip.
Handy

Decompiling/Recompiling Launcher2.apk [HELP!]

Hey everyone. I'd like to decompile/recompile the Launcher2.apk from Paul (MoDaCo)'s rip of the Gingerbread system. I'm trying to fix the annoying fade time on the 2D app drawer for the launcher. However, I'm running into problems.
Here's my process:
apktool d -f com.modaco.android.launchergb-1.apk
Move through the com.modaco.android.launchergb-1 folder to res/values/integers.xml
Change fade in and fade out time to "300" instead of "700".
apktool b -f com.modaco.android.launchergb-1
Copy build/apk/resources.arsc to the original com.modaco.android.launchergb-1.apk using WinRAR.
Attempts to install all fail. When I try "adb install" I get this error: Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES]
You try ApkManager by daneshm90?
Sent from my phone
tnpapadakos said:
You try ApkManager by daneshm90?
Click to expand...
Click to collapse
Doesn't seem to work either.
You need to sign the package first.
jarsigner -verbose modradio.apk mykey
Check the METAINF/ folder in the apk of the newly built one and delete the extra files from the original one. Then you need to resign the edited apk. I think there should just be MANIFEST.MF, delete the CERT.* files. And when you resign it it should make new ones, in this case above it would be MYKEY.RSA and MYKEY.SF. Not too familir with it, but try that out.
Keep in mind that you have to resign it after any modifications, so do it last and it should work.
This thread does a good job guiding you though compiling/decompiling an apk.
http://forum.xda-developers.com/showthread.php?t=725870
trimeijer said:
You need to sign the package first.
jarsigner -verbose modradio.apk mykey
Check the METAINF/ folder in the apk of the newly built one and delete the extra files from the original one. Then you need to resign the edited apk. I think there should just be MANIFEST.MF, delete the CERT.* files. And when you resign it it should make new ones, in this case above it would be MYKEY.RSA and MYKEY.SF. Not too familir with it, but try that out.
Keep in mind that you have to resign it after any modifications, so do it last and it should work.
This thread does a good job guiding you though compiling/decompiling an apk.
http://forum.xda-developers.com/showthread.php?t=725870
Click to expand...
Click to collapse
Thank you so much for the help. In the thread you mentioned, I'm stuck at this point:
now type the following commands in this order:
this command changes all occurances of htc/fm to htc/modradio in your xml and .java files.
find ./ -type f | xargs perl -pi -e 's/htc\/fm/htc\/modradio/g'
this command changes all occurances of htc.fm to htc.modradio
find ./ -type f | xargs perl -pi -e 's/htc.fm/htc.modradio/g'
Click to expand...
Click to collapse
If my filename is com.modaco.android.launchergb-1 and the application name is com.modaco.android.launchergb, what do I do to make these commands work.
Would it be:
find ./ -type f | xargs perl -pi -e 's/modaco\/launchergb/modaco\/launchermod/g'
??

Tweak init.rc

Is it possible to modify init.vedana.rc? I see some possibilities for tweaking in there...
maybe? in the prior devices i've used, init.rc usually resets itself on bootup.
minotauri said:
maybe? in the prior devices i've used, init.rc usually resets itself on bootup.
Click to expand...
Click to collapse
Yes init.rc seems to "reset" at startup.
Do you know any ways around that?
Or another way to insmod a kernel module at startup?
Cheers
lallare said:
Yes init.rc seems to "reset" at startup.
Do you know any ways around that?
Or another way to insmod a kernel module at startup?
Cheers
Click to expand...
Click to collapse
init.rc is in the boot.img, there's no way to mod this file atm cause we can't flash a new boot.
You may use /system/etc/install-recovery.sh to insmod your module(s).
vache said:
init.rc is in the boot.img, there's no way to mod this file atm cause we can't flash a new boot.
You may use /system/etc/install-recovery.sh to insmod your module(s).
Click to expand...
Click to collapse
Thanks for a fast reply!
No such file there, should I just add it?
init.goldfish.sh is there, but I don't see it trying to execute the insmod I added there.
The file is not located in root (where there is the init.rc), you have to navigate to /system/etc.
vache said:
The file is not located in root (where there is the init.rc), you have to navigate to /system/etc.
Click to expand...
Click to collapse
Yes, thanks. Still not there..
Rooted Iconia A500
/system/etc # ls
NOTICE.html.gz
apns-conf.xml
asound.conf
bluetooth
bootsound.wav
dbus.conf
dhcpcd
event-log-tags
firmware
gps
gps.conf
hosts
init.goldfish.sh
media_profiles.xml
nvram.txt
permissions
ppp
security
updatecmds
vold.fstab
wifi
/system/etc #
So create it and chmod it to 4755.
Try to insmod some module with it. (you can check with "lsmod")
vache said:
So create it and chmod it to 4755.
Try to insmod some module with it. (you can check with "lsmod")
Click to expand...
Click to collapse
Works perfectly!
Thanks!
very good people, can you explane for dumbs how to insmod in boot. It somewhere close but not cleare.
Thanks

[Q] galaxy y s5360 DDMD1 problem

I have flashed ddmd1(latest stock firmware) using odin. After that flashed the DE-ODEX zip file using CWM . After starting the device, when switching on the WIFI, rom stucked, gone into a startup loop . Same happening with the ODEX version . ***Need help***
Also cant flash any custom kernel to DDMD1. If there's any in somebody's knowing please share.
surajbecks said:
I have flashed ddmd1(latest stock firmware) using odin. After that flashed the DE-ODEX zip file using CWM . After starting the device, when switching on the WIFI, rom stucked, gone into a startup loop . Same happening with the ODEX version . ***Need help***
Also cant flash any custom kernel to DDMD1. If there's any in somebody's knowing please share.
Click to expand...
Click to collapse
which deodex zip u used?
also to get wifi working, flash this through cwm. mount everything before flash. credits: @whitexp
SaketJoshi said:
which deodex zip u used?
also to get wifi working, flash this through cwm. mount everything before flash. credits: @whitexp
Click to expand...
Click to collapse
the odex and de-odex specified in the link below
http://forum.xda-developers.com/showthread.php?t=2351623
surajbecks said:
the odex and de-odex specified in the link below
http://forum.xda-developers.com/showthread.php?t=2351623
Click to expand...
Click to collapse
you may follow this guide to deodex your ddmd1. tested and 100% working
u need rooted phone
just in the adb shell codes,
use these codes:
remember to put email.apk and email.odex in done-app
Code:
adb shell
su
stop
mount -o rw,remount /system/ /system/
rm /system/app/*.odex
busybox cp /sdcard/done_app/*.* /system/app/
rm /system/framework/*.odex
busybox cp /sdcard/done_frame/*.* /system/framework/
mount -o ro,remount /system/ /system/
reboot
SaketJoshi said:
you may follow this guide to deodex your ddmd1. tested and 100% working
u need rooted phone
just in the adb shell codes,
use these codes:
remember to put email.apk and email.odex in done-app
Code:
adb shell
su
stop
mount -o rw,remount /system/ /system/
rm /system/app/*.odex
busybox cp /sdcard/done_app/*.* /system/app/
rm /system/framework/*.odex
busybox cp /sdcard/done_frame/*.* /system/framework/
mount -o ro,remount /system/ /system/
reboot
Click to expand...
Click to collapse
what will be inside done_frame folder.
why copying email.odex
surajbecks said:
what will be inside done_frame folder.
why copying email.odex
Click to expand...
Click to collapse
done_app will have all the deodexed apps like settings, dialer, phone and others
done_frame will have framework files like framework-res, android.policy.jar
as email cannot be deodexed, we need to copy both email.apk and email.odex, else you'll get a bootloop
SaketJoshi said:
done_app will have all the deodexed apps like settings, dialer, phone and others
done_frame will have framework files like framework-res, android.policy.jar
as email cannot be deodexed, we need to copy both email.apk and email.odex, else you'll get a bootloop
Click to expand...
Click to collapse
so, do i need any framework files............. or just leave it blank
surajbecks said:
so, do i need any framework files............. or just leave it blank
Click to expand...
Click to collapse
just follow the instructions in the link. you cannot leave it blank. also remember to copy email.odex and .apk in done_app and use the code i provided
and everything will be fine
SaketJoshi said:
just follow the instructions in the link. you cannot leave it blank. also remember to copy email.odex and .apk in done_app and use the code i provided
and everything will be fine
Click to expand...
Click to collapse
which link ............... ????????????????????
surajbecks said:
which link ............... ????????????????????
Click to expand...
Click to collapse
you may follow this guide to deodex your ddmd1. tested and 100% working
u need rooted phone
just in the adb shell codes,
use these codes:
remember to put email.apk and email.odex in done-app
Code:
adb shell
su
stop
mount -o rw,remount /system/ /system/
rm /system/app/*.odex
busybox cp /sdcard/done_app/*.* /system/app/
rm /system/framework/*.odex
busybox cp /sdcard/done_frame/*.* /system/framework/
mount -o ro,remount /system/ /system/
reboot
sorry frnd, its near about 3.30am here and i would like to sleep. press thanks if i helped you.

Categories

Resources