[Q] Does D'odexing help the phone? - Captivate Q&A, Help & Troubleshooting

I heard of D'Odexing your phone......I know it's like a mirror file for lack of a better description needed to run things but I have heard combing the two makes for better perfrormance. If this is true.....how does it work and is there a "one click" way to do it......have had great success rooting and doing other things without using my PC. Thanks in advance.

Find a rom with de-odexed apks.
It's not really worth doing it yourself.

sturmeh said:
Find a rom with de-odexed apks.
It's not really worth doing it yourself.
Click to expand...
Click to collapse
There's a deodexed rom in here somewhere.... I know a few of us were trying to port the Vibrant one over to the Captivate, but the creator of the Vibrant one did it for the Captivate. Just search in the Development section.
And btw, sturmeh, your avatar is amazing... hahaha

Karl_Tx said:
I heard of D'Odexing your phone......I know it's like a mirror file for lack of a better description needed to run things but I have heard combing the two makes for better perfrormance. If this is true.....how does it work and is there a "one click" way to do it......have had great success rooting and doing other things without using my PC. Thanks in advance.
Click to expand...
Click to collapse
Google is a wonderful tool - it saves one from many misconceptions:
From Droid Forum
De-odex: Apk files have respective odexes that devs use to supposedly save space. Deodexing means you convert it back to a .dex file and put it back inside the apk. This allows you to easily replace files (not having to worry about odexes), but the main point was to deodex services.jar so that you can change all text to different colors (such as the clock color to white) and to deodex services.jar, you need to deodex everything.
In simple terms de-odexing lets you easily theme things - I have never seen it mentioned in discussions on performance.

Fortune090 said:
There's a deodexed rom in here somewhere.... I know a few of us were trying to port the Vibrant one over to the Captivate, but the creator of the Vibrant one did it for the Captivate. Just search in the Development section.
And btw, sturmeh, your avatar is amazing... hahaha
Click to expand...
Click to collapse
It was difficult to get barcode scanner to read that.
EDIT: I don't know if you created that or not, but I totally just stole it and made it my profile picture on facebook (I didn't have one before). I'll have to look for an app that makes QR codes, that could be a lot of fun!

QuickMark from the Market makes QR codes.

Related

Best Practices for ROM Chefs

