browser user agent - G1 Android Development

i have hayruko build 5.02h and i would like to know if theres any way to change the browser user agent to desktop just like using steel browser where it has the option to change it.

I would also like to know. Javascript isnt working for me on 5.0.2H and the web pages render as if I was a generic phone.

well, as of yet, it's sacrifce between having zoom or no zoom and have generic phone google.
G build will have the browser that doesn't zoom, unless you use the hardware keyboard (menu + i or o )

Hve you considered e-mailing the developer of steel and asking where the user agaent file is and how to change it? You never know.

Open brower, type "about:debug" as the url, enter, menu->settings, right near the bottom is the option for UA string. (This is for rc33 but it could work for cupcake)

thank you! it does work!

It does work, unfortunately it doesn't stay. So after reboot or restart of Browser, it will revert back to old string.

The following works and can be edited to whatever with any notepad :
http://forum.xda-developers.com/showpost.php?p=3661716&postcount=49

How to set to desktop?
So, following up on that last post, I tried to set my user agent to desktop mode permanently, buy pulling, editing and pushing com.android.browser_preferences.xml to /data/data/com.android.browser/shared_prefs/com.android.browser_preferences.xml
In the <string name="default_user_agent"> field I copied-and-pasted the user agent from my desktop installation of Google Chrome, which is:
Code:
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/530.5 (KHTML, like Gecko) Chrome/2.0.172.31 Safari/530.5
But, no love. I'm still getting shoved into the mobile phone ghetto (I tried evernote.com and time.com).
Any idea what to set it to to get desktop behavior by default?
My altered com.android.browser_preferences.xml is:
Code:
<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
<map>
<boolean name="normal_layout" value="false" />
<string name="Operator">20801</string>
<boolean name="enable_tracing" value="false" />
<boolean name="remember_passwords" value="true" />
<boolean name="autofit_pages" value="true" />
<boolean name="enable_nav_dump" value="false" />
<boolean name="fix_picasa" value="false" />
<string name="default_user_agent">Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/530.5 (KHTML, like Gecko) Chrome/2.0.172.31 Safari/530.5</string>
<string name="user_agent">2</string>
<boolean name="wide_viewport" value="true" />
<string name="text_size">SMALLER</string>
<boolean name="open_in_background" value="false" />
<boolean name="accept_cookies" value="true" />
<boolean name="enable_light_touch" value="true" />
<boolean name="enable_plugins" value="true" />
<boolean name="small_screen" value="false" />
<string name="default_text_encoding">Latin-1</string>
<boolean name="enable_javascript" value="true" />
<string name="homepage">http://www.google.com/m?client=ms-unknown</string>
<boolean name="save_formdata" value="true" />
<boolean name="load_images" value="true" />
<int name="errorflag" value="0" />
<string name="default_ua_profile">http://www.htcmms.com.tw/Android/Common/HTC_Magic/ua-profile.xml</string>
<boolean name="show_security_warnings" value="true" />
<boolean name="block_popup_windows" value="true" />
<boolean name="login_initialized" value="true" />
</map>

Related

Prevent "End call" with face contact

Hi,
I've this reg for other devices, but I can't find a working one for my Topaz WM6.5 Leo.
This doesn't work at all
<characteristic type="HKLM\Drivers\BuiltIn\RIL">
<parm name="BatteryTimeoutInCall" value="1" datatype="integer" />
<parm name="BattSuspendTimeoutInCall" value="1" datatype="integer" />
<parm name="EnableFastDormantDisplayDuringCall" value="1" datatype="integer" />
</characteristic>
<characteristic type="HKCU\ControlPanel\Phone">
<parm name="Sleep" value="1" datatype="integer" />
</characteristic>
<characteristic type="HKCU\ControlPanel\BackLight">
<parm name="LightSensorPollingEnable" value="1" datatype="integer" />
</characteristic>
Click to expand...
Click to collapse
Does anyone know how to make phone lock during call so you can't push "End Call" with face?.
I don't want S2U2's or so ever. Just a reg that disables screen or hides end call during call...
Thanks in advance.

How to Provision Opera Mobile 10 [SOLVED]

