Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
_JKay_
Old
(Last edited by _JKay_; 14th July 2011 at 12:39 PM.)
#1  
_JKay_'s Avatar
Recognized Developer - OP
Thanks Meter 13632
Posts: 5,031
Join Date: Aug 2010

 
DONATE TO ME
Default [INFO] Note to all ROM makers

There seems to be issues with baksmali/smali v1.2.6 when deodexing latest samsung roms (2.3.4 maybe also some 2.3.3!).

If you baksmali framework.odex and smali it back to a dex file (without changing anything) your ROM will become laggy!

Some people say its the hardware acceleration that no longer works.
The web browser becomes unusable. There have been reports that video player and camera also seems laggy.

My suggestion is NOT to deodex framework.odex! I'm sorry to say this...
I know this means no custom deodexed roms! But I do believe you will run into more problems we don't know about yet!

But you can still do mods!
Just not deodexed framework mods. You can deodex apk files in the app folder. You can also try and deodex files in the framework folder as long and you dont deodex the framework.odex file! But here you have to convert them back to odex files!

As proof I have made this mod for stock XXKG1. I have the odexed the files back to odex using the dexopt-wrapper tool.
The Following 4 Users Say Thank You to _JKay_ For This Useful Post: [ Click to Expand ]
 
designgears
Old
#2  
designgears's Avatar
Recognized Developer
Thanks Meter 4941
Posts: 3,947
Join Date: Feb 2010
Location: SLC
It is not just 1.2.6, I have built from the latest source and still has problems.
"haters can make like bees with no stingers, and drop dead" -Eminem

Follow me on Twitter!
 
pulser_g2
Old
#3  
pulser_g2's Avatar
Developer Admin / Elite Recognized Developer
Thanks Meter 8049
Posts: 18,420
Join Date: Nov 2009
Location: United Kingdom Likes: Galaxy Note 2 Dislikes: Noobs
I disagree 100% fwiw with OP

I have no speed issues beyond that stupid browser, and that looks just like a baksmali bug. I don't do the "quit" attitude - I will fix it...

But anyway, there is no lag or anything here, even on 2.3.4 deodexed and underclocked.

So while there may be a browser issue, I would not suggest to people not to deodex. I can provide thousands of posts of people happy with a properly Deodexed and optimised ROM...


Having trouble getting an answer? | What is XDA about? | How to ask for help?

if [ $PM.incoming.type = $type.question.ROM.how_to_use ] || [ $PM.incoming.type = $type.question.ROM.silly_question ]; then mv $PM.incoming /.trash; PM.response($responsetype.ignore); $PM.sender.ignore_in_future=true; init.sequence($boy_who_cried_wolf); fi;


If you wish to apply for one of the Recognized Themer/Contributor titles, or have a question, please DO NOT send me a PM about it. Instead please contact your device's forum moderator, or a senior moderator, who will deal with your application. Thanks
The Following 9 Users Say Thank You to pulser_g2 For This Useful Post: [ Click to Expand ]
 
stian230
Old
#4  
stian230's Avatar
Senior Member
Thanks Meter 1173
Posts: 1,204
Join Date: Oct 2009
Location: Penguin land,way up north.

 
DONATE TO ME
do we know why this happens? Is there an logic explanation
samsung GALAXY SIII Lte I9305
Htc one X
samsung Galaxy S2
Htc vision x 2

Nexus one
Htc Magic x 2
Htc Diamond
Sony ericsson p1i
Htc TyTN II
Sony ericsson p800
Qtek 9000
Qtek 9090


 
pulser_g2
Old
#5  
pulser_g2's Avatar
Developer Admin / Elite Recognized Developer
Thanks Meter 8049
Posts: 18,420
Join Date: Nov 2009
Location: United Kingdom Likes: Galaxy Note 2 Dislikes: Noobs
Quote:
Originally Posted by stian230
do we know why this happens? Is there an logic explanation
Most likely minor baksmali bug


Having trouble getting an answer? | What is XDA about? | How to ask for help?

if [ $PM.incoming.type = $type.question.ROM.how_to_use ] || [ $PM.incoming.type = $type.question.ROM.silly_question ]; then mv $PM.incoming /.trash; PM.response($responsetype.ignore); $PM.sender.ignore_in_future=true; init.sequence($boy_who_cried_wolf); fi;


If you wish to apply for one of the Recognized Themer/Contributor titles, or have a question, please DO NOT send me a PM about it. Instead please contact your device's forum moderator, or a senior moderator, who will deal with your application. Thanks
 
_JKay_
Old
#6  
_JKay_'s Avatar
Recognized Developer - OP
Thanks Meter 13632
Posts: 5,031
Join Date: Aug 2010

 
DONATE TO ME
Quote:
Originally Posted by designgears View Post
It is not just 1.2.6, I have built from the latest source and still has problems.
Maybe if we can debug using source we can figure out what goes wrong!
 