Since I've been playing with a few different ROMs lately, and since I've done quite a lot of dabbling with ROM cooking in the past, but prefer to customize my build as I go along rather than make a flashable zip (I'm selfish that way), here are some best practices, most of which are quite easy that I've noticed VERY few devs do (congrats to the ones that do, though!).
1. For Kernel Devs: anything in the /sbin directory that's built into the ramdisk supercedes anything in any other directory. Therefore, if there's a crappy version of su in /sbin, root won't behave as expected. If there's a crappy version of redbend_ua in it, anyone who wants to use commandline to flash stuff will need to call the full path to a new redbend_ua.
Make sure everything in the sbin directory is up to date and the proper version.
2. For Deodexed builds especially: Please. Zipalign EVERYTHING. Including the .jar files in /system/framwork. ESPECIALLY framework-res.apk and twframework-res.apk. Doing so will not only optimize memory usage but also make the entire experience noticeably smoother and faster.
3. Check the version of busybox and SU that you include with rooted ROMs, if you include a very old or incorrect version (or a not yet supported version) things can get very weird, and applications that require root may not function properly.
4. As one of the people who introduced the playlogos idea to this particular forum, I strongly recommend not using it anymore; doing so can cause a race condition. Pretty much everyone these days is using a custom kernel anyways; put init scripts in init.d. It's the right thing to do.
That's about it. I appreciate all the hard work everyone puts into their ROMs, but I consistently find myself just building stuff from the ground up, to a large extent because of things like this. Make of it what you will, and happy cooking!
Added to the directory under the Useful Links section.
anomalous3 said:
4. As the father of the playlogos1 script, I can honestly say that it was an ugly hack that served a purpose before we had any other way of running init scripts. I strongly recommend not using it anymore; doing so can cause a race condition. Pretty much everyone these days is using a custom kernel anyways; put init scripts in init.d. It's the right thing to do.
Click to expand...
Click to collapse
Good Post & Yeah Yeah I know... I just do what easy at time
But, only thing that struck a Cord is Post 4.
father of the playlogos1 script
Click to expand...
Click to collapse
Unless your name is Kam187, you can say this ..
We been Hi-Jacking the playlogo since the Behold2 came out
But enough being an Ass... Very good Post & I'll keep this in mind the next time I release something... Do what's best & not what's the easiest
Thanks for everything man..
~Eugene
anomalous3 said:
2. For Deodexed builds especially: Please. Zipalign EVERYTHING. Including the .jar files in /system/framwork. ESPECIALLY framework-res.apk and twframework-res.apk. Doing so will not only optimize memory usage but also make the entire experience noticeably smoother and faster.
Click to expand...
Click to collapse
Thanks for the post. Just a quick question about zipaligning. I like to modify my framework-res.apk with a combination of various themes, icons, etc. Each time I do this I gather, would it be a good idea to zipalign, or should this only be intended following a recompile of the framework?
What's the basic rule of thumb for zipaligning? I once read that system apps should be neither re-signed nor zipaligned.
I zip-align everything when I theme.. Only time I have ever had a problem was with our cam app...
Sent from my SGH-T959 using XDA App
floepie said:
Thanks for the post. Just a quick question about zipaligning. I like to modify my framework-res.apk with a combination of various themes, icons, etc. Each time I do this I gather, would it be a good idea to zipalign, or should this only be intended following a recompile of the framework?
What's the basic rule of thumb for zipaligning? I once read that system apps should be neither re-signed nor zipaligned.
Click to expand...
Click to collapse
the second you modify anything in the apk, you need to zipalign. modification unaligns the work zipalign does.
i really don't think there is a case against zipaligning.
This is all quite interesting. I wonder if Metamorph zipaligns after it overwrites the PNGs and direct replaceable XMLs in their compiled form?
floepie said:
This is all quite interesting. I wonder if Metamorph zipaligns after it overwrites the PNGs and direct replaceable XMLs in their compiled form?
Click to expand...
Click to collapse
No I don't think it does.. But you can always use ninjamorph afterwards and zip align..
Sent from my SGH-T959 using XDA App
eugene373 said:
Good Post & Yeah Yeah I know... I just do what easy at time
But, only thing that struck a Cord is Post 4. Unless your name is Kam187, you can say this ..
We been Hi-Jacking the playlogo since the Behold2 came out
But enough being an Ass... Very good Post & I'll keep this in mind the next time I release something... Do what's best & not what's the easiest
Thanks for everything man..
~Eugene
Click to expand...
Click to collapse
Ah, my bad. I stumbled upon the idea independently and didn't realize other people had already figured it out (I should've, only so many ways to do something like that).
OP edited for accuracy.
Also it's been my experience that metamorphs don't seem to break the alignment, though I'm planning on doing some experimentation to see if that's always the case.
anomalous3 said:
Ah, my bad. I stumbled upon the idea independently and didn't realize other people had already figured it out (I should've, only so many ways to do something like that).
OP edited for accuracy.
Also it's been my experience that metamorphs don't seem to break the alignment, though I'm planning on doing some experimentation to see if that's always the case.
Click to expand...
Click to collapse
apparently zipalign is included on the phone? so it runs zipalign. http://www.google.com/codesearch/p?...http://android-metamorph\.googlecode\.com&d=0
yincrash said:
apparently zipalign is included on the phone? so it runs zipalign. http://www.google.com/codesearch/p?...http://android-metamorph\.googlecode\.com&d=0
Click to expand...
Click to collapse
makes sense. A lot of builds don't come with zipalign though, but I always just throw it in my /system/bin. Ooh, might add a new (more optional item) to the list: add some of the CM libs and binaries like zipalign, parted, etc.
anomalous3 said:
Ah, my bad. I stumbled upon the idea independently and didn't realize other people had already figured it out (I should've, only so many ways to do something like that).
OP edited for accuracy.
Also it's been my experience that metamorphs don't seem to break the alignment, though I'm planning on doing some experimentation to see if that's always the case.
Click to expand...
Click to collapse
I always have issue's with .9's after zipaligning & have to replace with the originals... Have you have this happen?
eugene373 said:
I always have issue's with .9's after zipaligning & have to replace with the originals... Have you have this happen?
Click to expand...
Click to collapse
haven't had this problem, are you also pngopting? The .9s don't need/want to be pngopted, and I've noticed that some apks don't handle png optimization very well (such as the frameworks). Anyways, the whole point of png optimization is to get rid of colors that the screen can't display, but we are in the enviable position of having screens that can display alot of colors that other devices can't, plus we have plenty of space.
Yeah I've been running pngopted.. Oops, just noticed that in my script...