I've been trying to create a provisioning file for use with UC Setup to set Opera mobile 10 as the default browser so that it works from e.g. the internet tab in manila. I finally found the solution:
<wap-provisioningdoc>
<characteristic type="Registry">
<characteristic type="HKLM\Software\Microsoft\Shell\Rai\EFBROWSER">
<parm name="0" datatype="string" value="Opera Mobile" />
<parm name="1" datatype="string" value=""\Program Files\Opera Mobile 10\Opera10-armv4i.exe"" />
<parm name="2" datatype="integer" value="1" />
<parm name="3" datatype="integer" value="0" />
</characteristic>
</characteristic>
</wap-provisioningdoc>
Save this file as opera.xml for instance on you storage card. Put the following line in SDConfig.txt
XML: \Storage Card\Opera.xml
Offcourse this only works on UC enabled ROMS.

Makisu and Gmail help

I set up my email accounts with makisu and everything works pretty well except for Gmail. Emails disappear after each send/receive, so after (or before) I read an email it will disappear from my phone's inbox. Also, for the first time today I received an email to my phone's inbox that I sent to someone else from my computer gmail. This used to happen on my motorola q so I was cool with it, but never happened when I used the regular gmail setup process on my TP2. Do I need to tweak the settings in order to get things working correctly? See below for my gmail settings. I changed the connectionID and character type as well since I didn't know if that was private or not...
Code:
<characteristic type="EMAIL2">
<characteristic type="{01040001-090c-0210-030b-0c070208020}">
<parm name="CONNECTIONID" value="{436EF144-B4FB-4863-A041-8F905A62C573}" />
<parm name="SERVICENAME" value="Gmail" />
<parm name="SERVICETYPE" value="POP3" />
<parm name="INSERVER" value="popgmail" />
<parm name="OUTSERVER" value="smtpgmail" />
<parm name="NAME" value="Angelo" />
<parm name="AUTHNAME" value="xxxx" />
<parm name="AUTHSECRET" value="xxxx" />
<parm name="DOMAIN" value="" />
<parm name="REPLYADDR" value="xxxx_AT_gmail" />
<parm name="FORMAT" value="2" />
<parm name="LINGER" value="10" />
<parm name="RETRIEVE" value="-1" />
<parm name="KEEPMAX" value="" />
<parm name="DWNDAY" value="3" />
<characteristic type="TAGPROPS">
<parm name="8128000B" value="1"/>
<parm name="812C000B" value="1"/>
</characteristic>
<parm name="AUTHREQUIRED" value="1" />
<parm name="SMTPALTENABLED" value="0" />
<parm name="SMTPALTAUTHNAME" value="" />
<parm name="SMTPALTPASSWORD" value="" />
</characteristic>
</characteristic>
Setup for Gmail:
Here is the bottom half of my XML file for Gmail. You should just be able to copy/paste. Hope it helps...
<parm name="LINGER" value="1440" />
<parm name="RETRIEVE" value="-1" />
<parm name="KEEPMAX" value="-1" />
<parm name="DWNDAY" value="-1" />
<characteristic type="TAGPROPS">
<parm name="8128000B" value="0"/>
<parm name="812C000B" value="0"/>
</characteristic>
<parm name="AUTHREQUIRED" value="1" />
<parm name="SMTPALTENABLED" value="0" />
<parm name="SMTPALTAUTHNAME" value="" />
<parm name="SMTPALTPASSWORD" value="" />
</characteristic>

need to override default sprint connection, please help