_JKay_
Old
#7  
_JKay_'s Avatar
Recognized Developer - OP
Thanks Meter 13632
Posts: 5,031
Join Date: Aug 2010

 
DONATE TO ME
Quote:
Originally Posted by pulser_g2 View Post
I disagree 100% fwiw with OP

I have no speed issues beyond that stupid browser, and that looks just like a baksmali bug. I don't do the "quit" attitude - I will fix it...

But anyway, there is no lag or anything here, even on 2.3.4 deodexed and underclocked.

So while there may be a browser issue, I would not suggest to people not to deodex. I can provide thousands of posts of people happy with a properly Deodexed and optimised ROM...
I hope you are right... But alot people also complains about all sorts of problems with the custom roms... and we dont really know if its related to this or not...
 
LeoMar75
Old
(Last edited by LeoMar75; 14th July 2011 at 08:21 AM.)
#8  
LeoMar75's Avatar
Recognized Developer / Retired Forum Moderator
Thanks Meter 6324
Posts: 3,105
Join Date: Apr 2011
Location: Pescara

 
DONATE TO ME
I spent all yesterday thinking about that...

The odex file is only valid when used with the exact BOOTCLASSPATH files. dalvik enforces this by storing a checksum of each file that the odex file is dependent on, and ensuring that the checksum for each file matches when the odex file is loaded.

When you are deodexing an apk, even if you don't need to set BOOTCLASSPATH for it (because you don't get any error msg while baksmali), by default these 5 jar are already included in the classpath: core.jar, ext.jar, framework.jar, android.policy.jar and services.jar. This means that an odex file has dependencies on every "BOOTCLASSPATH" file that is loaded when it is generated.

So i was thinking about to deodexing every apk in /system/app a part Browser.apk (i.e leaving Browser.odex) and try to figure out which jar file inside /system/framework has to remain odexed.

Maybe we can still have overscroll glow mod, renounce to have the extended power menu in order to get an HW accellerated Browser!

I don't know if it make sense for you as my english need to be improved
 
pulser_g2
Old
(Last edited by pulser_g2; 14th July 2011 at 08:33 AM.)
#9  
pulser_g2's Avatar
Developer Admin / Elite Recognized Developer
Thanks Meter 8049
Posts: 18,420
Join Date: Nov 2009
Location: United Kingdom Likes: Galaxy Note 2 Dislikes: Noobs
Quote:
Originally Posted by _JKay_

I hope you are right... But alot people also complains about all sorts of problems with the custom roms... and we dont really know if its related to this or not...
You got any examples to hand?

The common issues I see are

- failing to read my install instructions

- trying to come from some other ROM without following the instructions

- trying to restore titanium backups entirely, depositing apps that are codes like half-polished turds in the phone

- pushing incorrect files into rom without knowing what they are doing

- stupid setcpu config


Am interested to see if you have found other issues, as camera and video player are confirmed by a fair number to be fine...

I swapped my phone with one running stock, and I had to tell my friend what I had done, as he was sure it was his oh, and I was underclocked to 800 max too at the time


Having trouble getting an answer? | What is XDA about? | How to ask for help?

if [ $PM.incoming.type = $type.question.ROM.how_to_use ] || [ $PM.incoming.type = $type.question.ROM.silly_question ]; then mv $PM.incoming /.trash; PM.response($responsetype.ignore); $PM.sender.ignore_in_future=true; init.sequence($boy_who_cried_wolf); fi;


If you wish to apply for one of the Recognized Themer/Contributor titles, or have a question, please DO NOT send me a PM about it. Instead please contact your device's forum moderator, or a senior moderator, who will deal with your application. Thanks
The Following 2 Users Say Thank You to pulser_g2 For This Useful Post: [ Click to Expand ]
 
_JKay_
Old
#10  
_JKay_'s Avatar
Recognized Developer - OP
Thanks Meter 13632
Posts: 5,031
Join Date: Aug 2010

 
DONATE TO ME
Quote:
Originally Posted by pulser_g2 View Post
You got any examples to hand?

The common issues I see are

- failing to read my install instructions

- trying to come from some other ROM without following the instructions

- trying to restore titanium backups entirely, depositing apps that are codes like half-polished turds in the phone

- pushing incorrect files into rom without knowing what they are doing

- stupid setcpu config


Am interested to see if you have found other issues, as camera and video player are confirmed by a fair number to be fine...

I swapped my phone with one running stock, and I had to tell my friend what I had done, as he was sure it was his oh, and I was underclocked to 800 max too at the time
The frameword.odex is not compiled correctly!! That's a fact!! The laggy browser proofs it. Framework.odex the largest most important file in the android framework!! And that does not concern you? Is that not a bit naive?

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...