Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
Ronde90
Old
#1  
Member - OP
Thanks Meter 12
Posts: 87
Join Date: Jan 2012
Location: Flemington
Default Prime Keyboard Modification

Hi. I bought the Prime and Keybaord dock and love them! The only thing is that I am not a fan of the stock ICS browser and I am sure that I am not the only one. I wanted to know if there is a way to change the browser that is launched when pressing the internet/browser launch button (the one with a saturn-ish looking planet on it) on the keyboard dock because I haven't heard of anyone able to do it. I have tried disabling the stock browser but that makes the button unable to launch anything. I have my Prime rooted as well. I figured that I start a thread on this issue to see if anyone has been able to do it.
 
Spidey01
Old
#2  
Senior Member
Thanks Meter 79
Posts: 932
Join Date: Sep 2011
Location: Duluth
Don't think the browser question has ever been answere but I do think somewhere in these ATP or the OG TF forums, it has been said how to modify the key map files or something. That'd be a starting point, maybe.

Sent from my Transformer Prime TF201 using Tapatalk

- Samsung Galaxy S3 (T-Mobile )SGH-T999, stock+rooted.
- ASUS Transformer TF201 32GB, CyanogenMod.
- ASUS Transformer TF101 32GB, Prime ROM (damaged/retired).
- HTC MyTouch 4G Slide, CM 9.1-stable, retired.
- HTC MyTouch 4G, my first CyanogenMod (7.1), sold.
- LG Optimus T, stock+rooted. gifted to a beautiful Firefly.
My journal
 
prenedo
Old
#3  
prenedo's Avatar
Senior Member
Thanks Meter 178
Posts: 760
Join Date: Mar 2011
What if we replaced the system app with opera? (or browser of choice)
 
Spidey01
Old
#4  
Senior Member
Thanks Meter 79
Posts: 932
Join Date: Sep 2011
Location: Duluth
Depends on how it's being launched. I.e. if it's dependant on the class name inside the APK, mv Opera Browser != good enough. Although replacing Browser with a stub that just forwards to another app is probably possible.

Sent from my Transformer Prime TF201 using Tapatalk

- Samsung Galaxy S3 (T-Mobile )SGH-T999, stock+rooted.
- ASUS Transformer TF201 32GB, CyanogenMod.
- ASUS Transformer TF101 32GB, Prime ROM (damaged/retired).
- HTC MyTouch 4G Slide, CM 9.1-stable, retired.
- HTC MyTouch 4G, my first CyanogenMod (7.1), sold.
- LG Optimus T, stock+rooted. gifted to a beautiful Firefly.
My journal
 
agentdr8
Old
(Last edited by agentdr8; 17th February 2012 at 11:11 PM.)
#5  
agentdr8's Avatar
Senior Member
Thanks Meter 136
Posts: 724
Join Date: Mar 2007
Location: Cowtown, CA
This has been brought up before (with the TF101), and there hasn't been any progress made that would enable this functionality.

In the keylayout file, it's key 150 that launches the EXPLORER keycode, but I can't find any documentation that shows what that launches by default (other than the default browser).

Edit: After some more digging, it appears that this functionality resides within the Asus Keyboard IME. Going to see if I can work around this.

Edit2: Success! I was able to take the deodexed Keyboard.apk (thanks Swiftks) and modify the smali to launch com.beansoft.browserplus (ICS Browser+) instead of the built-in ICS browser (com.android.browser). Happy happy joy joy!

Unfortunately this means that the edit would have to be done per-browser. I haven't tried this with Firefox, Chrome, Boat, or Opera, but will look into those tomorrow. For now, if anyone wants to test this (no guarantees, as usual with system app mods) I've attached it to this post. Make sure you backup your stock Keyboard.apk and Keyboard.odex first!

Quick how-to:
1) adb push Keyboard_ICS+.apk /mnt/sdcard/
2) adb to TFP, remount system read-write
3) cd /system/app, cp Keyboard.* /mnt/sdcard/backups (or where ever you want to keep your originals)
4) rm Keyboard.*
5) cp /mnt/sdcard/Keyboard_ICS+.apk ./Keyboard.apk
6) chmod 644 Keyboard.apk
7) reboot

When your TFP comes back up, you should be able to hit the browser button on the dock and it should launch ICS Browser+ (assuming you've got it installed already).

Props to appelflap for making a kick-ass browser, and to Swiftks for deodexing the system files.

EDIT: Attachment removed. Updated thread contains new APK.
AT&T HTC One
ARHD'd

Asus Transformer Prime
AndroWook'd

"We want monies. You have monies. Give us monies.” -- Phandroid (poking fun at Gemalto lawsuit)
The Following User Says Thank You to agentdr8 For This Useful Post: [ Click to Expand ]
 
banq81991
Old
(Last edited by banq81991; 10th February 2012 at 08:11 AM.) Reason: I'm a dumbass
#6  
Junior Member
Thanks Meter 1
Posts: 21
Join Date: Dec 2010
Edit: Failed to read you were already going to do this for chrome tomorrow. Best of luck and I look forward to it.
 
newellj79
Old
#7  
newellj79's Avatar
Senior Member
Thanks Meter 191
Posts: 1,786
Join Date: Jan 2011
Quote:
Originally Posted by agentdr8 View Post
This has been brought up before (with the TF101), and there hasn't been any progress made that would enable this functionality.

In the keylayout file, it's key 150 that launches the EXPLORER keycode, but I can't find any documentation that shows what that launches by default (other than the default browser).

Edit: After some more digging, it appears that this functionality resides within the Asus Keyboard IME. Going to see if I can work around this.

Edit2: Success! I was able to take the deodexed Keyboard.apk (thanks Swiftks) and modify the smali to launch com.beansoft.browserplus (ICS Browser+) instead of the built-in ICS browser (com.android.browser). Happy happy joy joy!

Unfortunately this means that the edit would have to be done per-browser. I haven't tried this with Firefox, Chrome, Boat, or Opera, but will look into those tomorrow. For now, if anyone wants to test this (no guarantees, as usual with system app mods) I've attached it to this post. Make sure you backup your stock Keyboard.apk and Keyboard.odex first!

Quick how-to:
1) adb push Keyboard_ICS+.apk /mnt/sdcard/
2) adb to TFP, remount system read-write
3) cd /system/app, cp Keyboard.* /mnt/sdcard/backups (or where ever you want to keep your originals)
4) rm Keyboard.*
5) cp /mnt/sdcard/Keyboard_ICS+.apk ./Keyboard.apk
6) chmod 644 Keyboard.apk
7) reboot