Progress towards Notification Menu Power Widget Mod on Inc Framework

Ok. So as of now I have put about 19 straight hours of work into porting this thing over.
http://forum.xda-developers.com/showthread.php?t=836721&page=27
Of the necessary edits, I have all but one single smali completely finished. Im hoping to get this working before i pass out...literally
Thanks to JsiChiSurf for putting this together, the amount of work that went into was MASSIVE and you should all buy him a beer for it. Hes been extremely helpful as I waded though the (no exaggeration) thousands of lines of code he modified.
Also I wanna say thanks to Lou for browsing the thread when I visited his profile page or i wouldnt have noticed it last night.
As of now theres nothing to see, nothing to show you guys, but rest assured, its getting there. this is a HUGE mod, itll take some time. Look for it in my rom that ill be releasing in a week or so.
try apk manager
http://forum.xda-developers.com/showthread.php?t=695701
incubus26jc said:
try apk manager
http://forum.xda-developers.com/showthread.php?t=695701
Click to expand...
Click to collapse
still no go :/
upload your files... I will do it
incubus26jc said:
upload your files... I will do it
Click to expand...
Click to collapse
the issue wasnt actually apktool. looks like jsichisurf didnt have the extended battery mod (1-100%) on his base rom, so the ids from the new images needed for his mod conflict with the pre existing ones from the battery. im trying to find a way to set new ids for them all :/
got all three files to compile, just pushed them to my phone, rebooting now. hopefully i got this successfully ported to the inc framework!
well, if anyone interested in my progress, i almost have t successfully ported over. the framework-res and framework.jar files install without a hitch. the problem is the StatusBarService.smali in services.jar all the other ones ive been able to "port" over, but i havent been able to get it to work with that one, it gets JUST before the final boot and then starts to loop. you know the little vibrate your phone gives right before it goes from the boot animation to the homescreen? it gets that far. im close.
i figure once i get it working ill turn this int to official thread for the mod. wish me luck
Good luck! Looking forward to this. Thanks for all your hard work.
Sent from my ADR6300 using XDA App
Shaundiesel said:
Good luck! Looking forward to this. Thanks for all your hard work.
Sent from my ADR6300 using XDA App
Click to expand...
Click to collapse
i think i just got the services.jar to sucessfully install. just need to see if i can get all three to go nicely together
and of course to make sure i did actually did it right xD
I was just thinking this would be much better then the recent apps list. Cool to are you're working on it. Looking forward to this!
I would just be careful. Lou from the RR Rom ported it and there is some 3g issues. You can find the thread in my Sig.
Sent from my ADR6300 using XDA App
Ultimate Droid ROM has something similar to this. If you're having problems perhaps look at his code and see how he did it? I don't really know anything about this stuff so i apologize if that sounds dumb
morph3k said:
Ultimate Droid ROM has something similar to this. If you're having problems perhaps look at his code and see how he did it? I don't really know anything about this stuff so i apologize if that sounds dumb
Click to expand...
Click to collapse
Chances are its STOLEN...but no being serious, Ultimate Droid is based on the Cyanogenmod's main code base and is another AOSP (built from google's source) rom. As the OP stated, it took so long because he basically had to decompile the already built sense rom, then write what cyanogenmod already had done for the cyanogenmod toggle widgets into that new decompiled code.
djh816 said:
Chances are its STOLEN...but no being serious, Ultimate Droid is based on the Cyanogenmod's main code base and is another AOSP (built from google's source) rom. As the OP stated, it took so long because he basically had to decompile the already built sense rom, then write what cyanogenmod already had done for the cyanogenmod toggle widgets into that new decompiled code.
Click to expand...
Click to collapse
isn't the point of google AOSP to be open source. How do you "steal" open source code?
I believe MIUI has it also
Therev29 said:
I believe MIUI has it also
Click to expand...
Click to collapse
MIUI has a scrollable one and CyanogenMod has it.
colonel187 said:
isn't the point of google AOSP to be open source. How do you "steal" open source code?
Click to expand...
Click to collapse
You take it without giving any kind of credit and pass it off as your own.
Desp1sedIcon said:
You take it without giving any kind of credit and pass it off as your own.
Click to expand...
Click to collapse
I love Despised Icon!! When I heard "The Sunset Will Never Charm Us" I was sold
incubus26jc said:
I love Despised Icon!! When I heard "The Sunset Will Never Charm Us" I was sold
Click to expand...
Click to collapse
I see death metal has its evil following even in the phone forums.
I liked DI more before their last few records.
this would be so cool. i hope you get it.

