Summary of the invention
The technical problem to be solved in the present invention is the close information security being unfavorable for user of right provided for different user to overcome mobile phone of the prior art, even if adopt the defect that traditional multi-user logging method is still not high enough in the convenience used and fail safe, a kind of multi-user control method thereof and mobile phone of mobile phone are proposed.
The present invention solves above-mentioned technical problem by following technical proposals:
The invention provides a kind of multi-user control method thereof of mobile phone, its feature is, prestore phone number or international mobile subscriber identity in mobile phone, this mobile phone is provided with multiple application program, the plurality of application program comprises the authority application program that at least one is provided with the first authority and the second authority, the plurality of application program comprises the authority application program that at least one is provided with the first authority and the second authority, and this first authority is greater than this second authority, and this multi-user control method thereof comprises the following steps:
S
1, from the SIM card of current activation, read phone number or international mobile subscriber identity;
S
2, the phone number that reads of coupling or international mobile subscriber identity and the phone number prestored or international mobile subscriber identity, and whether record matching result consistent;
S
3, receive input instruction;
S
4, judge whether application program corresponding to instruction received belongs to authority application program, performs S when judged result is for being
5, perform S when judged result is no
4a;
S
4a, perform the instruction received, and return S
3;
S
5, read the first authority of application program corresponding to the instruction of reception when this matching result is consistent, read the second authority of application program corresponding to the instruction of reception when this matching result is inconsistent;
S
6, judge receive instruction whether exceed S
5the first authority read or the second authority, perform S when judged result is for being
7a, perform S when judged result is no
7b;
S
7a, refusal performs the instruction received, and returns S
3;
S
7b, perform the instruction received, and return S
3.
It will be appreciated by those skilled in the art that the phone number that prestores in mobile phone or international mobile subscriber identity are different from the phone number stored in conventional address list, only for determining the identity of active user in conjunction with the SIM card of current activation.SIM card and Subscriber Identity Module, the client identification module namely in mobile phone, is also called subscriber identification card.International mobile subscriber identity is also referred to as IMSI code, and full name is International Mobile Subscriber Identification Number.Phone number and international mobile subscriber identity all with SIM card binding, if therefore both one of coupling consistent, then user identity is also just defined as the phone number that prestores or user corresponding to international mobile subscriber identity.The phone number prestored or SIM card corresponding to international mobile subscriber identity can be as a rule mobile phone owners.
For the multiple application programs in mobile phone, both all can be respectively arranged with corresponding the first authority, the second authority, also can only have certain applications programming to have corresponding the first authority, the second authority, remaining applications does not arrange authority.For the remaining applications not arranging authority, the instruction of any user all can perform.For being provided with the first corresponding authority and any one application program of the second authority, first authority is all greater than the second authority, that is for an application program, the instruction that all permissions included by second authority perform all is included in the first authority, and the instruction that the permission at least partially included by the first authority performs is be not allowed to perform in the second authority.When matching result is consistent, the authority that user has is greater than the inconsistent situation of matching result.
In above-mentioned multi-user control method thereof, user without the need to carry out any with account, the similar input of user name, mobile phone directly by SIM card just determine user identity and and then determine the authority of user for each application program, for user operation more convenient.And due to phone number and international mobile subscriber identity all with SIM card binding, therefore it also avoid password or user name in conventional method and leak the security risk that may cause.In addition, after determining user identity, this multi-user control method thereof determines corresponding application program according to the instruction of user's input, then determine the authority of application program further.That is, only just can process accordingly when being necessary the authority determining application program, and the application program that the instruction that user inputs does not relate to can not be processed accordingly, so just greatly reduce mobile phone backstage and need data to be processed, decrease the resource taken.
Preferably, this mobile phone prestores remote control command, and the corresponding application program of each remote control command and an instruction, at S
2and S
3between further comprising the steps of:
S
21, perform S when matching result is consistent
3, perform S when matching result is inconsistent
22;
S
22, send an information to the phone number prestored or mobile phone corresponding to international mobile subscriber identity;
S
23, judge whether to receive the remote information that the phone number that prestores or mobile phone corresponding to international mobile subscriber identity send, perform S when judged result is no
3, perform S when judged result is for being
24;
S
24, judge that whether the remote information that receives consistent with the remote control command prestored, perform S when judged result is no
3, perform S when judged result is for being
25;
S
25, remote control command that basis is consistent with the remote information received, perform corresponding instruction in the application program of correspondence, and return S
2;
At execution S
4a, S
7aand S
7breturn S respectively afterwards
2.
When matching result is inconsistent, the phone number likely prestored or SIM card corresponding to international mobile subscriber identity are used to other mobile phone.Perform S
22after, the user of this SIM card just can know mobile phone and used by other users, and can carry out Long-distance Control by sending remote information to mobile phone.When the user be consistent with prestored information sends with consistent with the remote control command remote information prestored to mobile phone, the control priority of long-distance user is higher than local user.From above-mentioned steps, S
25, S
4a, S
7aand S
7breturn S respectively afterwards
2and first judge whether the remote information that the phone number that prestores or mobile phone corresponding to international mobile subscriber identity send, just can find out that said method can guarantee preferentially to perform all the time the instruction of the phone number that prestores or user corresponding to international mobile subscriber identity.
In conjunction with handset program such as mapping program, browser program etc. that some are conventional, the phone number prestored or user corresponding to international mobile subscriber identity can the service conditions of monitoring cell-phone easily.
Preferably, S
25comprise the following steps:
S
251, to judge and the object of instruction corresponding to remote control command or the corresponding application program whether controlled and running are associated, perform corresponding instruction when judged result is no in the application program of correspondence and return S
2, perform S when judged result is for being
252;
S
252, the application program run that is associated of buffer memory, then interrupt the application program run that this is associated;
S
253, perform corresponding instruction in the application program of correspondence, in the interrupted application program of follow-up reforwarding row that is finished, and return S
2.
Those skilled in the art are to be understood that, if the application program that remote control command and mobile phone are running is associated, in order to ensure that the instruction that remote control command is corresponding can perform as early as possible, must interrupt the application program run, the local user that will have influence on mobile phone like this uses application program.Under the instruction that guarantee remote control command is corresponding preferentially obtains the prerequisite performed, the application program run that above-mentioned steps is associated by buffer memory, ensure that the use of local user's application programs is only delayed by time, and the data produced in application program use procedure can not be lost.
Preferably, S
25also comprise: if the instruction of correspondence is voice call or tone information and this mobile phone is in the state conversed, then ongoing call is switched to maintenance talking state, and will the call of talking state be kept to switch back normal talking state after the instruction of correspondence is finished.
Easy understand ground, if instruction corresponding to remote control command be voice call or tone information, then certainty be conflicted mutually with the current ongoing call of mobile phone.Therefore ongoing call is switched to maintenance talking state, thus ensure that the instruction that remote control command is corresponding preferentially performs, then switching the call keeping talking state is normal talking state, uses the impact caused to reduce as far as possible to the local user of mobile phone.
Preferably, this remote information is the short message that sends of mobile phone that the phone number that prestores or international mobile subscriber identity are corresponding or tone information.
Preferably, this authority application program comprises priority assignation program and voice procedure, note program, figure library, browser program and/or video reproduction program, this priority assignation program is for changing the setting of the first authority corresponding to the plurality of application program and the second authority, first authority corresponding to this priority assignation program comprises all instructions corresponding to this priority assignation program, and the second authority corresponding to this priority assignation program does not allow the setting of changing the first authority corresponding to any application program or the second authority.
That is, for the phone number prestored or user corresponding to international mobile subscriber identity, first authority that the plurality of application program of this priority assignation programing change can be used corresponding and the second authority, be namely equivalent to the setting all application programs in mobile phone being carried out to authority.
Present invention also offers a kind of mobile phone, its feature is, this mobile phone is provided with multiple application program, the plurality of application program comprises the authority application program that at least one is provided with the first authority and the second authority, and this mobile phone comprises an authority memory module, a SIM card information read module, an information matches module, a command reception module, an authority read module and an authority judge module.
This authority memory module stores the first authority corresponding to phone number or international mobile subscriber identity and authority application program and the second authority, and wherein this first authority is greater than this second authority.This SIM card information read module, for reading phone number or international mobile subscriber identity in the SIM card from current activation.This information matches module, for mating phone number that this SIM card information read module reads or the phone number that international mobile subscriber identity and this authority memory module store or international mobile subscriber identity, and whether record matching result is consistent.
This command reception module, for receiving the instruction of input, and judge whether application program corresponding to instruction received belongs to authority application program, enable an authority read module when judged result is and is and the instruction of reception is forwarded to this authority read module, performing the instruction of reception when judged result is no.
This authority read module is used for the first authority reading application program corresponding to the instruction of reception when this matching result is consistent, read the second authority of application program corresponding to the instruction of reception when this matching result is inconsistent, and enable an authority judge module, the instruction of the first authority read or the second authority, reception is sent to this authority judge module.This authority judge module, for judging whether the instruction received exceeds the first authority or the second authority, is that when being, refusal performs the instruction received in judged result, performs the instruction of reception when judged result is no.
Preferably, this mobile phone also comprises a remote control module, and this information matches module enables this command reception module when matching result is consistent, enable this remote control module when matching result is inconsistent.This remote control module comprises a remote control command memory cell, a Tip element, one first judging unit, one second judging unit and a remote command performance element.
This remote control command memory cell prestores remote control command and application program corresponding to each Long-distance Control and instruction, and this Tip element is used for sending an information to the phone number prestored or mobile phone corresponding to international mobile subscriber identity.
The remote information that this first judging unit sends for judging whether to receive the phone number that prestores or mobile phone corresponding to international mobile subscriber identity, enabling this command reception module when judged result is no, enabling one second judging unit when judged result is for being.
Whether this second judging unit is consistent with the remote control command that this remote control command memory cell prestores for judging the remote information received, enabling this command reception module when judged result is no, enabling a remote command performance element when judged result is for being.
This remote command performance element is used for the basis remote control command consistent with the remote information received, and performs corresponding instruction in the application program of correspondence.
Preferably, this remote command performance element comprises a working procedure inspection unit, an application cache unit and an instruction execution unit.
This working procedure inspection unit is associated for the object or the corresponding application program whether controlled and running judging the instruction corresponding with remote control command, enabling this instruction execution unit when judged result is no, enabling this application cache unit when judged result is for being.
This application cache unit is used for the application program run that buffer memory is associated, then interrupts this application program run be associated and enable this instruction execution unit, and this instruction execution unit is used for performing corresponding instruction and in the interrupted application program of follow-up reforwarding row that is finished in the application program of correspondence.
Preferably, this remote command performance element also in the instruction of correspondence be voice call or tone information and this mobile phone is in the state conversed, ongoing call is switched to maintenance talking state, and will the call of talking state be kept to switch back normal talking state after the instruction of correspondence is finished.
Preferably, this remote information is the short message that sends of mobile phone that the phone number that prestores or international mobile subscriber identity are corresponding or tone information.
Preferably, this authority application program comprises priority assignation program and voice procedure, note program, figure library, browser program and/or video reproduction program, this priority assignation program is for changing the setting of the first authority corresponding to the plurality of application program and the second authority, first authority corresponding to this priority assignation program comprises all instructions corresponding to this priority assignation program, and the second authority corresponding to this priority assignation program does not allow the setting of changing the first authority corresponding to any application program or the second authority.
On the basis meeting this area general knowledge, above-mentioned each optimum condition, can combination in any, obtains the preferred embodiments of the invention.
Positive progressive effect of the present invention is:
The multi-user control method thereof of mobile phone of the present invention and mobile phone directly determine the identity of user and then the rights of using of limited subscriber by the information of SIM card, and only just can process accordingly when being necessary the authority determining application program, thus substantially increasing the Information Security of mobile phone when multi-user uses, property easy to use, the resource that the management for authority takies is also little.
Embodiment
Provide present pre-ferred embodiments below in conjunction with accompanying drawing, to describe technical scheme of the present invention in detail, but therefore do not limit the present invention among described scope of embodiments.
The multi-user control method thereof of the mobile phone of a preferred embodiment of the present invention, prestore phone number in mobile phone, this mobile phone is provided with 8 application programs, first authority and the second authority are provided with to 5 in these 8 application programs, this 5 programs and authority application program, this first authority is greater than this second authority.For all the other 3 application programs not arranging authority, the authority of any user is all identical.Also remote control command is had, the corresponding application program of each remote control command and an instruction in mobile phone.
Shown in figure 1, this multi-user control method thereof comprises the following steps:
S
1, from the SIM card of current activation, read phone number;
S
2, the phone number that reads of coupling and the phone number that prestores, and whether record matching result consistent;
S
21~ S
25(in this and Fig. 1, omit S
21~ S
25, hereinafter composition graphs 2 describes in detail);
S
3, receive input instruction;
S
4, judge whether application program corresponding to instruction received belongs to this 5 application programs, performs S when judged result is for being
5, perform S when judged result is no
4a;
S
4a, perform the instruction received, and return S
2;
S
5, read the first authority of application program corresponding to the instruction of reception when this matching result is consistent, read the second authority of application program corresponding to the instruction of reception when this matching result is inconsistent;
S
6, judge receive instruction whether exceed S
5the first authority read or the second authority, perform S when judged result is for being
7a, perform S when judged result is no
7b;
S
7a, refusal performs the instruction received, and returns S
2;
S
7b, perform the instruction received, and return S
2.
Shown in figure 2, at S
2and S
3between further comprising the steps of:
S
21, perform S when matching result is consistent
3, perform S when matching result is inconsistent
22;
S
22, send a SMS Tip to the mobile phone that the phone number prestored is corresponding;
S
23, judge whether to receive the remote information that mobile phone corresponding to the phone number that prestores send, perform S when judged result is no
3, perform S when judged result is for being
24;
S
24, judge that whether the remote information that receives consistent with the remote control command prestored, perform S when judged result is no
3, perform S when judged result is for being
25;
S
25, remote control command that basis is consistent with the remote information received, perform corresponding instruction in the application program of correspondence, and return S
2.
This remote information is the short message that mobile phone that the phone number that prestores is corresponding sends.These 5 application programs are priority assignation program, voice procedure, note program, browser program and figure library.These all the other 3 application programs are video reproduction program, photograph program and audio playing program.This priority assignation program is for changing the setting of the first authority corresponding to these 8 application programs and the second authority, first authority corresponding to this priority assignation program comprises all instructions corresponding to this priority assignation program, and the second authority corresponding to this priority assignation program does not allow the setting of changing the first authority corresponding to any application program or the second authority.That is, this priority assignation program not only can be used for the first authority and the second authority that change these 5 application programs, all the other 3 scripts are not provided with the first authority and the second authority to this application program can also arrange the first authority and the second authority.
Wherein, S
25comprise the following steps:
S
251, to judge and the object of instruction corresponding to remote control command or the corresponding application program whether controlled and running are associated, perform corresponding instruction when judged result is no in the application program of correspondence and return S
2, perform S when judged result is for being
252;
S
252, the application program run that is associated of buffer memory, then interrupt the application program run that this is associated;
S
253, perform corresponding instruction in the application program of correspondence, in the interrupted application program of follow-up reforwarding row that is finished, and return S
2.
For example, if the object of the instruction of correspondence and the figure library run are associated, the then figure library that running of buffer memory local user, namely preserves the relevant information of lower local user's service chart library, and the use then interrupting local user can preferentially perform to make corresponding instruction.After the corresponding instruction that is finished, local user is made can again to continue its operation from running status when interrupting according to the relevant information of buffer memory.
S
25also comprise: if the instruction of correspondence is voice call or tone information and this mobile phone is in the state conversed, then ongoing call is switched to maintenance talking state, and will the call of talking state be kept to switch back normal talking state after the instruction of correspondence is finished.
Shown in figure 3, the mobile phone of the present embodiment is provided with 8 application programs, and comprises authority memory module 1, SIM card information read module 2, information matches module 3, command reception module 4, authority read module 5, authority judge module 6 and a remote control module 7.5 application programs are had to be provided with the first authority and the second authority in 8 application programs of this mobile phone, this 5 application programs and authority application program.
This authority memory module 1 stores phone number and the first authority corresponding to these 5 application programs and the second authority, and wherein this first authority is greater than this second authority.This SIM card information read module 2, for reading phone number in the SIM card from current activation.The phone number that this information matches module 3 stores for the phone number and this authority memory module 1 mating the reading of this SIM card information read module 2, and whether record matching result is consistent.
This command reception module 4, for receiving the instruction of input, and judge whether application program corresponding to instruction received belongs to this 5 application programs, enable an authority read module 5 when judged result is and is and the instruction of reception is forwarded to this authority read module 5, performing the instruction of reception when judged result is no.
This authority read module 5 is for the first authority of application program corresponding to the instruction of reading reception when this matching result is consistent, read the second authority of application program corresponding to the instruction of reception when this matching result is inconsistent, and enable an authority judge module 6, the instruction of the first authority read or the second authority, reception is sent to this authority judge module 6.This authority judge module 6, for judging whether the instruction received exceeds the first authority or the second authority, is that when being, refusal performs the instruction received in judged result, performs the instruction of reception when judged result is no.
Wherein, this information matches module 3 enables this command reception module 4 when matching result is consistent, enables this remote control module 7 when matching result is inconsistent.This remote control module 7 comprises a remote control command memory cell, a Tip element, one first judging unit, one second judging unit and a remote command performance element.
This remote control command memory cell prestores remote control command and application program corresponding to each Long-distance Control and instruction, and this Tip element is used for sending an information to the mobile phone that the phone number prestored is corresponding.
The remote information that this first judging unit sends for judging whether to receive mobile phone corresponding to the phone number that prestores, enabling this command reception module 4, enabling one second judging unit when judged result is for being when judged result is no.
Whether this second judging unit is consistent with the remote control command that this remote control command memory cell prestores for judging the remote information received, enabling this command reception module 4 when judged result is no, enabling a remote command performance element when judged result is for being.
This remote command performance element is used for the basis remote control command consistent with the remote information received, and performs corresponding instruction in the application program of correspondence.This remote command performance element comprises a working procedure inspection unit, an application cache unit and an instruction execution unit.
This working procedure inspection unit is associated for the object or the corresponding application program whether controlled and running judging the instruction corresponding with remote control command, enabling this instruction execution unit when judged result is no, enabling this application cache unit when judged result is for being.This application cache unit is used for the application program run that buffer memory is associated, then interrupts this application program run be associated and enable this instruction execution unit.This instruction execution unit is used for performing corresponding instruction and in the interrupted application program of follow-up reforwarding row that is finished in the application program of correspondence.
This remote command performance element also in the instruction of correspondence be voice call or tone information and this mobile phone is in the state conversed, ongoing call is switched to maintenance talking state, and will the call of talking state be kept to switch back normal talking state after the instruction of correspondence is finished.
This remote information is the short message that mobile phone that the phone number that prestores is corresponding sends.These 5 application programs are priority assignation program, voice procedure, note program, browser program and figure library.These all the other 3 application programs are video reproduction program, photograph program and audio playing program.This priority assignation program is for changing the setting of the first authority corresponding to these 8 application programs and the second authority, first authority corresponding to this priority assignation program comprises all instructions corresponding to this priority assignation program, and the second authority corresponding to this priority assignation program does not allow the setting of changing the first authority corresponding to any application program or the second authority.That is, this priority assignation program not only can be used for the first authority and the second authority that change these 5 application programs, can also arrange the first authority and the second authority to the application program that all the other 3 scripts are not provided with the first authority and the second authority.
Although the foregoing describe the specific embodiment of the present invention, it will be understood by those of skill in the art that these only illustrate, protection scope of the present invention is defined by the appended claims.Those skilled in the art, under the prerequisite not deviating from principle of the present invention and essence, can make various changes or modifications to these execution modes, but these change and amendment all falls into protection scope of the present invention.