CN114756289A - Cloud mobile phone recovery method - Google Patents
Cloud mobile phone recovery method Download PDFInfo
- Publication number
- CN114756289A CN114756289A CN202210347933.2A CN202210347933A CN114756289A CN 114756289 A CN114756289 A CN 114756289A CN 202210347933 A CN202210347933 A CN 202210347933A CN 114756289 A CN114756289 A CN 114756289A
- Authority
- CN
- China
- Prior art keywords
- cloud
- mobile phone
- instance
- root
- cloud mobile
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 35
- 238000011084 recovery Methods 0.000 title claims abstract description 11
- 230000000977 initiatory effect Effects 0.000 claims abstract description 4
- 238000004064 recycling Methods 0.000 claims description 10
- 230000006835 compression Effects 0.000 description 7
- 238000007906 compression Methods 0.000 description 7
- 230000004048 modification Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Abstract
The invention discloses a cloud mobile phone recovery method, which comprises the following steps: step S1, when the relationship between the instance and the user is monitored, initiating an initialization process; step S2, detecting and judging whether the cloud mobile phone instance is in a root state or a non-root state at present; step S3, if the state is root, calling a third party interface to set the instance to be non-root; if the state is the non-root state, directly entering step S4; and step S4, resetting the example and resetting the cloud mobile phone interface.
Description
Technical Field
The invention relates to the technical field of cloud mobile phones, in particular to a cloud mobile phone recycling method.
Background
The cloud mobile phone is a smart mobile phone application cloud platform based on cloud computing powerful virtual application and mobile internet. Based on the outstanding advantages of cloud computing in large-scale computing, strong storage capacity, virtualization application and the like, the cloud platform provides diversified and omnibearing virtual mobile phone application and service for a smart mobile phone user, comprehensively supports display, downloading, application and management service of various mobile phone application programs, excellently realizes all-weather cloud intelligent hosting application, enables the user to be capable of hosting various application programs to a cloud under the state of being separated from a mobile terminal, keeps all-weather online state and comprehensively realizes smart mobile phone application virtualization.
A large number of single virtual cloud mobile phones exist in a cloud mobile phone background system, and each cloud mobile phone has a service life. And when the service life of the cloud mobile phone is expired, the cloud mobile phone system is initialized and is in a state to be recovered. Because each cloud mobile phone is used by different users for 7 × 24 hours, partial failures such as expiration of hardware life, insufficient storage space, hardware failure and the like exist, and therefore, the cloud mobile phones need to be recycled and then subjected to detailed detection and then put to other users for use.
At present, a cloud mobile phone is set to be in a root state by a user in a using process of the cloud mobile phone, the user can acquire the authority of the android system in the root state, and the user can use the cloud mobile phone better, but the root function is not required by all users, generally, the cloud machine with the root authority is set to be in a non-root authority when the cloud mobile phone is recycled, and therefore the next user using the cloud mobile phone can use the cloud mobile phone conveniently.
However, when the existing cloud mobile phone is recycled, the cloud mobile phone with root permission is not set as the non-root permission, and the cloud mobile phone is often required to be manually reset when a user takes the cloud mobile phone, so that inconvenience is brought to the user.
Disclosure of Invention
In order to overcome the defects in the prior art, the invention aims to provide a cloud mobile phone recovery method, by adding a non-root state change function in an initialization process during cloud mobile phone recovery, a cloud mobile phone instance is certainly a non-root instance after initialization, and the cloud mobile phone instance is convenient for a next user using the cloud mobile phone instance.
In order to achieve the above object, the present invention provides a cloud phone recycling method, which comprises the following steps,
step S1, when it is monitored that the instance is disassociated from the user, initiating an initialization procedure as follows:
step S2, detecting and judging whether the cloud mobile phone instance is in a root state or a non-root state at present;
step S3, if the state is root, calling a third party interface to set the instance to be non-root; if the state is the non-root state, directly entering step S4;
and step S4, resetting the example and resetting the cloud mobile phone interface.
Preferably, after step S4, the method further includes:
and step S5, pushing the cloud side SDK service compressed package, and installing the compressed package into the instance.
Preferably, after step S5, the method further includes:
step S6, the chmod command is executed to cause the script to acquire execution rights.
Preferably, after step S6, the method further includes:
and step S7, executing the upgrade script after acquiring the execution authority.
Preferably, after step S7, the method further includes:
and restarting the cloud mobile phone after the upgrading is successful.
Compared with the prior art, the cloud mobile phone recovery method has the advantages that the non-root state change function is added in the initialization process during cloud mobile phone recovery, so that the cloud mobile phone instance is certainly a non-root instance after the cloud mobile phone instance is recovered and initialized, the problem that the cloud mobile phone instance taken by a user in the prior art is possibly in a root state is solved, and the cloud mobile phone instance can be conveniently used by the user who uses the cloud mobile phone instance in the subsequent process.
Drawings
Fig. 1 is a flowchart illustrating steps of a cloud phone recycling method according to the present invention;
fig. 2 is a flowchart of an example of a recycling cloud phone in an embodiment of the present invention.
Detailed Description
Other advantages and capabilities of the present invention will be readily apparent to those skilled in the art from the present disclosure by describing the embodiments of the present invention with specific embodiments thereof in conjunction with the accompanying drawings. The invention is capable of other and different embodiments and its several details are capable of modification in various other respects, all without departing from the spirit and scope of the present invention.
Fig. 1 is a flowchart illustrating steps of a cloud phone recycling method according to the present invention. As shown in fig. 1, the cloud mobile phone recovery method of the present invention is applied to a cloud terminal management platform, that is, a background for cloud mobile phone instance deployment, and includes the following steps:
in step S1, when it is detected that the instance is disassociated from the user, the initialization process of step S2-step S8 is initiated.
Specifically, when a cloud mobile phone instance is disassociated with a corresponding user, the cloud mobile phone instance needs to be recovered, and when the system monitors that the cloud mobile phone instance is disassociated with the user, an initialization process is automatically initiated.
Step S2, detecting and determining whether the cloud mobile phone instance is in a root state or a non-root state currently.
Step S3, if the state is root, calling a third party interface to set the instance to be non-root; if the state is a non-root state, the process proceeds directly to step S4.
Specifically, if the cloud mobile phone instance is judged to be in the root state currently, a third-party interface is called, and if the cloud mobile phone instance is judged to be in the root state, the cloud mobile phone instance is set to be in the non-root state if the cloud mobile phone instance is in the interfaces of server providers such as Hua-Yun, V-Yun, Ali-Yun and Baidu clouds, and otherwise, the cloud mobile phone instance directly enters the step S4 if the cloud mobile phone instance is already in the non-root state.
And step S4, resetting the example and resetting the cloud mobile phone interface.
In the embodiment of the invention, a third-party interface is called to reset a cloud mobile phone interface, the third-party interface is an interface of a server provider such as Huashi cloud, Congying cloud, Alice cloud, Baidu cloud and the like, and the used example is the server provider, so that the example can only be reset by the interface provided by the server provider.
And step S5, pushing the cloud side SDK service compressed package, and installing the compressed package into the instance.
Specifically, a cloud-side SDK service compression package is pushed through a background task to automatically complete deployment of a cloud service end, the cloud-side SDK service compression package is stored in an OBS cloud server (a public cloud is a server specially used for storing files, and cloud-side service refers to service deployed to a cloud phone instance), the background is used for scheduling and using, the compression package is files required by the cloud-side server, and if the files exist, a communication connection can be established between a user and the cloud phone instance, so that the user can be normally used.
Step S6, the chmod command is executed to enable the script to obtain the execution permission, so that the script can be automatically run, where the script is a script in the SDK on the cloud side, that is, the background initiates a command to run the script in the SDK on the cloud side.
And step S7, executing the upgrading script after acquiring the authority.
And step S8, restarting the cloud mobile phone.
Examples
In this embodiment, a cloud mobile phone instance recovery is implemented, and a process of recovering a cloud mobile phone instance is as follows:
(1) recycling cloud phone instances
(2) Automatically initiating an initialization procedure
(3) Detecting whether an instance is a root or non-root state
(4) If the root state exists, a third party interface is called to set the instance to be in the non-root state
(5) Resetting the example, calling a third party interface to reset the cloud mobile phone interface, if the resetting is successful, entering (6), otherwise, returning to the example resetting;
(6) pushing a cloud side SDK service compression package, installing the compression package into an example, specifically, pushing the compression package to an interface of a cloud machine, and installing the compression package into the example through the cloud machine interface;
(7) executing a chmod command to obtain a permission running script, entering (8) when the modification is successful, otherwise, terminating the flow, and optionally, executing an asynchronous abd shell command to modify the permission;
(8) executing the upgrading script, entering (9) when the upgrading script is successfully executed, and otherwise, terminating the flow;
(9) and restarting the cloud machine after the upgrade script is successfully executed, ending the recovery process when the upgrade script is successfully restarted, and continuing restarting the cloud machine if the upgrade script is not successfully restarted.
The foregoing embodiments are merely illustrative of the principles and utilities of the present invention and are not intended to limit the invention. Modifications and variations can be made to the above-described embodiments by those skilled in the art without departing from the spirit and scope of the present invention. Therefore, the scope of the invention should be determined from the following claims.
Claims (5)
1. A cloud mobile phone recovery method comprises the following steps,
step S1, when it is monitored that the instance is disassociated from the user, initiating an initialization procedure as follows:
step S2, detecting and judging whether the cloud mobile phone instance is in a root state or a non-root state at present;
step S3, if the state is root, calling a third party interface to set the instance to be non-root; if the state is the non-root state, directly entering step S4;
and step S4, resetting the example and resetting the cloud mobile phone interface.
2. The cloud phone recycling method according to claim 1, wherein after step S4, the method further comprises:
and step S5, pushing the cloud side SDK service compressed package, and installing the compressed package into the instance.
3. The cloud phone recycling method according to claim 2, wherein after step S5, the method further comprises:
step S6, the chmod command is executed to cause the script to acquire execution rights.
4. The cloud phone recycling method according to claim 3, wherein after step S6, the method further comprises:
and step S7, executing the upgrade script after acquiring the execution authority.
5. The cloud phone recycling method according to claim 4, wherein after step S7, the method further comprises:
and step S8, restarting the cloud mobile phone after the upgrade is successful.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210347933.2A CN114756289B (en) | 2022-04-01 | 2022-04-01 | Cloud mobile phone recycling method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210347933.2A CN114756289B (en) | 2022-04-01 | 2022-04-01 | Cloud mobile phone recycling method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114756289A true CN114756289A (en) | 2022-07-15 |
CN114756289B CN114756289B (en) | 2023-06-20 |
Family
ID=82330141
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210347933.2A Active CN114756289B (en) | 2022-04-01 | 2022-04-01 | Cloud mobile phone recycling method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114756289B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20180095771A1 (en) * | 2016-09-30 | 2018-04-05 | Vmware, Inc. | Remote Provisioning of Hosts in Public Clouds |
CN109246737A (en) * | 2018-09-07 | 2019-01-18 | 广州微算互联信息技术有限公司 | cloud mobile phone automatic recovery method and system |
CN113472956A (en) * | 2021-09-03 | 2021-10-01 | 北京健康之家科技有限公司 | Cloud mobile phone management method and device |
-
2022
- 2022-04-01 CN CN202210347933.2A patent/CN114756289B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20180095771A1 (en) * | 2016-09-30 | 2018-04-05 | Vmware, Inc. | Remote Provisioning of Hosts in Public Clouds |
CN109246737A (en) * | 2018-09-07 | 2019-01-18 | 广州微算互联信息技术有限公司 | cloud mobile phone automatic recovery method and system |
CN113472956A (en) * | 2021-09-03 | 2021-10-01 | 北京健康之家科技有限公司 | Cloud mobile phone management method and device |
Non-Patent Citations (2)
Title |
---|
波波YR: "移动云手机开启root教程", 《BILIBILI》 * |
波波YR: "移动云手机开启root教程", 《BILIBILI》, 28 March 2022 (2022-03-28) * |
Also Published As
Publication number | Publication date |
---|---|
CN114756289B (en) | 2023-06-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107766101B (en) | Method, device and equipment for processing App starting event | |
WO2017067448A1 (en) | Firmware-over-the-air upgrade method, system and computer storage medium | |
CN107769949B (en) | Application component deployment method and deployment node | |
CN101719073B (en) | Intelligent client-based on-demand downloading realization method | |
KR100915564B1 (en) | Method, software and apparatus for application upgrade during execution | |
EP2696532A2 (en) | Method, server and system for starting application | |
WO2015078281A1 (en) | Method, server and system for application synchronization | |
WO2011130971A1 (en) | Method and mobile terminal for deleting files | |
CN103164247B (en) | The method and device that system application is repaired automatically | |
CN106502717B (en) | Application program running method and device | |
CN111966423B (en) | Method and equipment for realizing memory operating system | |
CN102968321A (en) | Application program installation device and application program installation method | |
CN110045969B (en) | Application program installation method, server, system, device and storage medium | |
CN114756289A (en) | Cloud mobile phone recovery method | |
CN106293814B (en) | Upgrading method and device | |
CN104158907A (en) | Method and device of downloading application program file | |
US11144312B2 (en) | Management method for preset third-party applications, intelligent terminal and storage medium | |
CN111782236A (en) | System software upgrading method and device, storage medium and all-in-one machine equipment | |
CN103235728B (en) | The installation method of preset third-party application and device in Android terminal | |
CN111176849A (en) | Application program management method, device and storage medium | |
CN108121545B (en) | Application program uninstalling feedback method and device | |
CN111722850A (en) | Method, device and system for processing application among multiple systems | |
CN109101253B (en) | Management method and device for host in cloud computing system | |
CN113656063A (en) | System version replacing method, device, equipment and computer readable medium | |
CN106445600B (en) | Method and device for recovering application program of media device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
EE01 | Entry into force of recordation of patent licensing contract | ||
EE01 | Entry into force of recordation of patent licensing contract |
Application publication date: 20220715 Assignee: Bee Assistant Co.,Ltd. Assignor: Guangdong yuewuji Network Technology Co.,Ltd. Contract record no.: X2023980043650 Denomination of invention: A Method for Recycling Cloud Phones Granted publication date: 20230620 License type: Common License Record date: 20231017 |