CN105516805A - Method for starting APK based on external storage device and set top box - Google Patents

Method for starting APK based on external storage device and set top box Download PDF

Info

Publication number
CN105516805A
CN105516805A CN201610024702.2A CN201610024702A CN105516805A CN 105516805 A CN105516805 A CN 105516805A CN 201610024702 A CN201610024702 A CN 201610024702A CN 105516805 A CN105516805 A CN 105516805A
Authority
CN
China
Prior art keywords
external memory
memory equipment
apk
top box
set top
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610024702.2A
Other languages
Chinese (zh)
Inventor
周杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Software Group Co Ltd
Original Assignee
Inspur Software Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Software Group Co Ltd filed Critical Inspur Software Group Co Ltd
Priority to CN201610024702.2A priority Critical patent/CN105516805A/en
Publication of CN105516805A publication Critical patent/CN105516805A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/4424Monitoring of the internal components or processes of the client device, e.g. CPU or memory load, processing speed, timer, counter or percentage of the hard disk space used
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44213Monitoring of end-user related data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Databases & Information Systems (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Social Psychology (AREA)
  • Software Systems (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention provides a method for starting an APK (Android Package) based on an external storage device and a set top box, relates to the field of televisions, and aims to improve the flexibility of the Android set top box and facilitate the flexible use of the set top box. The method is applied to a set top box, the set top box comprises an external storage device detection unit and a packet management service unit, and the method comprises the following steps: the external storage device detection unit detects whether an external storage device is mounted to the set top box; if the external storage device detection unit detects that the external storage device is mounted to the set top box, broadcasting an external storage device mounting message; when monitoring the mounting information of the external storage equipment, the packet management service unit scans the external storage equipment and determines whether the external storage equipment is provided with an APK (android package); if the package management service unit scans that APK is installed in the external storage device, the APK in the external storage device is analyzed; and the packet management service unit starts the APK in the external storage equipment according to the analysis result of the APK in the external storage equipment.

Description

A kind of method and Set Top Box starting APK based on External memory equipment
Technical field
The present invention relates to TV domain, particularly relate to a kind of method and the Set Top Box that start APK based on External memory equipment.
Background technology
Android is a kind ofly mainly used in mobile device based on the freedom of Linux and the operating system of open source code, as smart mobile phone and panel computer, is led and exploitation by Google and open mobile phone alliance.Not yet have uniform Chinese title, the more people in CONTINENTAL AREA OF CHINA uses " Android ".In August, 2005 is purchased by Google and registers capital to.2007, Google increased income with Apache the authorization method of licence, has issued the source code of Android.2011, home videos progressed into intellectualization times, and Android is widely used in Intelligent set top box because of increasing income as operating system, had pulled open the curtain of Set Top Box intellectuality, Androidization.
But in the market, Android Set Top Box substantially all requires to forbid installing third-party application APK (AndroidPackage, Android installation kit).So take ADB (AndroidDebugBridge, the Android debugging bridge) function of closing android system and carrying technically, and forbid, from the External memory equipments such as USB flash disk, the measures such as APK are installed.Which greatly limits the flexibility that Android Set Top Box uses, limit the flexible use of marketing personal to Set Top Box, and bring very large puzzlement to exploitation.
Summary of the invention
Embodiments of the invention provide a kind of method and the Set Top Box that start APK based on External memory equipment, in order to improve the flexibility that Android Set Top Box uses, are convenient to the flexible use of marketing personal to Set Top Box.
For achieving the above object, embodiments of the invention adopt following technical scheme:
Embodiments provide a kind of method starting APK based on External memory equipment, be applied to Set Top Box, described Set Top Box comprises External memory equipment detecting unit and assures reason service unit, and described method comprises: whether described External memory equipment detecting unit detects has External memory equipment carry to described Set Top Box; If External memory equipment detecting unit has detected that External memory equipment carry is to described Set Top Box, then broadcast External memory equipment carry message; Described reason service unit of assuring, when listening to External memory equipment carry message, scans described External memory equipment, determines whether described External memory equipment is provided with APK; If described in assure reason service unit and scan in described External memory equipment APK is installed, then analyze the APK in described External memory equipment; Described reason service unit of assuring, according to the analysis result of the APK in described External memory equipment, starts the APK in described External memory equipment.
Alternatively, described reason service unit of assuring is according to the analysis result of the APK in described External memory equipment, the APK started in described External memory equipment comprises: described in assure reason service unit according to the analysis result of the APK in described External memory equipment, utilize the APK in intention Intent message initiated described External memory equipment.
Alternatively, at described reason service unit of assuring when listening to External memory equipment carry message, before described External memory equipment is scanned, also comprise: register broadcast reception monitor described assuring in reason service unit.
Alternatively, describedly register broadcast reception monitor comprise described assuring in reason service unit: add BroadcastReceiver class example in by the PackageManagerService constructed fuction in PackageManagerService class, registration broadcast reception monitor.
Alternatively, described External memory equipment carry message is android.intent.action.MEDIA_MOUNTED event message.
Further, embodiments providing a kind of Set Top Box, comprising: External memory equipment detecting unit, whether having External memory equipment carry to described Set Top Box for detecting; When External memory equipment carry having been detected to described Set Top Box, broadcast External memory equipment carry message; Assuring reason service unit, for when listening to External memory equipment carry message, described External memory equipment being scanned, determine whether described External memory equipment is provided with APK; Scan in described External memory equipment, APK is installed time, analyze the APK in described External memory equipment; And according to the analysis result of the APK in described External memory equipment, start the APK in described External memory equipment.
Alternatively, described in assure reason service unit, specifically for the analysis result according to the APK in described External memory equipment, utilize the APK in intention Intent message initiated described External memory equipment.
Alternatively, also comprise: registering unit, for registering broadcast reception monitor described assuring in reason service unit.
Alternatively, described registering unit, specifically for by adding BroadcastReceiver class example in the PackageManagerService constructed fuction in PackageManagerService class, registers broadcast reception monitor.
Alternatively, described External memory equipment carry message is android.intent.action.MEDIA_MOUNTED event message.
Embodiments provide a kind of method and the Set Top Box that start APK based on External memory equipment, the method starting APK based on External memory equipment is applied to Set Top Box, Set Top Box comprises External memory equipment detecting unit and assures reason service unit, and described method comprises: whether External memory equipment detecting unit detects has External memory equipment carry to described Set Top Box; If External memory equipment detecting unit has detected that External memory equipment carry is to Set Top Box, then broadcast External memory equipment carry message; Assuring reason service unit when listening to External memory equipment carry message, External memory equipment being scanned, determines whether External memory equipment is provided with APK; If assure reason service unit to scan in External memory equipment and have APK, then analyze the APK in External memory equipment; Assure reason service unit according to the analysis result of the APK in External memory equipment, start the APK in External memory equipment.Like this, Set Top Box can detect to during Set Top Box in time at External memory equipment carry, and scans APK in External memory equipment by assuring reason service unit, analyzes, and start APK to this APK.So, can will need in APK memory device mounted externally, and pass through External memory equipment carry in Set Top Box, the APK being started External memory equipment installation by Set Top Box realizes corresponding function, thus can the practicality of Set Top Box, and, avoid the restriction of forbidding installing third-party application APK in Set Top Box cleverly, facilitate the flexible use of marketing personal to Set Top Box, improve the flexibility that Android Set Top Box uses.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
A kind of schematic flow sheet starting the method for APK based on External memory equipment that Fig. 1 provides for the embodiment of the present invention;
The another kind that Fig. 2 provides for the embodiment of the present invention starts the schematic flow sheet of the method for APK based on External memory equipment;
The structural representation of a kind of Set Top Box that Fig. 3 provides for the embodiment of the present invention;
The structural representation of the another kind of Set Top Box that Fig. 4 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
It should be noted that, because existing Set Top Box requires the installation forbidding third-party application APK, therefore, third-party application APK cannot be installed in Set Top Box.In embodiments of the present invention, in order to improve the flexibility of Set Top Box, can by memory device mounted externally for third-party application APK.And Set Top Box in system initialization process, can call the APK assuring reason service unit scanning analysis system and carry, i.e. APK under scanning analysis/system/app catalogue.This is the management service of the existing APK of Set Top Box of android system.The present invention can utilize this service to complete scanning and the analysis of APK to be launched.
Based on this, embodiments provide a kind of method starting APK based on External memory equipment, be applied to Set Top Box, Set Top Box comprises External memory equipment detecting unit and assures reason service unit.As shown in Figure 1, described method comprises:
Step 101, External memory equipment detecting unit detect whether there is External memory equipment carry to Set Top Box.
It should be noted that, External memory equipment refers to the memory device that can be mounted to Set Top Box, can be USB flash disk, and other can store data and can be mounted to the memory device of Set Top Box to may also be SD card etc.
Concrete, whether the monitoring that the External memory equipment detecting unit in Set Top Box can be real-time has External memory equipment to be mounted in Set Top Box, detects whether there is External memory equipment carry to Set Top Box.
It should be noted that, whether the how real-time monitoring of the External memory equipment detecting unit in Set Top Box has External memory equipment to be mounted to Set Top Box is prior art, does not repeat them here.
Exemplary, if user has installed third-party application APK in USB flash disk, and wish the startup being realized third-party application APK by Set Top Box.Now, USB flash disk can be inserted in Set Top Box by user, and the External memory equipment detecting unit in Set Top Box is when USB flash disk is inserted into Set Top Box by user, can be tested with External memory equipment carry to Set Top Box.Be, USB flash disk carry can be tested with to Set Top Box.
If step 102 External memory equipment detecting unit has detected that External memory equipment carry is to Set Top Box, then broadcast External memory equipment carry message.
Concrete, the External memory equipment detecting unit of Set Top Box, when being tested with External memory equipment carry to Set Top Box, may have third-party application need start in Set Top Box.Now, the External memory equipment of Set Top Box need inform that the APK's that can start External memory equipment installation assures reason service unit.Therefore, the External memory equipment detecting unit broadcast External memory equipment carry message of Set Top Box.
Further, External memory equipment carry message is android.intent.action.MEDIA_MOUNTED event message.
As above described in example, the External memory equipment detecting unit of Set Top Box is when being tested with USB flash disk carry to Set Top Box, that need inform the APK that can start External memory equipment installation assures reason service unit, now, the External memory equipment detecting unit of Set Top Box can broadcast android.intent.action.MEDIA_MOUNTED event message.
Step 103, assure reason service unit when listening to External memory equipment carry message, External memory equipment is scanned, determines whether External memory equipment is provided with APK.
Concrete, Set Top Box assure reason service unit can analyze APK and start APK, therefore, at External memory equipment carry to Set Top Box, and after the External memory equipment detecting unit of Set Top Box broadcast External memory equipment carry message, the External memory equipment detecting unit broadcast External memory equipment carry message that service unit can listen to Set Top Box is managed in assuring of Set Top Box, now, Set Top Box assure reason service unit can know there is External memory equipment carry in Set Top Box, Set Top Box assure reason service unit can scan this External memory equipment, and then can know in External memory equipment whether APK is installed.
Set Top Box assure in each catalogue that reason service unit can detect under the root of External memory equipment whether have APK, thus can scan in External memory equipment whether APK is installed.
It should be noted that, if the reason service unit of assuring of Set Top Box scans do not have APK in External memory equipment, then the reason service unit of assuring of Set Top Box no longer performs following step.
As above, described in example, assuring of Set Top Box manages server unit after listening to the android.intent.action.MEDIA_MOUNTED event message of broadcast, can know there is External memory equipment carry in Set Top Box.Now, the bag management server of Set Top Box can scan USB flash disk, determines whether USB flash disk is provided with APK, supposes, assuring in certain catalogue that reason service unit scans under USB flash disk root of Set Top Box is provided with APK, then can determine in USB flash disk and install APK.
If step 104 assures reason, service unit scans in External memory equipment and is provided with APK, then analyze the APK in External memory equipment.
Concrete, assure reason service unit scan in External memory equipment APK is installed time, illustrate that user needs in Set Top Box, to start APK by External memory equipment, and then run this APK.Now, Set Top Box assure reason service unit can analyze the APK of External memory equipment, know this APK include which service (Service), which application (Activity) and these service bag name, the bag name etc. of application.
As above described in example, Set Top Box assure after reason service unit scans and be provided with APK in USB flash disk, the APK installed in USB flash disk can be analyzed, knows which service this APK includes, and the bag name etc. of each service.
Step 105, assure reason service unit according to the analysis result of the APK in External memory equipment, start the APK in External memory equipment.
Concrete, Set Top Box assure reason service unit after having analyzed the APK of External memory equipment, can which service that need start in APK be determined according to analysis result and/or apply.Now, the reason service unit of assuring of Set Top Box can according to analysis result, the APK in startup External memory equipment.
Further, assure reason service unit according to the analysis result of the APK in External memory equipment, the APK started in External memory equipment comprises: assure reason service unit according to the analysis result of the APK in External memory equipment, utilize the APK in Intent (intention) message initiated External memory equipment.
That is, assuring of Set Top Box manages service unit after having analyzed the APK in External memory equipment, can according to analysis result, the service of APK needing to start and/or the relevant information of application are carried into Intent message, the APK in the message initiated External memory equipment of Intent is sent by the APK of externally memory device, after receiving Intent message to make the APK of External memory equipment, the service of APK getting the needs startup of carrying in Intent message and/or the relevant information of application are resolved to this Intent message, thus the service of APK and/or the relevant information of application of startup is needed according to this, start service and/or the application of corresponding APK.
It should be noted that, on the service of APK needing to start or the relevant information of application are carried into Intent message and refer to, the service of APK needing to start and/or the bag name information of application can be carried into Intent message.Or the service of APK needing to start and/or the action message of application are carried into Intent message.Certainly, can also carry other information, the present invention is not restricted this.
As above described in example, Set Top Box assure after APK that reason service unit installs in USB flash disk analyzes, according to analysis result, the service and/application that comprise according to the APK installed in USB flash disk can be, determine service/or the application of the APK that need start.Now, Set Top Box assure reason service unit can by the service/of the APK that need start or application bag name information be added in Intent message, be sent to the APK of USB flash disk.After the APK of USB flash disk receives this Intent message, Intent message can be resolved, and then know the service/of the APK that the need carried in Intent message start or the bag name information of application, and then the bag name information of the service/of the APK that need be able to start according to these or application, start service/or the application of corresponding APK.
So, in the invention process can by need Set Top Box to install third-party application APK memory device mounted externally in, and not to be arranged in Set Top Box.When External memory equipment carry is to Set Top Box, by the third-party application APK assuring the installation of reason service unit startup External memory equipment in Set Top Box, thus this APK can be run in Set Top Box.And when no longer carry is to External memory equipment for External memory equipment, Set Top Box is not reruned this APK.By said method, the ROM of Set Top Box can not be changed, when Set Top Box forbids installing third-party application APK, can achieve, in Set Top Box, third-party application APK is not installed, but can APK be run.Thus avoid the restriction of forbidding installing third-party application APK in Set Top Box cleverly, facilitate the flexible use of marketing personal to Set Top Box, improve the flexibility that Android Set Top Box uses.
Further, before above-mentioned steps 103, as shown in Figure 2, also comprise:
Step 106, assure reason service unit in register broadcast reception monitor.
Concrete, due to Set Top Box assure reason service unit can analyze the APK in Set Top Box and start, therefore, when APK is installed in External memory equipment, need when External memory equipment carry is to Set Top Box, manage service unit realization to the analysis of the APK installed in External memory equipment and startup by assuring of Set Top Box.Now, need when External memory equipment carry is to Set Top Box, that informs Set Top Box assures reason service unit.And when External memory equipment carry is to Set Top Box, the External memory equipment detecting unit of Set Top Box can detect that External memory equipment carry is to Set Top Box, and broadcast External memory equipment carry message.Therefore, assure the External memory equipment carry message that reason service unit needs to listen to broadcast, now, can assure reason service unit in register broadcast reception monitor so that by broadcast reception monitor receive Set Top Box External memory equipment detecting unit broadcast External memory equipment carry message.
Further, register broadcast reception monitor and comprise assuring in reason service unit: add BroadcastReceiver class example in by the PackageManagerService constructed fuction in PackageManagerService class, registration broadcast reception monitor.
Wherein, assuring reason service unit is realized by the PackageManagerService constructed fuction in PackageManagerService class.Therefore, when registering broadcast reception monitor, need to add BroadcastReceiver class example in the PackageManagerService constructed fuction in PackageManagerService class, realize onReceive interface in BroadcastReceiver class.
Further, the false code of adding BroadcastReceiver class example in the PackageManagerService constructed fuction specifically in PackageManagerService class is as follows:
It should be noted that, in embodiments of the present invention, the execution sequence between step 106 and step 101-102 is not limited.First can perform step 101-102, in execution step 106; Also first step 106 can be performed, at execution step 101-102; Step 101-102 can also be performed simultaneously, and step 106.Only indicate a kind of situation in the example shown.
Embodiments provide a kind of method starting APK based on External memory equipment, the method starting APK based on External memory equipment is applied to Set Top Box, Set Top Box comprises External memory equipment detecting unit and assures reason service unit, and described method comprises: whether External memory equipment detecting unit detects has External memory equipment carry to described Set Top Box; If External memory equipment detecting unit has detected that External memory equipment carry is to Set Top Box, then broadcast External memory equipment carry message; Assuring reason service unit when listening to External memory equipment carry message, External memory equipment being scanned, determines whether External memory equipment is provided with APK; If assure reason service unit to scan in External memory equipment and have APK, then analyze the APK in External memory equipment; Assure reason service unit according to the analysis result of the APK in External memory equipment, start the APK in External memory equipment.Like this, Set Top Box can detect to during Set Top Box in time at External memory equipment carry, and scans APK in External memory equipment by assuring reason service unit, analyzes, and start APK to this APK.So, can will need in APK memory device mounted externally, and pass through External memory equipment carry in Set Top Box, the APK being started External memory equipment installation by Set Top Box realizes corresponding function, thus can the practicality of Set Top Box, and, avoid the restriction of forbidding installing third-party application APK in Set Top Box cleverly, facilitate the flexible use of marketing personal to Set Top Box, improve the flexibility that Android Set Top Box uses.
Embodiments provide a kind of Set Top Box, as shown in Figure 3, comprising:
External memory equipment detecting unit 301, for detecting whether there is External memory equipment carry to Set Top Box; When External memory equipment carry having been detected to Set Top Box, broadcast External memory equipment carry message.
Concrete, External memory equipment carry message is android.intent.action.MEDIA_MOUNTED event message.
Assure reason service unit 302, for when listening to External memory equipment carry message, External memory equipment being scanned, determining whether External memory equipment is provided with APK; Scan in External memory equipment APK is installed time, analyze the APK in External memory equipment; And according to the analysis result of the APK in External memory equipment, start the APK in External memory equipment.
Concrete, assure reason service unit 302, specifically for the analysis result according to the APK in External memory equipment, utilize the APK in the message initiated External memory equipment of intention Intent.
Further, above-mentioned Set Top Box, as shown in Figure 4, also comprises:
Registering unit 303, for assure reason service unit 302 in register broadcast reception monitor.
Concrete, registering unit 303, specifically for by adding BroadcastReceiver class example in the PackageManagerService constructed fuction in PackageManagerService class, registers broadcast reception monitor.
Embodiments provide a kind of Set Top Box, the method starting APK based on External memory equipment is applied to Set Top Box, Set Top Box comprises External memory equipment detecting unit and assures reason service unit, and described method comprises: whether External memory equipment detecting unit detects has External memory equipment carry to described Set Top Box; If External memory equipment detecting unit has detected that External memory equipment carry is to Set Top Box, then broadcast External memory equipment carry message; Assuring reason service unit when listening to External memory equipment carry message, External memory equipment being scanned, determines whether External memory equipment is provided with APK; If assure reason service unit to scan in External memory equipment and have APK, then analyze the APK in External memory equipment; Assure reason service unit according to the analysis result of the APK in External memory equipment, start the APK in External memory equipment.Like this, Set Top Box can detect to during Set Top Box in time at External memory equipment carry, and scans APK in External memory equipment by assuring reason service unit, analyzes, and start APK to this APK.So, can will need in APK memory device mounted externally, and pass through External memory equipment carry in Set Top Box, the APK being started External memory equipment installation by Set Top Box realizes corresponding function, thus can the practicality of Set Top Box, and, avoid the restriction of forbidding installing third-party application APK in Set Top Box cleverly, facilitate the flexible use of marketing personal to Set Top Box, improve the flexibility that Android Set Top Box uses.
Last it is noted that above embodiment is only in order to illustrate technical scheme of the present invention, be not intended to limit; Although with reference to previous embodiment to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein portion of techniques feature; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (10)

1. start a method of APK based on External memory equipment, it is characterized in that, be applied to Set Top Box, described Set Top Box comprises External memory equipment detecting unit and assures reason service unit, and described method comprises:
Whether described External memory equipment detecting unit detects has External memory equipment carry to described Set Top Box;
If External memory equipment detecting unit has detected that External memory equipment carry is to described Set Top Box, then broadcast External memory equipment carry message;
Described reason service unit of assuring, when listening to External memory equipment carry message, scans described External memory equipment, determines whether described External memory equipment is provided with APK;
If described in assure reason service unit and scan in described External memory equipment APK is installed, then analyze the APK in described External memory equipment;
Described reason service unit of assuring, according to the analysis result of the APK in described External memory equipment, starts the APK in described External memory equipment.
2. method according to claim 1, is characterized in that, described in assure reason service unit according to the analysis result of the APK in described External memory equipment, the APK started in described External memory equipment comprises:
Described reason service unit of assuring, according to the analysis result of the APK in described External memory equipment, utilizes the APK in the message initiated described External memory equipment of intention Intent.
3. method according to claim 1, is characterized in that, at described reason service unit of assuring when listening to External memory equipment carry message, before scanning, also comprises described External memory equipment:
Broadcast reception monitor is registered described assuring in reason service unit.
4. method according to claim 3, is characterized in that,
Describedly register broadcast reception monitor comprise described assuring in reason service unit:
By adding BroadcastReceiver class example in the PackageManagerService constructed fuction in PackageManagerService class, registration broadcast reception monitor.
5. the method according to any one of claim 1-4, is characterized in that,
Described External memory equipment carry message is android.intent.action.MEDIA_MOUNTED event message.
6. a Set Top Box, is characterized in that, comprising:
Whether External memory equipment detecting unit, have External memory equipment carry to described Set Top Box for detecting; When External memory equipment carry having been detected to described Set Top Box, broadcast External memory equipment carry message;
Assuring reason service unit, for when listening to External memory equipment carry message, described External memory equipment being scanned, determine whether described External memory equipment is provided with APK; Scan in described External memory equipment, APK is installed time, analyze the APK in described External memory equipment; And according to the analysis result of the APK in described External memory equipment, start the APK in described External memory equipment.
7. Set Top Box according to claim 6, is characterized in that,
Describedly assure reason service unit, specifically for the analysis result according to the APK in described External memory equipment, utilize the APK in the message initiated described External memory equipment of intention Intent.
8. Set Top Box according to claim 6, is characterized in that, also comprises:
Registering unit, for registering broadcast reception monitor described assuring in reason service unit.
9. Set Top Box according to claim 8, is characterized in that,
Described registering unit, specifically for by adding BroadcastReceiver class example in the PackageManagerService constructed fuction in PackageManagerService class, registers broadcast reception monitor.
10. the Set Top Box according to any one of claim 6-9, is characterized in that,
Described External memory equipment carry message is android.intent.action.MEDIA_MOUNTED event message.
CN201610024702.2A 2016-01-14 2016-01-14 Method for starting APK based on external storage device and set top box Pending CN105516805A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610024702.2A CN105516805A (en) 2016-01-14 2016-01-14 Method for starting APK based on external storage device and set top box

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610024702.2A CN105516805A (en) 2016-01-14 2016-01-14 Method for starting APK based on external storage device and set top box

Publications (1)

Publication Number Publication Date
CN105516805A true CN105516805A (en) 2016-04-20

Family

ID=55724390

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610024702.2A Pending CN105516805A (en) 2016-01-14 2016-01-14 Method for starting APK based on external storage device and set top box

Country Status (1)

Country Link
CN (1) CN105516805A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106658193A (en) * 2016-12-16 2017-05-10 天脉聚源(北京)传媒科技有限公司 Method and device for installing application program in set-top box
CN109275033A (en) * 2018-11-08 2019-01-25 四川长虹电器股份有限公司 A method of safety replacement smart television start-up picture
CN109413500A (en) * 2018-11-05 2019-03-01 四川长虹电器股份有限公司 A method of customization television set home court scape
CN111200739A (en) * 2020-01-03 2020-05-26 上海小麦互动企业发展有限公司 Method for infinitely installing apk

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1509080A (en) * 2002-12-19 2004-06-30 北京中视联数字系统有限公司 Modulized digital television set top box
CN101355642A (en) * 2008-09-10 2009-01-28 北京数码视讯科技股份有限公司 Digital television receiving terminal
CN201491113U (en) * 2009-08-03 2010-05-26 深圳市快播科技有限公司 TV system and management module
CN201491188U (en) * 2009-08-13 2010-05-26 深圳市九洲电器有限公司 Set-top box and multiple-video format decoding device thereof
US20100208136A1 (en) * 2009-02-19 2010-08-19 Sony Corporation Television operative to download new functional applications via an external software module and to execute the same without additional hardware
CN103077058A (en) * 2013-01-06 2013-05-01 邓海勤 Method and device for installing application program
CN103092663A (en) * 2013-02-04 2013-05-08 东莞宇龙通信科技有限公司 Method for installing application program in terminal and device
CN103268235A (en) * 2013-04-23 2013-08-28 青岛海信宽带多媒体技术有限公司 Intelligent installation method of application programs of network set-top box based on Android platform
CN103618947A (en) * 2013-11-22 2014-03-05 北京奇虎科技有限公司 Method and device for displaying television external device files
WO2014206054A1 (en) * 2013-06-28 2014-12-31 Tencent Technology (Shenzhen) Company Limited Systems and methods for pushing applications

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1509080A (en) * 2002-12-19 2004-06-30 北京中视联数字系统有限公司 Modulized digital television set top box
CN101355642A (en) * 2008-09-10 2009-01-28 北京数码视讯科技股份有限公司 Digital television receiving terminal
US20100208136A1 (en) * 2009-02-19 2010-08-19 Sony Corporation Television operative to download new functional applications via an external software module and to execute the same without additional hardware
CN201491113U (en) * 2009-08-03 2010-05-26 深圳市快播科技有限公司 TV system and management module
CN201491188U (en) * 2009-08-13 2010-05-26 深圳市九洲电器有限公司 Set-top box and multiple-video format decoding device thereof
CN103077058A (en) * 2013-01-06 2013-05-01 邓海勤 Method and device for installing application program
CN103092663A (en) * 2013-02-04 2013-05-08 东莞宇龙通信科技有限公司 Method for installing application program in terminal and device
CN103268235A (en) * 2013-04-23 2013-08-28 青岛海信宽带多媒体技术有限公司 Intelligent installation method of application programs of network set-top box based on Android platform
WO2014206054A1 (en) * 2013-06-28 2014-12-31 Tencent Technology (Shenzhen) Company Limited Systems and methods for pushing applications
CN103618947A (en) * 2013-11-22 2014-03-05 北京奇虎科技有限公司 Method and device for displaying television external device files

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106658193A (en) * 2016-12-16 2017-05-10 天脉聚源(北京)传媒科技有限公司 Method and device for installing application program in set-top box
CN106658193B (en) * 2016-12-16 2019-09-13 天脉聚源(北京)传媒科技有限公司 The installation method and device of application program in a kind of set-top box
CN109413500A (en) * 2018-11-05 2019-03-01 四川长虹电器股份有限公司 A method of customization television set home court scape
CN109275033A (en) * 2018-11-08 2019-01-25 四川长虹电器股份有限公司 A method of safety replacement smart television start-up picture
CN109275033B (en) * 2018-11-08 2020-11-03 四川长虹电器股份有限公司 Method for safely replacing startup picture of smart television
CN111200739A (en) * 2020-01-03 2020-05-26 上海小麦互动企业发展有限公司 Method for infinitely installing apk

Similar Documents

Publication Publication Date Title
CN105516805A (en) Method for starting APK based on external storage device and set top box
CN102254113A (en) Method and system for detecting and intercepting malicious code of mobile terminal
CN104182688A (en) Android malicious code detection device and method based on dynamic activation and behavior monitoring
JP2009509212A5 (en)
CN106095517A (en) The method and device that a kind of end application runs
CN103617387B (en) A kind of method and device preventing automatic set up applications
CN108319854B (en) Incremental code static scanning method and device and computer readable storage medium
CN103473505A (en) Scanning prompt method and device for software vulnerabilities
US9747449B2 (en) Method and device for preventing application in an operating system from being uninstalled
CN102340398A (en) Security policy setting and determining method, and method and device for executing operation by application program
CN103514075B (en) The method and apparatus that monitoring api function is called in the terminal
US20160014123A1 (en) Apparatus and method for verifying integrity of applications
WO2014166231A1 (en) Method and device for setting application program state
CN104298915A (en) Installation package tampering preventing method
CN105704296B (en) Application environment cloning method and device
WO2017020458A1 (en) Plugin calling method and device
CN104978530A (en) Application security management method, application security management device, application management server and application security management system
CN104199704A (en) Application program installation package clearing method and device
CN105786636A (en) System repairing method and device
CN103369532B (en) A kind of black box detection method of mobile terminal from malicious software action
CN103902906A (en) Mobile terminal malicious code detecting method and system based on application icon
US10849210B2 (en) Low cost battery-less light switch architecture and pairing method
CN104298924A (en) Method and device for ensuring system safety and terminal
CN109344634B (en) Permission granting method and device for application, terminal and computer readable storage medium
CN107770143B (en) Method and device for verifying client validity

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160420

WD01 Invention patent application deemed withdrawn after publication