Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
sicopat
Old
(Last edited by sicopat; 20th July 2011 at 12:39 AM.)
#1  
sicopat's Avatar
Senior Member - OP
Thanks Meter 896
Posts: 785
Join Date: Oct 2007

 
DONATE TO ME
Unhappy [Solved][Q]How To FIX yourself the laggy deodexed browser.apk

How To FIX yourself the laggy deodexed browser.apk :


Credits :
Quote:
pulser-g2 found this FIX.
He gave us the .smali files to modify.
Here is a link from his original answer : showpost.php?p=15317327&postcount=15
1/ Download "smali from browser.apk.zip" at the end of the post
Extract it in a folder, you should have 3 files :
* BitmapWebViewSurface3D.smali
* BitmapWebViewLayout.smali
* BitmapWebView.smali


2/ Download smali-1.2.6.jar and baksmali-1.2.6.jar : HERE
and rename them in smali.jar and baksmali.jar

3/ Create a folder with :
Quote:
baksmali
smali
your stock deodexed browser.apk (with the Lag bug)
4/ With 7-Zip open (without extracting) your stock browser.apk and drag and drop classes.dex in the folder with baksmali
Don't close 7-Zip windows

5/ Open a CMD promt (start > run > cmd) and goto your folder : cd C:\path of your folder\