nevermind i got it
Just look in the .xml file of the cab which installs the tweaks. It should have the registry location in there.
I'm working on a mac
I am working on a mac here, I installed the update at a friends house. Mac OSX doest allow me to look at the XMLs of the cab, is there any way to do that through the phone without installing the cab, or does anyone know the registry that needs to be edited? Please let me know, my phone kinda sucks without internet. Thanks!
Looking at the XMLs
Ok, I managed to look within the XML files. there are quite a few here, I do not want to change the wrong one so if anyone can point me in the right dirrection, I would appreciate it.
- <characteristic type="HKLM\Software\OEM\PhoneSetting">
<parm name="AllowRoaming" value="1" datatype="integer" />
<parm name="AutoPrepend_1" value="1" datatype="integer" />
<parm name="DataCallLock" value="0" datatype="integer" />
<parm name="DataRoamGuard" value="1" datatype="integer" />
<parm name="DataRoamNeverAsk" value="1" datatype="integer" />
<parm name="ModemLock" value="0" datatype="integer" />
<parm name="PhoneSettingExt-DLL" value="PhoneAdvanced.dll" datatype="string" />
<parm name="RoamingAlert" value="0" datatype="integer" />
<parm name="ShowTimeSyncUpdateNow" value="1" datatype="integer" />
<parm name="TimeSyncUpdateNow_Method" value="1" datatype="integer" />
<parm name="VoiceLock" value="0" datatype="integer" />
</characteristic>
out of this one I think it might be the modem lock?
or
- <characteristic type="HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings">
<parm name="AggressiveCacheFlush" value="0" datatype="integer" />
<parm name="AllowCookies" value="0" datatype="integer" />
<parm name="DialogTimeOut" value="300000" datatype="integer" />
<parm name="DisableCachingOfSSLPages" value="0" datatype="integer" />
<parm name="EnableAutodial" value="1" datatype="integer" />
<parm name="EnableHttp1_1" value="1" datatype="integer" />
<parm name="EnableNegotiate" value="1" datatype="integer" />
<parm name="MaxConnectionsPerServer" value="10" datatype="integer" />
<parm name="ProxyHttp1.1" value="1" datatype="integer" />
<parm name="SecureProtocols" value="oAAAAA==" datatype="binary" />
<parm name="ShowDialogFullScreen" value="1" datatype="integer" />
<parm name="WarnOnPolicyDisallow" value="0" datatype="integer" />
<parm name="WarnOnZoneCrossing" value="0" datatype="integer" />
or
- <characteristic type="HKLM\Comm\ConnMgr\Providers\{7C4B7A38-5FF7-4bc1-80F6-5DA7870BB1AA}\Connections\Phone as Modem">
<parm name="AlwaysOn" value="0" datatype="integer" />
<parm name="ConnectionGUID" value="{E8F7941B-F379-E1C7-A25E-9C1425630A20}" datatype="string" />
<parm name="DestId" value="{ADB0B001-10B5-3F39-27C6-9742E785FCD4}" datatype="string" />
<parm name="Enabled" value="0" datatype="integer" />
<parm name="EntryType" value="0" datatype="integer" />
<parm name="ReadOnly" value="0" datatype="integer" />
<parm name="RequirePw" value="0" datatype="integer" />
<parm name="Secure" value="0" datatype="integer" />
<parm name="SecureLevel" value="0" datatype="integer" />
That might unlock your modem to accept different settings. If you want to try it, backup registry, change and test it. You shouldn't hurt anything else by changing that registry.
I believe you might also want to look into the "PhoneSettingsExt-DLL". Here is some info on that:
http://forum.ppcgeeks.com/showpost.php?p=1326489&postcount=17951
crxer0007 said:
nevermind i got it
Click to expand...
Click to collapse
Was ur issue with the sprint default connection keepin you from going online and receiving MMS? if so, what did u do because I'm havin that same prob?

[Q] ADW Icon pack question

Ok so im setting up the icon_pack.xml like this...
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string-array name="icon_pack" translatable="false">
<item>android_tether_mainactivity</item>
</string-array>
</resources>
When I install the apk on my phone and try to change an icon through the "adw icon pack" option it loads my theme but it doesn't display any of the icons but just a black empty screen. Any ideas?
Bump...
Does anyone have any idea on this? Im using this template kaydensigh-ADW.Theme-Template-99cb675 and i took the icon_pack.xml from AnderWeb-ADW.Theme-Template-d8491c4 and also edited my androidmanifest.xml with the following lines...
<action android:name="org.adw.launcher.icons.ACTION_PICK_ICON" />
<category android:name="android.intent.category.DEFAULT" />
The when i select to pick an icon from the theme images i have included i just get a black screen.
Hallo.
Got same problem, i found that in main.java theres no " addIcons(resources, packageName, R.array.icon_pack);" string, but dunno how to add it coz when i add whole function, got many errors ;(
Regreads
Pandik
www.android.pandik.pl

Categories

Resources