A kind of self-defining method of boot animation
Technical field
The present invention relates to field of set-top, exactly refer to a kind of self-defining method of boot animation.
Background technology
Android: be a kind of freedom based on Linux and the operating system of open source code, expand to gradually panel computer and other field, as top box of digital machine by now from being mainly used at first mobile device.Android Set Top Box: refer to and there is full open model platform, carried Android operating system, can be by user's program that the third party service provider such as installation and uninstall, game provides voluntarily, by this class method, constantly the function of TV is expanded, and can realize the Set Top Box general name of new generation of surfing the web by netting twine, wireless network.
Nowadays, along with the universal and application rapidly in various terminal electronic equipment of Android system, digital TV set-top box adopts Android system to become a kind of development trend.International and domestic manufacturer has issued numerous Set Top Box products based on Android system the designing and making boot animation differing from one another.But, due to these boot animations before product export just design construction get well, for user, be difficult to change or upgrade it.Want to change or upgrade boot animation, conventionally need manufacturer that renewal system or assistance are provided.And this approach is more complicated and process consuming time, conventionally allow user be difficult to accept.
International and domestic manufacturer has issued numerous Set Top Box products based on Android system the designing and making boot animation differing from one another.But, due to these boot animations before product export just design construction get well, for user, be difficult to change or upgrade it.Want to change or upgrade boot animation, conventionally need manufacturer that renewal system or assistance are provided.By this approach, on the one hand, it is to need the quite a long time that general manufacturer provides the whole set-top-box system software of renewal, and upgrades complex operation, and speed is slow, efficiency is low; On the other hand, likely manufacturer does not remove to change existing boot animation because of some reason.
Summary of the invention
For above-mentioned defect, the technical problem that the present invention solves is to provide a kind of boot animation self-defining method, and user can change Android set-top-box opening animation according to oneself hobby.
In order to solve above technical problem, the self-defining method of boot animation provided by the invention, comprises the following steps:
(1), prepare the zip format compression bag of Android boot animation;
(2), Android boot animation compressed package is copied to mobile storage disc, and mobile storage disc is connected in Android Set Top Box;
(3), by Android set-top box remote controller, enter USB Update menu, by Animation function, at mobile storage disc, find Android boot animation compressed package;
(4), the API that provides by Android system opens Android boot animation compressed package, obtains file wherein, and travels through wherein All Files, judges whether the file of desc.txt by name;
(5), as judgment result is that, the zip compressed package of mobile storage disc is copied to below system directory/system/media/, and by its RNTO bootanimation.zip;
(6), restart Android Set Top Box, complete the renewal of Android boot animation.
Preferably, in step (1), comprise that two kinds of modes prepare Android boot animation compressed package: according to Android boot animation, make rule, the own designing and making boot animation of user compressed package; Or obtain from network Android boot animation compressed package.
Preferably, in step (3), user is browsed described mobile storage disc and is found described Android boot animation compressed package by operation A ndroid set-top box remote controller, then chooses and opens it.
Preferably, in step (5), upgrade after Android set-top-box opening animation, also comprise copy selection step, if user's selection is that described Android boot animation compressed package is copied in the built-in system of Android Set Top Box; If user selects no, do not upgrade described Android set-top-box opening animation, and exit.
Preferably, in step (4), also comprise: as the determination result is NO, pointing out Android boot animation compressed package described in user is not legal Android boot animation compressed package, end operation.
In addition, the present invention provides a kind of boot animation self-defining method again, comprises the following steps:
(1), guarantee Android Set Top Box energy interconnection network;
(2), use the remote controller of Android Set Top Box, in menu, find boot animation function, use this function to be connected to given server, obtain the compressed package version information on server;
(3) the compressed package version information on server and current boot animation version information are made comparisons, if the version of current use is lower, whether prompting user upgrades, otherwise point out current boot animation, has been up-to-date;
(4) if select, upgrade, the boot animation compressed package in download server is below Android set-top box users data directory/app_tmp/;
(5), the API that provides by Android system opens the boot animation compressed package of having downloaded, and obtains file wherein, and travels through wherein All Files, judges whether the file of desc.txt by name;
(6), as judgment result is that, the compressed package of downloading is copied to below system directory/system/media/, and by its RNTO bootanimation.zip;
(7), restart Android Set Top Box, complete the renewal of Android boot animation.
Preferably, in step (2), user is browsed the described webserver and is found described Android boot animation compressed package by operation A ndroid set-top box remote controller, then chooses and opens it.
Preferably, in step (4), upgrade after Android set-top-box opening animation, also comprise copy selection step, if user's selection is that described Android boot animation compressed package is copied in the built-in system of Android Set Top Box; If user selects no, do not upgrade described Android set-top-box opening animation, and exit.
Preferably, in step (5), also comprise: as the determination result is NO, pointing out Android boot animation compressed package described in user is not legal Android boot animation compressed package, end operation.
The self-defining method of boot animation provided by the invention, only Android boot animation compressed package need be copied to mobile storage disc and is connected to Android Set Top Box, by operation set-top box remote controller, find the Android boot animation compressed package on mobile storage disc, or find Android boot animation compressed package and open it by Android Set Top Box browse network server; Open and resolve Android boot animation compressed package, whether judgement wherein there is desc.txt file, and whether final decision upgrades Android set-top-box opening animation, without user, goes Android Set Top Box to change or the complex operations such as system upgrade.Compared with prior art, the self-defining method of boot animation provided by the invention, user can change Android set-top-box opening animation according to oneself hobby.
Accompanying drawing explanation
Fig. 1 is the flow chart of the self-defining method of boot animation in the embodiment of the present invention 1;
Fig. 2 is the flow chart of the self-defining method of boot animation in the embodiment of the present invention 2;
Embodiment
For those skilled in the art can understand technical scheme provided by the present invention better, below in conjunction with specific embodiment, set forth.
Embodiment 1
Refer to Fig. 1, this figure is the flow chart of the self-defining method of boot animation in the embodiment of the present invention 1.
The self-defining method of boot animation that the embodiment of the present invention provides, comprises the following steps:
(1), prepare the zip format compression bag of Android boot animation;
(2), Android boot animation compressed package is copied to mobile storage disc, and mobile storage disc is connected in Android Set Top Box;
(3), by Android set-top box remote controller, enter USB Update menu, by Animation function, at mobile storage disc, find Android boot animation compressed package;
(4), the API that provides by Android system opens Android boot animation compressed package, obtains file wherein, and travels through wherein All Files, judges whether the file of desc.txt by name;
(5), as judgment result is that, the zip compressed package of mobile storage disc is copied to below system directory/system/media/, and by its RNTO bootanimation.zip;
(6), restart Android Set Top Box, complete the renewal of Android boot animation.
In step (1), comprise that two kinds of modes prepare Android boot animation compressed package: according to Android boot animation, make rule, the own designing and making boot animation of user compressed package; Or obtain from network Android boot animation compressed package.
In step (5), upgrade after Android set-top-box opening animation, also comprise that copy selects step, if to select be described Android boot animation compressed package to be copied to below the system directory/system/media/ of Android Set Top Box to user; If there is bootanimation.zip compressed package by name before this catalogue, cover, do not do any prompting; If user selects no, do not upgrade described Android set-top-box opening animation, and exit.
In step (4), also comprise: as the determination result is NO, pointing out Android boot animation compressed package described in user is not legal Android boot animation compressed package, end operation.
Above-mentioned mobile storage disc can be USB flash disk or portable hard drive etc.
Compared with prior art, the self-defining method of boot animation provided by the invention, user can change Android set-top-box opening animation according to oneself hobby.
Embodiment 2
Refer to Fig. 2, this figure is the flow chart of the self-defining method of boot animation in the embodiment of the present invention 2.
The self-defining method of boot animation that the embodiment of the present invention provides, comprises the following steps:
(1), guarantee Android Set Top Box energy interconnection network;
(2), use the remote controller of Android Set Top Box, in menu, find boot animation function, use this function to be connected to given server, obtain the compressed package version information on server;
(3) the compressed package version information on server and current boot animation version information are made comparisons, if the version of current use is lower, whether prompting user upgrades, otherwise point out current boot animation, has been up-to-date;
(4) if select, upgrade, the boot animation compressed package in download server is below Android set-top box users data directory/app_tmp/;
(5), the API that provides by Android system opens the boot animation compressed package of having downloaded, and obtains file wherein, and travels through wherein All Files, judges whether the file of desc.txt by name;
(6), as judgment result is that, the compressed package of downloading is copied to below system directory/system/media/, and by its RNTO bootanimation.zip;
(7), restart Android Set Top Box, complete the renewal of Android boot animation.
In step (4), upgrade after Android set-top-box opening animation, also comprise copy selection step, if user's selection is that described Android boot animation compressed package is copied in the built-in system of Android Set Top Box; If user selects no, do not upgrade described Android set-top-box opening animation, and exit.
In step (5), also comprise: as the determination result is NO, pointing out Android boot animation compressed package described in user is not legal Android boot animation compressed package, end operation.
Compared with prior art, the self-defining method of boot animation provided by the invention, user can change Android set-top-box opening animation according to oneself hobby.
Above-mentioned explanation to the disclosed embodiments, makes professional and technical personnel in the field can realize or use the present invention.To the multiple modification of these embodiment, will be apparent for those skilled in the art, General Principle as defined herein can, in the situation that not departing from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention will can not be restricted to these embodiment shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.