访问Android的股票浏览器设置 [英] access android stock browser settings

查看:115
本文介绍了访问Android的股票浏览器设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过code来访问(或者修改)的股票Android浏览器的设置。是有可能,如果是这样 - 如何

I'd like to access (and change) settings of the stock android browser via code. Is it possible, and if so - how?

是的,它的编程问题 - 我想用code去改变它,而不是通过手动点击

YES, it's programming question - i'd like to change it by code, not by manual clicking.

什么做它的根设备?

推荐答案

Android的操作系统层面的安全模型基本上是prevents这一点。你的程序将需要以相同的用户ID作为浏览器或超级用户,除非你有用于签署的浏览器证书或您的应用程序仅适用于根深蒂固的手机是不可能的运行。

Android's operating system level security model basically prevents this. Your program would need to run as the same user ID as the browser or as the superuser, which is not possible unless you have the certificate used to sign the browser or your application is only for rooted phones.

在万一其中之一的话,你会确保浏览器未运行,然后简单地改变它的专用数据库。纵观器源应揭露什么,目前尚不清楚有关数据库和其他任何地方,它可能会被储存的东西。

In the unlikely event that one of these is the case, you would ensure the browser is not running and then simply change its private databases. Looking at the browser source should reveal anything that's not clear about the databases and any other places it might be storing things.

一段时间的努力,你可以使其他浏览器,它是股票之一,近双胞胎,但无论是协作提供了编程设置更改的API​​,或与你拥有的证书签名,让您的其他程序可以建立一个共享的用户ID并更改其设置分贝。

With some work, you could make an alternative browser that is a near twin of the stock one but either cooperates by providing an API for programmatic settings changes, or is signed with a certificate you do possess, so that your other program can establish a shared user id with it and change its settings db.

这篇关于访问Android的股票浏览器设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