Odex or Deodex with ART? - Verizon Samsung Galaxy S III

So I'm running ART on a deodexed rom and was thinking of re-odexing sys apps and framework. From what I understand is ART converts Deodexed and Odexed files differently. So what would be the better option? Anybody really knowledgeable on ART?

Well it looks like I may not get an answer but I did some real world testing along with some benchmarks on CM11 and can say without a doubt that ART converts odex better. Why? Not really sure. I don't have the knowledge or the time to really dig into this but an odexed system will still provide a performance improvement thru ART.
If anyone has any insight on the technical reasons as to why this is then please post. It would be interesting.

razz1 said:
Well it looks like I may not get an answer but I did some real world testing along with some benchmarks on CM11 and can say without a doubt that ART converts odex better. Why? Not really sure. I don't have the knowledge or the time to really dig into this but an odexed system will still provide a performance improvement thru ART.
If anyone has any insight on the technical reasons as to why this is then please post. It would be interesting.
Click to expand...
Click to collapse
ART works significantly better because it cuts out the middle man dalvik creates. I read this a while ago so I might not be exactly right, but dalvik uses the dalvik cache to store app information, which in turn opens a second file to initiate the app to open. Adds a delay.
ART is specifically written for Android, while dalvik was originally created for much less of a demanding app environment. ART basically just uses 1 file to control an app, which cuts loading time down and the way apps run. It's just much more efficient.
I wouldn't expect odexing or deodexing to make much of a difference in this scenario.

Well I will say this. After a nice look at a logcat today I found errors of ART trying to identify an odex file (ELF Magic). This pertains to all odex! Just thought I would throw this out there if anyone is interested.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

This is because ART is looking for compiled native ELF executable, not dalvik runtime. It's completly different format, bacause ELF is java bytecode compiled to native (similar as native .exe on Windows) and ODEX is not. ODEX is compiled as dalvik bytecode that still runs via dalvik VM, not natively.
You should not use .odex on ART.

Related

Is there a "popup list maker" or similar?

I want to do a small menu for my WM6.5 MULTIplugin:
http://forum.xda-developers.com/showthread.php?t=523015
I imagined something like this:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
...that is supose to show 4 options.
I tried it with many softwares and also mortscript and was able to go as far as this:
But is ugly compared to the original idea... IS there some sort of application like a menu, even if it doesnt allow skinning, but at least that looks like a system message window?
---edit---
Already tried Mortbuttons, FingerMenu and launcher.
Do yourself a favour and learn some .NET programming. Then you can do this yourself in C# or even VB.Net.
As a webdesigner I already taught myself to code in BATCH files, HTML/XML, AS2 (Flash) and recently Mortscript... I could do more if I had any programming bases, but that and my love for Math is the reason why I chosed arts...
It seems simple enough to do, and with a little INI file it could be easy to change, but I simply dont know how to do it and it would time some time to get that done in a new language.
Also tried FLOATME:
http://forum.xda-developers.com/showthread.php?t=282913
...to see if I could change the size if the mortscript menu, and so make it float, but no luck...
I found this great application:
http://www.saman-cz.com/ppc/nmnovrw.html
And it may work for what I want, It just needs to be much bigger:
Is there any way to change this without messing up the rest of the system messages?
I remenbered that I can do that with FingerMenu, that I can enable and disable after use, but its a little buggy on some machines still and the disable sometimes fails and its more 300kb just for that effect... :/
Just to post in the current status, I found this great menu kvvQuickMenu:
http://kvv.my1.ru/load/6-1-0-43
..and I'm having some bugs still, but I believe its on a good path.
For the record, I also found FSMenu:
http://4pda.ru/forum/index.php?showtopic=112228
...but its only in russian...
FloatingFatMan said:
Do yourself a favour and learn some .NET programming. Then you can do this yourself in C# or even VB.Net.
Click to expand...
Click to collapse
Can you PM me some good C++ and VB.Net and C# programming applications to do some programming? I want to learn on my own but I need some suggestions for the best programs for this.
twolf said:
Just to post in the current status, I found this great menu kvvQuickMenu:
http://kvv.my1.ru/load/6-1-0-43
..and I'm having some bugs still, but I believe its on a good path.
For the record, I also found FSMenu:
http://4pda.ru/forum/index.php?showtopic=112228
...but its only in russian...
Click to expand...
Click to collapse
I think this app is way cool.
i am looking at making a mockup now for The Mortifier.