When your TFP comes back up, you should be able to hit the browser button on the dock and it should launch ICS Browser+ (assuming you've got it installed already).

Props to appelflap for making a kick-ass browser, and to Swiftks for deodexing the system files.
Any chance you could hook one up to work with boat browser? I use it now that flash doesn't work in opera. It would be awesome to be able to use the keyboard launch key. Thanks!
 
agentdr8
Old
#8  
agentdr8's Avatar
Senior Member
Thanks Meter 136
Posts: 724
Join Date: Mar 2007
Location: Cowtown, CA
Doesn't look like this can be modded to work with browsers that aren't based on the stock ICS browser. The activity for alternate browsers isn't explicitly defined in the AndroidManifest.xml for the Keyboard.apk, so it throws an exception when trying this mod for Chrome, Boat, etc.

So for now, the only way I can foresee overcoming this limitation (because the manifest can't be edited without being re-signed) would be to build a small helper app that extends com.android.browser much like ICS+ browser does, but instead of launching a standard browser view, use it to launch a browser picker or the default browser.

Maybe in my spare time I'll figure out how to do something like that.
AT&T HTC One
ARHD'd

Asus Transformer Prime
AndroWook'd

"We want monies. You have monies. Give us monies.” -- Phandroid (poking fun at Gemalto lawsuit)
The Following 2 Users Say Thank You to agentdr8 For This Useful Post: [ Click to Expand ]
 
Ronde90
Old
#9  
Member - OP
Thanks Meter 12
Posts: 87
Join Date: Jan 2012
Location: Flemington
Quote:
Originally Posted by agentdr8 View Post
Doesn't look like this can be modded to work with browsers that aren't based on the stock ICS browser. The activity for alternate browsers isn't explicitly defined in the AndroidManifest.xml for the Keyboard.apk, so it throws an exception when trying this mod for Chrome, Boat, etc.

So for now, the only way I can foresee overcoming this limitation (because the manifest can't be edited without being re-signed) would be to build a small helper app that extends com.android.browser much like ICS+ browser does, but instead of launching a standard browser view, use it to launch a browser picker or the default browser.

Maybe in my spare time I'll figure out how to do something like that.
Hey, thanks for the help man. I look forward to seeing what you come up with!
 
Ronde90
Old
#10  
Member - OP
Thanks Meter 12
Posts: 87
Join Date: Jan 2012
Location: Flemington
Quote:
Originally Posted by agentdr8 View Post
This has been brought up before (with the TF101), and there hasn't been any progress made that would enable this functionality.

In the keylayout file, it's key 150 that launches the EXPLORER keycode, but I can't find any documentation that shows what that launches by default (other than the default browser).

Edit: After some more digging, it appears that this functionality resides within the Asus Keyboard IME. Going to see if I can work around this.

Edit2: Success! I was able to take the deodexed Keyboard.apk (thanks Swiftks) and modify the smali to launch com.beansoft.browserplus (ICS Browser+) instead of the built-in ICS browser (com.android.browser). Happy happy joy joy!

Unfortunately this means that the edit would have to be done per-browser. I haven't tried this with Firefox, Chrome, Boat, or Opera, but will look into those tomorrow. For now, if anyone wants to test this (no guarantees, as usual with system app mods) I've attached it to this post. Make sure you backup your stock Keyboard.apk and Keyboard.odex first!

Quick how-to:
1) adb push Keyboard_ICS+.apk /mnt/sdcard/
2) adb to TFP, remount system read-write
3) cd /system/app, cp Keyboard.* /mnt/sdcard/backups (or where ever you want to keep your originals)
4) rm Keyboard.*
5) cp /mnt/sdcard/Keyboard_ICS+.apk ./Keyboard.apk
6) chmod 644 Keyboard.apk
7) reboot

When your TFP comes back up, you should be able to hit the browser button on the dock and it should launch ICS Browser+ (assuming you've got it installed already).

Props to appelflap for making a kick-ass browser, and to Swiftks for deodexing the system files.
Would I be able to do this via root explorer?

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

XDA PORTAL POSTS

Forums Added for the LG Optimus G Pro and Sony Xperia Tablet Z

Not too long ago, we talked about how Sony was continuing its AOSP efforts on … more

Permanent Screen Off for the Visually Impaired

Most of us take the simple act of waking up our devices and having a quick glance at the … more

App Analytics, or the Death of the Independent App Developer

This is entry number one in a series of articles about tools for app developers, … more

Serajr Power Toggles Brings Settings to the Small App World

Ever since the introduction of multi-window with things like Cornerstone and … more