The invention discloses an information access method, a device and a computer readable storage medium, belonging to the terminal technical field. The method comprises: when receiving the information of the target access instructions in the process of operation of the target web application, application of privilege of detecting that the target web application is the target interface to access the target information access based on the target; the interface for the literal script language JS used to access the target information the extended interface, the privileged application for setting the web application access; when detecting the target web application with the access permissions, through the interface to access the target information. The present invention to access the target information of the target through the interface in target web application, a privilege only application detects the target web application based on target information with access permissions, access to information, access to the information terminal to avoid malicious web application, improve the security of information access.
【技术实现步骤摘要】
信息访问方法、装置及计算机可读存储介质
本专利技术涉及终端
,特别涉及一种信息访问方法、装置及计算机可读存储介质。
技术介绍
随着科学技术的发展,诸如电视机等终端越来越趋于智能化,这些终端中也渐渐可以安装各种各样的网页应用(WebApp)。其中,网页应用是指运行在浏览器中,且通过HTML(HyperTextMarkupLanguage,超文本标记语言)来开发的应用。由于HTML标准比较局限,为了实现网页应用的多功能,绝大多数的终端需要在HTML标准中扩展出各种JS(JavaScript,直译式脚本语言)扩展接口。网页应用通过JS扩展接口可以访问终端中的各种信息,从而实现多种功能。比如,当终端为智能电视时,智能电视中的网页应用可以通过JS扩展接口调用电视关机功能相关信息,从而通过该网页应用关闭智能电视。目前,终端中的JS扩展接口是在浏览器内核自身编译阶段,内置到安装的浏览器的固有接口,或者是浏览器通过一些通用的扩展机制实现的接口扩展,比如,插件机制NPAPI(NetscapePluginApplicationProgrammingInterface,网景插件应 ...
【技术保护点】
一种信息访问方法,其特征在于,所述方法包括:当在运行目标网页应用的过程中接收到目标信息的访问指令时,基于特权应用检测所述目标网页应用是否具有通过目标接口访问所述目标信息的访问权限;其中,所述目标接口为用于访问所述目标信息的直译式脚本语言JS扩展接口,所述特权应用用于设置网页应用的访问权限;当检测到所述目标网页应用具有所述访问权限时,通过所述目标接口访问所述目标信息。
【技术特征摘要】
1.一种信息访问方法,其特征在于,所述方法包括:当在运行目标网页应用的过程中接收到目标信息的访问指令时,基于特权应用检测所述目标网页应用是否具有通过目标接口访问所述目标信息的访问权限;其中,所述目标接口为用于访问所述目标信息的直译式脚本语言JS扩展接口,所述特权应用用于设置网页应用的访问权限;当检测到所述目标网页应用具有所述访问权限时,通过所述目标接口访问所述目标信息。2.如权利要求1所述的方法,其特征在于,所述基于特权应用检测所述目标网页应用是否具有通过目标接口访问所述目标信息的访问权限,包括:拉起特权应用,并通过所述特权应用显示第一提示信息,所述第一提示信息用于提示是否允许继续访问所述目标信息;当基于所述第一提示信息接收到确定访问指令时,通过所述特权应用设置所述目标网页应用的访问权限为允许访问,并确定所述目标网页应用具有通过所述目标接口访问所述目标信息的访问权限。3.如权利要求2所述的方法,其特征在于,所述通过所述特权应用显示第一提示信息之后,还包括:当基于所述第一提示信息接收到取消访问指令时,通过所述特权应用设置所述目标网页应用的访问权限为不允许访问,并确定所述目标网页应用不具有通过所述目标接口访问所述目标信息的访问权限。4.如权利要求1所述的方法,其特征在于,所述基于特权应用检测所述目标网页应用是否具有通过目标接口访问所述目标信息的访问权限,包括:获取通过所述特权应用对所述目标接口设置的访问策略;当所述目标接口的访问策略为支持所述目标网页应用调用所述目标接口时,确定所述目标网页应用具有所述访问权限;当所述目标接口的访问策略为不支持所述目标网页应用调用所述目标接口时,确定所述目标网页应用不具有所述访问权限。5.如权利要求1所述的方法,其特征在于,所述基于特权应用检测所述目标网页应用是否具有通过目标接口访问所述目标信息的访问权限,包括:获取通过所述特权应用设置的接口与应用标识之...
【专利技术属性】
技术研发人员:周立辉,
申请(专利权)人:青岛海信电器股份有限公司,
类型:发明
国别省市:山东,37
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。