[PROJECT] OpenGL Framework for games and apps

Hi there!
With a little help from you I'd like to start a little project here. The idea is to create a simple OpenGL framework, that can be used for games and apps on the HD2 (and other devices).
As you might have read, OpenGL is very difficult to get working right on the HD2. But thanks to Chainfire and his modified drivers things look a lot better now
During the past few days I have created a first version of the OpenGL framework. You can download it HERE!!!.
All it does is loading a texture and drawing a few rotating quads on the screen. The frames per second are also displayed:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Now that's basically everything you need to get started with simple OpenGL apps/games.
But there is one problem where YOU come in
The code is running AWFULLY slow (only 6 FPS!). Since Chainfire's modified drivers don't help here I guess the problem lies inside my code.
So I'd be very happy if we could gather all our knowledge, code samples etc. in this thread to create a fully working OpenGL sample application.
That way we'll hopefully get a lot of people to start developing and creating cool stuff for the HD2.
Anyone interested? Let's get started
What no one's interested in helping VanKurt??
So it seems. If everyone want's to cook his own soup that's fine for me
But it would have been nice to have some open source framework here to get beginners started with game development for the HD2... because what WindowsMobile really needs is some cool, good looking, finger friendly (OpenGL based) applications...
OK then, consider this topic closed!
Hi VanKurt, have you looked into the OpenTK toolkit, I think that has C# bindings for OpenGL ES (1.0 and 2.0 I think?)
Diamond Beer port
I would like to have a framework ready. I did use OpenGL on my Diamond (Diamond Beer and Diamond Cubes for example) and would like to port it to the HD2. But I would like to use OpenGL ES 2 instead of 1.x
I would not mind if it were C# or C/C++, but if there is anybody that could show a minimal project, even if it just display a triangle.
My main problem is that I do not know which DLLs I need to copy to my PC to use inside my VS projects.
I read abit about the open source OpenGL ES but I am not sure if I can just copy their include files for the HD2.
Anybody any advice on this ?
I would not mind to open source some of my projects so that others can learn from it too.
I had a quick glance at the code. You don't need to use glFlush so comment those lines out.. that should pick some speed up.
I tried a couple of quick apps with that same openglesutilities c# framework but I found it overly complicated and annoying compared to just straight calls to opengles in c++

Is this hack of any relevance to us?

http://phandroid.com/2010/12/11/data2ext-makes-quadrant-its-prison-friend/
Not sure, but i do remember Cyanogen proving Quadrant gives bugged results if you mess with partitions.
roalex said:
Not sure, but i do remember Cyanogen proving Quadrant gives bugged results if you mess with partitions.
Click to expand...
Click to collapse
Yeah, i remember that as well. Probably a similar case here rather than a real boost.
may not be completely relevant, but I've eventually got a successful run of it on the G1
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
scores don't really matter. And it doesn't seem any bit faster, but then again I can't really tell since I haven't gotten it stable enough to test normal apps. The UI feels more smoother-ish, not quicker just less jumpy. *note i said "-ish", because there are no apps installed so obviously it's not gonna lag.
so far for me I have only gotten it to work on the first boot, and for some reason only when I don't flash gapps (and fyi, I'm using CM 6.1).
studjuice said:
may not be completely relevant, but I've eventually got a successful run of it on the G1
scores don't really matter. And it doesn't seem any bit faster, but then again I can't really tell since I haven't gotten it stable enough to test normal apps. The UI feels more smoother-ish, not quicker just less jumpy. *note i said "-ish", because there are no apps installed so obviously it's not gonna lag.
so far for me I have only gotten it to work on the first boot, and for some reason only when I don't flash gapps (and fyi, I'm using CM 6.1).
Click to expand...
Click to collapse
Still, that's amazing.
Here's a link to what I posted in the N1 forums containing the update.zip with some fixes.
http://forum.xda-developers.com/showpost.php?p=9937499&postcount=105
This is not my work, its just some fixes on others works.
Have you tried any heavy duty real world applications? Like Angry Birds or Gallery? Kwaak3 would be another application that relies heavily on loading. Maybe a web browser.
Those are the only apps that I can think of that would benefit from faster loading.
http://bbs.anshouji.com/viewthread.php?tid=3509&extra=pageSD1&page=1
thats the original thread with data2ext u can reference to
google translate should cover most of it
Thanks, that's looks really useful. Just wish I could download it.

