Dear SGS devs and users!
I started a think tank to permanently change the useragent string in the browser to Desktop (or switch it).
I want it to be compatible with every firmware so i don't need to change it for every firmware. And easy installable.
And i know i can use about:useragent but that sucks! i want to make it switchable like in Cyanogenmod
EDIT: It works now! see instructions!
Click to expand...
Click to collapse
This fix is now incorporated in Villainrom Tweaks! tnx to Pulser_g2
Precompiled framework-res.apk for Lightning-rom 1.5 (Tnx to floyd0815)
Software to change the framework-res.apk values automaticly by janreiviardo
User agent strings:
Stock:
Code:
Mozilla/5.0 (Linux; U; Android 2.2; en-us; GT-I9000 Build/MASTER) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1
Desktop:
Code:
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_7; en-us) AppleWebKit/530.17 (KHTML, like Gecko) Version/4.0 Safari/530.17
Instructions:
Pre-requisites:
Knowledge of adb (push/pull files), apktool installed and running, winrar (7zip could also be used).
1. Pull framework-res.apk
2. Make a copy of pulled framework-res.apk
3. Use APKtool to decompile framework-res.apk (apktool d framework-res.apk)
4. Using notepad++ or other such linux based editor, open framework/res/values/strings.xml
5. Do a search for web_user_agent
6. Change it to this (make sure you change the localized strings.xml also (eg en_gb, nl_nl etc)
Code:
<string name="web_user_agent">Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_7; en-us) AppleWebKit/530.17 (KHTML, like Gecko) Version/4.0 Safari/530.17</string>
7. Recompile framework (apktool b framework-res)
8. Make a backup copy of the original framework-res.apk
9. Opening winrar, drag and drop the resources.arsc from the compiled framework-res.apk to the original framework-res.apk (Please note -- this is the only file you are going to be changing).
10. Push the modified framework-res.apk created in #9 (the original framework file which you copied the resources.arsc file into) back to /system/framework/framework-res.apk
11. Reboot device
Click to expand...
Click to collapse
If this tutorial was usefull please hit the thanks button! a cold beer is also welcome!
If you tell me the current useragent, I reckon I can change it
It would suffice to remember the last setting, and then create a bookmark for the user agent switch; But right now when the browser exits the useagent settings are discarded.
pulser_g2 said:
If you tell me the current useragent, I reckon I can change it
Click to expand...
Click to collapse
The user agent strings are in the OP
Help is always appreciated!
yes this would be nice, I want desktop, hate to change it manually
****.. useragent string is in framework-res.apk...
that sucks because every firmware has it's own framework-res.apk
res/values/strings.xml! found them!
the ability to remove the notification bar while browsing would also be useful for desktop browsing
rocketpaul said:
the ability to remove the notification bar while browsing would also be useful for desktop browsing
Click to expand...
Click to collapse
One thing at a time
Pff only need to decompile and recompile! but i'll do it later on!
I stripped apart the browser and all (I think) of the framework on VR1.2.
Didn't see anything there other than:
(49 ) const-string v1, "Mozilla/5.0 (Linux; U; Android 2.2; en-us; GT-I9000 Build/MASTER) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1"
(118 ) const-string v1, "Mozilla/5.0 (SAMSUNG; SAMSUNG-GT-S8500/S8500XXJHA; U; Bada/1.0; en-us) AppleWebKit/533.1 (KHTML, like Gecko) Dolfin/2.0 Mobile WVGA SMM-MMS/1.2.0 OPN-B"
(135 ) const-string v1, "Mozilla/5.0 (Linux; U; Android 2.2; ko-kr; Nexus One Build/FRF91) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1"
pulser_g2 said:
I stripped apart the browser and all (I think) of the framework on VR1.2.
Didn't see anything there other than:
(49 ) const-string v1, "Mozilla/5.0 (Linux; U; Android 2.2; en-us; GT-I9000 Build/MASTER) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1"
(118 ) const-string v1, "Mozilla/5.0 (SAMSUNG; SAMSUNG-GT-S8500/S8500XXJHA; U; Bada/1.0; en-us) AppleWebKit/533.1 (KHTML, like Gecko) Dolfin/2.0 Mobile WVGA SMM-MMS/1.2.0 OPN-B"
(135 ) const-string v1, "Mozilla/5.0 (Linux; U; Android 2.2; ko-kr; Nexus One Build/FRF91) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1"
Click to expand...
Click to collapse
Well you can replace line 49 with the line above and recompile! but as my OP states! the strings are in framework-res.apk
They might be in the resource.arsc
dudes ...
just enter
about:useragent
in stock browser!!
you dont need a mod for that.
karl999999 said:
just enter
about:useragent
in stock browser!!
you dont need a mod for that.
Click to expand...
Click to collapse
read the OP before making stupid comments
[email protected] said:
read the OP before making stupid comments
Click to expand...
Click to collapse
Changing useragent string in browser to Desktop (Permanently)
karl999999 said:
Changing useragent string in browser to Desktop (Permanently)
Click to expand...
Click to collapse
seriously can you read? or are you just inexperienced?
First of all thanks a lot for share this tips.
Secondly i have to say that your first post is a little messy at least for me
As you have mentioned for desktop user agent we should replace the original string
Code:
Mozilla/5.0 (Linux; U; Android 2.3.3; en-us; GT-I9100 Build/MASTER) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1
with the following one;
Code:
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_7; en-us) AppleWebKit/530.17 (KHTML, like Gecko) Version/4.0 Safari/530.17
But if i read further you also suggest:
6. Change it to this
Code:
<string name="web_user_agent">Mozilla/5.0 (Linux; U;) AppleWebKit/534.13 (KHTML, like Gecko) Version/4.0 Safari/534.13</string>
<string name="web_user_agent_target_content">Mobile\u0020</string>[/QUOTE]
Which is a different string compared to what you said initially!
Could you please explain better?
Sorry maybe i am missing something..
Click to expand...
Click to collapse
OP updated
The only problem now is that the /values are in the resources.arsc file and i need to decompile those. Still need to look further in to that...
I'd like to help but I'm a bit confused what you're looking for at the moment. So you've found the useragent strings in strings.xml. Does changing those lines change the useragent? Could you please explain what's your current goal?
Well yes the string is in there.. right now i need to decompile resources.arsc, put in the string and recompile it again. Then put it in framework-res.apk and put it back on the phone.
Then i don't need to change the useragent everytime i reboot my phone...
BackfireNL said:
Well yes the string is in there.. right now i need to decompile resources.arsc, put in the string and recompile it again. Then put it in framework-res.apk and put it back on the phone.
Then i don't need to change the useragent everytime i reboot my phone...
Click to expand...
Click to collapse
OK that's easy enough... 2 secs
EDIT: only framework-res i have handy is VillainROM 1.3 one, but I've put a tweak onto VillainTweaks to try making it default to desktop
Related
just played with my HTC touch HD and try to figure it out on how to change the Image Banner/Browser Icon on my Internet Tab....
check this out
http://s157.photobucket.com/albums/t57/butz007/htc%20touch%20hd/?action=view¤t=safari_browser.jpg
how to do it very simple
1. Create an Icon... must be on .PNG (whatever software do you prefer will definitely do as long as the final output would be on Transparent PNG)
note: the size of the PNG icon must be on 480 by 200 pixels, 72 dpi
2. Edit the XML code, don't be afraid this won't bite you (for all the newbs and non-developers)
you could always locate the XML code on this path on your device go to Application\Manila
InternetPortal.xml and InternetPortal-en-AU.xml
copy that and edit it on your desktop computer using a Notepad
note: make sure you have a back-up copy of the original better do this than sorry
then heres the original code just look the following highlighted text this is the one you going to change
***************************
<?xml version="1.0" encoding="utf-16"?>
<InternetPortal>
<IncludeUserFavorites>True</IncludeUserFavorites>
<Banner
DefaultImagePath="\Windows\480x200.qtc"
SelectedImagePath="\Windows\480x200.qtc"
Text="Launch Gee!"
NavigateUrl="http://gee-select.starhubgee.com.sg/wap/"
Width="480"
Height="215" />
<OperatorLinks>
<Link
Text="YouTube"
Executable="\windows\youtube.exe"
ImagePath="\Windows\HTC\Assets\Images\InternetPortal\youtube.qtc" />
</OperatorLinks>
</InternetPortal>
*******************************************
the first two highlighted text where the image path and the filename of icon that you just created... OK!?
example
DefaultImagePath="\Windows\myicon.png"
SelectedImagePath="\Windows\myicon.png"
second, I'm using a Blackstone that i bought in singapore so theres starhub logo and starhub link there so I've really don't know on your devices if were both the same but i think all htc devices were all the same when it comes to firmware.. so next on my device I got a welcome text
example
Text="Launch achu chu chu etc etc...or welcome to my world!"
Third Highlighted Text is the link of your banner
Whatever Link you may think that you usually go so often using your device
NavigateUrl="http://playboy.com"
and then FINALLY
copy this the two edited xml file and overwrite it on you devices, same path ofcourse.....Application\Manila, using Total Commander
then put your created art (PNG) on the main windows folder and viola, your personalized Internet Tab.......
...............................................................................
LIKE it..LOVE it.. HATE IT.. WHATEVER!! just enjoy it! ...
Hello,
In this tutorial I´ll show you how to change the height of your NavBar.
This Tutorial works for any Rom!
Requirements
Text-Editor, e.g. Notepad++
WinRar/WinZip/Bandzip
Apktool (Download)
installed Java (Download)
JDK (Download)
root on your Nexus 4
a FileManager like ES File Explorer or Root Explorer
your framework-res.apk
some Cmd experience (just a little)
.. and some time/nerves
.. let´s go
Before getting started, make a Nandroid Backup (if you get Bootoop etc)!
The decompliling:
First you need to create a new folder like "C:\apktool". Download Apktool and extract the files to C:\apktool
copy your framework-res.apk to C:\apktool
open Cmd
navigate to your apktool (with "cd C:\apktool")
type in: java -jar apktool.jar if framework-res.apk [enter] (...installation of your framework)
type in: java -jar apktool.jar d framework-res.apk [enter]
finished!
Now you should have a new folder named framework-res. That´s your decompiled framework-res.apk.
The customizing of your NavBar height:
Navigate to /res/values
open dimens.xml in your Text-Editor
search the 3 lines which include navigation_bar_height, navigation_bar_height_landscape, und navigation_bar_width
type in your desired dpi number (for default it´s 48dpi)
CAUTION: At width, you should calculate the numeral proportion of the height to the width.
If you got that, save!
The (Re-)compiling:
Cmd (if you have not left it open, you must navigate again to C:\apktool
type in: java -jar apktool.jar b framework-res [enter]
The newly compiled framework-res.apk is located in C:\apktool\framework-res\dist
CAUTION: Copy the META-INF folder and the AndroidManifest.xml from your old framework-res.apk to your newly compiled one! Otherwise you´ll get Bootloop.
Now copy your framework-res.apk with a file manager to /system/framework. After that reboot immediately!
Finished! Have fun with your smaller/higher NavBar.
If there are some question, ask in this thread, I´ll help you as good as possible. Please don´t write me PM´s with support requests.
The "small-print":
Neither XDA-Developers.com, nor me are responible for any damages on your device!
I'm pretty sure this is the same for changing your Navigation Bar white or any color you want?
But instead I think its the navbar.xml that you need to edit correct?
Sent from my Nexus 4 using xda app-developers app
Right. But maybe it's in SysUI.apk, I don't know right now.
~ via Nexus
Flextrick said:
Hello,
In this tutorial I´ll show you how to change the height of your NavBar.
This Tutorial works for any Rom!
Requirements
Text-Editor, e.g. Notepad++
WinRar/WinZip/Bandzip
Apktool (Download)
installed Java (Download)
JDK (Download)
root on your Nexus 4
a FileManager like ES File Explorer or Root Explorer
your framework-res.apk
some Cmd experience (just a little)
.. and some time/nerves
.. let´s go
Before getting started, make a Nandroid Backup (if you get Bootoop etc)!
The decompliling:
First you need to create a new folder like "C:\apktool". Download Apktool and extract the files to C:\apktool
copy your framework-res.apk to C:\apktool
open Cmd
navigate to your apktool (with "cd C:\apktool")
type in: java -jar apktool.jar if framework-res.apk [enter] (...installation of your framework)
type in: java -jar apktool.jar d framework-res.apk [enter]
finished!
Now you should have a new folder named framework-res. That´s your decompiled framework-res.apk.
The customizing of your NavBar height:
Navigate to /res/values
open dimens.xml in your Text-Editor
search the 3 lines which include navigation_bar_height, navigation_bar_height_landscape, und navigation_bar_width
type in your desired dpi number (for default it´s 48dpi)
CAUTION: At width, you should calculate the numeral proportion of the height to the width.
If you got that, save!
The (Re-)compiling:
Cmd (if you have not left it open, you must navigate again to C:\apktool
type in: java -jar apktool.jar b framework-res [enter]
The newly compiled framework-res.apk is located in C:\apktool\framework-res\dist
CAUTION: Copy the META-INF folder and the AndroidManifest.xml from your old framework-res.apk to your newly compiled one! Otherwise you´ll get Bootloop.
Now copy your framework-res.apk with a file manager to /system/framework. After that reboot immediately!
Finished! Have fun with your smaller/higher NavBar.
If there are some question, ask in this thread, I´ll help you as good as possible. Please don´t write me PM´s with support requests.
The "small-print":
Neither XDA-Developers.com, nor me are responible for any damages on your device!
Click to expand...
Click to collapse
Thanks dude!
"CAUTION: At width, you should calculate the numeral proportion of the height to the width."
What's the scale? I set 36dpi both on height and landsape_hight, what's the width should I do? And I want the background of navigation to more smaller...
First of all, please delete fullquote Second: Proportion is like 48:42=36:x (x is width, just calculate). And third: Which background do you mean?
~ via Nexus
Hello,
if somebody is interested: I built a graphical Apktool for easier modding. Check it out: http://forum.xda-developers.com/showthread.php?t=2326604
~ via Nexus
I am attempting this but its not working.
I have apktool, java, and JDK installed.
When I run the commands I get this...
Code:
c:\apktool>java -jar apktool.jar if framework-res.apk
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources:
spec=0x01080294 drawable/ic_ab_back_holo_dark, config=-xhdpi
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:65)
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:58)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:196)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:165
)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:130)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:10
5)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:82)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:48)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:39)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResource
s.java:384)
at brut.androlib.Androlib.installFramework(Androlib.java:365)
at brut.apktool.Main.cmdInstallFramework(Main.java:193)
at brut.apktool.Main.main(Main.java:69)
c:\apktool>java -jar apktool.jar d framework-res.apk
I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources:
spec=0x01080294 drawable/ic_ab_back_holo_dark, config=-xhdpi
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:65)
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:58)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:196)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:165
)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:130)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:10
5)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:82)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:48)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibRes
ources.java:315)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.jav
a:50)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.jav
a:43)
at brut.androlib.Androlib.getResTable(Androlib.java:44)
at brut.androlib.ApkDecoder.getResTable(ApkDecoder.java:148)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
at brut.apktool.Main.cmdDecode(Main.java:128)
at brut.apktool.Main.main(Main.java:65)
c:\apktool>
Any help would be great.
Or if someone wants to set my dpi to 24 that would be great as well. 24/24/24
framework-res.apk
Hello, I see. Maybe you should try this one here: http://forum.xda-developers.com/showthread.php?t=1755243
I created an AndroidApktool, which makes it easier to mod your files: http://forum.xda-developers.com/showthread.php?t=2326604
It helps you in this Tutorial much, too.
How do you move the old META-INF folder and AndroidManifest.xml into the new apk after it's already compiled?
With WinRar or 7zip etc.
I followed every step and I end up with same as paperecho, empty framework-res folder.
Do you get the same error as he?
Is it possible to set the alignment of the softkeys to the left side (especially for the Nexus 7/10)?
Thanks in advance
Sent from my Nexus 4 using xda premium
It's possible for sure, but I don't know how. Ive got no experience with tablets, sorry.
I'm also finished with empty folder framework-res..
Maybe you guys should download the newest apktool version and replace it with the one in my folder. I think this should solve your problem
Does anyone know what values they use to make the softkeys stay vertical when the phone is in landscape mode? I'm trying to do that with my tablets. Thanks
Works Great Nexus 4 and Nexus 10 Kitkat
In Android L, it didn't work in type in "java -jar apktool.jar if framework-res.apk" & "java -jar apktool.jar d framework-res.apk"...
Hello to all Developers and XDA members! I have come here to give you a few guides for some tethering mods, you just have to follow the instructions below so you can learn on how you can do it!
NOTE: This is an updated guide based on my guide that I have done a while ago here -> CLICK HERE, just updated for Kitkat.
What Is Required...
★ First you need to have experience and know how to decompile/recompile apks with Apktools, apkmanager, smali, and baksmali
★ Have 7-zip installed onto your computer/laptop
★ Make sure you have Notepad++ also installed!
★HOW TO ENABLE NATIVE TETHERING WITHOUT RESTRICTIONS★
STEP 1
★ Go into your system/framework folder and take out your "framework-res.apk"
★ Then use one of the applications such as apktools and then use the commands to decompile the framework-res.apk
★ Once you have decompiled the framework-res.apk, go to:
res/values/arrays.xml
Click to expand...
Click to collapse
Now open up "arrays.xml" with your notepad++ for editing.
Now for this part of this guide what I have highlighted in "GREEN" text is what you have to find using Notepad++, What you see in "RED" is the line you have to remove/delete completely, And also what you see in "BLUE" is the line you have to make changes to:
SEARCH FOR:
Code:
[COLOR="Green"]<string-array name="config_mobile_hotspot_provision_app">[/COLOR]
NOW REMOVE:
Code:
[COLOR="Red"] <string-array name="config_mobile_hotspot_provision_app">
<item>com.sec.tetheringprovision</item>
<item>com.sec.tetheringprovision.TetheringProvisionActivity</item>
</string-array>[/COLOR]
AND CHANGE TO:
Code:
[COLOR="Blue"]<array name="config_mobile_hotspot_provision_app" />[/COLOR]
ONCE DONE, IT WILL LOOK SOMETHING LIKE THIS:
Code:
<array name="config_tether_dhcp_range" />
[COLOR="Blue"]<array name="config_mobile_hotspot_provision_app" />[/COLOR]
<integer-array name="config_tether_upstream_types">
<item>0</item>
<item>1</item>
<item>4</item>
<item>5</item>
<item>7</item>
</integer-array>
Now recompile your framework-res.apk using apktools and your DONE!!!
NOTE: Remember by removing those "com.sec.tetheringprovision" lines in the arrays.xml, it bypasses all the checks, There will be no more popup message that's telling you to upgrade to a T-Mobile Hotspot Plan, and you will get no errors!. There is no need for any third party apps or creating a APN just to have Tether to work properly!
STEP 2
The next step that your going to have to do is go into your roms:
system/app
Click to expand...
Click to collapse
folder and then remove these two apks:
TetheringAutomation.apk
Click to expand...
Click to collapse
TetheringProvision.apk
Click to expand...
Click to collapse
The TetheringAutomation.apk and TetheringProvision.apk is no longer needed, so delete it.
STEP 3
Now for this step, this is going to give you the opportunity to edit/remove the locked APNS And also it will show you how you can see any of the hidden APN's from the "Access Point Names" Menu which is in Settings -> Connections -> More Networks -> Mobile Networks -> Access Point Names. Also this step your going to have to change the APN site name which makes you tether without bringing you into the T-Mobile Hotspot Browser Page.
First your going to have to go into your roms folder which is:
system/csc
Click to expand...
Click to collapse
And then open up "customer.xml" with your notepad++ for editing.
Now for this part of this guide what I have highlighted in "GREEN" text is what you have to find using Notepad++, What you see in "RED" is the line you have to remove/delete completely, And also what you see in "BLUE" is the line you have to make changes to:
SEARCH FOR:
Code:
[COLOR="Green"]<ProfileName>T-Mobile US LTE</ProfileName>[/COLOR]
NOW REMOVE:
Code:
<NetworkName>T-Mobile</NetworkName>
[COLOR="Red"]<Editable>no</Editable>[/COLOR]
<EnableStatus>enable</EnableStatus>
[COLOR="Green"]<ProfileName>T-Mobile US LTE</ProfileName>[/COLOR]
<Auth>none</Auth>
<MTUSize>1440</MTUSize>
<Bearer>ps</Bearer>
<Protocol>http</Protocol>
[COLOR="Red"]<IpVersion>ipv6</IpVersion>[/COLOR]
<Proxy>
<EnableFlag>off</EnableFlag>
</Proxy>
<PSparam>
<APN>fast.t-mobile.com</APN>
</PSparam>
</Profile>
<Profile>
AND CHANGE TO:
Code:
<NetworkName>T-Mobile</NetworkName>
[COLOR="Blue"]<Editable>yes</Editable>[/COLOR]
<EnableStatus>enable</EnableStatus>
[COLOR="Green"]<ProfileName>T-Mobile US LTE</ProfileName>[/COLOR]
<Auth>none</Auth>
<MTUSize>1440</MTUSize>
<Bearer>ps</Bearer>
<Protocol>http</Protocol>
[COLOR="Blue"]<IpVersion>ipv4</IpVersion>[/COLOR]
<Proxy>
<EnableFlag>off</EnableFlag>
</Proxy>
<PSparam>
<APN>fast.t-mobile.com</APN>
</PSparam>
</Profile>
<Profile>
NOW SEARCH FOR:
Code:
[COLOR="Green"]<ProfileName>T-Mobile Tethering</ProfileName>[/COLOR]
NOW REMOVE:
Code:
<NetworkName>T-Mobile</NetworkName>
[COLOR="Red"]<Editable>no</Editable>[/COLOR]
<EnableStatus>enable</EnableStatus>
[COLOR="Green"]<ProfileName>T-Mobile Tethering</ProfileName>[/COLOR]
<Auth>none</Auth>
<MTUSize>1440</MTUSize>
<Bearer>ps</Bearer>
<Protocol>http</Protocol>
<Proxy>
<EnableFlag>off</EnableFlag>
</Proxy>
<PSparam>
[COLOR="Red"]<APN>pcweb.tmobile.com</APN>[/COLOR]
</PSparam>
</Profile>
<Profile>
AND CHANGE TO:
Code:
<NetworkName>T-Mobile</NetworkName>
[COLOR="Blue"]<Editable>yes</Editable>[/COLOR]
<EnableStatus>enable</EnableStatus>
[COLOR="Green"]<ProfileName>T-Mobile Tethering</ProfileName>[/COLOR]
<Auth>none</Auth>
<MTUSize>1440</MTUSize>
<Bearer>ps</Bearer>
<Protocol>http</Protocol>
<Proxy>
<EnableFlag>off</EnableFlag>
</Proxy>
<PSparam>
[COLOR="Blue"]<APN>fast.t-mobile.com</APN>[/COLOR]
</PSparam>
</Profile>
<Profile>
Now what your doing is changing where it says <Editable>no</Editable> into <Editable>yes</Editable>. By changing this, this will give you the permission to edit/remove this APN setting. Next your going to change <IpVersion>ipv6</IpVersion> to <IpVersion>ipv4</IpVersion>. When the APN protocol is on ipv6 I couldn't get Tethering to play nicely when tethering my device to my PC, once I have changed the APN Protocol to ipv4 it worked perfectly! Also you can change <IpVersion>ipv6</IpVersion> to <IpVersion>ipv4v6</IpVersion>, It has also worked for me so try which one works best for you. Once your done with that go to where it says <APN>pcweb.tmobile.com</APN> and change it into <APN>fast.t-mobile.com</APN>. By changing this APN site name it should give you total access for you to tether without bringing you into the T-Mobile Hotspot Browser Page from your PC's internet browser. If <APN>fast.t-mobile.com</APN> isn't working for you change it to <APN>epc.tmobile.com</APN>. I believe fast.t-mobile.com has to do with LTE and epc.tmobile.com has to do with No LTE.
Now save this file with the new edits with Notepad++ and your DONE!
But your not done yet with this step, The Tethering APN that you have modified from "above" is still hidden. Now what your going to have to do is go into your roms folder again to:
system/csc
Click to expand...
Click to collapse
And then open up "feature.xml" with your notepad++ for editing.
Now with Notepad++ go and find:
<CscFeature_Setting_HideApnList>pcweb.tmobile.com,ims</CscFeature_Setting_HideApnList>
Click to expand...
Click to collapse
Now DELETE THIS WHOLE LINE! [This csc feature hides the T-Mobile Tethering APN that you have modified from above from view]. By removing it completely it will now show in "Settings -> Connections -> More Networks -> Mobile Networks -> Access Point Names". Once done save your changes with Notepad++ and your DONE!
STEP 3
★ Go into your system/framework folder and take out your "services.jar"
★ Then use one of the applications such as a baksmali tool and then use the commands to baksmali the services.jar
★ Once you have decompiled the services.jar, go to:
smali/com/android/server/connectivity/Tethering.smali
Click to expand...
Click to collapse
Now open up "Tethering.smali" with your notepad++ for editing.
Now for this part of this guide what I have highlighted in "GREEN" text is what you have to find using Notepad++, What you see in "RED" is the line you have to remove/delete completely, And also what you see in "BLUE" is the line you have to make changes to:
SEARCH FOR:
Code:
[COLOR="Green"]const-string v1, "Set dun requiered as 1"[/COLOR]
NOW REMOVE:
Code:
.line 1827
:try_start_a1
iget-object v0, p0, Lcom/android/server/connectivity/Tethering;->mContext:Landroid/content/Context;
invoke-virtual {v0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
move-result-object v0
const-string/jumbo v1, "tether_dun_required"
[COLOR="Red"]const/4 v2, 0x1[/COLOR]
invoke-static {v0, v1, v2}, Landroid/provider/Settings$Secure;->putInt(Landroid/content/ContentResolver;Ljava/lang/String;I)Z
.line 1828
const-string v0, "Tethering"
[COLOR="Green"]const-string v1, "Set dun requiered as 1"[/COLOR]
invoke-static {v0, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
:try_end_b5
.catchall {:try_start_a1 .. :try_end_b5} :catchall_f6
NOW CHANGE TO:
Code:
.line 1827
:try_start_a1
iget-object v0, p0, Lcom/android/server/connectivity/Tethering;->mContext:Landroid/content/Context;
invoke-virtual {v0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
move-result-object v0
const-string/jumbo v1, "tether_dun_required"
[COLOR="Blue"]const/4 v2, 0x0[/COLOR]
invoke-static {v0, v1, v2}, Landroid/provider/Settings$Secure;->putInt(Landroid/content/ContentResolver;Ljava/lang/String;I)Z
.line 1828
const-string v0, "Tethering"
[COLOR="Green"]const-string v1, "Set dun requiered as 1"[/COLOR]
invoke-static {v0, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
:try_end_b5
.catchall {:try_start_a1 .. :try_end_b5} :catchall_f6
STILL HAVING PROBLEMS WITH TETHERING EVEN AFTER THE MOD? - Go into "Settings -> Connections -> More Networks -> Mobile Networks -> Access Point Names" and then press your phone's "Menu Settings Key" on the bottom left of your phone and then select "Reset To Default" and see if that helps.
★HOW TO ENABLE BLUETOOTH TETHERING★
This guide will show you how you can enable bluetooth tethering so here is how you can do it!
STEP 1
★ Go into your system/framework folder and take out your "framework-res.apk"
★ Then use one of the applications such as apktools and then use the commands to decompile the framework-res.apk
★ Once you have decompiled the framework-res.apk, go to:
res/values/arrays.xml
Click to expand...
Click to collapse
Now open up "arrays.xml" with your notepad++ for editing.
Now for this part of this guide what I have highlighted in "GREEN" text is what you have to find using Notepad++, What you see in "RED" is the line you have to remove/delete completely, And also what you see in "BLUE" is the line you have to make changes to:
SEARCH FOR:
Code:
[COLOR="Green"]<array name="config_tether_bluetooth_regexs" />[/COLOR]
IT WILL LOOK SOMETHING LIKE BELOW:
Code:
<array name="config_tether_wimax_regexs" />
[COLOR="Green"]<array name="config_tether_bluetooth_regexs" />[/COLOR]
<array name="config_tether_dhcp_range" />
NOW REMOVE:
Code:
<array name="config_tether_wimax_regexs" />
[COLOR="Red"]<array name="config_tether_bluetooth_regexs" />[/COLOR]
<array name="config_tether_dhcp_range" />
AND CHANGE TO:
Code:
<array name="config_tether_wimax_regexs" />
[COLOR="Blue"]<string-array name="config_tether_bluetooth_regexs">
<item>bnep\\d</item>
<item>bt-pan</item>
</string-array>[/COLOR]
<array name="config_tether_dhcp_range" />
Once done save changes, recompile your framework-res.apk using apktools and your DONE!
After step 1 the Bluetooth Tethering setting will now show in "Settings -> Connections -> Tethering And Mobile Hotspot". Even while enabling the setting Bluetooth Internet Access Connection will still not work and the Bluetooth Internet Access setting in the Paired Bluetooth Device menu will not show on any device that your trying to pair with which seems to only work on Sprint/International Note 3 Variants. I have gotten it to work on Jellybean and also I have gotten it to work on Kitkat firmware on our T-Mobile Note 3 Device (Should also work for ATT/Verizon Note 3 devices) which is so simple to do so go to step 2 below on how I got it to work!
STEP 2
1. To get Bluetooth Tethering Internet Access to work, your going to need to get any stock International based firmware/rom that is already deodexed/odexed! REMEMBER: GET IT ONLY FROM THE INTERNATIONAL VARIANT! Make sure your getting it from the same android version that your device is on so if your on T-Mobile and your latest updated stock firmware is 4.4.2 Kitkat (N900TUVUDNF1), your going to need to download the latest stock 4.4.2 Kitkat firmware from http://www.sammobile.com or get it from the International thread related to your specific device "Note 3".
Just As A Reference For This Part Of The Guide: The International SM-N9005 stock 4.4.2 Kitkat firmware from sammobile that I have downloaded is (N9005XXUFNF4).
Now once you get it deodexed (Or get any rom that is based off of N9005XXUFNF4), your going to have to go into the roms folder and go to:
KITKAT...
system/lib/hw
Click to expand...
Click to collapse
and take the bluetooth.default.so file from the International based rom, and add it into your T-Mobile/ATT/Verizon rom and your DONE! No smali work, no decompiling apks, nothing just overwrite that file to the same location into your rom and THAT'S ABOUT IT! If your on Jellybean, the file is renamed differently, check below!
JELLYBEAN...
system/lib/hw
Click to expand...
Click to collapse
and take the bplus.default.so file from the International based rom, and add it into your T-Mobile/ATT/Verizon rom and your DONE!
NOTE #1 - Because there are many International firmwares out based from the same android version, your going to have to download a few to get the right one.
NOTE #2 - This should work for all Galaxy/Note Samsung Devices And ETC! (Your going to have to test it out on the other devices and let me know.)
IF YOUR ON A N900TUVUDNF1 BASED ROM, FLASH THE FILE BELOW TO GET BLUETOOTH TETHERING (INTERNET ACCESS) TO WORK!
Download Link - CLICK HERE
taking this spot....
taking this one also :good:
Interesting for sure
Sent from my SAMSUNG-SM-N900A using Tapatalk
Thanks a bunch for this guide. Now to get my framework to recompile nicely....
On NF1 will the flash file take care of all the steps ... or it just for Bluetooth tethering?
Sent From Far Far Away !
What is bluetooth tethering used for?
mlock420 said:
What is bluetooth tethering used for?
Click to expand...
Click to collapse
Its connecting your other devices to your phone internet via Bluetooth. Regular tethering but via Bluetooth.
Sent from my SM-N900T using XDA Premium 4 mobile app
mlock420 said:
What is bluetooth tethering used for?
Click to expand...
Click to collapse
Most new wearables use bluetooth like the smartwatch's and stuff. So silly things like the old Gear 1 watch can actually access the play store and basically do everything a phone can like browse the web etc.
Chris
Frickkn sweet guide
thanks jovy, I found this guide was on the Samsung Galaxy S3 site, and yes that is how I learned on how to do this...
thanked all 3 posts...
I am on the latest nf1 and download the zip you provided and can not get blue tooth tethering to work. Any help would be great. Thanks in advance
Sent from my SM-G900W8 using XDA Premium 4 mobile app
Is there a way to make it flashable if your not as savvy with smai/ baksmali, apk tools.
demon28 said:
Is there a way to make it flashable if your not as savvy with smai/ baksmali, apk tools.
Click to expand...
Click to collapse
when I was reading back on Jovys SG S3 thread months ago, he never wanted to create a flashable since it would break other mods that the developers would do on there roms.
Beautiful. Am going to try on my s5 rom
mdiaz33685 said:
when I was reading back on Jovys SG S3 thread months ago, he never wanted to create a flashable since it would break other mods that the developers would do on there roms.
Click to expand...
Click to collapse
That makes sense I guess I'm a have to upgrade my skills. Thanks
I did a quick flashable zip with both unlimited tethering and Bluetooth tethering modifications completed. I have not been able to extensively test, but the phone does boot correctly, and the bluetooth tethering option is available. I am going to test it more tomorrow.
THIS WILL ONLY WORK ON TWEAKED 3 by dwitherell WITH NO THEME INSTALLED!
DO NOT USE WITH ANY OTHER ROMS OR TWEAKED3 + THEME COMBINATIONS!
You can grab the mod zip from http://www.androidfilehost.com/?fid=23578570567719327
If you want to revert the changes download and flash the zip file from http://www.androidfilehost.com/?fid=23578570567719326
Enjoy and many thanks jovy23 for this excellent mod!
Can someone make a flashable zip
Sent from my SM-N900T using XDA Premium 4 mobile app
I believe crackpot created one in the post before..
demon28 said:
I believe crackpot created one in the post before..
Click to expand...
Click to collapse
This for this rom only
Sent from my SM-N900T using XDA Premium 4 mobile app
This guide is simple for the design of your application , hide the action bar header in the app inventor project apk
What is need?
1) Apktool Multi Toll installed and configure on PC with java supports installed to decompile see more here
2) Notepad++ or other editor XML codes
3) The " your application.apk to decompile
4) Codes to add
5) knowledge compile and decompile and sign application
On apktool folder put your apk on folder place-apk-here-for-modding
example: C:\Users\\APK-Multi-Tool\place-apk-here-for-modding
1) Now Run script.bat
2) Select your apk type on make you decision the code 24
3) Now decompile typing code 9 and wait finish (don't close cmd screen)
Important keep always open apktool script.bat during the all process.
4)Now select on project folder the AndroidManifest.xml and open it with notepad++
5) Put this line code to resise your screen mode between the last line <uses-permission and before <application android: label .
<supports-screens android:resizeable="false" android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:anyDensity="false" />
The code will look like this
Code:
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
[COLOR="Blue"] <supports-screens android:resizeable="false" android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:anyDensity="false" />[/COLOR]
<application android:label="myappname" android:icon="@drawable/ya" android:debuggable="false">
Now go to hide the action bar " grey bar header"
Put this code android:theme="@android:style/Theme.Black.NoTitleBar" inside the < application after android:label and to left android:icon setup.
The code will look like this
Code:
<application android:label="myapp" [COLOR="blue"]android:theme="@android:style/Theme.Black.NoTitleBar"[/COLOR] android:icon="@drawable/ya" android:debuggable="false">
6) Now returns on apktool script.bat and type 12 to compile your apk. On next screen choice mode compilation line "Type Input 1 - 4:" type 1 to create an unsigned apk using the keep folder
Pay attencion on instructions when apktool stopped !
7) Now open up keep folder and delete and everything modified like of PNG, xmls, smali etc.... in this case you must be delete Androidmanifest.xml and resources. arsc files
8) Return on apktool screen and type enter to compile apk
When finished type 13 to sign your apk
Your apk compiled and modified ill be on place-apk-here-for-modding folder with name signed_"etc..."apk
Enjoy!!
Howdy, on a desktop W10 there's a registry key for customizing User Agent string within the Microsoft Edge:
Code:
HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\LowRegistry\CustomUserAgent
If one adds 2 values within:
Code:
CustomUA (String) - Full User Agent String
CustomUAActive (DWORD) - 1
Edge will use this one User Agent string inside its request header instead of the built-in one.
Is there any way to do the same with Windows 10 Mobile device without custom ROM? It seems like the content of this particular key is completely hidden - there's no way to access it and its children:
Code:
HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\
Maybe there's someone who knows how to achieve it.
Make reg file and aplly using interoptool?
augustinionut said:
Make reg file and aplly using interoptool?
Click to expand...
Click to collapse
Haven't tried with an interop unlock, only restoring NDKTSvc - it doesn't work. I'll definitely check your idea out and let you know whether it works on a interop-unlocked device. Thanks for a suggestion.
Just make that file.
Import does work, unfortunately the UA doesn't. Edge still uses one of either mobile or desktop User Agents. It seems like it's hardcoded inside a DLL with only a bunch of UA tokens from registry. However there might be a custom header registry key somewhere, maybe this way it can be achieved.
Please post that file.
augustinionut said:
Please post that file.
Click to expand...
Click to collapse
It won't change anything, for it doesn't work with ARM version of Microsoft Edge - got a response from Technet.
What does work:
Global override
Edge override
Partial override
AD 1.
This method changes whole UA string for every single HTTP/HTTPS request and breaks some stuff like downloading apps from Store (requires multiple retries) etc. One has to override USER-AGENT header (but it's strongly not recommended) by creating a key:
Code:
HKEY_LOCAL_MACHINE\Security\Internet Explorer\Custom Headers\HTTP\USER-AGENT
And setting its default value to your custom UA string (reboot required), e.g.
Code:
Mozilla/5.0 (Linux; Android 6.0.1; SM-G920V Build/MMB29K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.98 Mobile Safari/537.36
AD 2.
As I thought, 2 of predefined user agent strings reside within DLLs of Microsoft Edge. Changing them was a headache, because of obfuscation of the code. I'm not going to describe on how to do this, because it involves something more than just changing some values in order to make it work. The basic thing is that the strings pattern looks like this:
Code:
Mozilla/5.0 (Windows Phone 10.0; Android 6.0.1; <ManufacturerDisplayName>; <Device>) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<ParserVer> Mobile Safari/537.36 Edge/<EdgeVersionShort>
By changing these values to a hardcoded one without tokens you'll make your custom UA work.
AD 3.
Using previous knowledge of used tokens we can see that some of them may be taken directly from the registry (also looking at imported DLLs). Unfortunately, version tokens are based directly on the version of Edge's CP exe. What can be changed though is the ManufacturerDisplayName token and the Device token:
Code:
[HKEY_LOCAL_MACHINE\System\Platform\DeviceTargetingInfo]
PhoneManufacturerDisplayName = "Your desired name, e.g. Xiaomi"
PhoneModelName = "Your desired name, e.g. Redmi Note 8"
After rebooting and checking your user agent using Edge you'll see it's changed to:
Code:
Mozilla/5.0 (Windows Phone 10.0; Android 4.2.1; Xiaomi; Redmi Note 8) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.1.2311.135 Mobile Safari/537.36 Edge/14.10106
So, still no file?