Google Confirms “Android Lollipop Day” for November 3rd

A little over a week ago, Google announced the latest iteration of … more

Get Your XDA 2015 Custom Avatar and Signature Images Here

As stated in our motto, XDA Developer is for developers, by developers. The … more

Pin Your Photos on Android Lollipop with Photo Pinner

In the last few weeks,we have been talking quite a bit about Android 5.0 Lollipop. This … more

Samsung Galaxy Note Edge Hands On – XDA TV

Perhaps one of the more peculiar announcements this year was the curved edge-screened … more
Post Reply

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

OP kcbedo

1st April 2011, 04:44 PM   |  #1  
OP Member
Thanks Meter: 34
 
40 posts
Join Date:Joined: Nov 2009
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, 1362 views)
Last edited by kcbedo; 2nd April 2011 at 06:26 PM.
The Following 7 Users Say Thank You to kcbedo For This Useful Post: [ View ]
2nd April 2011, 12:02 AM   |  #2  
_Burst_'s Avatar
Senior Member
Flag San Antonio, TX
Thanks Meter: 335
 
889 posts
Join Date:Joined: May 2010
Donate to Me
More
Thumbs up
Wow, thank you so much for this. I have been wondering how this was done for awhile.

Thanks again!
2nd April 2011, 11:10 AM   |  #3  
Junior Member
Thanks Meter: 0
 
7 posts
Join Date:Joined: Feb 2011
Thank you so much for this.

Thanks again!

2nd April 2011, 12:13 PM   |  #4  
Junior Member
Thanks Meter: 1
 
13 posts
Join Date:Joined: Feb 2010
More
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
2nd April 2011, 12:16 PM   |  #5  
Irvysan's Avatar
Senior Member
Thanks Meter: 84
 
159 posts
Join Date:Joined: Dec 2010
Donate to Me
More
Thanks, very handy
2nd April 2011, 12:47 PM   |  #6  
mdbde's Avatar
Senior Member
Thanks Meter: 25
 
188 posts
Join Date:Joined: 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?
2nd April 2011, 12:49 PM   |  #7  
lrm537's Avatar
Senior Member
Flag Aberdeen, UK
Thanks Meter: 69
 
307 posts
Join Date:Joined: Oct 2010
More
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.
2nd April 2011, 03:12 PM   |  #8  
OP Member
Thanks Meter: 34
 
40 posts
Join Date:Joined: Nov 2009
Quote:
Originally Posted by ceck_01

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.
2nd April 2011, 03:49 PM   |  #9  
Junior Member
Thanks Meter: 1
 
13 posts
Join Date:Joined: Feb 2010
More
Quote:
Originally Posted by kcbedo

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
2nd April 2011, 04:40 PM   |  #10  
OP Member
Thanks Meter: 34
 
40 posts
Join Date:Joined: Nov 2009
Quote:
Originally Posted by ceck_01

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.

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes