[go: up one dir, main page]

CN101763275B - Automatic operation method and device - Google Patents

Automatic operation method and device Download PDF

Info

Publication number
CN101763275B
CN101763275B CN 200910217169 CN200910217169A CN101763275B CN 101763275 B CN101763275 B CN 101763275B CN 200910217169 CN200910217169 CN 200910217169 CN 200910217169 A CN200910217169 A CN 200910217169A CN 101763275 B CN101763275 B CN 101763275B
Authority
CN
China
Prior art keywords
automatic running
running program
file
backstage
script
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.)
Active
Application number
CN 200910217169
Other languages
Chinese (zh)
Other versions
CN101763275A (en
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.)
Huawei Device Co Ltd
Huawei Device Shenzhen Co Ltd
Original Assignee
Huawei Device 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 Huawei Device Co Ltd filed Critical Huawei Device Co Ltd
Priority to CN 200910217169 priority Critical patent/CN101763275B/en
Publication of CN101763275A publication Critical patent/CN101763275A/en
Application granted granted Critical
Publication of CN101763275B publication Critical patent/CN101763275B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides automatic operation method and device, and a mobile device. The method comprises the following steps of: copying an automatic operation program execution script and a point-to file of the script to a local application path; and replacing the point-to file, which pops up an automatic operation warning prompt and is in the relevant file list in the path, with the point-to file of the automatic operation program execution script. The device comprises a copy module and a modification module, wherein the copy module is used for copying the automatic operation program execution script and the point-to file of the script to the local application path; and the modification module is used for replacing the point-to file, which pops up an automatic operation warning prompt and is in the relevant file list in the path, with the point-to file of the automatic operation program execution script. The invention realizes the goal of directly operating the automatic operation program without popping up the warning prompt after inserting the mobile device containing the automatic operation program, has the advantage of simple operation, and does not affect the use of other functions of the system.

Description

Automatic operation method and device
Technical field
The present invention relates to field of computer technology, relate in particular to a kind of automatic operation method and device.
Background technology
At present all contain automatic operation (autorun) function in a lot of movable equipments, will automatically move the program of wherein appointment when system identification behind the equipment.If want automatically to move behind the carry movable equipment a certain program in this equipment under the linux system, need in equipment, add the automatically Run Script such as .autorun, autorun, autorun.sh.After this movable equipment was identified, system can go to detect the inside and whether contain above-mentioned script (priority is from high to low), in case find to move this script, thus reach the purpose of a certain application program of automatic operation.
But according to Linux desktop environment specification, each interventional instrument all can eject alarm prompt, contains automatic running program in this equipment of warning user, may have risk, and the user needs manually to click " affirmation " operation or clicks " cancellation " and close this prompting frame.Each plug equipment all can eject this prompting frame is made troubles to the user.
Take the present wireless network card equipment of generally using as example, eject for the first time automatically operation alarm prompt frame during interventional instrument, the user clicks " RUN " and determines rear automatically operation automatic running program wherein, the effect of this program can be for wireless network card backstage and driving to be installed, each when inserting this equipment and using after wishing, directly move background program and can not eject automatic operation prompting frame.Therefore seek to insert under a kind of linux system some to contain the mobile device of automatic running program and do not eject alarm prompt just directly working procedure be very necessary seemingly.
Can arrange to realize shielding the alarm prompt that ejects because detecting movable equipment by the modification system in the prior art.When the modification system arranged, the user can arrange in the panel manual modification for the processing mode of movable equipment in " gconf-editor ", " nautilus " or other system, cancellation " autorun " option.But, the operating main body of this method is the final user, the individual user may not know how to arrange and can't generally adopt, all need to do this unified processing and can't carry out differentiating and processing to equipment for all movable equipments, masking all moves when pointing out automatically, also shielded the AutoPlay function in the movable equipment, so that the autorun program in a lot of equipment can't be moved automatically, affected the user and use.In addition, can also realize not ejecting directly operation autorun program of automatic operation alarm prompt affirmation by revising former code, as revise gvm_ask_autorun () method among the manager.c, the variable of identifying user being confirmed the result is set to "True" forever, calling program is moved no longer downwards, do not eject the affirmation prompting frame, but directly move corresponding program.Because a lot of Linux users only limit to the use aspect to the understanding of Linux, seldom are deep into source code or kernel, such scheme is realized very difficult.And, revise source code itself and have greater risk, and can't distinguish and treat distinct device.
Summary of the invention
The purpose of the embodiment of the invention is to provide a kind of automatic operation method and device and mobile device, when containing the mobile device of automatic running program to insert in the solution prior art, directly do not move automatic running program but the technical matters of ejection alarm prompt.
The embodiment of the invention provides a kind of automatic operation method, comprising: the copy automatic running program is carried out the sensing file of script and this script and is used under the path to local; The sensing file that ejection in the tabulation of associated with under the described path is moved automatically warning prompt replaces with the sensing file that described automatic running program is carried out script.
The embodiment of the invention also provides a kind of automatic running, comprising: the copy module, use under the path to local for the sensing file copy of automatic running program being carried out script and this script; Modified module, the sensing file that automatically moves warning prompt for the ejection with the tabulation of the associated with under the described path replaces with the sensing file that described automatic running program is carried out script.
Embodiments of the invention are by creating the specific file that points to, the tabulation of modification associated with, realize to insert contain the mobile device of automatic running program after, do not eject alarm prompt and directly move the purpose of automatic running program, simple to operate and do not affect the use of other function of system.
Description of drawings
Accompanying drawing described herein is used to provide a further understanding of the present invention, consists of the application's a part, does not consist of limitation of the invention.In the accompanying drawings:
Fig. 1 is the process flow diagram of the automatic operation method of the embodiment of the invention one;
Fig. 2 is the process flow diagram of the automatic operation method of the embodiment of the invention two;
Fig. 3 is the structural representation of the automatic running of the embodiment of the invention three.
Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention is clearer, below in conjunction with embodiment and accompanying drawing, the embodiment of the invention is described in further details.At this, illustrative examples of the present invention and explanation thereof are used for explanation the present invention, but not as a limitation of the invention.
Embodiment one
Present embodiment provides a kind of automatic operation method.As shown in Figure 1, the method comprises:
Step 101: the copy automatic running program is carried out the sensing file of script and this script and is used under the path to local;
Under linux system, automatic running program is carried out script and is usually deposited in the mobile device, such as CD, USB flash disk etc., and automatic running program is carried out the sensing file of script, such as the desktop file, deposits in the CD.Before this step, namely when the user uses mobile device for the first time, eject the alarm prompt frame after detecting the automatic running program in the movable equipment, after clicking and confirm, the user directly transferred the backstage installation procedure.Also can be manually from CD, to move installation procedure after the user clicks cancellation.Execution in step 101 in the background program process is installed is carried out automatic running program the sensing file copy of script and this script and is used under the path to local.Present embodiment is carried out script in order to automatic running program and is deposited in the mobile device, but is not limited in this, also can be those skilled in the art can expect other have the equipment of this function, all should be included within the scope of the present invention.
Automatic running program is carried out script and is used for searching the whether famous file that is called specific label title (such as CD volume " Mobile Partner "), if have then enter according to priority from high to low the program of sequential search " .autorun ", " autorun " by name, " autorun.sh " etc. of this document folder, find any one namely to stop to search and moving this program.If do not find the file with " Mobile Partner " name, then eject automatically operation warning prompt.
Further, automatic running program is carried out script and is also searched the automatic running program that install on the backstage, when the follow-up use equipment of user, the automatic running program that install on automatic running program in the comparison document folder and backstage, when the version of the automatic running program of installing when the backstage is not less than automatic running program in the file, directly move the automatic running program that install on the backstage, otherwise the automatic running program in the operation CD.When described automatic running program is carried out script and do not found particular file folder and when not finding the automatic running program of installing on the backstage, eject automatically operation warning prompt.
Step 102: the sensing file that the ejection in the tabulation of the associated with under the path is moved automatically warning prompt replaces with the sensing file that automatic running program is carried out script.
This step is carried out in the background program process is installed equally.After the installation of finishing equipment backstage and driving, when later on each user uses equipment, after detecting the automatic running program in the movable equipment, tabulate according to associated with, the operation automatic running program is carried out script, if this program is found the current CD that has been mounted with label " Mobile Partner " by name, then move automatic running program wherein, perhaps ought detect to have filled the backstage automatic running program is installed, and when version is not less than version in the CD, then no longer install, directly start the backstage automatic running program; If do not find the CD (being other movable equipment that is of current insertion) of " Mobile Partner " by name, then still carry out and eject automatically operation warning prompt.
Present embodiment is by creating the specific file that points to, the tabulation of modification associated with, realize to insert contain the mobile device of automatic running program after, do not eject alarm prompt and directly move the purpose of automatic running program, simple to operate and do not affect the use of other function of system.
Embodiment two
Present embodiment provides the example of automatic running, and the automatic operation method of embodiment one is described in further detail.As shown in Figure 2, the method comprises:
Step 201: will automatically move the execution script and be stored in the mobile device, such as called after " myautorun.sh ".At this take CD as example, this script is used for searching the whether famous file that is called particular optical disk label title (such as " Mobile Partner "), if have then enter according to priority from high to low the program of sequential search " .autorun ", " autorun " by name, " autorun.sh " etc. of this document folder, find any one namely to stop to search and moving this program.If do not find the file with " MobilePartner " name, then eject automatically operation warning prompt.
Step 202: will automatically move the sensing file of carrying out script and leave in the CD, such as the myautorun.desktop file.
Step 203: when the user uses movable equipment for the first time, detect and eject the alarm prompt frame behind the automatic running program in the movable equipment.
Step 204: directly transferred the backstage installation procedure after the user clicks and confirms, and in installation process, will automatically move carry out script and the sensing program copy to ~/the .local/share/applications path under, revise the associated with tabulation under this path, the sensing file of operation warning prompt replaces with the sensing file that automatic running program is carried out script with ejecting automatically.The user manually moves installation procedure after clicking cancellation from CD.
Step 205: when the user reuses movable equipment, detect the automatic running program in the movable equipment after, according to the associated with list (ACL) regulations, operation myautorun program;
Step 206: if find the current CD that has been mounted with label " Mobile Partner " by name, then move automatic running program wherein, perhaps ought detect to have filled the backstage automatic running program is installed, and when version is not less than version in the CD, then no longer install, directly start the backstage automatic running program;
Step 207: if do not find the CD (being other movable equipment that is of current insertion) of " Mobile Partner " by name, perhaps do not find this CD and backstage that automatic running program is not installed, then still carry out and eject automatically operation warning prompt.
Present embodiment is by creating the specific file that points to, the tabulation of modification associated with, realize to insert contain the mobile device of automatic running program after, do not eject alarm prompt and directly move the purpose of automatic running program, simple to operate and do not affect the use of other function of system; And by the specific file that points to, can only not eject alarm prompt for a certain particular device and directly move the purpose of automatic running program, can not affect the user to the use of other equipment.
Embodiment three
Present embodiment provides a kind of automatic running, and as shown in Figure 3, this device 300 comprises:
Copy module 301 is used under the path to local for the sensing file copy of automatic running program being carried out script and this script;
Modified module 302, the sensing file that automatically moves warning prompt for the ejection with the tabulation of the associated with under the path replaces with the sensing file that automatic running program is carried out script.
In addition, present embodiment also comprises, operation module 303 is used for moving automatic running program when automatic running program is carried out script and found particular file folder automatic running program is arranged; Pop-up module 304 is used for carrying out script when not finding particular file folder when automatic running program, ejects automatically operation warning prompt.
Wherein, operation module 303 can also be used for carrying out script when automatic running program and search the automatic running program of particular file folder and the automatic running program that install on the backstage, the automatic running program that install on automatic running program in the comparison document folder and backstage, when the version of the automatic running program of installing when the backstage is not less than automatic running program in the file, directly move the automatic running program that install on the backstage; When the version of the automatic running program of installing when the backstage is lower than automatic running program in the file, the direct automatic running program in the operating file folder.304 of pop-up modules eject automatically operation warning and carry not when automatic running program is carried out script and do not found particular file folder and when not finding the automatic running program of installing on the backstage.
In addition, present embodiment also comprises detection module 305, ejects warning prompt after being used for detecting automatic running program when the user's operative installations first time; Installation module 306 is used for the user and confirms the described automatic running program of rear installation.When the user used movable equipment for the first time, detection module 305 ejected the alarm prompt frame after detecting automatic running program in the movable equipment.After the user clicks affirmation, installation module 306 has directly been transferred the backstage installation procedure. and in installation process, by copy module 301 will automatically move carry out script and the sensing program copy to ~/the .local/share/applications path under, tabulate by the associated with that modified module 302 is revised under this path, the sensing file of operation warning prompt replaces with the sensing file that automatic running program is carried out script with ejecting automatically.The user manually moves installation procedure after clicking cancellation from CD, then do not carry out automatic running program.When the user reuses movable equipment, after device detects automatic running program in the movable equipment, according to the associated with list (ACL) regulations, operation myautorun program, search the whether famous file that is called particular optical disk label title (such as " Mobile Partner "), if have then enter according to priority from high to low the program of sequential search " .autorun ", " autorun " by name, " autorun.sh " etc. of this document folder, find any one namely to stop to search, by operation module 303 these programs of operation.If do not find the file with " Mobile Partner " name, then there is pop-up module 304 to eject automatically operation warning prompt.Perhaps, operation myautorun program, find the backstage automatic running program is installed, and when version is not less than version in the CD, then no longer install, directly start the backstage automatic running program by operation module 303, otherwise by the automatic running program in the operation module 303 direct operating file folders.When not finding this CD and backstage automatic running program not to be installed, pop-up module 304 ejects automatically operation warning prompt.
In another embodiment of the present invention, a kind of mobile device also is provided, this mobile device comprises above-mentioned automatic running, can realize automatically moving all functions in above-described embodiment, its composition is as described in the previous embodiment, does not repeat them here.
Present embodiment is by creating the specific file that points to, the tabulation of modification associated with, realize to insert contain the mobile device of automatic running program after, do not eject alarm prompt and directly move the purpose of automatic running program, simple to operate and do not affect the use of other function of system.
Above-described specific embodiment; purpose of the present invention, technical scheme and beneficial effect are further described; institute is understood that; the above only is specific embodiments of the invention; the protection domain that is not intended to limit the present invention; within the spirit and principles in the present invention all, any modification of making, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (14)

1. automatic operation method uses during mobile device for the first time for the user, it is characterized in that the method comprises:
The copy automatic running program is carried out the sensing file of script and this script and is used under the path to local;
The sensing file that ejection in the tabulation of associated with under the described path is moved automatically warning prompt replaces with the sensing file that described automatic running program is carried out script.
2. method according to claim 1 is characterized in that, the institute in steps before, also comprise:
Eject warning prompt after detecting automatic running program;
The user confirms the described automatic running program of rear installation.
3. method according to claim 1 is characterized in that:
Described automatic running program is carried out script and is used for searching the automatic running program of particular file folder, the described automatic running program of operation after finding described automatic running program.
4. method according to claim 3 is characterized in that:
When described automatic running program execution script does not find particular file folder, eject automatically operation warning prompt.
5. method according to claim 1 is characterized in that:
Described automatic running program is carried out script and is used for searching the automatic running program of particular file folder and the automatic running program that install on the backstage, the automatic running program that install on automatic running program in the more described file and backstage, when the version of the automatic running program of installing when the backstage is not less than automatic running program in the described file, directly move the automatic running program that install on described backstage.
6. method according to claim 5 is characterized in that:
When the version of the automatic running program of installing when the backstage is lower than automatic running program in the described file, directly move the automatic running program in the described file.
7. want 5 or 6 described methods according to right, it is characterized in that:
When described automatic running program is carried out script and do not found particular file folder and when not finding the automatic running program of installing on the backstage, eject automatically operation warning prompt.
8. each described method according to claim 3-6 is characterized in that:
The name of described particular file folder carry is called the specific label name.
9. automatic running uses during mobile device for the first time for the user, it is characterized in that this device comprises:
The copy module is used under the path to local for the sensing file copy of automatic running program being carried out script and this script;
Modified module, the sensing file that automatically moves warning prompt for the ejection with the tabulation of the associated with under the described path replaces with the sensing file that described automatic running program is carried out script.
10. device according to claim 9 is characterized in that, also comprises:
Detection module ejects warning prompt after being used for detecting automatic running program when the user's operative installations first time;
Installation module is used for the user and confirms the described automatic running program of rear installation.
11. device according to claim 9 is characterized in that, also comprises:
The operation module is used for moving described automatic running program when described automatic running program execution script finds particular file folder automatic running program is arranged.
12. device according to claim 11 is characterized in that, also comprises:
Pop-up module is used for carrying out script when not finding particular file folder when described automatic running program, ejects automatically operation warning prompt.
13. device according to claim 9 is characterized in that, also comprises:
The operation module, be used for when described automatic running program is carried out script and searched the automatic running program of the automatic running program of particular file folder and backstage installation, the automatic running program that install on automatic running program in the more described file and backstage, when the version of the automatic running program of installing when the backstage is not less than automatic running program in the described file, directly move the automatic running program that install on described backstage; When the version of the automatic running program of installing when the backstage is lower than automatic running program in the described file, directly move the automatic running program in the described file.
14. device according to claim 13 is characterized in that:
Pop-up module is used for when described automatic running program is carried out script and do not found particular file folder and when not finding the automatic running program of installing on the backstage, ejects and automatically move warning prompt.
CN 200910217169 2009-12-31 2009-12-31 Automatic operation method and device Active CN101763275B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200910217169 CN101763275B (en) 2009-12-31 2009-12-31 Automatic operation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200910217169 CN101763275B (en) 2009-12-31 2009-12-31 Automatic operation method and device

Publications (2)

Publication Number Publication Date
CN101763275A CN101763275A (en) 2010-06-30
CN101763275B true CN101763275B (en) 2013-04-24

Family

ID=42494447

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200910217169 Active CN101763275B (en) 2009-12-31 2009-12-31 Automatic operation method and device

Country Status (1)

Country Link
CN (1) CN101763275B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101977268B (en) * 2010-10-27 2013-11-06 中兴通讯股份有限公司 Mobile terminal processing method and mobile terminal
CN107357608B (en) * 2017-06-21 2020-09-25 联想(北京)有限公司 Method, device and system for automatically installing operating system
CN109800028B (en) * 2018-12-30 2022-08-16 贝壳找房(北京)科技有限公司 Web environment deployment method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040172526A1 (en) * 2003-02-27 2004-09-02 Tann Johnathan P. Universal loader for portable electronic devices
CN1708746A (en) * 2002-10-28 2005-12-14 尤密克斯有限公司 Detachable device and method of starting program
US20070091746A1 (en) * 2005-10-12 2007-04-26 Storage Appliance Corporation Optical disc for simplified data backup
CN101276282A (en) * 2007-03-27 2008-10-01 三星电子株式会社 External storage device and its automatic operation method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1708746A (en) * 2002-10-28 2005-12-14 尤密克斯有限公司 Detachable device and method of starting program
US20040172526A1 (en) * 2003-02-27 2004-09-02 Tann Johnathan P. Universal loader for portable electronic devices
US20070091746A1 (en) * 2005-10-12 2007-04-26 Storage Appliance Corporation Optical disc for simplified data backup
CN101276282A (en) * 2007-03-27 2008-10-01 三星电子株式会社 External storage device and its automatic operation method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陶莉.Automatic Software Install/Update for Embedded Linux.《Journal of Shanghai Jiaotong University》.2008,(第1期),107-109. *

