Does anyone have the stock email/calendar apks? The motoblur ones. I am using Eclipse 3.0 ROM and I'd prefer to have those than what is in Eclipse. If not, would I have to download a rom (ie. mavrom) and then extract them from that? Should I expect any complications?
I always expect complications when replacing apps / APK's.
If MavRom has blur, then yeah, you should be able to grab them from there. But this raises questions... for me anyway.. like: Which exact files do you need? Do they require some kind of Blur base to operate correctly?)
If you get this going easily, it would be nice to have a how-to!
Related
So I'm hoping that I can get some clarification about how an android rom works exactly, and how things can be modified and such.
My current understanding of a ROM, is that essentially android is a linux distribution with a special type of java virtual machine (called a dalvik machine) that runs java code in the form of .apks. This all runs ontop of a specialized linux kernel (for example kernals with BFS in Cyanogen & JAC's ROMs). The .apk's that run in the virtual machine have access to frameworks and libraries. The frameworks are part of different ROM versions, for example, HTC Hero ROMs have a different frameworks and libraries than say a stock 1.6 ROM.
What is the difference between a framework and a library?
Do most ROMs have modified frameworks/libraries?
How would you edit a framework? A library?
What are odexes? Are they a neccessary part of a ROM?
How are .apk's (that come with ROMs, such as Browser or Rosie or MMS) modified to say remove a dependency or "optimized" to go faster?
I have the android SDK 1.6r1 installed and I have learned how to sign .apk's and update.zip's, I understand the flashing process and fastboot etc.
I am kind of looking for a way to run Hero's Stock Widget and Stock application on my Cyanogen build, but I realize there isn't a dev out there for every one of my wants and want to play with it myself.
If I have a concept wrong or you want to elaborate on something I said please feel free, all of my knowledge is just stuff I have picked up and I'm still not confident in my understanding. Thanks for your answers!
I'll try and help you out here but this is mainly a bump so you can get where you need to go.
I may not be 100% correct and I'll let someone correct me if I'm wrong.
Your first paragraph is correct.
Do most ROMs have modified frameworks/libraries?
Click to expand...
Click to collapse
Yes. The Hero ROM's frameworks are heavily modded and closed-source, making it very hard to reverse engineer. Some of these frameworks have been modified to allow for HTC apps on the stock android platform, such as HTC Music. However, this is a very difficult and arduous process so it is rarely undertaken and the distribution of HTC apps are limited for the stock android platform. ( you mention you want the stock widget and the twitter widget. These rely on the Hero framework. Many attempts have been made. If you can port this, props man. You should release it publicly )
Some ROM's, especially those that use Cyanogen ROM, have modified framework for speed or feature reasons. I am not very sure of the mods made, but there are plenty as can be seen by the release of Cyan's theme templates.
How are .apk's (that come with ROMs, such as Browser or Rosie or MMS) modified to say remove a dependency or "optimized" to go faster?
Click to expand...
Click to collapse
Some apks are optimized by reducing the file size of images located within the .apk. Also, recently a new method of zipping the .apk files has been unveiled by google which makes them faster at runtime.
Thats all I can answer with relative confidence
EDIT: i forgot to mention, if you want to sign your .apk's and update.zip's
http://forum.xda-developers.com/showthread.php?t=473580
Thx for your reply. That helps a lot. Any other comments anyone?
Ok, so out of curiosity I've been trying to figure out if it's at all possible to mod the Stock android lockscreen to include the media player pulldown from the TW Glasslock.
Of course, not having any dev experience I am not having much luck. Just using some common sense, I know that replacing android.policy.jar with a modded one will enable the Stock lockscreen and also removes all TW features.
So I ran extracted both android.policy.jar files and ran the classes.dex file through baksmali to extract them. I was hoping it would be slightly more obvious, but then again if it were I'm sure it would have been done by now.
Anyway, I'll attach both sets of files in a zip format for those that think they would like to take a look.
Also, if anyone knows. Is the media pulldown from Glasslock dependent on the TW process starting, or is it's own process seperate from the actual TW lockscreen. If it can exist without the TW lockscreen then there should be a way to enable it.
bobbylx said:
Ok, so out of curiosity I've been trying to figure out if it's at all possible to mod the Stock android lockscreen to include the media player pulldown from the TW Glasslock.
Of course, not having any dev experience I am not having much luck. Just using some common sense, I know that replacing android.policy.jar with a modded one will enable the Stock lockscreen and also removes all TW features.
So I ran extracted both android.policy.jar files and ran the classes.dex file through baksmali to extract them. I was hoping it would be slightly more obvious, but then again if it were I'm sure it would have been done by now.
Anyway, I'll attach both sets of files in a zip format for those that think they would like to take a look.
Also, if anyone knows. Is the media pulldown from Glasslock dependent on the TW process starting, or is it's own process seperate from the actual TW lockscreen. If it can exist without the TW lockscreen then there should be a way to enable it.
Click to expand...
Click to collapse
Honestly that much editing in an intermediate language will not be fun. It's not that it's impossible, but ideally we would get the source code, and then we could change the real code and compile a clean version. I don't think it's going to be just a simple copy/paste or something, like the "stock lock" mod is.
I believe CM6 has this feature available, so maybe once that is available, we can either port that lock, or just use CM6.
NiXXeD said:
Honestly that much editing in an intermediate language will not be fun. It's not that it's impossible, but ideally we would get the source code, and then we could change the real code and compile a clean version. I don't think it's going to be just a simple copy/paste or something, like the "stock lock" mod is.
I believe CM6 has this feature available, so maybe once that is available, we can either port that lock, or just use CM6.
Click to expand...
Click to collapse
Thanks for the input. I kind of figured it wasn't going to be an easy job. I've dabbled in scripting and coding, but good lord looking at these files just made my eyes crossed.
I didn't realize CM6 had that either, probably be easier to wait on that or flockscreen from Anderweb, which I just read about.
I'm running a de-odexed ZSJPJ rom (Ramad's). It seems that the only way to get the puzzle piece lockscreen is to flash a theme that has the 4 lockscreen settings. I don't really want to flash a theme especially since a lot of these are based on older frameworks and I just want the lockscreen.
If anyone can point me to a comprehensive how-to, that will be fine. Thanks in advance.
yeah you need to change the android.policy.odex in the system\framework\ folders.
You can just take the file from a theme that has it and use root explorer to transfer it to your phone.
or you can just use the StockPlus082percentageFF theme which is a stock theme with all the current lock screens.
Link for stock theme with 5 lockscreens: http://forum.xda-developers.com/showthread.php?t=952579
I've seen Stockmod Plus, but I think he uses an older framework. ZSJPJ rom has some issues from what I've read. Anyway, thanks. I'll google android.policy.odex and see where it leads.
j.go said:
I've seen Stockmod Plus, but I think he uses an older framework. ZSJPJ rom has some issues from what I've read. Anyway, thanks. I'll google android.policy.odex and see where it leads.
Click to expand...
Click to collapse
yeah but you can just take the android.policy.odex file from it and install it separately. just replace the one file with the one you have on your phone.
Would anyone be so kind as to either -
1) Upload the Framework.res.apk / SystemUI.apk / com.htc.resources.apk for me to download?
2) Point me to where I can download them myself?
I would simply pull them from my gf's T-Bolt, but, I'm trying to create a custom theme for her without her knowing! She knows just enough about android to know something is up if I were to go and steal her phone and pull these files myself...
Any help at all would be totally awesome! Thank you!
Too many questions unanswered
Is her phone even rooted? If so what rom?
Both of those will determine where you can get all the stock images.
If she is and on a sense 3.0 rom I might Suggest rootzwiki.com and grab a rom from team BAMF. they usually have all stock images.
Im pretty sure they have regular sense for stock phone, sense 3.0 and 3.5. So they should have everything you might need.
I made a thread in the Android General section, but it must not be getting attention from anyone capable of deodexing an apk, or just nobody wants to do it.
I probably should have created the thread here, so I'm linking to it here.
http://forum.xda-developers.com/showthread.php?t=1504082
Thanks all
bizzump
+10char
There's a few things we need to know first. Why only one apk? Why not deodex your whole ROM? Or if you have a copy of the whole ROM could your send it to me…..I can't deodex just the SystemUI when it has dependencies on the other functions within the ROM i.e. Framework.jar.
Or if you could explain maybe what your hoping to achieve I could probably sort somethingout for you a much simpler way.
What phone do you have and what apks are you using now? If you want to theme or want some sort of function from an apk that’s not yours but is odex version there may be a way of breaking it down to its classes (if I knew what ROM it was from and you had the entire framework folder from the ROM along with the odex file) and then I can decompile the apk you use (I think that’s what your trying to achieve correct?) from your ROM, then bring the classes and/or pngs across, rebuild, re-optimise (not odex btw) and send it back to you maintaining the signature for your apks in your ROM.
The phone and rom it is running are in my sig. I only want the SystemUI deodexed so that I can make the status bar transparent and still enjoy the slightly improved performance of an odex'ed rom, because this is a low-end phone so anything to increase performance helps. I have also tried using the AutoDeo Tool, but I don't know how to figure out what the correct custom bootclass path line input should be.
I asked for some help in that thread this morning and feel that I'm getting closer to having a deodexed SystemUI. I hate having posts in so many places about the same problem, but it seems like not a whole lot of people know how to do it, and even fewer want to explain such a complex process.
Hopefully I'll be able to deodex my entire rom.zip and just replace the systemui that's on my phone with the deodexed one and delete the .odex file and everything will be ok.
Sent from my SGH-T499 using XDA App