Add epub books to home screen?

I've seen some search results on google about this but they go nowhere.
Is there a way to get epub books I downloaded onto the home screen? I tried moving it to the books folder on the internal storage but no luck. Hopefully there's a good rooted hack for this.
It kind of depends what you're running (Autonooter or some custom firmware etc), but if you're Autonootered this link should do it for you just fine, and I'm sure with a little more tweaking you could get it to work on other ROMs:
http://forum.xda-developers.com/showthread.php?t=872295
Good luck!
Taeseong said:
It kind of depends what you're running (Autonooter or some custom firmware etc), but if you're Autonootered this link should do it for you just fine, and I'm sure with a little more tweaking you could get it to work on other ROMs:
http://forum.xda-developers.com/showthread.php?t=872295
Good luck!
Click to expand...
Click to collapse
Thanks. I saw this but wasn't keen on creating a widget for ever book I add.
Kayak83 said:
Thanks. I saw this but wasn't keen on creating a widget for ever book I add.
Click to expand...
Click to collapse
Nah there are other options if you are running Stock B&N Firmware, I know someone made a customer framework that allowed It, I will see if i can find that thread.
**Found it, Ok its not a Custom framework it just Editing database files and such.
http://forum.xda-developers.com/showthread.php?t=892444&highlight=SideLoaded+Books
Not for the Faint of heart.
therealguppy said:
Nah there are other options if you are running Stock B&N Firmware, I know someone made a customer framework that allowed It, I will see if i can find that thread.
**Found it, Ok its not a Custom framework it just Editing database files and such.
http://forum.xda-developers.com/showthread.php?t=892444&highlight=SideLoaded+Books
Not for the Faint of heart.
Click to expand...
Click to collapse
Phew. Waaaay beyond my casual ability. Hopefully future ROM's will incorporate this.

[REQ] Galaxy S LWP on Atrix

