Information feedback method and system, the invention discloses a Android terminal abnormal operation wherein the method comprises the steps of: A, when the Android terminal operation is abnormal, the application to the backend system service to send the print and export file commands, the background system service with root authority; B, receiving service background system to order, begin to print and export kernel layer, the system layer and the application layer of the operation log file; C, the application activities to obtain the operation log file, and the user information, operation log files and describe the information package for the abnormal operation of abnormal information feedback to the user. The invention includes the operation log files, the user information and the abnormal description information of the kernel layer, the system layer and the application layer, and feedback all the information to the user, thereby providing a more comprehensive basis for the abnormal analysis.
【技术实现步骤摘要】
Android终端运行异常时的信息反馈方法及系统
本专利技术涉及Android系统异常问题处理
,尤其涉及一种Android终端运行异常时的信息反馈方法及系统。
技术介绍
在Android异常发生时,目前的解决方法是从应用层发起获取日志请求,以获取运行异常信息。这种方法执行的权限仅能保持和应用进程一致的权限,即为应用级权限,其不具有root权限(系统权限的一种),而Android为了对系统内部文件保护,仅对具有root权限的服务开放了所有文件的读取执行功能,而执行打印内核和系统运行日志都需要该权限,对于用户级应用而言无法打印内核信息等内容,其反馈信息必然不够完善。其仅能分析应用层的异常原因,无法跟踪应用层以下的系统和内核错误。因此,现有技术还有待于改进和发展。
技术实现思路
鉴于上述现有技术的不足,本专利技术的目的在于提供Android终端运行异常时的信息反馈方法及系统,旨在解决现有的解决方法只能基于应用层日志文件进行分析的问题。本专利技术的技术方案如下: 一种Android终端运行异常时的信息反馈方法,其中,包括步骤: A、当Android ...
【技术保护点】
一种Android终端运行异常时的信息反馈方法,其特征在于,包括步骤:A、当Android终端运行异常时,前台应用活动向后台系统服务发送执行打印并导出文件的命令,所述后台系统服务具有root权限;B、后台系统服务接收到命令后,开始打印并导出内核层、系统层以及应用层的运行日志文件;C、前台应用活动获取所述运行日志文件,并将用户信息、运行日志文件以及异常描述信息封装为运行异常信息,反馈给用户。
【技术特征摘要】
1.一种Android终端运行异常时的信息反馈方法,其特征在于,包括步骤: A、当Android终端运行异常时,前台应用活动向后台系统服务发送执行打印并导出文件的命令,所述后台系统服务具有root权限; B、后台系统服务接收到命令后,开始打印并导出内核层、系统层以及应用层的运行日志文件; C、前台应用活动获取所述运行日志文件,并将用户信息、运行日志文件以及异常描述信息封装为运行异常信息,反馈给用户。2.根据权利要求1所述的Android终端运行异常时的信息反馈方法,其特征在于,所述步骤A具体包括: Al、后台系统服务指定Socket连接的端口,并建立Socket服务器端,用于监听命令; A2、前台应用活动发起建立一个Socket连接,建立发送命令以及接收确认消息的数据通道,并作为Socket客户端连接到后台系统服务指定的端口 ; A3、当Android终端运行异常时,Socket客户端发送执行打印并导出文件的命令至Socket服务器端。3.根据权利要求2所述的Android终端运行异常时的信息反馈方法,其特征在于,所述步骤B具体包括: B1、Socket服务器端监听到Socket客户端发送的命令后,执行打印并导出内核层、系统层以及应用层的运行日志文件; B2、Socket服务器端发送给Socket客户端操作完毕的确认消息; B3,Socket客户端接收到确认消息后,提示用户描述异常信息,并接收用户输入的异常描述信息。4.根据权利要求1所述的Android终端运行异常时的信息反馈方法,其特征在于,所述步骤A之前还包括: A0、预先在系统初始化启动文件中定义后台系统服务的名称、对应的可执行模块的名称、权限、以及入口函数。5.一种Andr...
【专利技术属性】
技术研发人员:田静,
申请(专利权)人:TCL集团股份有限公司,
类型:发明
国别省市:
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。