Also Published As

Publication number Publication date
CN101763275A (en) 2010-06-30

Similar Documents

Publication Publication Date Title
US10423714B2 (en) Filtering prohibited language displayable via a user-interface
CN104536797B (en) A kind of java applet precompile method and pre compiler
CN102591745B (en) Method and device for system recovery based on android system and intelligent equipment
CN103699839A (en) Method and device of detection processing of core-level rootkit
CN101901103A (en) User interface device in touch device and method for user interface
CN101763275B (en) Automatic operation method and device
EP3113059B1 (en) System and method of preventing installation and execution of undesirable programs
CN103164654A (en) Method of carrying out information cue on popup window and user interface display device
CN103024538A (en) Memory management method and system
CN102902515A (en) Software window processing method and device
CN104199917A (en) Method and device for translating webpage content and client
CN106484450A (en) A kind of method for upgrading software and device
CN103377079B (en) Terminal and application running gear and method, the method running application program
CN104123496A (en) Rogue software interception method, device and terminal
CN102609189A (en) Method and client side for processing content of messages of mobile terminal
CN105700923A (en) Method and system for installing application program
CN103970514A (en) Information acquisition method and device for Android application program installation package
CN104035702A (en) Method for preventing intelligent terminal operation error and intelligent terminal
CN101976197A (en) Method for automatically installing a plurality of mobile phone software
CN104217162A (en) Method and system for detecting malicious software in smart terminal
CN102982217A (en) Processing method and device of screen print
US20110055814A1 (en) Compiler-assisted program source code filter
CN102214279A (en) Method and device for controlling host user rights by using external memory equipment
CN102982043B (en) The disposal route of PE file and device
US7890930B2 (en) Method and system for allowing an eclipse feature to create/remove/update program groups and shortcuts, via an eclipse install handler

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 518129 Building 2, B District, Bantian HUAWEI base, Longgang District, Shenzhen, Guangdong.

Patentee after: Huawei terminal (Shenzhen) Co.,Ltd.

Address before: 518129 Building 2, B District, Bantian HUAWEI base, Longgang District, Shenzhen, Guangdong.

Patentee before: HUAWEI DEVICE Co.,Ltd.

CP01 Change in the name or title of a patent holder
TR01 Transfer of patent right

Effective date of registration: 20181225

Address after: 523808 Southern Factory Building (Phase I) Project B2 Production Plant-5, New Town Avenue, Songshan Lake High-tech Industrial Development Zone, Dongguan City, Guangdong Province

Patentee after: HUAWEI DEVICE Co.,Ltd.

Address before: 518129 Building 2, B District, Bantian HUAWEI base, Longgang District, Shenzhen, Guangdong.

Patentee before: Huawei terminal (Shenzhen) Co.,Ltd.

TR01 Transfer of patent right