6/ Then run the command: (don't close CMD)
Code:
java -Xmx512m -jar baksmali.jar classes.dex
An OUT folder is created

7/ Copy the 3 .smali files in \out\com\android\browser and overwrite if prompted

8/ Then run the command :
Code:
java -Xmx512m -jar smali.jar out -o new_classes.dex
A new_classes.dex fils is created

9/ Delete out folder and classes.dex
10/ rename new_classes.dex in classes.dex
11/ In the 7-Zip windows : delete classes.dex and drag and drop the classes.dex you renamed. You can close 7-Zip

not an obligation : (using my how to Extract ...) :

12/ Put your Moded browser.apk in _Kit_Deodexage/app/ then run Deodex_Gingerbread.cmd in order to zipalign
13/ in Deodex_app you have your FIXED deodexed browser.apk

the end

Edit : fixed KF2 browser.apk added (attached)

This fix is not working anymore on 2.3.4 KG1 and KG2
Attached Files
File Type: zip smali pour browser.apk.zip - [Click for QR Code] (437.9 KB, 269 views)
File Type: apk Browser KF2.apk - [Click for QR Code] (1.40 MB, 296 views)
The Following 7 Users Say Thank You to sicopat For This Useful Post: [ Click to Expand ]
 
pulser_g2
Old
#2  
pulser_g2's Avatar
Developer Admin / Elite Recognized Developer
Thanks Meter 8063
Posts: 18,421
Join Date: Nov 2009
Location: United Kingdom Likes: Galaxy Note 2 Dislikes: Noobs
Quote:
Originally Posted by sicopat View Post
Hi,

Hope some Devs can help me.

I saw a fix for laggy browser.apk in the Lite'ningROM Thread.
I made a simple deodexed KF1 ROM and i have this trouble :
The scrolling function of the browser is very laggy. I didn't have this trouble with official or customROM.


As you see I am a noob.

Any help will be appreciate ...

SicO
Custom ROMs use an older browser.apk usually. I'm going to try work out the slow-down cause some 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
 
sicopat
Old
(Last edited by sicopat; 15th June 2011 at 06:13 PM.)
#3  
sicopat's Avatar
Senior Member - OP
Thanks Meter 896
Posts: 785
Join Date: Oct 2007

 
DONATE TO ME
Quote:
Originally Posted by pulser_g2 View Post
Custom ROMs use an older browser.apk usually. I'm going to try work out the slow-down cause some time.
Thanks Pulser for this fast answer.

If I find an old Browser.apk.
I will have to re sign it ?

Edit : I tried with one from a customROM "Bmarko-Muveszur-KE7".
I have Force close : "com.android.browser" (witch seem to be the cache ?)
 
pulser_g2
Old
#4  
pulser_g2's Avatar
Developer Admin / Elite Recognized Developer
Thanks Meter 8063
Posts: 18,421
Join Date: Nov 2009
Location: United Kingdom Likes: Galaxy Note 2 Dislikes: Noobs
Quote:
Originally Posted by sicopat

Thanks Pulser for this fast answer.

If I find an old Browser.apk.
I will have to re sign it ?
No, it would work fine, provided the signatures in your rom were the same to begin with.


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
 
sicopat
Old
(Last edited by sicopat; 15th June 2011 at 07:58 PM.)
#5  
sicopat's Avatar
Senior Member - OP
Thanks Meter 896
Posts: 785
Join Date: Oct 2007

 
DONATE TO ME
Quote:
Originally Posted by pulser_g2 View Post
No, it would work fine, provided the signatures in your rom were the same to begin with.
Edit : I take the Laggy Browser fix "Browser.apk" from LitePro (for Lite'ningROM 1.0) :
The apk is starting.
When I touch the screen, to scroll, to choose a favourite, I have some "force close" of com.android.browser.
If I touch any link, no force close, same if I don't touch anything

any idea ?
 
sicopat
Old
(Last edited by sicopat; 15th June 2011 at 09:46 PM.)
#6  
sicopat's Avatar
Senior Member - OP
Thanks Meter 896
Posts: 785
Join Date: Oct 2007

 
DONATE TO ME
Any other idea ?

this is the logcat :

Quote:
D/PowerManagerService( 2803): setLightBrightness : mButtonLight : 69
I/InputDispatcher( 2803): Dropped event because of pending overdue app switch.
I/InputDispatcher( 2803): Dropped event because of pending overdue app switch.
I/InputDispatcher( 2803): Dropped event because of pending overdue app switch.
I/InputDispatcher( 2803): Dropped event because of pending overdue app switch.
I/HomeKeyDoubleClick( 2803): addAction() is called. action = 0 canceled = fals
e
I/HomeKeyDoubleClick( 2803): in addAction(), now add
I/HomeKeyDoubleClick( 2803): in addAction(), down event. now call postCheckRunna
ble().
I/HomeKeyDoubleClick( 2803): postCheckRunnable() is called
I/HomeKeyDoubleClick( 2803): in postCheckRunnable(), now posting.
I/HomeKeyDoubleClick( 2803): in postCheckRunnable(), posting success.
I/HomeKeyDoubleClick( 2803): addAction() is called. action = 1 canceled = fals
e
I/HomeKeyDoubleClick( 2803): in addAction(), now add
W/PowerManagerService( 2803): Timer 0x7->0x3|0x0
I/PowerManagerService( 2803): Ulight 7->3|0
D/PowerManagerService( 2803): setLightBrightness : mButtonLight : 0
E/lights ( 2803): write_int: path /sys/devices/virtual/misc/melfas_touchkey/bri
ghtness, value 2
D/PowerManagerService( 2803): onSensorChanged: light value: 100
D/BatteryService( 2803): update start
E/BatteryService( 2803): TMU status = 0
D/BatteryService( 2803): updateBattery level:64 scale:100 status:2 health:2 pres
ent:true voltage: 3927 temperature: 340 technology: Li-ion AC powered:false USB
powered:true icon:17302229
I/StatusBarPolicy( 2918): BAT. S:2 H:2
I/InputReader( 2803): dispatchTouch::touch event's action is 0
I/InputDispatcher( 2803): Delivering touch to current input target: action: 0, c
hannel '4096ffc8 D├®sol├® ! (server)'
I/PowerManagerService( 2803): Ulight 3->7|0
D/PowerManagerService( 2803): setLightBrightness : mButtonLight : 69
E/lights ( 2803): write_int: path /sys/devices/virtual/misc/melfas_touchkey/bri
ghtness, value 1
I/InputReader( 2803): dispatchTouch::touch event's action is 1
I/InputDispatcher( 2803): Delivering touch to current input target: action: 1, c
hannel '4096ffc8 D├®sol├® ! (server)'
I/Launcher( 3011): onWindowFocusChanged(true)
I/HomeKeyDoubleClick( 2803): run() is called ***********************************
******************
I/HomeKeyDoubleClick( 2803): isSingleClick() is called
I/HomeKeyDoubleClick( 2803): list value = (0) 0 (1) 1
I/HomeKeyDoubleClick( 2803): in isSingleClick() true
I/HomeKeyDoubleClick( 2803): -------------------------------single clicked
I/HomeKeyDoubleClick( 2803): singleClickJob() is called.
I/HomeKeyDoubleClick( 2803): in singleClickJob(), mSentHomeDownToApp is false.
Now call launchHomeFromHotKey()
I/HomeKeyDoubleClick( 2803): launchHomeFromHotKey() is called.
I/HomeKeyDoubleClick( 2803): in launchHomeFromHotKey(), now call startDockOrHo
me(), #2
I/HomeKeyDoubleClick( 2803): reset() is called
I/HomeKeyDoubleClick( 2803): in reset() after reset, mPosted = false mHomeActi
onList.size() = 0
I/ActivityManager( 2803): Starting: Intent { act=android.intent.action.MAIN cat=
[android.intent.category.HOME] flg=0x10200000 cmp=com.sec.android.app.twlauncher
/.Launcher } from pid 2803
I/Process ( 6547): Sending signal. PID: 6547 SIG: 9
E/com.samsung.app( 3851): [MSC]>>> WeatherWidgetProvider.java:303 [0:0] onReceiv
e()@@@ sec.android.intent.action.HOME_PAUSE
E/com.samsung.app( 3851): [MSC]>>> WidgetIdManager.java:39 [0:0] AccuWeatherCloc
kWidgetID_Length
E/com.samsung.app( 3851): [MSC]>>> WidgetIdManager.java:40 [0:0] getPrefIDs() :
length = 0
E/com.samsung.app( 3851): [MSC]>>> WeatherWidgetProvider.java:1511 [0:0] disable
handler
D/PhotoAppWidgetProvider( 3807): OnReceive Start
D/PhotoAppWidgetProvider( 3807): PauseSlideShow Start
D/CalendarAppWidgetProviderAgenda( 3353): ACTION_HOME_PAUSE: false
D/CLIPBOARD( 2803): Hide Clipboard dialog inside hideSoftInput() !
I/Launcher( 3011): onResume(). mIsNewIntent : true screenOff: false
E/com.samsung.app( 3851): [MSC]>>> WeatherWidgetProvider.java:303 [0:0] onReceiv
e()@@@ sec.android.intent.action.HOME_RESUME
E/com.samsung.app( 3851): [MSC]>>> WidgetIdManager.java:39 [0:0] AccuWeatherCloc
kWidgetID_Length
E/com.samsung.app( 3851): [MSC]>>> WidgetIdManager.java:40 [0:0] getPrefIDs() :
length = 0
D/PhotoAppWidgetProvider( 3807): OnReceive Start
D/PhotoAppWidgetProvider( 3807): RestartSlideShow Start
D/dalvikvm( 3011): GC_EXTERNAL_ALLOC freed 554K, 53% free 3976K/8327K, external
11760K/11775K, paused 27ms
D/Buddies--------------------------->( 3867): Service:eek:nReceive ACTION_HOME_RESU
ME called
I/ActivityManager( 2803): Process com.android.browser (pid 6547) has died.
I/WindowManager( 2803): WIN DEATH: Window{40c23fa0 com.android.browser/com.andro
id.browser.BrowserActivity paused=false}
I/WindowManager( 2803): WIN DEATH: Window{4097c530 SurfaceView paused=false}
W/GpsLocationProvider( 2803): Unneeded remove listener for uid 1000
E/lights ( 2803): write_int: path /sys/devices/virtual/misc/melfas_touchkey/bri
ghtness, value 2
W/PowerManagerService( 2803): Timer 0x7->0x3|0x0
I/PowerManagerService( 2803): Ulight 7->3|0
D/PowerManagerService( 2803): setLightBrightness : mButtonLight : 0

C:\ADB\platform-tools>
 
sicopat
Old
#7  
sicopat's Avatar
Senior Member - OP
Thanks Meter 896
Posts: 785
Join Date: Oct 2007

 
DONATE TO ME
Ok, thanks

Problem solved re signing the Browser.apk from Lite'ningROM.
Thanks to LitePro for this (old ?) version of the browser.apk
 
dfube
Old
#8  
Junior Member
Thanks Meter 0
Posts: 27
Join Date: Sep 2010
I'm also having this issue. Any chance you could upload the apk somewhere?

Cheers
Main: Galaxy Nexus
Rom: Paranoid Android 3.00 with PIE
 
sicopat
Old
#9  
sicopat's Avatar
Senior Member - OP
Thanks Meter 896
Posts: 785
Join Date: Oct 2007

 
DONATE TO ME
Quote:
Originally Posted by dfube View Post
I'm also having this issue. Any chance you could upload the apk somewhere?

Cheers
Here is my Browser.apk.
If not working, you could try copying the META_INF folder from your original Browser.apk to mine and re zipallign. Or yust resign my apk with the same signature you used for your rom
Attached Files
File Type: apk Browser.apk - [Click for QR Code] (1.41 MB, 106 views)
 
Mackzen
Old
#10  
Senior Member
Thanks Meter 40
Posts: 124
Join Date: Apr 2009
Hi
Do you use a script to deodex or do you make all apps manually?

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

Advanced Search
Display Modes

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...

XDA PORTAL POSTS

Guide to Using Adobe Air on Android

When writing an app with performance in mind, you most likely want to write it native code using the … more

Boot Animation Paradise for your Android Device

The default boot animations on any device, no matter whichmanufacturer, are generally pretty … more