[Q] Cache and Dalvik Cache?

What are they?
How does clearing them affect the device?
Dalvik Cache is a program cache area for the program dalvik. Dalvik is a java based virtual machine that is the bases for running your programs (the ones that have the .apk extension). In order to make access times faster (because there's not JIT (just in time) compiler installed by default), the dalvik-cache is the result of dalvik doing a optimization of the running program. Sounds confusing. It's similar to the prefetch files in Windows.
A cached file is a mechanism for the temporary storage (caching) of web documents, such as HTML pages and images, to reduce bandwidth usage, server load, and perceived lag. A cached file stores copies of documents passing through it; subsequent requests may be satisfied from the cache if certain conditions are met.
The cached files are stored in the phone built-in memory, and sometimes can take a lot of storage space.
PlusAndroid said:
Dalvik Cache is a program cache area for the program dalvik. Dalvik is a java based virtual machine that is the bases for running your programs (the ones that have the .apk extension). In order to make access times faster (because there's not JIT (just in time) compiler installed by default), the dalvik-cache is the result of dalvik doing a optimization of the running program. Sounds confusing. It's similar to the prefetch files in Windows.
A cached file is a mechanism for the temporary storage (caching) of web documents, such as HTML pages and images, to reduce bandwidth usage, server load, and perceived lag. A cached file stores copies of documents passing through it; subsequent requests may be satisfied from the cache if certain conditions are met.
The cached files are stored in the phone built-in memory, and sometimes can take a lot of storage space.
Click to expand...
Click to collapse
Wow my thread's got a reply after 3 long months.
I had searched after that.
Anyway thanks for the effort man. Thanks. (clicked).
ggclanlord said:
Wow my thread's got a reply after 3 long months.
I had searched after that.
Anyway thanks for the effort man. Thanks. (clicked).
Click to expand...
Click to collapse
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
wardfan220 said:
Click to expand...
Click to collapse
Lol. Nice1 Mod.

De-Bloat list for stock rom

I don't know if there is a thread already for this. Can anyone list the apps and bloatware that are safe to freeze using titanium backup on the stock rom...
Sent from my Land Line using xda premium
Download Scott's clean Rom, much easier then doing it yourself. Completely stock, debloated, tweaked, and nice mods if you want them.
Sent from my Cocaine White S3.
http://forum.xda-developers.com/showthread.php?t=1856887
Check out that thread. I posted the same thing a lil while ago and got some decent feedback.
Brian Gove said:
http://forum.xda-developers.com/showthread.php?t=1856887
Check out that thread. I posted the same thing a lil while ago and got some decent feedback.
Click to expand...
Click to collapse
Thank you
Additional debloat!
A helpful tool I use to clear up space and make the system faster is an app called "DiskView", downloadable free from Play Store. It analyzes all partitions and lists directories/files and a percentage bar of how much space they're taking. With this I found a bunch of instructional how-to videos in the system/media/video/GuidedTour folder. Also, taking up some space are the hidden Voice Recognition language packs under /system/VODB. Delete all the language code folders you don't want. Also, this using like 10MB but also a privacy concern, there was a face recognition database under /system/lib. If you don't use the preloaded Swype keyboard, even after you uninstalled it, there's an extra database under /system/lib/libSwypeCore.so. Delete.
If you have a Galaxy Note, it might be worth noting that the S Note templates that you could never seem to delete can now be removed permanently. They actually use up a lot of space. First, delete the templates from your usual S Note folder on your SD card, obviously. Then navigate to /system/preload and /system/preloaddata and delete everything related to S Note in there. For me there was nothing other than S Note stuff. Should be the templates in one and a database in the other. Once you reboot, they'll never come back!
Enjoy!
<<< Please say thanks if I was of help! I am new to XDA! :good:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

Categories

Resources