With all the hype with the new 1.83 update just about over, I was wondering if someone would be able to help me out with something?
I have been searching around trying to find a way to get some of the Galaxy S LWP's to work on the Atrix. Particularly the Ocean Wave with the ripple effect. There are a bunch of apps on the Market by ProSama that are very similar but all claim not to work on the Atrix. Why is this?
For some reason these LWP's don't actually manage to load or for that manner get past the "Loading Live Wallpaper" screen.
From a bit of searching around it looks like possibly one of two things. Either the resolutions are all wrong or the Atrix is missing some library files to make things happen, maybe the "libmnglw-0.8.2.so". Possibly a combination of both plus root access. New to android so I have no idea which.
I have attached all I have and was wondering if someone might have the time to look through them and find out why they may not be working on the phone? The library files are in the zip folders if anyone wants to have a look.
Thanks for any and all help.
I've loaded the lib file as it is required for the wallpapers. You will get a Force Close without it.
No joy though.
I suspect it's an issue with the resolution. I'll have to wait until I get home to dig into one of the packages.
You looking for these from the S2? Just download and install like any other app. They are very nice but they are not quite long enough for landscape. http://www.androidpolice.com/2011/04/25/download-two-live-wallpapers-from-the-samsung-galaxy-s-ii/#
Sent from my Blue Steeled Atrix
Wrong section....should be in themes and apps.
Sent from my MB860 using XDA Premium App
Those are nice, but not the same ones.
But thanks... digging the windmill lwp.
No issues installing those.
Big-A-Rob said:
You looking for these from the S2? Just download and install like any other app. They are very nice but they are not quite long enough for landscape. http://www.androidpolice.com/2011/04/25/download-two-live-wallpapers-from-the-samsung-galaxy-s-ii/#
Sent from my Blue Steeled Atrix
Click to expand...
Click to collapse
I'll give that a shot. Sorry for the wrong thread section.
rjohnstone said:
I've loaded the lib file as it is required for the wallpapers. You will get a Force Close without it.
No joy though.
I suspect it's an issue with the resolution. I'll have to wait until I get home to dig into one of the packages.
Click to expand...
Click to collapse
I really appreciate the help.
Ok... I see why they won't work.
First, the were written for Android 2.1 devices.
Second, the resolution is all wrong for the Atrix, they're hard coded for 800x480 screens.
<csm>
<screen width="800" height="480" />
</csm>
Click to expand...
Click to collapse
[REQ] Devs pls port flying toasters to LWP from windows 3.1 and replace with fliying C***S tyvm devs for your well spent time.
rjohnstone said:
Ok... I see why they won't work.
First, the were written for Android 2.1 devices.
Second, the resolution is all wrong for the Atrix, they're hard coded for 800x480 screens.
Click to expand...
Click to collapse
Kinda what i was thinking. I'll spend some time maybe trying to replace the image with something to test it out. Any thoughts on the library file? Possibly needing root and pushing the file to the correct system folder?
SGTShark said:
Kinda what i was thinking. I'll spend some time maybe trying to replace the image with something to test it out. Any thoughts on the library file? Possibly needing root and pushing the file to the correct system folder?
Click to expand...
Click to collapse
Yep.. you need root so you can push the .so file to system/lib
As for the LP, you'll need to do more than just replacing the images.
The whole rendering is coded to 800x600.
There are several java components that will have to be updated and at least one xml config.
rjohnstone said:
Yep.. you need root so you can push the .so file to system/lib
As for the LP, you'll need to do more than just replacing the images.
The whole rendering is coded to 800x600.
There are several java components that will have to be updated and at least one xml config.
Click to expand...
Click to collapse
I managed to get the lib file in the correct directory. Used gingerbreak and gladenable. Then root explorer.
Played around in the apk resized the image. But that's where it ends for me. I'm a noob when it comes to Java sdk and signing the apk for that matter. I really do appreciate the help thus far.
I guess no time like the present to learn something new.

[Q] I want to "de-phone" my Captivate. Any suggestions on how?

I don't think this question has been asked, so I'll ask it.
I have a Captivate that I dearly love, but has been replaced by my Infuse 4G. I have a young son who loves it as well, but I don't have a SIM card in the phone and I certainly don't want him making emergency calls by accident. He does like to play games and stuff like that on the phone, however.
I realize that I won't be able to use a normal data connection, but since it's on WiFi and never leaves the house anyway, that's irrelevant to me. My question is this -- is there anyway to not only disable, but remove completely the phone features on the Captivate, basically turning it into an Android-version iPod?
Thanks to anyone who knows (or will answer).
There was a dev who did it a while back, it was similar to the android version of the Samsung galaxy player. Check around in the dev section if its not there try making a post in Q&A thread someone will get back to you pretty fast (they always do for me).
silver91342 said:
There was a dev who did it a while back, it was similar to the android version of the Samsung galaxy player. Check around in the dev section if its not there try making a post in Q&A thread someone will get back to you pretty fast (they always do for me).
Click to expand...
Click to collapse
Thanks. I always appreciate the fast response!
Here you are :
http://forum.xda-developers.com/showthread.php?t=1087247
http://forum.xda-developers.com/showthread.php?p=14087277#post14087277
yoonhyeok.bae said:
Here you are :
http://forum.xda-developers.com/showthread.php?t=1087247
http://forum.xda-developers.com/showthread.php?p=14087277#post14087277
Click to expand...
Click to collapse
PERFECT! Exactly what I was looking for. Thanks a million!
remove phone.apk would be an easy fix
edit as the one link states:
Callsettings.apk
CSC.apk
DialerTabActivity.apk
Mms.apk
Phone.apk
Phone_util.apk
TelephonyProvider.apk
SimDetachNotifier.apk
TRusselo said:
remove phone.apk would be an easy fix
edit as the one link states:
Callsettings.apk
CSC.apk
DialerTabActivity.apk
Mms.apk
Phone.apk
Phone_util.apk
TelephonyProvider.apk
SimDetachNotifier.apk
Click to expand...
Click to collapse
I'm going to experiment with it now that I have a basic framework. I (and my son) are fans of MIUI, so I was hoping to stick with that if possible. Going to try it tonight and see how it goes.
Thanks for the reply.

Categories

Resources