Summary of the invention
The technical problem to be solved in the present invention is in order to overcome the close user's of being unfavorable for of right that mobile phone of the prior art provides for different user information security, even adopt traditional multi-user logging method not high enough defect still aspect the convenience of using and fail safe, a kind of multi-user's control method and mobile phone of mobile phone proposed.
The present invention solves above-mentioned technical problem by following technical proposals:
The invention provides a kind of multi-user's control method of mobile phone, its characteristics are, phone number or international mobile subscriber identity prestore in mobile phone, this mobile phone is provided with a plurality of application programs, the plurality of application program comprises that at least one is provided with the authority application program of the first authority and the second authority, the plurality of application program comprises that at least one is provided with the authority application program of the first authority and the second authority, and this first authority is greater than this second authority, and this multi-user's control method comprises the following steps:
S
1, read phone number or international mobile subscriber identity from the SIM card of current activation;
S
2, the coupling phone number or international mobile subscriber identity and the phone number prestored or the international mobile subscriber identity that read, and whether the record matching result consistent;
S
3, receive the instruction of input;
S
4, whether application program corresponding to instruction that receive of judgement belong to the authority application program, in the situation that judgment result is that it is to carry out S
5, in the situation that the determination result is NO, carry out S
4a
S
4a, the instruction that carry out to receive, and return to S
3
S
5, in the situation that the first authority of application program corresponding to the consistent instruction of reading reception of this matching result, read the second authority of application program corresponding to the instruction of reception in the inconsistent situation of this matching result;
S
6, whether the instruction that receives of judgement exceed S
5The first authority read or the second authority, in the situation that judgment result is that it is to carry out S
7a, in the situation that the determination result is NO, carry out S
7b
S
7a, the instruction that carry out to receive of refusal, and return to S
3
S
7b, the instruction that carry out to receive, and return to S
3.
It will be appreciated by those skilled in the art that the phone number or the international mobile subscriber identity that prestore are to be different from the phone number of storing in conventional address list in mobile phone, only for the SIM card in conjunction with current activation, determine active user's identity.SIM card is Subscriber Identity Module, and the client identification module in mobile phone, be called again subscriber identification card.International mobile subscriber identity is also referred to as the 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, user identity also just is defined as the phone number or user corresponding to international mobile subscriber identity that prestore.The SIM card that the phone number prestored or international mobile subscriber identity are corresponding can be as a rule the mobile phone owner.
For a plurality of application programs in mobile phone, both can all be respectively arranged with corresponding the first authority, the second authority, also can only there is the certain applications programming that corresponding the first authority, the second authority are arranged, remaining applications does not arrange authority.For the remaining applications that authority is not set, any user's instruction all can be carried out.For being provided with the first corresponding authority and any one application program of the second authority, the first authority all is greater than the second authority, that is to say for an application program, the instruction that the included all permissions of the second authority are carried out all is included in the first authority, and the instruction that the permission of at least a portion that the first authority is included is carried out is not to be allowed to carry out in the second authority.In the situation that matching result is consistent, the authority that the user has is greater than the inconsistent situation of matching result.
In above-mentioned multi-user's control method, the user is without carrying out any and account, the similar input of user name, mobile phone directly by SIM card just determined the user identity and and then determined the authority of user for each application program, more convenient for user's operation.And due to phone number and international mobile subscriber identity all with the SIM card binding, therefore also avoided in the conventional method password or user name to leak the security risk that may cause.In addition, after having determined user identity, this multi-user's control method is to determine corresponding application program according to the instruction of user's input, more further determines the authority of application program.That is to say, only when being necessary the authority of definite application program, just can process accordingly, and the application program that the instruction of inputting for the user does not relate to can not processed accordingly, so just having greatly reduced the mobile phone backstage needs data to be processed, has reduced 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, in the situation that the consistent S that carries out of matching result
3, in the inconsistent situation of matching result, carry out S
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, carry out S in the situation that the determination result is NO
3, in the situation that judgment result is that it is to carry out S
24
S
24, whether the remote information that receives of judgement consistent with the remote control command prestored, in the situation that the determination result is NO, carries out S
3, in the situation that judgment result is that it is to carry out S
25
S
25, remote control command that basis is consistent with the remote information received, carry out corresponding instruction in corresponding application program, and return to S
2
Carrying out S
4a, S
7aAnd S
7bThe rear S that returns respectively
2.
In the inconsistent situation of matching result, the SIM card that the phone number likely prestored or international mobile subscriber identity are corresponding is used to other mobile phone.Carry out 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 to mobile phone by sending remote information.When the user who is consistent with prestored information sends with the remote information consistent with remote control command that prestore to mobile phone, long-distance user's control priority will be higher than the local user.From above-mentioned steps, S
25, S
4a, S
7aAnd S
7bThe rear S that returns respectively
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 the user's that phone number that said method can guarantee that preferential execution prestores all the time or international mobile subscriber identity are corresponding instruction.
The handset program commonly used in conjunction with some be such as map program, browser program etc., and user corresponding to the phone number prestored or international mobile subscriber identity be the service condition of monitoring cell-phone easily.
Preferably, S
25Comprise the following steps:
S
251, judgement and instruction corresponding to remote control command object or the corresponding application program of whether controlling and moving be associated, carry out corresponding instruction and return to S in corresponding application program in the situation that the determination result is NO
2, in the situation that judgment result is that it is to carry out S
252
S
252, the application program of moving that is associated of buffer memory, then interrupt the application program of moving that this is associated;
S
253, carry out corresponding instruction in corresponding application program, in the interrupted application program of follow-up reforwarding row that is finished, and return to S
2.
Those skilled in the art are to be understood that, if the application program that remote control command and mobile phone are moving is associated, in order to guarantee the instruction that remote control command is corresponding, can carry out as early as possible, the application program of must interruption moving, the local user that will have influence on like this mobile phone uses application program.Guaranteeing under the prerequisite that instruction corresponding to remote control command preferentially obtains carrying out, the application program of moving that above-mentioned steps is associated by buffer memory, the use of having guaranteed local user's application programs only is delayed in time, and can not lose the data that produce in the application program use procedure.
Preferably, S
25Also comprise: if corresponding instruction is voice call or tone information and the state of this mobile phone in conversing, ongoing conversation is switched to the maintenance talking state, and after corresponding instruction is finished, will keep the conversation of talking state to switch back the normal talking state.
Hold intelligibly, instruction corresponding to remote control command be voice call or tone information if, and inevitable with mobile phone, current ongoing conversation conflicts mutually.Therefore ongoing conversation is switched to the maintenance talking state, thereby instruction corresponding to assurance remote control command preferentially carried out, then the conversation of switching maintenance talking state is the normal talking state, with the local user who reduces as far as possible mobile phone, uses the impact caused.
Preferably, this remote information is short message or the tone information that mobile phone that the phone number that prestores or international mobile subscriber identity are corresponding sends.
Preferably, this authority application program comprises authority setting program and voice procedure, note program, figure library, browser program and/or video reproduction program, the setting of this authority setting program for changing the first authority corresponding to the plurality of application program and the second authority, the first authority that this authority setting program is corresponding comprises all instructions that this authority setting program is corresponding, and the second authority that this authority setting program is corresponding does not allow change first authority corresponding to any application program or the setting of the second authority.
That is to say, for the phone number prestored or user corresponding to international mobile subscriber identity, can use this authority setting program to change the first authority corresponding to the plurality of application program and the second authority, be equivalent to carry out for all application programs in mobile phone the setting of authority.
The present invention also provides a kind of mobile phone, its characteristics are, this mobile phone is provided with a plurality of application programs, the plurality of application program comprises that at least one is provided with the authority application program of the first authority and the second authority, and this mobile phone comprises an authority memory module, a SIM card information reading 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 and the second authority that phone number or international mobile subscriber identity and authority application program are corresponding, and wherein this first authority is greater than this second authority.This SIM card information reading module, read phone number or international mobile subscriber identity for the SIM card from current activation.This information matches module, for mating phone number that this SIM card information reading module reads or phone number or the international mobile subscriber identity of international mobile subscriber identity and the storage of this authority memory module, and whether the record matching result is consistent.
This command reception module, for receiving the instruction of input, and whether application program corresponding to instruction that judgement receives belongs to the authority application program, in the situation that judgment result is that it is to enable an authority read module and the instruction of reception is forwarded to this authority read module, in the situation that the determination result is NO, carry out the instruction received.
This authority read module is in the situation that the first authority of application program corresponding to the consistent instruction of reading reception of this matching result, read the second authority of application program corresponding to the instruction of reception in the inconsistent situation of this matching result, and the instruction of enabling an authority judge module, first authority that will read or the second authority, reception is sent to this authority judge module.This authority judge module, for judging whether the instruction of reception exceeds the first authority or the second authority, in the situation that judgment result is that it is that refusal is carried out the instruction received, carries out in the situation that the determination result is NO the instruction received.
Preferably, this mobile phone also comprises a remote control module, and this information matches module is enabled this command reception module when matching result is consistent, enables 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 corresponding application program and the instruction of each Long-distance Control, and this Tip element is 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 mobile phone that the phone number that prestores or international mobile subscriber identity are corresponding, enable this command reception module in the situation that the determination result is NO, in the situation that judgment result is that it is to enable one second judging unit.
The remote control command whether remote information that this second judging unit receives for judgement prestores with this remote control command memory cell is consistent, enable this command reception module in the situation that the determination result is NO, in the situation that judgment result is that it is to enable a remote command performance element.
This remote command performance element, for the basis remote control command consistent with the remote information received, is carried out corresponding instruction in corresponding application program.
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 for the object of judgement and instruction corresponding to remote control command or corresponding control whether and the application program of moving be associated, enable this instruction execution unit in the situation that the determination result is NO, in the situation that judgment result is that it is to enable this application cache unit.
The application program of moving that this application cache unit is associated for buffer memory, then interrupt this application program of moving be associated and enable this instruction execution unit, this instruction execution unit is for carrying out corresponding instruction in corresponding application program and in the interrupted application program of follow-up reforwarding row that is finished.
Preferably, this remote command performance element is also in the situation that corresponding instruction is voice call or tone information and the state of this mobile phone in conversing, ongoing conversation is switched to the maintenance talking state, and after corresponding instruction is finished, will keep the conversation of talking state to switch back the normal talking state.
Preferably, this remote information is short message or the tone information that mobile phone that the phone number that prestores or international mobile subscriber identity are corresponding sends.
Preferably, this authority application program comprises authority setting program and voice procedure, note program, figure library, browser program and/or video reproduction program, the setting of this authority setting program for changing the first authority corresponding to the plurality of application program and the second authority, the first authority that this authority setting program is corresponding comprises all instructions that this authority setting program is corresponding, and the second authority that this authority setting program is corresponding does not allow change first authority corresponding to any application program or the setting of the second authority.
On the basis that meets this area general knowledge, above-mentioned each optimum condition, but combination in any obtains the preferred embodiments of the invention.
Positive progressive effect of the present invention is:
Multi-user's control method of mobile phone of the present invention and mobile phone are directly determined user's identity and then the rights of using of limited subscriber by the information of SIM card, and only when being necessary the authority of definite application program, just can process accordingly, thereby greatly improved Information Security, the easy to use property of mobile phone when the multi-user uses, the resource taken for the management of authority also seldom.
Embodiment
Provide preferred embodiment of the present invention 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.
Multi-user's control method of the mobile phone of a preferred embodiment of the present invention, phone number prestores in mobile phone, this mobile phone is provided with 8 application programs, be provided with the first authority and the second authority to 5 in these 8 application programs, these 5 programs are the authority application program, and this first authority is greater than this second authority.For all the other 3 application programs that authority is not set, any user's authority is all identical.Also there is remote control command in mobile phone, the corresponding application program of each remote control command and an instruction.
Shown in figure 1, this multi-user's control method comprises the following steps:
S
1, read phone number from the SIM card of current activation;
S
2, the phone number that reads of coupling and the phone number prestored, and whether the record matching result consistent;
S
21~S
25(in this and Fig. 1, omit S
21~S
25, hereinafter in conjunction with Fig. 2, describe in detail);
S
3, receive the instruction of input;
S
4, whether application program corresponding to instruction that receive of judgement belong to this 5 application programs, in the situation that judgment result is that it is to carry out S
5, in the situation that the determination result is NO, carry out S
4a
S
4a, the instruction that carry out to receive, and return to S
2
S
5, in the situation that the first authority of application program corresponding to the consistent instruction of reading reception of this matching result, read the second authority of application program corresponding to the instruction of reception in the inconsistent situation of this matching result;
S
6, whether the instruction that receives of judgement exceed S
5The first authority read or the second authority, in the situation that judgment result is that it is to carry out S
7a, in the situation that the determination result is NO, carry out S
7b
S
7a, the instruction that carry out to receive of refusal, and return to S
2
S
7b, the instruction that carry out to receive, and return to S
2.
Shown in figure 2, at S
2And S
3Between further comprising the steps of:
S
21, in the situation that the consistent S that carries out of matching result
3, in the inconsistent situation of matching result, carry out S
22
S
22, to the phone number prestored, corresponding mobile phone sends a SMS Tip;
S
23, judge whether to receive the remote information that mobile phone that the phone number that prestores is corresponding sends, carry out S in the situation that the determination result is NO
3, in the situation that judgment result is that it is to carry out S
24
S
24, whether the remote information that receives of judgement consistent with the remote control command prestored, in the situation that the determination result is NO, carries out S
3, in the situation that judgment result is that it is to carry out S
25
S
25, remote control command that basis is consistent with the remote information received, carry out corresponding instruction in corresponding application program, and return to 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 authority setting 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 frequency playing program.The setting of this authority setting program for changing the first authority corresponding to these 8 application programs and the second authority, the first authority that this authority setting program is corresponding comprises all instructions that this authority setting program is corresponding, and the second authority that this authority setting program is corresponding does not allow change first authority corresponding to any application program or the setting of the second authority.That is to say, this authority setting program not only can be used for changing the first authority and second authority of these 5 application programs, can also be to this all the other 3 scripts application program of not being provided with the first authority and the second authority the first authority and the second authority are set.
Wherein, S
25Comprise the following steps:
S
251, judgement and instruction corresponding to remote control command object or the corresponding application program of whether controlling and moving be associated, carry out corresponding instruction and return to S in corresponding application program in the situation that the determination result is NO
2, in the situation that judgment result is that it is to carry out S
252
S
252, the application program of moving that is associated of buffer memory, then interrupt the application program of moving that this is associated;
S
253, carry out corresponding instruction in corresponding application program, in the interrupted application program of follow-up reforwarding row that is finished, and return to S
2.
For instance, if the object of corresponding instruction and the figure library moved are associated, the figure library that the buffer memory local user is moving, the relevant information of preserving lower local user's service chart library, then interrupt the local user use so that corresponding instruction can preferentially carry out.After the corresponding instruction that is finished, according to the relevant information of buffer memory, make the local user running status when interrupting again to continue its operation.
S
25Also comprise: if corresponding instruction is voice call or tone information and the state of this mobile phone in conversing, ongoing conversation is switched to the maintenance talking state, and after corresponding instruction is finished, will keep the conversation of talking state to switch back the normal talking state.
Shown in figure 3, the mobile phone of the present embodiment is provided with 8 application programs, and comprises an authority memory module 1, a SIM card information reading module 2, an information matches module 3, a command reception module 4, an authority read module 5, an authority judge module 6 and a remote control module 7.In 8 application programs of this mobile phone, have 5 application programs to be provided with the first authority and the second authority, these 5 application programs are the authority application program.
This authority memory module 1 stores phone number and corresponding the first authority and the second authority of these 5 application programs, and wherein this first authority is greater than this second authority.This SIM card information reading module 2, read phone number for the SIM card from current activation.This information matches module 3 is for the phone number that mates this SIM card information reading module 2 and read and the phone number of this authority memory module 1 storage, and whether the record matching result is consistent.
This command reception module 4, for receiving the instruction of input, and whether application program corresponding to instruction that judgement receives belongs to this 5 application programs, in the situation that judgment result is that it is to enable an authority read module 5 and the instruction of reception is forwarded to this authority read module 5, in the situation that the determination result is NO, carry out the instruction received.
This authority read module 5 is in the situation that the first authority of application program corresponding to the consistent instruction of reading reception of this matching result, read the second authority of application program corresponding to the instruction of reception in the inconsistent situation of this matching result, and the instruction of enabling an authority judge module 6, first authority that will read or the second authority, reception is sent to this authority judge module 6.Whether this authority judge module 6 exceeds the first authority or the second authority for the instruction that judges reception, in the situation that judgment result is that it is that refusal is carried out the instruction received, in the situation that the determination result is NO, carries out the instruction received.
Wherein, this information matches module 3 is enabled 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 corresponding application program and the instruction of each Long-distance Control, and this Tip element is for to the phone number prestored, corresponding mobile phone sends an information.
The remote information that this first judging unit sends for judging whether to receive mobile phone that the phone number that prestores is corresponding, enable this command reception module 4 in the situation that the determination result is NO, in the situation that judgment result is that it is to enable one second judging unit.
The remote control command whether remote information that this second judging unit receives for judgement prestores with this remote control command memory cell is consistent, enable this command reception module 4 in the situation that the determination result is NO, in the situation that judgment result is that it is to enable a remote command performance element.
This remote command performance element, for the basis remote control command consistent with the remote information received, is carried out corresponding instruction in corresponding application program.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 for the object of judgement and instruction corresponding to remote control command or corresponding control whether and the application program of moving be associated, enable this instruction execution unit in the situation that the determination result is NO, in the situation that judgment result is that it is to enable this application cache unit.The application program of moving that this application cache unit is associated for buffer memory, then interrupt this application program of moving be associated and enable this instruction execution unit.This instruction execution unit is for carrying out corresponding instruction and in the interrupted application program of follow-up reforwarding row that is finished in corresponding application program.
This remote command performance element is also in the situation that corresponding instruction is voice call or tone information and the state of this mobile phone in conversing, ongoing conversation is switched to the maintenance talking state, and after corresponding instruction is finished, will keep the conversation of talking state to switch back the normal talking state.
This remote information is the short message that mobile phone that the phone number that prestores is corresponding sends.These 5 application programs are authority setting 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 frequency playing program.The setting of this authority setting program for changing the first authority corresponding to these 8 application programs and the second authority, the first authority that this authority setting program is corresponding comprises all instructions that this authority setting program is corresponding, and the second authority that this authority setting program is corresponding does not allow change first authority corresponding to any application program or the setting of the second authority.That is to say, this authority setting program not only can be used for changing the first authority and second authority of these 5 application programs, and the application program that can also all the other 3 scripts be provided with to the first authority and the second authority arranges the first authority and the second authority.
Although more than described 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 limited by appended claims.Those skilled in the art, under the prerequisite that does not deviate from principle of the present invention and essence, can make various changes or modifications to these execution modes, but these changes and modification all fall into protection scope of the present invention.