Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,732,479 Members 48,144 Now Online
XDA Developers Android and Mobile Development Forum

[MOD]/[HOWTO] Mod HTC Browser to allow 16 windows instead of 4

Tip us?
 
kcbedo
Old
(Last edited by kcbedo; 2nd April 2011 at 06:26 PM.)
#1  
Member - OP
Thanks Meter 34
Posts: 40
Join Date: Nov 2009
Default [MOD]/[HOWTO] Mod HTC Browser to allow 16 windows instead of 4

TomLeeDesire helped me figure out how to tweak an HTC Browser.apk to allow 16 windows instead of 4.

If you're interested in increasing the maximum number of windows, there are four lines in two files within Browser.apk that need to be modified.

I made these changes to the HTC Browser.apk from VaelPak 3.2 RC 1, but it should work on any HTC Browser. 0x10 is 16 in hex, so you can make this value whatever you want. If you get above 25 or so open windows, the browser tends to crash.

com.android.browser.TabControl
.constructor()
Line 52: Change "const/4 v2, 0x4" to "const v2, 0x10"

.canCreateNewTab()
Line 565: Change "const/4 v0, 0x4" to "const v0, 0x10"

.createNewTab()
Line 618: Change "const/4 v1, 0x4" to "const v1, 0x10"

com.android.browser.htc.ui.ImageSlider

.add()
Line 658: Change "const/4 v3, 0x4" to "const v3, 0x10"

Once you know where to look, the changes are pretty easy with APKTool (just use version 1.3.1, since 1.3.2 has a bug and doesn't seem to work correctly).

Here is an HTC Browser.apk with these changes, along with some LowRider menu icons thrown in.

EDIT: This is not an installable apk, because the certificates won't match. You need to have a rooted phone and use ADB to overwrite /system/app/Browser.apk (Make a backup first, of course.)
Attached Files
File Type: apk Browser.apk - [Click for QR Code] (837.9 KB, 1361 views)
The Following 7 Users Say Thank You to kcbedo For This Useful Post: [ Click to Expand ]
 
_Burst_
Old
#2  
_Burst_'s Avatar
Senior Member
Thanks Meter 335
Posts: 889
Join Date: May 2010
Location: San Antonio, TX

 
DONATE TO ME
Wow, thank you so much for this. I have been wondering how this was done for awhile.

Thanks again!
 
creative!!!
Old
#3  
Junior Member
Thanks Meter 0
Posts: 7
Join Date: Feb 2011
Thank you so much for this.

Thanks again!

 
ceck_01
Old
#4  
Junior Member
Thanks Meter 1
Posts: 13
Join Date: Feb 2010
Hey, I have tried to install the APK file on my phone but keep getting an error saying "Application not installed". I'm a noob, so sorry if this is a dumb question. I'm using the HTC Desire HD
 
Irvysan
Old
#5  
Irvysan's Avatar
Senior Member
Thanks Meter 81
Posts: 154
Join Date: Dec 2010

 
DONATE TO ME
Thanks, very handy
My Droids :

SGS3 Mini (GT-I8190N)
Nook Simple Touch
Nexus 4
Nexus 5
Nexus 7
SGS2
DHD
Nook Color
Wildfire

Free dropbox account with bonus space! > - Get A Dropbox! (We get extra storage!)
 
mdbde
Old
#6  
mdbde's Avatar
Senior Member
Thanks Meter 25
Posts: 188
Join Date: Mar 2009
thank you I was searching for this mod a long time.
I have a htc desire hd. when I try to install with estrongs it says not installed.
when I open your apk file in astro it says version 2.2.1 is installed and the version of your apk is 2.2 . its logic that it does not install. is your apk compatible with desire hd?
 
lrm537
Old
#7  
lrm537's Avatar
Senior Member
Thanks Meter 69
Posts: 308
Join Date: Oct 2010
Location: Aberdeen, UK
Do i need to be rooted for this to work? I haven't tried it yet, but it's definitely something that i would find extremely handy.
 
kcbedo
Old
#8  
Member - OP
Thanks Meter 34
Posts: 40
Join Date: Nov 2009
Quote:
Originally Posted by ceck_01 View Post
Hey, I have tried to install the APK file on my phone but keep getting an error saying "Application not installed". I'm a noob, so sorry if this is a dumb question. I'm using the HTC Desire HD
I just used ADB to overwrite the Browser.apk in my /system/app

I don't know if this will work on a non-rooted phone.

I'll see if I can figure out how to make this an installable app.
 
ceck_01
Old
#9  
Junior Member
Thanks Meter 1
Posts: 13
Join Date: Feb 2010
Quote:
Originally Posted by kcbedo View Post
I just used ADB to overwrite the Browser.apk in my /system/app

I don't know if this will work on a non-rooted phone.

I'll see if I can figure out how to make this an installable app.
Cool, thanks you very much for the help as I'm sure there are alot of people out there who will want this
 
kcbedo
Old
#10  
Member - OP
Thanks Meter 34
Posts: 40
Join Date: Nov 2009
Quote:
Originally Posted by ceck_01 View Post
Cool, thanks you very much for the help as I'm sure there are alot of people out there who will want this
It looks like this will only work if you have a rooted phone.

Android won't let you update your current browser with this one, because the certificates won't match once it's modified. HTC would have to resign the app with these changes in order for it to work.

I believe the only way to replace your Browser.apk app is to have a rooted phone and then overwrite the Browser.apk in /system/app.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


XDA PORTAL POSTS

Run, Jump, and Shoot in Tales of Ciaxia

There are certain types of games that have become paramount of the portable gaming world. As we have … more

Samsung Gear Live Stock Firmware Image Pulled, Temp Root

Just yesterday,XDA Recognized Developer and TV ProducerAdamOutlertore apart … more

Draw a Line and Let Your Device Do the Rest with LineitApp

Over the years, since evenbefore Android entered the scene, we have striven to … more