中文字幕无码日韩视频无码三区

應用消息事件控制方法、裝置及移動終端與流程

文檔序號:12664999閱(yue)讀(du):459來源:國知局
應用消息事件控制方法、裝置及移動終端與流程

本(ben)發明涉及軟(ruan)件(jian)領域,具體(ti)涉及一(yi)種應用消息事件(jian)控制方法、裝(zhuang)置(zhi)及移(yi)動終端。



背景技術:

一(yi)些移動終端出于安(an)全(quan)考慮,設(she)置了相(xiang)應(ying)(ying)的安(an)全(quan)模式(shi),以(yi)保護用戶在網(wang)上(shang)交易、網(wang)上(shang)支(zhi)付、銀行(xing)查詢等(deng)等(deng)場合的安(an)全(quan),例如,360手機的財產隔離系(xi)統(tong)(tong)(tong),該系(xi)統(tong)(tong)(tong)一(yi)方面通過內置安(an)全(quan)應(ying)(ying)用商店的方式(shi)來防止盜取(qu)木(mu)馬、仿冒應(ying)(ying)用的入侵(qin),從源頭上(shang)保證應(ying)(ying)用的來源安(an)全(quan),同時,將金融理財等(deng)數據進行(xing)系(xi)統(tong)(tong)(tong)隔離,禁止惡意(yi)應(ying)(ying)用非法讀取(qu),從根本上(shang)保障了用戶支(zhi)付環境的安(an)全(quan)。

目前安(an)(an)(an)卓(zhuo)系(xi)(xi)統的(de)(de)(de)(de)(de)(de)安(an)(an)(an)全(quan)(quan)模(mo)式(shi)(shi)(shi)(shi)是基于安(an)(an)(an)卓(zhuo)多(duo)用(yong)(yong)(yong)戶(hu)(hu)模(mo)式(shi)(shi)(shi)(shi)創建的(de)(de)(de)(de)(de)(de),一般地(di),用(yong)(yong)(yong)戶(hu)(hu)將普通應(ying)用(yong)(yong)(yong)安(an)(an)(an)裝在(zai)(zai)(zai)系(xi)(xi)統普通模(mo)式(shi)(shi)(shi)(shi)下,將安(an)(an)(an)全(quan)(quan)性較高的(de)(de)(de)(de)(de)(de)應(ying)用(yong)(yong)(yong)安(an)(an)(an)裝在(zai)(zai)(zai)系(xi)(xi)統安(an)(an)(an)全(quan)(quan)模(mo)式(shi)(shi)(shi)(shi)下,而由于多(duo)用(yong)(yong)(yong)戶(hu)(hu)模(mo)式(shi)(shi)(shi)(shi)下的(de)(de)(de)(de)(de)(de)不同用(yong)(yong)(yong)戶(hu)(hu)間的(de)(de)(de)(de)(de)(de)數(shu)據無(wu)(wu)法直(zhi)接(jie)(jie)共享,造成(cheng)當系(xi)(xi)統處于安(an)(an)(an)全(quan)(quan)模(mo)式(shi)(shi)(shi)(shi)時普通模(mo)式(shi)(shi)(shi)(shi)下的(de)(de)(de)(de)(de)(de)應(ying)用(yong)(yong)(yong)接(jie)(jie)收到(dao)的(de)(de)(de)(de)(de)(de)消(xiao)息無(wu)(wu)法在(zai)(zai)(zai)安(an)(an)(an)全(quan)(quan)模(mo)式(shi)(shi)(shi)(shi)下展示(shi),例如用(yong)(yong)(yong)戶(hu)(hu)A進入系(xi)(xi)統安(an)(an)(an)全(quan)(quan)模(mo)式(shi)(shi)(shi)(shi)進行轉賬(zhang)操作,而此(ci)時系(xi)(xi)統普通模(mo)式(shi)(shi)(shi)(shi)下的(de)(de)(de)(de)(de)(de)應(ying)用(yong)(yong)(yong)“微(wei)信”接(jie)(jie)收到(dao)用(yong)(yong)(yong)戶(hu)(hu)B發送過(guo)來的(de)(de)(de)(de)(de)(de)轉賬(zhang)賬(zhang)號時,此(ci)時在(zai)(zai)(zai)系(xi)(xi)統安(an)(an)(an)全(quan)(quan)模(mo)式(shi)(shi)(shi)(shi)不會顯示(shi)接(jie)(jie)收到(dao)的(de)(de)(de)(de)(de)(de)“微(wei)信”消(xiao)息,為用(yong)(yong)(yong)戶(hu)(hu)帶來不便(bian),用(yong)(yong)(yong)戶(hu)(hu)體驗(yan)較差,無(wu)(wu)法提起用(yong)(yong)(yong)戶(hu)(hu)使用(yong)(yong)(yong)安(an)(an)(an)全(quan)(quan)模(mo)式(shi)(shi)(shi)(shi)的(de)(de)(de)(de)(de)(de)興趣,導致安(an)(an)(an)全(quan)(quan)模(mo)式(shi)(shi)(shi)(shi)的(de)(de)(de)(de)(de)(de)使用(yong)(yong)(yong)率降低(di),從(cong)而導致移動終端的(de)(de)(de)(de)(de)(de)系(xi)(xi)統安(an)(an)(an)全(quan)(quan)無(wu)(wu)法得到(dao)保證。

因此,使用(yong)(yong)系(xi)統(tong)安全(quan)模式(shi)為用(yong)(yong)戶(hu)(hu)帶來安全(quan)性的(de)(de)同時(shi),如(ru)何(he)提(ti)(ti)高系(xi)統(tong)安全(quan)模式(shi)的(de)(de)易(yi)用(yong)(yong)性、提(ti)(ti)高用(yong)(yong)戶(hu)(hu)體驗,進而提(ti)(ti)起用(yong)(yong)戶(hu)(hu)使用(yong)(yong)安全(quan)模式(shi)的(de)(de)興趣,更好地保證終端系(xi)統(tong)的(de)(de)安全(quan)是目前亟需解決的(de)(de)問題(ti)。



技術實現要素:

鑒于上述問題,本發明(ming)的首要目(mu)的在于提供(gong)一種應用(yong)消息事件控制方法及(ji)裝(zhuang)置;

本發明的(de)另一目的(de)在于提(ti)供(gong)一種實現所述應用消息事件控制方(fang)法的(de)移動(dong)終端(duan)。

為實現該(gai)目(mu)的(de),本發明采用如下(xia)技術方案:

第一方面,本發(fa)明提供一種(zhong)應用消息(xi)事(shi)件控制方法,包括如下步驟:

在監測到預(yu)設(she)(she)應用的(de)消息事件時,判(pan)斷當(dang)前系統是否處(chu)于以第二(er)用戶登錄的(de)安全模式,所述(shu)預(yu)設(she)(she)應用為運行于以第一用戶登錄的(de)系統普通模式的(de)應用程序;

若當(dang)前系(xi)(xi)統(tong)處(chu)于(yu)安(an)(an)全(quan)模(mo)(mo)式(shi)下,基(ji)于(yu)系(xi)(xi)統(tong)進(jin)程通信機制將所(suo)述消息事(shi)(shi)件傳遞(di)給系(xi)(xi)統(tong)安(an)(an)全(quan)模(mo)(mo)式(shi)對應的(de)服務(wu)進(jin)程,以通過所(suo)述服務(wu)進(jin)程在系(xi)(xi)統(tong)安(an)(an)全(quan)模(mo)(mo)式(shi)下輸出響(xiang)應所(suo)述消息事(shi)(shi)件后產生的(de)通知消息。

結合第一(yi)方面,本發明的(de)(de)第一(yi)種可能的(de)(de)實現方式,所(suo)述服務(wu)進(jin)程為(wei)(wei)(wei)安卓系(xi)統的(de)(de)通知(zhi)(zhi)管理服務(wu)進(jin)程,所(suo)述消息(xi)事(shi)件(jian)為(wei)(wei)(wei)通知(zhi)(zhi)事(shi)件(jian),相應的(de)(de),所(suo)述通知(zhi)(zhi)消息(xi)為(wei)(wei)(wei)系(xi)統通知(zhi)(zhi)欄消息(xi),所(suo)述通知(zhi)(zhi)管理服務(wu)進(jin)程受所(suo)述通知(zhi)(zhi)事(shi)件(jian)驅動而在(zai)系(xi)統通知(zhi)(zhi)欄輸(shu)出相應的(de)(de)通知(zhi)(zhi)欄消息(xi)。

結合第一(yi)方面的第一(yi)種實(shi)(shi)現方式,本發明的第二種可能的實(shi)(shi)現方式,通過安(an)卓系(xi)統通知(zhi)管理服務進程(cheng)固(gu)有的監聽器監測預設應(ying)用(yong)的通知(zhi)事件。

結(jie)合(he)第(di)一方面,本發明的(de)第(di)三(san)種可能的(de)實現方式,所述(shu)(shu)(shu)服務(wu)進(jin)(jin)程(cheng)為安卓系統的(de)鬧(nao)鐘(zhong)(zhong)(zhong)(zhong)管(guan)理(li)服務(wu)進(jin)(jin)程(cheng),所述(shu)(shu)(shu)消息(xi)事(shi)件(jian)(jian)為鬧(nao)鐘(zhong)(zhong)(zhong)(zhong)事(shi)件(jian)(jian),相應的(de),所述(shu)(shu)(shu)通知消息(xi)為與鬧(nao)鐘(zhong)(zhong)(zhong)(zhong)相關的(de)通知消息(xi),所述(shu)(shu)(shu)鬧(nao)鐘(zhong)(zhong)(zhong)(zhong)管(guan)理(li)服務(wu)進(jin)(jin)程(cheng)受所述(shu)(shu)(shu)鬧(nao)鐘(zhong)(zhong)(zhong)(zhong)事(shi)件(jian)(jian)驅動輸出相應的(de)鬧(nao)鐘(zhong)(zhong)(zhong)(zhong)消息(xi)。

結合第一方(fang)面的(de)第三種實現方(fang)式,本發明的(de)第四種可能的(de)實現方(fang)式,通過注冊廣播監(jian)聽器監(jian)測預設應用的(de)鬧鐘事件。

結合(he)第一方(fang)(fang)面的第一種(zhong)(zhong)實現(xian)方(fang)(fang)式或第三(san)種(zhong)(zhong)實現(xian)方(fang)(fang)式,本發明的第五種(zhong)(zhong)可能的實現(xian)方(fang)(fang)式,所述輸出(chu)響應所述消(xiao)息(xi)事件(jian)后產生的通知消(xiao)息(xi),還包括指示燈顯(xian)示、鈴聲播放、震動反饋的一種(zhong)(zhong)或多(duo)種(zhong)(zhong)。

結合第一(yi)方(fang)面,本發明的(de)第六種(zhong)可(ke)能的(de)實現方(fang)式,所述服務(wu)進程(cheng)在(zai)系(xi)統安(an)全模(mo)式下輸(shu)出響(xiang)應(ying)所述消(xiao)息(xi)事件后(hou)(hou)產生的(de)通(tong)知(zhi)消(xiao)息(xi)與在(zai)系(xi)統普(pu)通(tong)模(mo)式下輸(shu)出響(xiang)應(ying)所述消(xiao)息(xi)事件后(hou)(hou)產生的(de)通(tong)知(zhi)消(xiao)息(xi)一(yi)致(zhi)。

結合(he)第(di)(di)一方(fang)面,本發明的第(di)(di)七種(zhong)可能的實現方(fang)式,當在(zai)系(xi)(xi)統安全模式下輸(shu)出響應(ying)所(suo)述消息(xi)(xi)事(shi)件后產生(sheng)的通(tong)知消息(xi)(xi)時,所(suo)述通(tong)知消息(xi)(xi)對應(ying)的預設應(ying)用(yong)所(suo)配置(zhi)的圖(tu)標與(yu)在(zai)系(xi)(xi)統普(pu)通(tong)模式下的預設應(ying)用(yong)的初始圖(tu)標不同(tong)。

結合第(di)一方(fang)面的第(di)一種實現方(fang)式(shi),本發明的第(di)八(ba)種可(ke)能的實現方(fang)式(shi),還包(bao)括(kuo)步驟(zou):

響應(ying)(ying)作用于系統安(an)全模式下的(de)通知(zhi)欄消息的(de)控制指(zhi)令,將系統從安(an)全模式切換(huan)到普通模式,并(bing)打開所述消息事件相對應(ying)(ying)的(de)預設應(ying)(ying)用。

結合第(di)一方面的(de)第(di)八(ba)種實現方式,本發明的(de)第(di)九(jiu)種可(ke)能的(de)實現方式,所述將系統從安(an)全模式切換(huan)到普通模式,具(ju)體還包括:

將系統(tong)從第二(er)用戶(hu)登(deng)錄(lu)狀態切換至(zhi)第一用戶(hu)登(deng)錄(lu)狀態。

結合第(di)(di)一(yi)方(fang)(fang)面的(de)第(di)(di)九(jiu)種實現方(fang)(fang)式,本發(fa)明(ming)的(de)第(di)(di)十(shi)種可能的(de)實現方(fang)(fang)式,通過調用(yong)(yong)安卓系統(tong)的(de)ActivityManager類(lei)中的(de)switchUser()方(fang)(fang)法將系統(tong)從第(di)(di)二用(yong)(yong)戶(hu)登(deng)錄狀態(tai)切(qie)換至第(di)(di)一(yi)用(yong)(yong)戶(hu)登(deng)錄狀態(tai)。

相(xiang)(xiang)應(ying)(ying)地,第二(er)方(fang)面,本發明提供一(yi)種應(ying)(ying)用(yong)消(xiao)息(xi)事件(jian)控制裝置(zhi),該裝置(zhi)具有實(shi)現上(shang)述(shu)第一(yi)方(fang)面中應(ying)(ying)用(yong)程序安裝方(fang)法的(de)(de)功能,所(suo)述(shu)功能可以通(tong)過硬件(jian)實(shi)現,也可以通(tong)過硬件(jian)執(zhi)行相(xiang)(xiang)應(ying)(ying)的(de)(de)軟件(jian)實(shi)現,所(suo)述(shu)硬件(jian)或(huo)軟件(jian)包括(kuo)一(yi)個(ge)或(huo)多個(ge)與(yu)上(shang)述(shu)功能相(xiang)(xiang)對應(ying)(ying)的(de)(de)模塊,具體包括(kuo):

監測模(mo)塊(kuai):用(yong)于在監測到預設應(ying)用(yong)的消(xiao)息事件時,判斷當前系(xi)(xi)統(tong)是否(fou)處(chu)于以(yi)第二用(yong)戶(hu)登(deng)錄(lu)的安全模(mo)式,所述預設應(ying)用(yong)為運行于以(yi)第一用(yong)戶(hu)登(deng)錄(lu)的系(xi)(xi)統(tong)普通模(mo)式的應(ying)用(yong)程序;

傳遞模(mo)塊:用(yong)于若當前系(xi)統(tong)處于安(an)(an)全模(mo)式(shi)下,基于系(xi)統(tong)進程通信機制將所(suo)述消息事(shi)件(jian)傳遞給(gei)系(xi)統(tong)安(an)(an)全模(mo)式(shi)對(dui)應的服務(wu)(wu)進程,以通過所(suo)述服務(wu)(wu)進程在系(xi)統(tong)安(an)(an)全模(mo)式(shi)下輸出(chu)響應所(suo)述消息事(shi)件(jian)后產生的通知消息。

結合(he)第(di)二方面(mian),本(ben)發明的第(di)一種可能(neng)的實現方式,所述(shu)(shu)服(fu)務(wu)進程為安卓系(xi)統的通(tong)(tong)(tong)知(zhi)管(guan)理服(fu)務(wu)進程,所述(shu)(shu)消息事(shi)件(jian)為通(tong)(tong)(tong)知(zhi)事(shi)件(jian),相應(ying)的,所述(shu)(shu)通(tong)(tong)(tong)知(zhi)消息為系(xi)統通(tong)(tong)(tong)知(zhi)欄(lan)消息,所述(shu)(shu)通(tong)(tong)(tong)知(zhi)管(guan)理服(fu)務(wu)進程受所述(shu)(shu)通(tong)(tong)(tong)知(zhi)事(shi)件(jian)驅動而在(zai)系(xi)統通(tong)(tong)(tong)知(zhi)欄(lan)輸出相應(ying)的通(tong)(tong)(tong)知(zhi)欄(lan)消息。

結(jie)合第二(er)方(fang)(fang)面的(de)(de)(de)第一種實現方(fang)(fang)式,本發(fa)明的(de)(de)(de)第二(er)種可能的(de)(de)(de)實現方(fang)(fang)式,通(tong)過安卓系統通(tong)知管(guan)理服務(wu)進程固(gu)有的(de)(de)(de)監聽(ting)器監測預設應用的(de)(de)(de)通(tong)知事件。

結(jie)合第(di)二方面,本發明的(de)(de)(de)第(di)三種(zhong)可(ke)能的(de)(de)(de)實現(xian)方式(shi),所(suo)述服(fu)務(wu)進程為安卓系統的(de)(de)(de)鬧鐘管理服(fu)務(wu)進程,所(suo)述消(xiao)(xiao)息(xi)事(shi)件為鬧鐘事(shi)件,相(xiang)應(ying)的(de)(de)(de),所(suo)述通知消(xiao)(xiao)息(xi)為與鬧鐘相(xiang)關的(de)(de)(de)通知消(xiao)(xiao)息(xi),所(suo)述鬧鐘管理服(fu)務(wu)進程受(shou)所(suo)述鬧鐘事(shi)件驅動輸出(chu)相(xiang)應(ying)的(de)(de)(de)鬧鐘消(xiao)(xiao)息(xi)。

結合第(di)二(er)方(fang)面的(de)(de)第(di)三種實(shi)現方(fang)式(shi),本發明的(de)(de)第(di)四種可能(neng)的(de)(de)實(shi)現方(fang)式(shi),通過(guo)注冊廣播監聽器(qi)監測預(yu)設應用的(de)(de)鬧鐘(zhong)事(shi)件。

結(jie)合第(di)(di)二方面的(de)(de)第(di)(di)一種(zhong)(zhong)實(shi)(shi)現方式(shi)或第(di)(di)三種(zhong)(zhong)實(shi)(shi)現方式(shi),本發(fa)明的(de)(de)第(di)(di)五種(zhong)(zhong)可能的(de)(de)實(shi)(shi)現方式(shi),所(suo)述輸出響應(ying)所(suo)述消息(xi)事件后產(chan)生的(de)(de)通(tong)知消息(xi),還包(bao)括(kuo)指示(shi)燈顯(xian)示(shi)、鈴聲播放、震動反饋(kui)的(de)(de)一種(zhong)(zhong)或多種(zhong)(zhong)。

結合(he)第二方面,本發明的(de)第六種(zhong)可(ke)能的(de)實(shi)現方式,所(suo)(suo)述(shu)服務進程在系統(tong)安全模式下輸出響(xiang)應所(suo)(suo)述(shu)消息(xi)事(shi)件后(hou)產生(sheng)的(de)通知消息(xi)與在系統(tong)普通模式下輸出響(xiang)應所(suo)(suo)述(shu)消息(xi)事(shi)件后(hou)產生(sheng)的(de)通知消息(xi)一致。

結合第(di)二(er)方面(mian),本發明(ming)的(de)第(di)七種(zhong)可能的(de)實現方式(shi),當(dang)在系統安全(quan)模(mo)式(shi)下輸(shu)出響(xiang)應(ying)所(suo)述(shu)消息事件后產生的(de)通知(zhi)消息時,所(suo)述(shu)通知(zhi)消息對應(ying)的(de)預設(she)應(ying)用(yong)所(suo)配置的(de)圖標與(yu)在系統普通模(mo)式(shi)下的(de)預設(she)應(ying)用(yong)的(de)初始圖標不(bu)同。

結合第二方面,本發明的(de)第八種可(ke)能的(de)實現方式(shi),還包(bao)括:

切(qie)(qie)換(huan)模(mo)(mo)塊:用(yong)于響應作用(yong)于系統(tong)安(an)全(quan)模(mo)(mo)式(shi)下(xia)的(de)通(tong)知欄消息的(de)控制指(zhi)令,將系統(tong)從安(an)全(quan)模(mo)(mo)式(shi)切(qie)(qie)換(huan)到普通(tong)模(mo)(mo)式(shi),并打(da)開所述消息事件相對應的(de)預設(she)應用(yong)。

結合第(di)二方面的(de)第(di)八種實現(xian)方式(shi),本發明的(de)第(di)九(jiu)種可能(neng)的(de)實現(xian)方式(shi),所述切換模塊還包(bao)括:

用戶(hu)切(qie)換(huan)單元:用于將系統從第(di)二用戶(hu)登錄狀態(tai)(tai)切(qie)換(huan)至第(di)一用戶(hu)登錄狀態(tai)(tai)。

結合第(di)(di)二(er)方面(mian)的(de)第(di)(di)九種實(shi)現方式,本發明的(de)第(di)(di)十種可能的(de)實(shi)現方式,所述切換單元通過調(diao)用安(an)卓系(xi)統的(de)ActivityManager類中的(de)switchUser()方法將(jiang)系(xi)統從第(di)(di)二(er)用戶登(deng)(deng)錄(lu)狀態(tai)切換至第(di)(di)一用戶登(deng)(deng)錄(lu)狀態(tai)。

第三方面(mian),本發明還提供一種移動終端,其特征在(zai)于,包(bao)括(kuo):

觸敏顯示器:用于顯示該方(fang)法實(shi)現過程中(zhong)(zhong)產生的中(zhong)(zhong)間(jian)信息及(ji)結果信息;

存儲器:用于(yu)存儲上述(shu)方法實現過程中產生的(de)候選中間數據以及結果(guo)數據;

一個或(huo)多(duo)個處(chu)理器:所述(shu)處(chu)理器被配置為(wei)用于執(zhi)行實現上述(shu)方(fang)法的步驟。

與現有技術相(xiang)比,本(ben)發明具備如下優點(dian):

本(ben)發(fa)明通(tong)過監測預設(she)(she)應(ying)用的(de)消(xiao)息(xi)事(shi)(shi)件,將系(xi)統普通(tong)模式下的(de)預設(she)(she)應(ying)用的(de)消(xiao)息(xi)事(shi)(shi)件同步(bu)到系(xi)統安全模式下,讓用戶(hu)在系(xi)統安全模式下仍(reng)然(ran)能第一時間接收到普通(tong)模式下的(de)預設(she)(she)應(ying)用發(fa)出(chu)的(de)消(xiao)息(xi)事(shi)(shi)件對應(ying)的(de)通(tong)知消(xiao)息(xi);

同(tong)時(shi),所述(shu)預設應(ying)用為(wei)用戶常用的具有時(shi)間(jian)類提醒的應(ying)用和通(tong)訊類應(ying)用,對于該類應(ying)用的消息的及時(shi)通(tong)知,可(ke)以(yi)增強用戶體驗(yan),提高用戶使(shi)用安全(quan)模(mo)式的興(xing)趣,提高安全(quan)模(mo)式的使(shi)用率,進而保障用戶終端的系(xi)統安全(quan)。

顯然,上述有關本(ben)發明優點(dian)(dian)的(de)描(miao)述是概(gai)括性的(de),更多的(de)優點(dian)(dian)描(miao)述將體現在后續的(de)實施(shi)例揭示(shi)中(zhong),以(yi)及(ji),本(ben)領域技術人員也可以(yi)本(ben)發明所揭示(shi)的(de)內容合理地發現本(ben)發明的(de)其他諸(zhu)多優點(dian)(dian)。

本發明(ming)附加的(de)方面和優(you)點(dian)將在下面的(de)描(miao)述中(zhong)部(bu)分(fen)給出,這(zhe)些(xie)將從(cong)下面的(de)描(miao)述中(zhong)變得(de)明(ming)顯,或通(tong)過(guo)本發明(ming)的(de)實踐了解到。

【附圖說明】

圖1為(wei)本發明應(ying)用消息(xi)事件(jian)控制方法的一實施(shi)例流(liu)程示意(yi)圖;

圖(tu)2為Binder通信(xin)機制的C/S模(mo)型示意圖(tu);

圖3為(wei)本(ben)發明(ming)應用消息事(shi)件控(kong)制(zhi)裝置的一(yi)實施例示意圖;

圖4為本(ben)發(fa)明實施例(li)提供的(de)移動終端部分結構(gou)的(de)一實施例(li)示意框(kuang)圖。

【具體實施方式】

下(xia)面(mian)結(jie)合附(fu)(fu)圖(tu)和示例性實施(shi)例對本發明(ming)作進一步地(di)描述,其(qi)中(zhong)附(fu)(fu)圖(tu)中(zhong)相(xiang)(xiang)同(tong)的標號全部(bu)指的是相(xiang)(xiang)同(tong)的

本技(ji)術(shu)領域技(ji)術(shu)人員可(ke)以理(li)解(jie)(jie),除非特(te)(te)意聲明,這(zhe)(zhe)里(li)使用(yong)的(de)(de)(de)(de)單數(shu)形式(shi)(shi)“一(yi)”、“一(yi)個(ge)”、“所述”和(he)“該(gai)(gai)”也可(ke)包(bao)(bao)括(kuo)(kuo)(kuo)復(fu)數(shu)形式(shi)(shi)。應該(gai)(gai)進(jin)一(yi)步理(li)解(jie)(jie)的(de)(de)(de)(de)是,本發明的(de)(de)(de)(de)說(shuo)明書中使用(yong)的(de)(de)(de)(de)措辭“包(bao)(bao)括(kuo)(kuo)(kuo)”是指(zhi)存(cun)(cun)在(zai)所述特(te)(te)征、整數(shu)、步驟、操(cao)作、元(yuan)件和(he)/或(huo)(huo)組件,但是并(bing)不(bu)排除存(cun)(cun)在(zai)或(huo)(huo)添加一(yi)個(ge)或(huo)(huo)多個(ge)其(qi)他(ta)特(te)(te)征、整數(shu)、步驟、操(cao)作、元(yuan)件、組件和(he)/或(huo)(huo)它們(men)(men)的(de)(de)(de)(de)組。應該(gai)(gai)理(li)解(jie)(jie),當我(wo)們(men)(men)稱元(yuan)件被“連接”或(huo)(huo)“耦接”到(dao)另一(yi)元(yuan)件時,它可(ke)以直接連接或(huo)(huo)耦接到(dao)其(qi)他(ta)元(yuan)件,或(huo)(huo)者也可(ke)以存(cun)(cun)在(zai)中間元(yuan)件。此外,這(zhe)(zhe)里(li)使用(yong)的(de)(de)(de)(de)“連接”或(huo)(huo)“耦接”可(ke)以包(bao)(bao)括(kuo)(kuo)(kuo)無(wu)線(xian)連接或(huo)(huo)無(wu)線(xian)耦接。這(zhe)(zhe)里(li)使用(yong)的(de)(de)(de)(de)措辭“和(he)/或(huo)(huo)”包(bao)(bao)括(kuo)(kuo)(kuo)一(yi)個(ge)或(huo)(huo)更多個(ge)相(xiang)關聯(lian)的(de)(de)(de)(de)列(lie)出(chu)項的(de)(de)(de)(de)全部(bu)或(huo)(huo)任一(yi)單元(yuan)和(he)全部(bu)組合。

本技術領(ling)域技術人(ren)員可以理解(jie),除非(fei)另外定義,這里使用(yong)的(de)(de)所有(you)術語(yu)(包括技術術語(yu)和科學術語(yu)),具有(you)與本發明所屬領(ling)域中的(de)(de)普通(tong)技術人(ren)員的(de)(de)一(yi)般理解(jie)相同的(de)(de)意(yi)義。還應(ying)該理解(jie)的(de)(de)是,諸(zhu)如通(tong)用(yong)字典中定義的(de)(de)那些術語(yu),應(ying)該被理解(jie)為具有(you)與現有(you)技術的(de)(de)上(shang)下文中的(de)(de)意(yi)義一(yi)致(zhi)的(de)(de)意(yi)義,并且(qie)除非(fei)像(xiang)這里一(yi)樣被特定定義,否則不會用(yong)理想化或過于正式的(de)(de)含(han)義來解(jie)釋(shi)。

本技(ji)術(shu)領域技(ji)術(shu)人員可(ke)以(yi)(yi)(yi)理(li)解,這里所使(shi)用的“終端(duan)(duan)”、“終端(duan)(duan)設(she)備(bei)”既包(bao)括(kuo)(kuo)無線(xian)信(xin)(xin)號(hao)接(jie)(jie)(jie)收(shou)(shou)器(qi)(qi)(qi)的設(she)備(bei),其(qi)僅具備(bei)無發射(she)能(neng)(neng)力的無線(xian)信(xin)(xin)號(hao)接(jie)(jie)(jie)收(shou)(shou)器(qi)(qi)(qi)的設(she)備(bei),又包(bao)括(kuo)(kuo)接(jie)(jie)(jie)收(shou)(shou)和(he)(he)(he)發射(she)硬件的設(she)備(bei),其(qi)具有能(neng)(neng)夠在雙向通(tong)信(xin)(xin)鏈(lian)路上(shang),執行雙向通(tong)信(xin)(xin)的接(jie)(jie)(jie)收(shou)(shou)和(he)(he)(he)發射(she)硬件的設(she)備(bei)。這種(zhong)設(she)備(bei)可(ke)以(yi)(yi)(yi)包(bao)括(kuo)(kuo):蜂(feng)窩或(huo)(huo)其(qi)他(ta)(ta)(ta)通(tong)信(xin)(xin)設(she)備(bei),其(qi)具有單線(xian)路顯(xian)示器(qi)(qi)(qi)或(huo)(huo)多線(xian)路顯(xian)示器(qi)(qi)(qi)或(huo)(huo)沒有多線(xian)路顯(xian)示器(qi)(qi)(qi)的蜂(feng)窩或(huo)(huo)其(qi)他(ta)(ta)(ta)通(tong)信(xin)(xin)設(she)備(bei);PCS(Personal Communications Service,個人通(tong)信(xin)(xin)系(xi)統),其(qi)可(ke)以(yi)(yi)(yi)組合語(yu)音、數(shu)據處理(li)、傳(chuan)真和(he)(he)(he)/或(huo)(huo)數(shu)據通(tong)信(xin)(xin)能(neng)(neng)力;PDA(Personal Digital Assistant,個人數(shu)字助理(li)),其(qi)可(ke)以(yi)(yi)(yi)包(bao)括(kuo)(kuo)射(she)頻(pin)接(jie)(jie)(jie)收(shou)(shou)器(qi)(qi)(qi)、尋呼機(ji)(ji)、互聯(lian)網(wang)(wang)/內聯(lian)網(wang)(wang)訪問、網(wang)(wang)絡瀏覽(lan)器(qi)(qi)(qi)、記事本、日歷和(he)(he)(he)/或(huo)(huo)GPS(Global Positioning System,全(quan)球定位系(xi)統)接(jie)(jie)(jie)收(shou)(shou)器(qi)(qi)(qi);常規膝(xi)上(shang)型和(he)(he)(he)/或(huo)(huo)掌(zhang)上(shang)型計算機(ji)(ji)或(huo)(huo)其(qi)他(ta)(ta)(ta)設(she)備(bei),其(qi)具有和(he)(he)(he)/或(huo)(huo)包(bao)括(kuo)(kuo)射(she)頻(pin)接(jie)(jie)(jie)收(shou)(shou)器(qi)(qi)(qi)的常規膝(xi)上(shang)型和(he)(he)(he)/或(huo)(huo)掌(zhang)上(shang)型計算機(ji)(ji)或(huo)(huo)其(qi)他(ta)(ta)(ta)設(she)備(bei)。這里所使(shi)用的“終端(duan)(duan)”、“移(yi)(yi)動(dong)終端(duan)(duan)”、“終端(duan)(duan)設(she)備(bei)”可(ke)以(yi)(yi)(yi)是便攜式(shi)(shi)、可(ke)運(yun)(yun)輸、安裝在交通(tong)工具(航空(kong)、海運(yun)(yun)和(he)(he)(he)/或(huo)(huo)陸地(di))中(zhong)的,或(huo)(huo)者適(shi)合于和(he)(he)(he)/或(huo)(huo)配置為在本地(di)運(yun)(yun)行,和(he)(he)(he)/或(huo)(huo)以(yi)(yi)(yi)分布形(xing)式(shi)(shi),運(yun)(yun)行在地(di)球和(he)(he)(he)/或(huo)(huo)空(kong)間的任(ren)何其(qi)他(ta)(ta)(ta)位置運(yun)(yun)行。這里所使(shi)用的“終端(duan)(duan)”、“移(yi)(yi)動(dong)終端(duan)(duan)”、“終端(duan)(duan)設(she)備(bei)”還可(ke)以(yi)(yi)(yi)是通(tong)信(xin)(xin)終端(duan)(duan)、上(shang)網(wang)(wang)終端(duan)(duan)、音樂/視(shi)頻(pin)播(bo)放終端(duan)(duan),例如可(ke)以(yi)(yi)(yi)是PDA、MID(Mobile Internet Device,移(yi)(yi)動(dong)互聯(lian)網(wang)(wang)設(she)備(bei))和(he)(he)(he)/或(huo)(huo)具有音樂/視(shi)頻(pin)播(bo)放功能(neng)(neng)的移(yi)(yi)動(dong)電話,也可(ke)以(yi)(yi)(yi)是智能(neng)(neng)電視(shi)、機(ji)(ji)頂盒等設(she)備(bei)。

本技術(shu)(shu)領域技術(shu)(shu)人員可(ke)以理解,這里(li)所使用(yong)的(de)(de)遠(yuan)端(duan)網(wang)(wang)絡(luo)(luo)設備,其包括但不限(xian)于(yu)計(ji)(ji)(ji)(ji)算(suan)(suan)機(ji)、網(wang)(wang)絡(luo)(luo)主機(ji)、單個網(wang)(wang)絡(luo)(luo)服(fu)(fu)(fu)務器、多個網(wang)(wang)絡(luo)(luo)服(fu)(fu)(fu)務器集(ji)或多個服(fu)(fu)(fu)務器構(gou)成的(de)(de)云。在此,云由基于(yu)云計(ji)(ji)(ji)(ji)算(suan)(suan)(Cloud Computing)的(de)(de)大(da)量計(ji)(ji)(ji)(ji)算(suan)(suan)機(ji)或網(wang)(wang)絡(luo)(luo)服(fu)(fu)(fu)務器構(gou)成,其中(zhong)(zhong),云計(ji)(ji)(ji)(ji)算(suan)(suan)是分布式計(ji)(ji)(ji)(ji)算(suan)(suan)的(de)(de)一(yi)種,由一(yi)群松散耦合的(de)(de)計(ji)(ji)(ji)(ji)算(suan)(suan)機(ji)集(ji)組成的(de)(de)一(yi)個超級虛(xu)擬(ni)計(ji)(ji)(ji)(ji)算(suan)(suan)機(ji)。本發明的(de)(de)實(shi)施例(li)中(zhong)(zhong),遠(yuan)端(duan)網(wang)(wang)絡(luo)(luo)設備、終端(duan)設備與WNS服(fu)(fu)(fu)務器之間可(ke)通過任何通信方式實(shi)現通信,包括但不限(xian)于(yu),基于(yu)3GPP、LTE、WIMAX的(de)(de)移動(dong)通信、基于(yu)TCP/IP、UDP協議的(de)(de)計(ji)(ji)(ji)(ji)算(suan)(suan)機(ji)網(wang)(wang)絡(luo)(luo)通信以及基于(yu)藍牙、紅外傳輸標準的(de)(de)近(jin)距無(wu)線傳輸方式。

本技術(shu)領域技術(shu)人員可以理解,本發明所(suo)述(shu)的(de)用戶界(jie)面(mian)(mian)(mian)/操(cao)作界(jie)面(mian)(mian)(mian)泛指能夠用于向智能終端發送(song)控制指令的(de)顯(xian)示界(jie)面(mian)(mian)(mian),例如,可以為Android系(xi)統的(de)設置頁(ye)面(mian)(mian)(mian)中的(de)一個選(xuan)(xuan)項(xiang)(或按鍵,由所(suo)述(shu)應用程序(xu)(xu)添加其中,下(xia)同),也可以是從(cong)桌面(mian)(mian)(mian)呼出的(de)通知欄或者(zhe)交(jiao)互(hu)頁(ye)面(mian)(mian)(mian)中的(de)一個選(xuan)(xuan)項(xiang),還(huan)可以是所(suo)述(shu)應用程序(xu)(xu)的(de)一個活(huo)動組件所(suo)構造(zao)的(de)頁(ye)面(mian)(mian)(mian)中的(de)一個選(xuan)(xuan)項(xiang)。

本領域技(ji)術人員(yuan)應當(dang)理(li)解(jie),本發明所(suo)稱的(de)(de)“應用(yong)”、“應用(yong)程序”、“應用(yong)軟件”以及(ji)類(lei)(lei)似表(biao)述的(de)(de)概念(nian)(nian),是(shi)業(ye)內技(ji)術人員(yuan)所(suo)公知的(de)(de)相(xiang)同概念(nian)(nian),是(shi)指由一系列計算(suan)機(ji)指令及(ji)相(xiang)關數據資源有(you)機(ji)構造的(de)(de)適于電子運行的(de)(de)計算(suan)機(ji)軟件。除非(fei)特(te)別指定,這種(zhong)命(ming)名本身不受編程語言種(zhong)類(lei)(lei)、級別,也不受其賴(lai)以運行的(de)(de)操作系統或平臺所(suo)限制。理(li)所(suo)當(dang)然地(di),此(ci)類(lei)(lei)概念(nian)(nian)也不受任何形式的(de)(de)終端所(suo)限制。

在以下的描(miao)述中(zhong),系統是移(yi)動(dong)(dong)終端(duan)的操作(zuo)系統,例如(ru)安(an)卓(zhuo)系統、iOS移(yi)動(dong)(dong)操作(zuo)系統等等。在以下的描(miao)述中(zhong),以安(an)卓(zhuo)系統作(zuo)為示例性(xing)說明。

步驟S100:在監測(ce)到預(yu)設(she)應用的(de)(de)消息事件(jian)時,判斷當前系統(tong)是否處于(yu)(yu)以第二用戶登錄(lu)的(de)(de)安全模式,所述預(yu)設(she)應用為運行于(yu)(yu)以第一(yi)用戶登錄(lu)的(de)(de)系統(tong)普(pu)通模式的(de)(de)應用程(cheng)序(xu)。

所述(shu)消息(xi)事(shi)件(jian)(jian)包括(kuo)通(tong)(tong)知(zhi)事(shi)件(jian)(jian)和鬧(nao)鐘(zhong)事(shi)件(jian)(jian),安卓系(xi)(xi)統(tong)(tong)中(zhong),通(tong)(tong)知(zhi)(Notification)是一(yi)(yi)種具有全局效果的事(shi)件(jian)(jian),通(tong)(tong)知(zhi)一(yi)(yi)般通(tong)(tong)過NotificationManager服(fu)(fu)務(wu)發(fa)送一(yi)(yi)個Notification對象來完成,NotificationManager是一(yi)(yi)個系(xi)(xi)統(tong)(tong)級服(fu)(fu)務(wu),應(ying)用程(cheng)序(xu)通(tong)(tong)過它向系(xi)(xi)統(tong)(tong)發(fa)送全局的通(tong)(tong)知(zhi),本實施(shi)例利用NotificationListenerService監測所述(shu)通(tong)(tong)知(zhi)事(shi)件(jian)(jian);鬧(nao)鐘(zhong)事(shi)件(jian)(jian)由安卓系(xi)(xi)統(tong)(tong)中(zhong)的AlarmManager實現(xian),其對應(ying)有一(yi)(yi)個AlarmManagerServie服(fu)(fu)務(wu)程(cheng)序(xu)來提(ti)供鬧(nao)鐘(zhong)服(fu)(fu)務(wu),一(yi)(yi)旦有鬧(nao)鐘(zhong)事(shi)件(jian)(jian)發(fa)生,AlarmManagerServie服(fu)(fu)務(wu)程(cheng)序(xu)就會遍歷鬧(nao)鐘(zhong)列表(biao)找到(dao)相(xiang)應(ying)的注(zhu)冊鬧(nao)鐘(zhong)并發(fa)出(chu)廣(guang)播(bo),系(xi)(xi)統(tong)(tong)提(ti)供了兩個Action用于廣(guang)播(bo)鬧(nao)鐘(zhong)事(shi)件(jian)(jian),本實施(shi)例通(tong)(tong)過注(zhu)冊一(yi)(yi)個廣(guang)播(bo)監聽(ting)器以監測所述(shu)鬧(nao)鐘(zhong)事(shi)件(jian)(jian)。

可以理解(jie)的是,上述(shu)監測(ce)(ce)消(xiao)息(xi)事件的方法為示例性方法,本(ben)(ben)領域技(ji)術人(ren)員(yuan)可以根據(ju)本(ben)(ben)實施例的實現邏輯利用其他方法監測(ce)(ce)消(xiao)息(xi)事件,不能(neng)將其理解(jie)為對(dui)本(ben)(ben)方法的限制。

終(zhong)端在監測(ce)到消(xiao)息事(shi)件(jian)(jian)后,首先判斷發起該消(xiao)息事(shi)件(jian)(jian)對應(ying)(ying)(ying)(ying)的應(ying)(ying)(ying)(ying)用是(shi)否為預設應(ying)(ying)(ying)(ying)用,具體的,通(tong)過獲取發起該消(xiao)息事(shi)件(jian)(jian)對應(ying)(ying)(ying)(ying)的應(ying)(ying)(ying)(ying)用的包(bao)(bao)名(ming),然后查詢該包(bao)(bao)名(ming)是(shi)否存(cun)在于預設的應(ying)(ying)(ying)(ying)用名(ming)單中,若存(cun)在則確定該消(xiao)息事(shi)件(jian)(jian)為預設應(ying)(ying)(ying)(ying)用的消(xiao)息事(shi)件(jian)(jian)。

具體的(de)(de)(de)(de)(de),所(suo)(suo)(suo)述預設應(ying)用(yong)(yong)(yong)(yong)(yong)(yong)為(wei)(wei)運(yun)行(xing)于以(yi)第(di)(di)(di)(di)一用(yong)(yong)(yong)(yong)(yong)(yong)戶(hu)(hu)(hu)(hu)登錄(lu)(lu)的(de)(de)(de)(de)(de)系(xi)(xi)統(tong)(tong)(tong)普(pu)通(tong)模(mo)(mo)(mo)式(shi)的(de)(de)(de)(de)(de)應(ying)用(yong)(yong)(yong)(yong)(yong)(yong)程序,本(ben)實施(shi)(shi)(shi)例(li)(li)(li)中(zhong),所(suo)(suo)(suo)述終端(duan)系(xi)(xi)統(tong)(tong)(tong)基(ji)于安(an)(an)(an)(an)卓多用(yong)(yong)(yong)(yong)(yong)(yong)戶(hu)(hu)(hu)(hu)模(mo)(mo)(mo)式(shi)創(chuang)(chuang)(chuang)建(jian)(jian)了一個新(xin)的(de)(de)(de)(de)(de)用(yong)(yong)(yong)(yong)(yong)(yong)戶(hu)(hu)(hu)(hu),在(zai)創(chuang)(chuang)(chuang)建(jian)(jian)新(xin)用(yong)(yong)(yong)(yong)(yong)(yong)戶(hu)(hu)(hu)(hu)后(hou),會在(zai)/data/system/users/userlist.xml文件(jian)中(zhong)保存新(xin)用(yong)(yong)(yong)(yong)(yong)(yong)戶(hu)(hu)(hu)(hu)的(de)(de)(de)(de)(de)id(uid),然后(hou)創(chuang)(chuang)(chuang)建(jian)(jian)/data/system/users/uid目(mu)錄(lu)(lu),并將用(yong)(yong)(yong)(yong)(yong)(yong)戶(hu)(hu)(hu)(hu)信息保存至其下(xia)的(de)(de)(de)(de)(de)uid.xml文件(jian)中(zhong),同時每一個用(yong)(yong)(yong)(yong)(yong)(yong)戶(hu)(hu)(hu)(hu)均分(fen)配(pei)有獨立的(de)(de)(de)(de)(de)存儲空(kong)間(jian),用(yong)(yong)(yong)(yong)(yong)(yong)于存放各(ge)自的(de)(de)(de)(de)(de)應(ying)用(yong)(yong)(yong)(yong)(yong)(yong)數(shu)據(ju)和用(yong)(yong)(yong)(yong)(yong)(yong)戶(hu)(hu)(hu)(hu)數(shu)據(ju)。安(an)(an)(an)(an)卓系(xi)(xi)統(tong)(tong)(tong)的(de)(de)(de)(de)(de)默(mo)(mo)認用(yong)(yong)(yong)(yong)(yong)(yong)戶(hu)(hu)(hu)(hu)(即管(guan)理員用(yong)(yong)(yong)(yong)(yong)(yong)戶(hu)(hu)(hu)(hu))uid為(wei)(wei)0,默(mo)(mo)認用(yong)(yong)(yong)(yong)(yong)(yong)戶(hu)(hu)(hu)(hu)對應(ying)于本(ben)實施(shi)(shi)(shi)例(li)(li)(li)的(de)(de)(de)(de)(de)第(di)(di)(di)(di)一用(yong)(yong)(yong)(yong)(yong)(yong)戶(hu)(hu)(hu)(hu),新(xin)創(chuang)(chuang)(chuang)建(jian)(jian)的(de)(de)(de)(de)(de)第(di)(di)(di)(di)一個用(yong)(yong)(yong)(yong)(yong)(yong)戶(hu)(hu)(hu)(hu)(即普(pu)通(tong)用(yong)(yong)(yong)(yong)(yong)(yong)戶(hu)(hu)(hu)(hu))uid為(wei)(wei)10,新(xin)創(chuang)(chuang)(chuang)建(jian)(jian)的(de)(de)(de)(de)(de)用(yong)(yong)(yong)(yong)(yong)(yong)戶(hu)(hu)(hu)(hu)對應(ying)于本(ben)實施(shi)(shi)(shi)例(li)(li)(li)的(de)(de)(de)(de)(de)第(di)(di)(di)(di)二用(yong)(yong)(yong)(yong)(yong)(yong)戶(hu)(hu)(hu)(hu),安(an)(an)(an)(an)卓多用(yong)(yong)(yong)(yong)(yong)(yong)戶(hu)(hu)(hu)(hu)模(mo)(mo)(mo)式(shi)支持創(chuang)(chuang)(chuang)建(jian)(jian)多個新(xin)用(yong)(yong)(yong)(yong)(yong)(yong)戶(hu)(hu)(hu)(hu),若在(zai)創(chuang)(chuang)(chuang)建(jian)(jian)10用(yong)(yong)(yong)(yong)(yong)(yong)戶(hu)(hu)(hu)(hu)后(hou)再創(chuang)(chuang)(chuang)建(jian)(jian)一個新(xin)用(yong)(yong)(yong)(yong)(yong)(yong)戶(hu)(hu)(hu)(hu),其uid為(wei)(wei)11,同樣為(wei)(wei)本(ben)實施(shi)(shi)(shi)例(li)(li)(li)所(suo)(suo)(suo)述的(de)(de)(de)(de)(de)第(di)(di)(di)(di)二用(yong)(yong)(yong)(yong)(yong)(yong)戶(hu)(hu)(hu)(hu),并且(qie)本(ben)實施(shi)(shi)(shi)例(li)(li)(li)中(zhong)定義系(xi)(xi)統(tong)(tong)(tong)以(yi)第(di)(di)(di)(di)一用(yong)(yong)(yong)(yong)(yong)(yong)戶(hu)(hu)(hu)(hu)登錄(lu)(lu)時為(wei)(wei)系(xi)(xi)統(tong)(tong)(tong)普(pu)通(tong)模(mo)(mo)(mo)式(shi),以(yi)第(di)(di)(di)(di)二用(yong)(yong)(yong)(yong)(yong)(yong)戶(hu)(hu)(hu)(hu)登錄(lu)(lu)時為(wei)(wei)系(xi)(xi)統(tong)(tong)(tong)安(an)(an)(an)(an)全(quan)模(mo)(mo)(mo)式(shi),由于多用(yong)(yong)(yong)(yong)(yong)(yong)戶(hu)(hu)(hu)(hu)模(mo)(mo)(mo)式(shi)下(xia)的(de)(de)(de)(de)(de)數(shu)據(ju)資源相互獨立且(qie)無法(fa)直接進行(xing)讀寫操作,本(ben)實施(shi)(shi)(shi)例(li)(li)(li)中(zhong)所(suo)(suo)(suo)述系(xi)(xi)統(tong)(tong)(tong)安(an)(an)(an)(an)全(quan)模(mo)(mo)(mo)式(shi)配(pei)置(zhi)有用(yong)(yong)(yong)(yong)(yong)(yong)于為(wei)(wei)安(an)(an)(an)(an)全(quan)性(xing)要(yao)求較高的(de)(de)(de)(de)(de)應(ying)用(yong)(yong)(yong)(yong)(yong)(yong)的(de)(de)(de)(de)(de)運(yun)行(xing)提(ti)供運(yun)行(xing)資源的(de)(de)(de)(de)(de)安(an)(an)(an)(an)全(quan)空(kong)間(jian),該安(an)(an)(an)(an)全(quan)空(kong)間(jian)在(zai)系(xi)(xi)統(tong)(tong)(tong)普(pu)通(tong)模(mo)(mo)(mo)式(shi)下(xia)是不可(ke)訪問的(de)(de)(de)(de)(de),同時該安(an)(an)(an)(an)全(quan)性(xing)要(yao)求較高的(de)(de)(de)(de)(de)應(ying)用(yong)(yong)(yong)(yong)(yong)(yong)安(an)(an)(an)(an)裝在(zai)安(an)(an)(an)(an)全(quan)模(mo)(mo)(mo)式(shi)下(xia)對應(ying)的(de)(de)(de)(de)(de)第(di)(di)(di)(di)二用(yong)(yong)(yong)(yong)(yong)(yong)戶(hu)(hu)(hu)(hu)的(de)(de)(de)(de)(de)存儲目(mu)錄(lu)(lu)下(xia)。

更(geng)具(ju)體的,所(suo)(suo)述(shu)預設應(ying)用(yong)包括系統普通模式下的鬧鐘(zhong)、日歷表、日程表等具(ju)有時間提醒功(gong)能的應(ying)用(yong),同時還(huan)包括如微信、郵箱等通訊類(lei)應(ying)用(yong),更(geng)佳地,所(suo)(suo)述(shu)預設應(ying)用(yong)允許用(yong)戶自行添加(jia)(jia)和刪除,例如,用(yong)戶可以(yi)選擇添加(jia)(jia)已安(an)裝的應(ying)用(yong)“順豐(feng)速運”為預設應(ying)用(yong),選擇添加(jia)(jia)后系統獲取(qu)應(ying)用(yong)“順豐(feng)速運”的包名(ming)并(bing)將其添加(jia)(jia)到預設的應(ying)用(yong)名(ming)單中。

當確定所述消息事(shi)件為預設應用(yong)(yong)的消息事(shi)件后,接著判斷當前系(xi)統是否(fou)處于以第二用(yong)(yong)戶登錄(lu)的安全模式。

步驟S200:若當(dang)前系統處于安(an)全模式(shi)下,基于系統進(jin)程(cheng)通信(xin)機制將所(suo)(suo)述消(xiao)息事件傳遞給(gei)系統安(an)全模式(shi)對應的服務進(jin)程(cheng),以通過所(suo)(suo)述服務進(jin)程(cheng)在(zai)系統安(an)全模式(shi)下輸出響應所(suo)(suo)述消(xiao)息事件后產生的通知消(xiao)息。

由(you)上述(shu)(shu)可知,系統(tong)(tong)為每一(yi)個(ge)用戶(hu)(hu)都(dou)分配(pei)有(you)各(ge)自的(de)(de)uid,第(di)一(yi)用戶(hu)(hu)的(de)(de)uid為0,若(ruo)當(dang)(dang)前系統(tong)(tong)運行(xing)(xing)的(de)(de)用戶(hu)(hu)uid不為0,則(ze)可以判斷當(dang)(dang)前系統(tong)(tong)以第(di)二(er)用戶(hu)(hu)登錄(lu),在本實(shi)施例中以創建的(de)(de)第(di)一(yi)個(ge)新(xin)用戶(hu)(hu)為第(di)二(er)用戶(hu)(hu)進行(xing)(xing)說明(ming),該第(di)二(er)用戶(hu)(hu)的(de)(de)uid為10,當(dang)(dang)確(que)(que)定(ding)所(suo)述(shu)(shu)消(xiao)(xiao)息(xi)事(shi)件(jian)(jian)為預設應(ying)(ying)用的(de)(de)消(xiao)(xiao)息(xi)事(shi)件(jian)(jian)后,獲(huo)取系統(tong)(tong)當(dang)(dang)前運行(xing)(xing)的(de)(de)用戶(hu)(hu)的(de)(de)uid,若(ruo)uid為10則(ze)確(que)(que)定(ding)當(dang)(dang)前系統(tong)(tong)處于以第(di)二(er)用戶(hu)(hu)登錄(lu)的(de)(de)安全模式(shi),然(ran)后基于系統(tong)(tong)進程(cheng)通信機制將所(suo)述(shu)(shu)消(xiao)(xiao)息(xi)事(shi)件(jian)(jian)傳遞給(gei)系統(tong)(tong)安全模式(shi)對應(ying)(ying)的(de)(de)服務進程(cheng),以通過所(suo)述(shu)(shu)服務進程(cheng)在系統(tong)(tong)安全模式(shi)下輸出響應(ying)(ying)所(suo)述(shu)(shu)消(xiao)(xiao)息(xi)事(shi)件(jian)(jian)后產生的(de)(de)通知消(xiao)(xiao)息(xi)。

具體的(de)(de)(de)(de)(de)(de),所述系(xi)統(tong)(tong)(tong)通信(xin)機(ji)制(zhi)(zhi)為(wei)安(an)(an)卓(zhuo)系(xi)統(tong)(tong)(tong)的(de)(de)(de)(de)(de)(de)Binder通信(xin)機(ji)制(zhi)(zhi),Binder是(shi)(shi)(shi)安(an)(an)卓(zhuo)系(xi)統(tong)(tong)(tong)進(jin)程(cheng)間通信(xin)(IPC)方式(shi)之一(yi)(yi),安(an)(an)卓(zhuo)系(xi)統(tong)(tong)(tong)中的(de)(de)(de)(de)(de)(de)大多數(shu)Service都(dou)是(shi)(shi)(shi)通過Binder來通信(xin)的(de)(de)(de)(de)(de)(de),同(tong)時Binder通信(xin)機(ji)制(zhi)(zhi)是(shi)(shi)(shi)通過C/S模型實現(xian)的(de)(de)(de)(de)(de)(de),如圖2所示是(shi)(shi)(shi)Binder通信(xin)機(ji)制(zhi)(zhi)的(de)(de)(de)(de)(de)(de)C/S模型示意圖,其中,服(fu)(fu)(fu)(fu)(fu)(fu)(fu)務(wu)(wu)(wu)管(guan)理器、客戶端、服(fu)(fu)(fu)(fu)(fu)(fu)(fu)務(wu)(wu)(wu)端分別對(dui)應安(an)(an)卓(zhuo)系(xi)統(tong)(tong)(tong)中的(de)(de)(de)(de)(de)(de)Service Manager、Client及(ji)Server,Service Manager是(shi)(shi)(shi)系(xi)統(tong)(tong)(tong)中一(yi)(yi)個(ge)獨立的(de)(de)(de)(de)(de)(de)進(jin)程(cheng),它是(shi)(shi)(shi)整個(ge)Binder機(ji)制(zhi)(zhi)的(de)(de)(de)(de)(de)(de)守(shou)護進(jin)程(cheng),用(yong)來管(guan)理開(kai)發者創建的(de)(de)(de)(de)(de)(de)各種Server,并(bing)且向Client提供(gong)查(cha)詢Server遠程(cheng)接口的(de)(de)(de)(de)(de)(de)功能;Server為(wei)眾多服(fu)(fu)(fu)(fu)(fu)(fu)(fu)務(wu)(wu)(wu)(Service)的(de)(de)(de)(de)(de)(de)擁有者,當(dang)(dang)(dang)Server向Client提供(gong)服(fu)(fu)(fu)(fu)(fu)(fu)(fu)務(wu)(wu)(wu)時,先去Service Manager注(zhu)(zhu)冊(ce)(ce)自己的(de)(de)(de)(de)(de)(de)服(fu)(fu)(fu)(fu)(fu)(fu)(fu)務(wu)(wu)(wu),注(zhu)(zhu)冊(ce)(ce)成功后Service Manager將相應的(de)(de)(de)(de)(de)(de)Service加入到svcList中并(bing)告(gao)知(zhi)Server服(fu)(fu)(fu)(fu)(fu)(fu)(fu)務(wu)(wu)(wu)注(zhu)(zhu)冊(ce)(ce)成功,Server可以向Service Manager注(zhu)(zhu)冊(ce)(ce)一(yi)(yi)個(ge)或多個(ge)服(fu)(fu)(fu)(fu)(fu)(fu)(fu)務(wu)(wu)(wu);Client為(wei)服(fu)(fu)(fu)(fu)(fu)(fu)(fu)務(wu)(wu)(wu)的(de)(de)(de)(de)(de)(de)使(shi)用(yong)者,當(dang)(dang)(dang)它想使(shi)用(yong)服(fu)(fu)(fu)(fu)(fu)(fu)(fu)務(wu)(wu)(wu)時,得向Service Manager申(shen)(shen)請自己所需要的(de)(de)(de)(de)(de)(de)服(fu)(fu)(fu)(fu)(fu)(fu)(fu)務(wu)(wu)(wu),Service Manager查(cha)找相應的(de)(de)(de)(de)(de)(de)Service后返回給客戶端Client,同(tong)樣的(de)(de)(de)(de)(de)(de),Client可以申(shen)(shen)請一(yi)(yi)個(ge)或多個(ge)服(fu)(fu)(fu)(fu)(fu)(fu)(fu)務(wu)(wu)(wu),當(dang)(dang)(dang)Client申(shen)(shen)請服(fu)(fu)(fu)(fu)(fu)(fu)(fu)務(wu)(wu)(wu)成功后,Client就可以使(shi)用(yong)服(fu)(fu)(fu)(fu)(fu)(fu)(fu)務(wu)(wu)(wu)了。其中,三者的(de)(de)(de)(de)(de)(de)通信(xin)方式(shi)均是(shi)(shi)(shi)Binder機(ji)制(zhi)(zhi),Server向Service Manager注(zhu)(zhu)冊(ce)(ce)服(fu)(fu)(fu)(fu)(fu)(fu)(fu)務(wu)(wu)(wu),使(shi)用(yong)Binder通信(xin),Client向Service Manager申(shen)(shen)請服(fu)(fu)(fu)(fu)(fu)(fu)(fu)務(wu)(wu)(wu),使(shi)用(yong)的(de)(de)(de)(de)(de)(de)也(ye)是(shi)(shi)(shi)Binder通信(xin),Client和Server是(shi)(shi)(shi)存在(zai)于用(yong)戶空(kong)間,Client與Server通信(xin)的(de)(de)(de)(de)(de)(de)實現(xian),是(shi)(shi)(shi)由Binder驅動在(zai)內核空(kong)間實現(xian)。

在(zai)本實施例中,當監測到預設應(ying)(ying)用的(de)(de)消(xiao)(xiao)息事件(jian)且當前系(xi)統處于(yu)安(an)全模式(shi)下(xia)時,將(jiang)普通模式(shi)下(xia)的(de)(de)預設應(ying)(ying)用的(de)(de)消(xiao)(xiao)息事件(jian)通過(guo)Binder傳遞給安(an)全模式(shi)下(xia)的(de)(de)服(fu)務進(jin)程(cheng),所述(shu)服(fu)務進(jin)程(cheng)在(zai)接收到所述(shu)消(xiao)(xiao)息事件(jian)后,根據消(xiao)(xiao)息事件(jian)的(de)(de)指示信息進(jin)行響(xiang)應(ying)(ying),在(zai)系(xi)統安(an)全模式(shi)下(xia)輸出相(xiang)應(ying)(ying)的(de)(de)通知消(xiao)(xiao)息。

一(yi)種實施例(li)(li)中(zhong),所述(shu)(shu)服務進程為安(an)卓(zhuo)系(xi)統(tong)的(de)(de)通(tong)知(zhi)(zhi)(zhi)管(guan)理(li)服務進程,所述(shu)(shu)消(xiao)息(xi)事件(jian)則為通(tong)知(zhi)(zhi)(zhi)事件(jian),相(xiang)應地,通(tong)知(zhi)(zhi)(zhi)事件(jian)所觸發的(de)(de)是通(tong)知(zhi)(zhi)(zhi)欄消(xiao)息(xi),即通(tong)知(zhi)(zhi)(zhi)管(guan)理(li)服務進程受所述(shu)(shu)通(tong)知(zhi)(zhi)(zhi)事件(jian)驅動(dong)而在(zai)系(xi)統(tong)通(tong)知(zhi)(zhi)(zhi)欄輸出(chu)相(xiang)應的(de)(de)通(tong)知(zhi)(zhi)(zhi)欄消(xiao)息(xi),例(li)(li)如,在(zai)接收(shou)到應用“微(wei)(wei)信(xin)”的(de)(de)通(tong)知(zhi)(zhi)(zhi)事件(jian)時,將(jiang)“微(wei)(wei)信(xin)”的(de)(de)通(tong)知(zhi)(zhi)(zhi)消(xiao)息(xi)展現(xian)在(zai)系(xi)統(tong)通(tong)知(zhi)(zhi)(zhi)欄中(zhong),用戶在(zai)系(xi)統(tong)安(an)全模(mo)式(shi)下仍可以(yi)關注到“微(wei)(wei)信(xin)”的(de)(de)消(xiao)息(xi)。

另外,通(tong)(tong)(tong)(tong)知消(xiao)(xiao)息(xi)(xi)的(de)(de)表(biao)現形(xing)式(shi)(shi)(shi)(shi)不止(zhi)表(biao)現為(wei)在(zai)狀態欄(lan)中輸(shu)出,還(huan)包括以(yi)顯(xian)(xian)示(shi)呼吸燈、顯(xian)(xian)示(shi)閃(shan)光(guang)燈、鈴聲(sheng)播放的(de)(de)一種(zhong)/多種(zhong)形(xing)式(shi)(shi)(shi)(shi)在(zai)系(xi)(xi)統(tong)安(an)全(quan)(quan)(quan)模式(shi)(shi)(shi)(shi)下(xia)輸(shu)出,較佳地(di)(di),該(gai)通(tong)(tong)(tong)(tong)知消(xiao)(xiao)息(xi)(xi)在(zai)系(xi)(xi)統(tong)普(pu)通(tong)(tong)(tong)(tong)模式(shi)(shi)(shi)(shi)下(xia)以(yi)何種(zhong)形(xing)式(shi)(shi)(shi)(shi)輸(shu)出,在(zai)系(xi)(xi)統(tong)安(an)全(quan)(quan)(quan)模式(shi)(shi)(shi)(shi)下(xia)仍然以(yi)相(xiang)同的(de)(de)形(xing)式(shi)(shi)(shi)(shi)輸(shu)出,更(geng)符合用(yong)戶(hu)的(de)(de)使(shi)用(yong)習慣(guan)。更(geng)佳地(di)(di),所述在(zai)安(an)全(quan)(quan)(quan)模式(shi)(shi)(shi)(shi)下(xia)輸(shu)出的(de)(de)通(tong)(tong)(tong)(tong)知欄(lan)消(xiao)(xiao)息(xi)(xi)對應(ying)(ying)的(de)(de)應(ying)(ying)用(yong)圖(tu)標(biao)與在(zai)普(pu)通(tong)(tong)(tong)(tong)模式(shi)(shi)(shi)(shi)下(xia)不同,具體的(de)(de),可(ke)以(yi)為(wei)安(an)全(quan)(quan)(quan)模式(shi)(shi)(shi)(shi)下(xia)通(tong)(tong)(tong)(tong)知欄(lan)消(xiao)(xiao)息(xi)(xi)中的(de)(de)應(ying)(ying)用(yong)圖(tu)標(biao)添加圖(tu)戳和(he)/或文(wen)字(zi)以(yi)讓用(yong)戶(hu)知曉該(gai)通(tong)(tong)(tong)(tong)知消(xiao)(xiao)息(xi)(xi)為(wei)普(pu)通(tong)(tong)(tong)(tong)模式(shi)(shi)(shi)(shi)下(xia)的(de)(de)預(yu)設應(ying)(ying)用(yong)的(de)(de)通(tong)(tong)(tong)(tong)知消(xiao)(xiao)息(xi)(xi)。

另一(yi)種實施(shi)例中,所述服(fu)務(wu)進(jin)程為(wei)安卓系統的(de)(de)鬧(nao)鐘(zhong)(zhong)管理服(fu)務(wu)進(jin)程,所述消息(xi)事件即為(wei)鬧(nao)鐘(zhong)(zhong)事件,鬧(nao)鐘(zhong)(zhong)管理服(fu)務(wu)進(jin)程接(jie)收到所述消息(xi)事件后發送Intent啟動(dong)(dong)相應(ying)的(de)(de)組件,當鬧(nao)鐘(zhong)(zhong)事件被觸發時,一(yi)般(ban)都伴(ban)隨著鈴聲、震動(dong)(dong)等反(fan)饋(kui),另外還包括在用(yong)(yong)戶(hu)界面上輸出所述鬧(nao)鐘(zhong)(zhong)通知以讓用(yong)(yong)戶(hu)選擇(ze)關閉/延遲(chi)鬧(nao)鐘(zhong)(zhong)通知。

進一步的(de),當所述消(xiao)息事(shi)件在(zai)通(tong)知欄(lan)中(zhong)輸出后,當用(yong)戶(hu)點擊通(tong)知欄(lan)中(zhong)的(de)通(tong)知消(xiao)息時,終端響應(ying)于(yu)所述控制指令,將(jiang)系統(tong)從(cong)安全模式切換(huan)到普通(tong)模式,并且在(zai)普通(tong)模式下打開相應(ying)的(de)預設應(ying)用(yong)。

具體的,在系(xi)(xi)統從安(an)全模式(shi)切(qie)換(huan)到普通模式(shi)時,還包括將系(xi)(xi)統從第(di)(di)二(er)用戶(hu)(hu)(hu)登錄狀(zhuang)態切(qie)換(huan)至第(di)(di)一(yi)用戶(hu)(hu)(hu)登錄狀(zhuang)態,在本實施例(li)中,通過調用安(an)卓(zhuo)系(xi)(xi)統的ActivityManager類中的switchUser()方(fang)法將系(xi)(xi)統從第(di)(di)二(er)用戶(hu)(hu)(hu)登錄狀(zhuang)態切(qie)換(huan)至第(di)(di)一(yi)用戶(hu)(hu)(hu)登錄狀(zhuang)態。

同時(shi)(shi),用(yong)戶(hu)可以像在(zai)普通(tong)(tong)模式(shi)(shi)下(xia)操作通(tong)(tong)知(zhi)消(xiao)息一樣對安全模式(shi)(shi)下(xia)的(de)通(tong)(tong)知(zhi)消(xiao)息進行操作,例如將通(tong)(tong)知(zhi)欄的(de)通(tong)(tong)知(zhi)消(xiao)息向右(you)滑則(ze)清(qing)除該(gai)通(tong)(tong)知(zhi)消(xiao)息,當鬧(nao)鐘(zhong)事件在(zai)用(yong)戶(hu)界面上輸出(chu)鬧(nao)鐘(zhong)界面并播放鈴(ling)聲(sheng)時(shi)(shi),點(dian)擊用(yong)戶(hu)界面上提供的(de)“關閉(bi)(bi)”選項則(ze)關閉(bi)(bi)鬧(nao)鐘(zhong)鈴(ling)聲(sheng)播放。

第二方(fang)面,如(ru)圖3所示是本發明應用消息事(shi)件控制裝置的一實施例示意圖,包括:

監測(ce)模塊(kuai)100:用于在監測(ce)到預(yu)設應用的(de)消息(xi)事件時(shi),判斷當前系(xi)統是否處于以第(di)二(er)用戶(hu)登(deng)錄(lu)的(de)安全(quan)模式,所述預(yu)設應用為運行于以第(di)一(yi)用戶(hu)登(deng)錄(lu)的(de)系(xi)統普(pu)通模式的(de)應用程序(xu)。

所(suo)述消息事件(jian)(jian)(jian)(jian)包括(kuo)通知(zhi)(zhi)事件(jian)(jian)(jian)(jian)和(he)鬧鐘(zhong)(zhong)(zhong)事件(jian)(jian)(jian)(jian),安卓系(xi)統(tong)中,通知(zhi)(zhi)(Notification)是一種(zhong)具(ju)有全(quan)局效果的(de)事件(jian)(jian)(jian)(jian),通知(zhi)(zhi)一般(ban)通過(guo)NotificationManager服(fu)(fu)務發送一個(ge)(ge)(ge)Notification對象來完成,NotificationManager是一個(ge)(ge)(ge)系(xi)統(tong)級(ji)服(fu)(fu)務,應(ying)用程序通過(guo)它向系(xi)統(tong)發送全(quan)局的(de)通知(zhi)(zhi),本(ben)(ben)實施例利(li)用NotificationListenerService監測所(suo)述通知(zhi)(zhi)事件(jian)(jian)(jian)(jian);鬧鐘(zhong)(zhong)(zhong)事件(jian)(jian)(jian)(jian)由安卓系(xi)統(tong)中的(de)AlarmManager實現,其對應(ying)有一個(ge)(ge)(ge)AlarmManagerServie服(fu)(fu)務程序來提供鬧鐘(zhong)(zhong)(zhong)服(fu)(fu)務,一旦有鬧鐘(zhong)(zhong)(zhong)事件(jian)(jian)(jian)(jian)發生(sheng),AlarmManagerServie服(fu)(fu)務程序就會遍歷鬧鐘(zhong)(zhong)(zhong)列(lie)表找到相應(ying)的(de)注冊鬧鐘(zhong)(zhong)(zhong)并發出廣播,系(xi)統(tong)提供了兩個(ge)(ge)(ge)Action用于(yu)廣播鬧鐘(zhong)(zhong)(zhong)事件(jian)(jian)(jian)(jian),本(ben)(ben)實施例通過(guo)注冊一個(ge)(ge)(ge)廣播監聽器(qi)以監測所(suo)述鬧鐘(zhong)(zhong)(zhong)事件(jian)(jian)(jian)(jian)。

監測模塊100在(zai)監測到消(xiao)息(xi)(xi)事件(jian)后(hou),首先判斷發(fa)起該(gai)(gai)消(xiao)息(xi)(xi)事件(jian)對應(ying)(ying)(ying)的(de)應(ying)(ying)(ying)用是(shi)否為預設(she)應(ying)(ying)(ying)用,具(ju)體的(de),通過(guo)獲取發(fa)起該(gai)(gai)消(xiao)息(xi)(xi)事件(jian)對應(ying)(ying)(ying)的(de)應(ying)(ying)(ying)用的(de)包名,然(ran)后(hou)查詢該(gai)(gai)包名是(shi)否存在(zai)于預設(she)的(de)應(ying)(ying)(ying)用名單中,若存在(zai)則確定該(gai)(gai)消(xiao)息(xi)(xi)事件(jian)為預設(she)應(ying)(ying)(ying)用的(de)消(xiao)息(xi)(xi)事件(jian)。

具體的(de)(de)(de)(de)(de),所(suo)述預設(she)應(ying)(ying)用(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)為(wei)(wei)運行于(yu)以(yi)第(di)一(yi)用(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)戶(hu)(hu)(hu)(hu)登錄(lu)的(de)(de)(de)(de)(de)系(xi)(xi)統普(pu)通(tong)模(mo)式(shi)(shi)的(de)(de)(de)(de)(de)應(ying)(ying)用(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)程序,本(ben)(ben)實(shi)(shi)施(shi)(shi)例(li)(li)(li)中(zhong),所(suo)述終端系(xi)(xi)統基(ji)于(yu)安(an)(an)(an)(an)(an)卓(zhuo)多(duo)用(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)戶(hu)(hu)(hu)(hu)模(mo)式(shi)(shi)創建了一(yi)個新的(de)(de)(de)(de)(de)用(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)戶(hu)(hu)(hu)(hu),在(zai)創建新用(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)戶(hu)(hu)(hu)(hu)后,會在(zai)/data/system/users/userlist.xml文(wen)件中(zhong)保存(cun)新用(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)戶(hu)(hu)(hu)(hu)的(de)(de)(de)(de)(de)id(uid),然后創建/data/system/users/uid目錄(lu),并(bing)將用(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)戶(hu)(hu)(hu)(hu)信息保存(cun)至其(qi)下(xia)的(de)(de)(de)(de)(de)uid.xml文(wen)件中(zhong),同(tong)時每(mei)一(yi)個用(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)戶(hu)(hu)(hu)(hu)均分(fen)配有(you)獨立的(de)(de)(de)(de)(de)存(cun)儲(chu)空(kong)間,用(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)于(yu)存(cun)放各自(zi)的(de)(de)(de)(de)(de)應(ying)(ying)用(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)數據和用(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)戶(hu)(hu)(hu)(hu)數據。安(an)(an)(an)(an)(an)卓(zhuo)系(xi)(xi)統的(de)(de)(de)(de)(de)默(mo)(mo)認用(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)戶(hu)(hu)(hu)(hu)(即管理員用(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)戶(hu)(hu)(hu)(hu))uid為(wei)(wei)0,默(mo)(mo)認用(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)戶(hu)(hu)(hu)(hu)對應(ying)(ying)于(yu)本(ben)(ben)實(shi)(shi)施(shi)(shi)例(li)(li)(li)的(de)(de)(de)(de)(de)第(di)一(yi)用(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)戶(hu)(hu)(hu)(hu),新創建的(de)(de)(de)(de)(de)第(di)一(yi)個用(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)戶(hu)(hu)(hu)(hu)(即普(pu)通(tong)用(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)戶(hu)(hu)(hu)(hu))uid為(wei)(wei)10,新創建的(de)(de)(de)(de)(de)用(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)戶(hu)(hu)(hu)(hu)對應(ying)(ying)于(yu)本(ben)(ben)實(shi)(shi)施(shi)(shi)例(li)(li)(li)的(de)(de)(de)(de)(de)第(di)二(er)(er)用(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)戶(hu)(hu)(hu)(hu),安(an)(an)(an)(an)(an)卓(zhuo)多(duo)用(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)戶(hu)(hu)(hu)(hu)模(mo)式(shi)(shi)支持創建多(duo)個新用(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)戶(hu)(hu)(hu)(hu),若在(zai)創建10用(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)戶(hu)(hu)(hu)(hu)后再(zai)創建一(yi)個新用(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)戶(hu)(hu)(hu)(hu),其(qi)uid為(wei)(wei)11,同(tong)樣為(wei)(wei)本(ben)(ben)實(shi)(shi)施(shi)(shi)例(li)(li)(li)所(suo)述的(de)(de)(de)(de)(de)第(di)二(er)(er)用(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)戶(hu)(hu)(hu)(hu),并(bing)且本(ben)(ben)實(shi)(shi)施(shi)(shi)例(li)(li)(li)中(zhong)定義系(xi)(xi)統以(yi)第(di)一(yi)用(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)戶(hu)(hu)(hu)(hu)登錄(lu)時為(wei)(wei)系(xi)(xi)統普(pu)通(tong)模(mo)式(shi)(shi),以(yi)第(di)二(er)(er)用(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)戶(hu)(hu)(hu)(hu)登錄(lu)時為(wei)(wei)系(xi)(xi)統安(an)(an)(an)(an)(an)全(quan)(quan)模(mo)式(shi)(shi),由于(yu)多(duo)用(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)戶(hu)(hu)(hu)(hu)模(mo)式(shi)(shi)下(xia)的(de)(de)(de)(de)(de)數據資源相互獨立且無法直(zhi)接進行讀寫操作,本(ben)(ben)實(shi)(shi)施(shi)(shi)例(li)(li)(li)中(zhong)所(suo)述系(xi)(xi)統安(an)(an)(an)(an)(an)全(quan)(quan)模(mo)式(shi)(shi)配置有(you)用(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)于(yu)為(wei)(wei)安(an)(an)(an)(an)(an)全(quan)(quan)性(xing)要求較高的(de)(de)(de)(de)(de)應(ying)(ying)用(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)的(de)(de)(de)(de)(de)運行提(ti)供運行資源的(de)(de)(de)(de)(de)安(an)(an)(an)(an)(an)全(quan)(quan)空(kong)間,該安(an)(an)(an)(an)(an)全(quan)(quan)空(kong)間在(zai)系(xi)(xi)統普(pu)通(tong)模(mo)式(shi)(shi)下(xia)是不可訪(fang)問(wen)的(de)(de)(de)(de)(de),同(tong)時該安(an)(an)(an)(an)(an)全(quan)(quan)性(xing)要求較高的(de)(de)(de)(de)(de)應(ying)(ying)用(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)安(an)(an)(an)(an)(an)裝在(zai)安(an)(an)(an)(an)(an)全(quan)(quan)模(mo)式(shi)(shi)下(xia)對應(ying)(ying)的(de)(de)(de)(de)(de)第(di)二(er)(er)用(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)(yong)戶(hu)(hu)(hu)(hu)的(de)(de)(de)(de)(de)存(cun)儲(chu)目錄(lu)下(xia)。

更具體的(de),所述(shu)預設(she)(she)應(ying)用(yong)(yong)(yong)包(bao)(bao)括系(xi)統普通模式(shi)下的(de)鬧鐘、日(ri)歷表、日(ri)程(cheng)表等具有時(shi)間提醒功(gong)能的(de)應(ying)用(yong)(yong)(yong),同時(shi)還(huan)包(bao)(bao)括如微信、郵箱(xiang)等通訊類應(ying)用(yong)(yong)(yong),更佳地,所述(shu)預設(she)(she)應(ying)用(yong)(yong)(yong)允(yun)許用(yong)(yong)(yong)戶自行添(tian)加(jia)(jia)(jia)和刪(shan)除,例如,用(yong)(yong)(yong)戶可以選(xuan)擇添(tian)加(jia)(jia)(jia)已安裝的(de)應(ying)用(yong)(yong)(yong)“順豐速(su)運”為預設(she)(she)應(ying)用(yong)(yong)(yong),選(xuan)擇添(tian)加(jia)(jia)(jia)后系(xi)統獲(huo)取應(ying)用(yong)(yong)(yong)“順豐速(su)運”的(de)包(bao)(bao)名(ming)(ming)并(bing)將其(qi)添(tian)加(jia)(jia)(jia)到預設(she)(she)的(de)應(ying)用(yong)(yong)(yong)名(ming)(ming)單中(zhong)。

當監測模塊100確(que)定所述消(xiao)息(xi)事件(jian)為預設應用的消(xiao)息(xi)事件(jian)后,接著判斷當前系統是否處(chu)于以第二用戶登錄的安全模式。

傳(chuan)遞模塊200:用于若當(dang)前系(xi)統處于安(an)(an)全(quan)模式下,基于系(xi)統進程(cheng)通信機制(zhi)將(jiang)所(suo)述消(xiao)息(xi)事(shi)件傳(chuan)遞給(gei)系(xi)統安(an)(an)全(quan)模式對應(ying)的服(fu)務(wu)(wu)進程(cheng),以通過所(suo)述服(fu)務(wu)(wu)進程(cheng)在系(xi)統安(an)(an)全(quan)模式下輸出響應(ying)所(suo)述消(xiao)息(xi)事(shi)件后(hou)產生的通知消(xiao)息(xi)。

由上述(shu)可知,系(xi)(xi)統(tong)(tong)為(wei)(wei)每一(yi)個用(yong)(yong)(yong)戶(hu)(hu)都分配有各自(zi)的(de)uid,第(di)一(yi)用(yong)(yong)(yong)戶(hu)(hu)的(de)uid為(wei)(wei)0,若(ruo)當前系(xi)(xi)統(tong)(tong)運(yun)行的(de)用(yong)(yong)(yong)戶(hu)(hu)uid不為(wei)(wei)0,則可以判斷當前系(xi)(xi)統(tong)(tong)以第(di)二(er)用(yong)(yong)(yong)戶(hu)(hu)登錄(lu),在本(ben)實施(shi)例中以創(chuang)建(jian)的(de)第(di)一(yi)個新用(yong)(yong)(yong)戶(hu)(hu)為(wei)(wei)第(di)二(er)用(yong)(yong)(yong)戶(hu)(hu)進行說明(ming),該第(di)二(er)用(yong)(yong)(yong)戶(hu)(hu)的(de)uid為(wei)(wei)10,當確定所(suo)(suo)述(shu)消(xiao)息(xi)(xi)事(shi)(shi)(shi)件為(wei)(wei)預設應(ying)(ying)用(yong)(yong)(yong)的(de)消(xiao)息(xi)(xi)事(shi)(shi)(shi)件后,獲(huo)取系(xi)(xi)統(tong)(tong)當前運(yun)行的(de)用(yong)(yong)(yong)戶(hu)(hu)的(de)uid,若(ruo)uid為(wei)(wei)10則確定當前系(xi)(xi)統(tong)(tong)處于以第(di)二(er)用(yong)(yong)(yong)戶(hu)(hu)登錄(lu)的(de)安(an)全模(mo)式(shi),然(ran)后傳遞模(mo)塊200基于系(xi)(xi)統(tong)(tong)進程通(tong)信機制將所(suo)(suo)述(shu)消(xiao)息(xi)(xi)事(shi)(shi)(shi)件傳遞給系(xi)(xi)統(tong)(tong)安(an)全模(mo)式(shi)對應(ying)(ying)的(de)服(fu)務進程,以通(tong)過所(suo)(suo)述(shu)服(fu)務進程在系(xi)(xi)統(tong)(tong)安(an)全模(mo)式(shi)下(xia)輸出響應(ying)(ying)所(suo)(suo)述(shu)消(xiao)息(xi)(xi)事(shi)(shi)(shi)件后產生的(de)通(tong)知消(xiao)息(xi)(xi)。

在(zai)本實施(shi)例中,當測模(mo)(mo)(mo)塊(kuai)100監(jian)測到預設應用的(de)消息(xi)(xi)事件且當前系統處于安全模(mo)(mo)(mo)式(shi)下時,傳遞(di)模(mo)(mo)(mo)塊(kuai)200將普通(tong)模(mo)(mo)(mo)式(shi)下的(de)預設應用的(de)消息(xi)(xi)事件通(tong)過Binder傳遞(di)給安全模(mo)(mo)(mo)式(shi)下的(de)服務進(jin)程,所述(shu)服務進(jin)程在(zai)接收(shou)到所述(shu)消息(xi)(xi)事件后(hou),根(gen)據消息(xi)(xi)事件的(de)指示信息(xi)(xi)進(jin)行(xing)響應,在(zai)系統安全模(mo)(mo)(mo)式(shi)下輸出相應的(de)通(tong)知消息(xi)(xi)。

一種實施例中,所(suo)述(shu)服務進(jin)程(cheng)(cheng)為(wei)安(an)卓系統的(de)通(tong)知管理(li)(li)服務進(jin)程(cheng)(cheng),所(suo)述(shu)消息事件(jian)則為(wei)通(tong)知事件(jian),相應地,通(tong)知事件(jian)所(suo)觸(chu)發的(de)是通(tong)知欄(lan)(lan)(lan)消息,即通(tong)知管理(li)(li)服務進(jin)程(cheng)(cheng)受所(suo)述(shu)通(tong)知事件(jian)驅動而在系統通(tong)知欄(lan)(lan)(lan)輸出相應的(de)通(tong)知欄(lan)(lan)(lan)消息,例如,在接收(shou)到(dao)應用(yong)“微信”的(de)通(tong)知事件(jian)時,將“微信”的(de)通(tong)知消息展(zhan)現在系統通(tong)知欄(lan)(lan)(lan)中,用(yong)戶在系統安(an)全模(mo)式下(xia)仍(reng)可(ke)以關(guan)注到(dao)“微信”的(de)消息。

另外,通(tong)(tong)知(zhi)消(xiao)息(xi)的(de)(de)(de)表(biao)(biao)現形式(shi)(shi)不(bu)止表(biao)(biao)現為(wei)在(zai)狀態欄(lan)中(zhong)輸出,還包括以(yi)顯(xian)示(shi)呼吸燈(deng)、顯(xian)示(shi)閃光燈(deng)、鈴聲播放(fang)的(de)(de)(de)一(yi)種/多種形式(shi)(shi)在(zai)系(xi)(xi)統(tong)安(an)(an)全(quan)模(mo)(mo)式(shi)(shi)下(xia)輸出,較佳地(di)(di),該通(tong)(tong)知(zhi)消(xiao)息(xi)在(zai)系(xi)(xi)統(tong)普(pu)通(tong)(tong)模(mo)(mo)式(shi)(shi)下(xia)以(yi)何種形式(shi)(shi)輸出,在(zai)系(xi)(xi)統(tong)安(an)(an)全(quan)模(mo)(mo)式(shi)(shi)下(xia)仍然以(yi)相同(tong)(tong)的(de)(de)(de)形式(shi)(shi)輸出,更符合用(yong)(yong)(yong)戶的(de)(de)(de)使(shi)用(yong)(yong)(yong)習慣。更佳地(di)(di),所述在(zai)安(an)(an)全(quan)模(mo)(mo)式(shi)(shi)下(xia)輸出的(de)(de)(de)通(tong)(tong)知(zhi)欄(lan)消(xiao)息(xi)對應(ying)的(de)(de)(de)應(ying)用(yong)(yong)(yong)圖(tu)(tu)標與在(zai)普(pu)通(tong)(tong)模(mo)(mo)式(shi)(shi)下(xia)不(bu)同(tong)(tong),具體的(de)(de)(de),可以(yi)為(wei)安(an)(an)全(quan)模(mo)(mo)式(shi)(shi)下(xia)通(tong)(tong)知(zhi)欄(lan)消(xiao)息(xi)中(zhong)的(de)(de)(de)應(ying)用(yong)(yong)(yong)圖(tu)(tu)標添加圖(tu)(tu)戳(chuo)和/或文字以(yi)讓(rang)用(yong)(yong)(yong)戶知(zhi)曉該通(tong)(tong)知(zhi)消(xiao)息(xi)為(wei)普(pu)通(tong)(tong)模(mo)(mo)式(shi)(shi)下(xia)的(de)(de)(de)預(yu)設(she)應(ying)用(yong)(yong)(yong)的(de)(de)(de)通(tong)(tong)知(zhi)消(xiao)息(xi)。

另一(yi)種實施(shi)例中,所(suo)述服(fu)(fu)務(wu)(wu)進(jin)程(cheng)為(wei)(wei)安卓系(xi)統的(de)鬧(nao)鐘(zhong)(zhong)(zhong)管(guan)理服(fu)(fu)務(wu)(wu)進(jin)程(cheng),所(suo)述消息事(shi)件(jian)(jian)即為(wei)(wei)鬧(nao)鐘(zhong)(zhong)(zhong)事(shi)件(jian)(jian),鬧(nao)鐘(zhong)(zhong)(zhong)管(guan)理服(fu)(fu)務(wu)(wu)進(jin)程(cheng)接收到所(suo)述消息事(shi)件(jian)(jian)后發送Intent啟動(dong)相應(ying)的(de)組件(jian)(jian),當鬧(nao)鐘(zhong)(zhong)(zhong)事(shi)件(jian)(jian)被(bei)觸發時,一(yi)般都伴隨著鈴聲、震動(dong)等反(fan)饋(kui),另外還包括在(zai)用戶界面上(shang)輸出所(suo)述鬧(nao)鐘(zhong)(zhong)(zhong)通知(zhi)以讓用戶選(xuan)擇關閉(bi)/延遲鬧(nao)鐘(zhong)(zhong)(zhong)通知(zhi)。

進一步的,當(dang)(dang)所(suo)述(shu)消息事(shi)件在(zai)通(tong)(tong)(tong)知(zhi)(zhi)欄(lan)中輸(shu)出后,當(dang)(dang)用戶(hu)點擊通(tong)(tong)(tong)知(zhi)(zhi)欄(lan)中的通(tong)(tong)(tong)知(zhi)(zhi)消息時,切(qie)換(huan)模(mo)(mo)塊(kuai)響應(ying)于所(suo)述(shu)控制(zhi)指令,將(jiang)系統從安全(quan)模(mo)(mo)式(shi)切(qie)換(huan)到普(pu)通(tong)(tong)(tong)模(mo)(mo)式(shi),并(bing)且在(zai)普(pu)通(tong)(tong)(tong)模(mo)(mo)式(shi)下打開相應(ying)的預(yu)設應(ying)用。

具體的(de)(de),在系統從(cong)安(an)全模(mo)式切換(huan)到普(pu)通模(mo)式時,還包(bao)括(kuo)用戶(hu)切換(huan)單元將系統從(cong)第(di)二用戶(hu)登錄(lu)狀(zhuang)態(tai)切換(huan)至第(di)一(yi)用戶(hu)登錄(lu)狀(zhuang)態(tai),在本(ben)實施例中,用戶(hu)切換(huan)單元通過(guo)調用安(an)卓系統的(de)(de)ActivityManager類中的(de)(de)switchUser()方(fang)法將系統從(cong)第(di)二用戶(hu)登錄(lu)狀(zhuang)態(tai)切換(huan)至第(di)一(yi)用戶(hu)登錄(lu)狀(zhuang)態(tai)。

同時,用戶可(ke)以(yi)像在普通(tong)模(mo)式下操(cao)作通(tong)知消(xiao)息(xi)一樣對安全模(mo)式下的通(tong)知消(xiao)息(xi)進行(xing)操(cao)作,例(li)如將通(tong)知欄的通(tong)知消(xiao)息(xi)向右滑則清除該通(tong)知消(xiao)息(xi),當鬧(nao)(nao)鐘事件在用戶界(jie)面(mian)上輸出鬧(nao)(nao)鐘界(jie)面(mian)并播(bo)放鈴聲時,點(dian)擊用戶界(jie)面(mian)上提供的“關閉(bi)”選項則關閉(bi)鬧(nao)(nao)鐘鈴聲播(bo)放。

另外,第三(san)方(fang)面,本(ben)發明(ming)還提供(gong)一種移(yi)動終(zhong)端,用(yong)于(yu)實(shi)現(xian)應用(yong)程序安(an)裝(zhuang)方(fang)法(fa),如圖4所(suo)示,為了便于(yu)說明(ming),僅示出了與(yu)本(ben)發明(ming)實(shi)施例(li)相關的部分,具體技(ji)術細(xi)節未(wei)揭示的,請參照本(ben)發明(ming)實(shi)施例(li)方(fang)法(fa)部分。該終(zhong)端可以為包括手(shou)機(ji)、平板電腦、PDA(Personal Digital Assistant,個人數字助理)、POS(Point of Sales,銷售終(zhong)端)、車載電腦等任意終(zhong)端設備,以移(yi)動終(zhong)端為手(shou)機(ji)為例(li):

圖4示出的(de)是與(yu)本(ben)發明實施例提供的(de)移動(dong)終端(duan)相關(guan)的(de)手(shou)機的(de)部(bu)分結構(gou)的(de)框圖。參考圖4,手(shou)機包(bao)括(kuo):基(ji)帶處(chu)(chu)理(li)模(mo)塊(kuai)410、存儲器420、輸入單元430、顯示單元440、傳感器450、音頻電路460、無(wu)線保(bao)真(wireless fidelity,WiFi)模(mo)塊(kuai)470、處(chu)(chu)理(li)器480、以(yi)及電源490等部(bu)件(jian)(jian)。本(ben)領(ling)域技術人員可(ke)以(yi)理(li)解(jie),圖4中示出的(de)手(shou)機結構(gou)并(bing)不構(gou)成對手(shou)機的(de)限定(ding),可(ke)以(yi)包(bao)括(kuo)比圖示更多或更少的(de)部(bu)件(jian)(jian),或者組合某些部(bu)件(jian)(jian),或者不同的(de)部(bu)件(jian)(jian)布置(zhi)。

基帶(dai)(dai)處理模塊410可(ke)用于合成即將發(fa)射(she)的基帶(dai)(dai)信(xin)(xin)(xin)號(hao),或對接收(shou)到的基帶(dai)(dai)信(xin)(xin)(xin)號(hao)進行解碼(ma)。具(ju)體地(di)(di)(di)說,就是發(fa)射(she)時把音頻信(xin)(xin)(xin)號(hao)編(bian)(bian)譯成用來發(fa)射(she)的基帶(dai)(dai)碼(ma);接收(shou)時,把收(shou)到的基帶(dai)(dai)碼(ma)解譯為(wei)音頻信(xin)(xin)(xin)號(hao)。同時,也負責地(di)(di)(di)址信(xin)(xin)(xin)息(手機號(hao)、網站(zhan)地(di)(di)(di)址)、文(wen)字信(xin)(xin)(xin)息(短訊文(wen)字、網站(zhan)文(wen)字)、圖片信(xin)(xin)(xin)息(彩信(xin)(xin)(xin))的編(bian)(bian)譯。

存(cun)(cun)(cun)(cun)儲(chu)(chu)(chu)(chu)(chu)(chu)(chu)器(qi)(qi)420可(ke)(ke)用于(yu)存(cun)(cun)(cun)(cun)儲(chu)(chu)(chu)(chu)(chu)(chu)(chu)軟(ruan)件(jian)程(cheng)序(xu)以(yi)及模(mo)塊(kuai)(kuai),處(chu)理(li)器(qi)(qi)480通過運行存(cun)(cun)(cun)(cun)儲(chu)(chu)(chu)(chu)(chu)(chu)(chu)在存(cun)(cun)(cun)(cun)儲(chu)(chu)(chu)(chu)(chu)(chu)(chu)器(qi)(qi)420的(de)軟(ruan)件(jian)程(cheng)序(xu)以(yi)及模(mo)塊(kuai)(kuai),從而執行手機的(de)各種功(gong)能應用以(yi)及數(shu)據(ju)(ju)處(chu)理(li)。存(cun)(cun)(cun)(cun)儲(chu)(chu)(chu)(chu)(chu)(chu)(chu)器(qi)(qi)420可(ke)(ke)主要(yao)包(bao)括存(cun)(cun)(cun)(cun)儲(chu)(chu)(chu)(chu)(chu)(chu)(chu)程(cheng)序(xu)區(qu)(qu)和存(cun)(cun)(cun)(cun)儲(chu)(chu)(chu)(chu)(chu)(chu)(chu)數(shu)據(ju)(ju)區(qu)(qu),其中,存(cun)(cun)(cun)(cun)儲(chu)(chu)(chu)(chu)(chu)(chu)(chu)程(cheng)序(xu)區(qu)(qu)可(ke)(ke)存(cun)(cun)(cun)(cun)儲(chu)(chu)(chu)(chu)(chu)(chu)(chu)操作系統(tong)、至少一(yi)個功(gong)能所需的(de)應用程(cheng)序(xu)(比如聲音(yin)播(bo)放功(gong)能、圖像播(bo)放功(gong)能等(deng))等(deng);存(cun)(cun)(cun)(cun)儲(chu)(chu)(chu)(chu)(chu)(chu)(chu)數(shu)據(ju)(ju)區(qu)(qu)可(ke)(ke)存(cun)(cun)(cun)(cun)儲(chu)(chu)(chu)(chu)(chu)(chu)(chu)根據(ju)(ju)手機的(de)使用所創建的(de)數(shu)據(ju)(ju)(比如音(yin)頻數(shu)據(ju)(ju)、電話(hua)本等(deng))等(deng)。此外(wai),存(cun)(cun)(cun)(cun)儲(chu)(chu)(chu)(chu)(chu)(chu)(chu)器(qi)(qi)420可(ke)(ke)以(yi)包(bao)括高(gao)速(su)隨機存(cun)(cun)(cun)(cun)取(qu)存(cun)(cun)(cun)(cun)儲(chu)(chu)(chu)(chu)(chu)(chu)(chu)器(qi)(qi),還(huan)可(ke)(ke)以(yi)包(bao)括非易(yi)失(shi)性(xing)存(cun)(cun)(cun)(cun)儲(chu)(chu)(chu)(chu)(chu)(chu)(chu)器(qi)(qi),例如至少一(yi)個磁盤存(cun)(cun)(cun)(cun)儲(chu)(chu)(chu)(chu)(chu)(chu)(chu)器(qi)(qi)件(jian)、閃(shan)存(cun)(cun)(cun)(cun)器(qi)(qi)件(jian)、或其他易(yi)失(shi)性(xing)固態存(cun)(cun)(cun)(cun)儲(chu)(chu)(chu)(chu)(chu)(chu)(chu)器(qi)(qi)件(jian)。

輸(shu)(shu)(shu)入(ru)單元430可(ke)(ke)(ke)(ke)(ke)用(yong)(yong)(yong)于接收輸(shu)(shu)(shu)入(ru)的(de)(de)數字或(huo)(huo)字符信(xin)息,以(yi)及產生(sheng)與手機的(de)(de)用(yong)(yong)(yong)戶(hu)(hu)(hu)設(she)置(zhi)(zhi)以(yi)及功(gong)能(neng)控(kong)(kong)(kong)制(zhi)有(you)關的(de)(de)鍵(jian)信(xin)號(hao)輸(shu)(shu)(shu)入(ru)。具(ju)體(ti)地(di),輸(shu)(shu)(shu)入(ru)單元430可(ke)(ke)(ke)(ke)(ke)包括(kuo)(kuo)觸(chu)(chu)(chu)控(kong)(kong)(kong)面(mian)(mian)板(ban)(ban)431以(yi)及其(qi)他輸(shu)(shu)(shu)入(ru)設(she)備(bei)(bei)432。觸(chu)(chu)(chu)控(kong)(kong)(kong)面(mian)(mian)板(ban)(ban)431,也(ye)稱為觸(chu)(chu)(chu)摸(mo)(mo)屏(ping),可(ke)(ke)(ke)(ke)(ke)收集用(yong)(yong)(yong)戶(hu)(hu)(hu)在(zai)其(qi)上(shang)或(huo)(huo)附(fu)近(jin)(jin)的(de)(de)觸(chu)(chu)(chu)摸(mo)(mo)操作(比如用(yong)(yong)(yong)戶(hu)(hu)(hu)使用(yong)(yong)(yong)手指、觸(chu)(chu)(chu)筆等任何適合的(de)(de)物(wu)體(ti)或(huo)(huo)附(fu)件在(zai)觸(chu)(chu)(chu)控(kong)(kong)(kong)面(mian)(mian)板(ban)(ban)431上(shang)或(huo)(huo)在(zai)觸(chu)(chu)(chu)控(kong)(kong)(kong)面(mian)(mian)板(ban)(ban)431附(fu)近(jin)(jin)的(de)(de)操作),并(bing)(bing)根據預(yu)先(xian)設(she)定的(de)(de)程式(shi)驅動相應的(de)(de)連接裝(zhuang)置(zhi)(zhi)。可(ke)(ke)(ke)(ke)(ke)選的(de)(de),觸(chu)(chu)(chu)控(kong)(kong)(kong)面(mian)(mian)板(ban)(ban)431可(ke)(ke)(ke)(ke)(ke)包括(kuo)(kuo)觸(chu)(chu)(chu)摸(mo)(mo)檢(jian)測裝(zhuang)置(zhi)(zhi)和觸(chu)(chu)(chu)摸(mo)(mo)控(kong)(kong)(kong)制(zhi)器兩個部分(fen)。其(qi)中,觸(chu)(chu)(chu)摸(mo)(mo)檢(jian)測裝(zhuang)置(zhi)(zhi)檢(jian)測用(yong)(yong)(yong)戶(hu)(hu)(hu)的(de)(de)觸(chu)(chu)(chu)摸(mo)(mo)方位,并(bing)(bing)檢(jian)測觸(chu)(chu)(chu)摸(mo)(mo)操作帶來的(de)(de)信(xin)號(hao),將信(xin)號(hao)傳送給(gei)觸(chu)(chu)(chu)摸(mo)(mo)控(kong)(kong)(kong)制(zhi)器;觸(chu)(chu)(chu)摸(mo)(mo)控(kong)(kong)(kong)制(zhi)器從觸(chu)(chu)(chu)摸(mo)(mo)檢(jian)測裝(zhuang)置(zhi)(zhi)上(shang)接收觸(chu)(chu)(chu)摸(mo)(mo)信(xin)息,并(bing)(bing)將它轉換(huan)成(cheng)觸(chu)(chu)(chu)點坐標(biao),再送給(gei)處理(li)器480,并(bing)(bing)能(neng)接收處理(li)器480發來的(de)(de)命令并(bing)(bing)加以(yi)執(zhi)行。此外(wai),可(ke)(ke)(ke)(ke)(ke)以(yi)采用(yong)(yong)(yong)電阻式(shi)、電容(rong)式(shi)、紅外(wai)線以(yi)及表面(mian)(mian)聲波等多種類型實現(xian)觸(chu)(chu)(chu)控(kong)(kong)(kong)面(mian)(mian)板(ban)(ban)431。除了觸(chu)(chu)(chu)控(kong)(kong)(kong)面(mian)(mian)板(ban)(ban)431,輸(shu)(shu)(shu)入(ru)單元430還(huan)可(ke)(ke)(ke)(ke)(ke)以(yi)包括(kuo)(kuo)其(qi)他輸(shu)(shu)(shu)入(ru)設(she)備(bei)(bei)432。具(ju)體(ti)地(di),其(qi)他輸(shu)(shu)(shu)入(ru)設(she)備(bei)(bei)432可(ke)(ke)(ke)(ke)(ke)以(yi)包括(kuo)(kuo)但不限于物(wu)理(li)鍵(jian)盤、功(gong)能(neng)鍵(jian)(比如音量控(kong)(kong)(kong)制(zhi)按鍵(jian)、開(kai)關按鍵(jian)等)、軌跡(ji)球、鼠標(biao)、操作桿等中的(de)(de)一種或(huo)(huo)多種。

顯(xian)(xian)示(shi)(shi)單(dan)(dan)元(yuan)440可(ke)(ke)用(yong)于(yu)顯(xian)(xian)示(shi)(shi)由用(yong)戶輸(shu)(shu)入(ru)的(de)(de)信息(xi)(xi)或提供(gong)給用(yong)戶的(de)(de)信息(xi)(xi)以(yi)及手(shou)機的(de)(de)各(ge)種菜單(dan)(dan)。顯(xian)(xian)示(shi)(shi)單(dan)(dan)元(yuan)440可(ke)(ke)包括(kuo)顯(xian)(xian)示(shi)(shi)面(mian)(mian)(mian)板(ban)(ban)(ban)441,可(ke)(ke)選的(de)(de),可(ke)(ke)以(yi)采用(yong)液晶顯(xian)(xian)示(shi)(shi)器(qi)(qi)(Liquid Crystal Display,LCD)、有機發光二(er)極管(Organic Light-Emitting Diode,OLED)等形式來(lai)配置顯(xian)(xian)示(shi)(shi)面(mian)(mian)(mian)板(ban)(ban)(ban)441。進一步的(de)(de),觸(chu)(chu)(chu)控(kong)(kong)(kong)面(mian)(mian)(mian)板(ban)(ban)(ban)431可(ke)(ke)覆蓋顯(xian)(xian)示(shi)(shi)面(mian)(mian)(mian)板(ban)(ban)(ban)441,當觸(chu)(chu)(chu)控(kong)(kong)(kong)面(mian)(mian)(mian)板(ban)(ban)(ban)431檢測到在(zai)(zai)其(qi)上或附近的(de)(de)觸(chu)(chu)(chu)摸(mo)(mo)操作(zuo)后,傳送(song)給處理器(qi)(qi)480以(yi)確定觸(chu)(chu)(chu)摸(mo)(mo)事(shi)件的(de)(de)類型,隨(sui)后處理器(qi)(qi)480根據觸(chu)(chu)(chu)摸(mo)(mo)事(shi)件的(de)(de)類型在(zai)(zai)顯(xian)(xian)示(shi)(shi)面(mian)(mian)(mian)板(ban)(ban)(ban)441上提供(gong)相應的(de)(de)視覺輸(shu)(shu)出。雖然(ran)在(zai)(zai)圖4中,觸(chu)(chu)(chu)控(kong)(kong)(kong)面(mian)(mian)(mian)板(ban)(ban)(ban)431與(yu)顯(xian)(xian)示(shi)(shi)面(mian)(mian)(mian)板(ban)(ban)(ban)441是作(zuo)為兩個獨立的(de)(de)部件來(lai)實(shi)現手(shou)機的(de)(de)輸(shu)(shu)入(ru)和輸(shu)(shu)入(ru)功能,但是在(zai)(zai)某些實(shi)施例中,可(ke)(ke)以(yi)將觸(chu)(chu)(chu)控(kong)(kong)(kong)面(mian)(mian)(mian)板(ban)(ban)(ban)431與(yu)顯(xian)(xian)示(shi)(shi)面(mian)(mian)(mian)板(ban)(ban)(ban)441集(ji)成而(er)實(shi)現手(shou)機的(de)(de)輸(shu)(shu)入(ru)和輸(shu)(shu)出功能。

手機(ji)(ji)還可(ke)(ke)包(bao)括至少一種(zhong)傳(chuan)(chuan)(chuan)(chuan)感(gan)(gan)(gan)(gan)(gan)器(qi)(qi)(qi)(qi)(qi)450,比如光傳(chuan)(chuan)(chuan)(chuan)感(gan)(gan)(gan)(gan)(gan)器(qi)(qi)(qi)(qi)(qi)、運(yun)動(dong)傳(chuan)(chuan)(chuan)(chuan)感(gan)(gan)(gan)(gan)(gan)器(qi)(qi)(qi)(qi)(qi)以(yi)及(ji)其(qi)他(ta)傳(chuan)(chuan)(chuan)(chuan)感(gan)(gan)(gan)(gan)(gan)器(qi)(qi)(qi)(qi)(qi)。具體(ti)地,光傳(chuan)(chuan)(chuan)(chuan)感(gan)(gan)(gan)(gan)(gan)器(qi)(qi)(qi)(qi)(qi)可(ke)(ke)包(bao)括環(huan)境(jing)光傳(chuan)(chuan)(chuan)(chuan)感(gan)(gan)(gan)(gan)(gan)器(qi)(qi)(qi)(qi)(qi)及(ji)接(jie)近傳(chuan)(chuan)(chuan)(chuan)感(gan)(gan)(gan)(gan)(gan)器(qi)(qi)(qi)(qi)(qi),其(qi)中(zhong),環(huan)境(jing)光傳(chuan)(chuan)(chuan)(chuan)感(gan)(gan)(gan)(gan)(gan)器(qi)(qi)(qi)(qi)(qi)可(ke)(ke)根據環(huan)境(jing)光線(xian)的(de)明暗來調節(jie)顯示(shi)面板441的(de)亮(liang)度,接(jie)近傳(chuan)(chuan)(chuan)(chuan)感(gan)(gan)(gan)(gan)(gan)器(qi)(qi)(qi)(qi)(qi)可(ke)(ke)在手機(ji)(ji)移(yi)動(dong)到耳邊(bian)時,關(guan)閉(bi)顯示(shi)面板441和(he)/或背(bei)光。作為(wei)(wei)運(yun)動(dong)傳(chuan)(chuan)(chuan)(chuan)感(gan)(gan)(gan)(gan)(gan)器(qi)(qi)(qi)(qi)(qi)的(de)一種(zhong),加速(su)計傳(chuan)(chuan)(chuan)(chuan)感(gan)(gan)(gan)(gan)(gan)器(qi)(qi)(qi)(qi)(qi)可(ke)(ke)檢測各個方向(xiang)上(shang)(一般為(wei)(wei)三(san)軸)加速(su)度的(de)大小,靜止時可(ke)(ke)檢測出(chu)重力的(de)大小及(ji)方向(xiang),可(ke)(ke)用(yong)于(yu)(yu)識別手機(ji)(ji)姿態的(de)應用(yong)(比如橫豎屏切換、相(xiang)關(guan)游戲、磁力計姿態校準(zhun))、振動(dong)識別相(xiang)關(guan)功能(比如計步器(qi)(qi)(qi)(qi)(qi)、敲擊)等;至于(yu)(yu)手機(ji)(ji)還可(ke)(ke)配(pei)置的(de)陀螺(luo)儀、氣壓計、濕度計、溫度計、紅外線(xian)傳(chuan)(chuan)(chuan)(chuan)感(gan)(gan)(gan)(gan)(gan)器(qi)(qi)(qi)(qi)(qi)等其(qi)他(ta)傳(chuan)(chuan)(chuan)(chuan)感(gan)(gan)(gan)(gan)(gan)器(qi)(qi)(qi)(qi)(qi),在此(ci)不再贅述(shu)。

音(yin)(yin)頻(pin)(pin)電(dian)(dian)路(lu)(lu)460、揚(yang)聲(sheng)(sheng)器(qi)(qi)461,傳聲(sheng)(sheng)器(qi)(qi)462可提供用戶與(yu)手機之(zhi)間的音(yin)(yin)頻(pin)(pin)接口。音(yin)(yin)頻(pin)(pin)電(dian)(dian)路(lu)(lu)460可將(jiang)接收(shou)到的音(yin)(yin)頻(pin)(pin)數(shu)(shu)據(ju)轉換(huan)后的電(dian)(dian)信(xin)號(hao),傳輸(shu)(shu)到揚(yang)聲(sheng)(sheng)器(qi)(qi)461,由揚(yang)聲(sheng)(sheng)器(qi)(qi)461轉換(huan)為聲(sheng)(sheng)音(yin)(yin)信(xin)號(hao)輸(shu)(shu)出;另(ling)(ling)一方(fang)面(mian),傳聲(sheng)(sheng)器(qi)(qi)462將(jiang)收(shou)集的聲(sheng)(sheng)音(yin)(yin)信(xin)號(hao)轉換(huan)為電(dian)(dian)信(xin)號(hao),由音(yin)(yin)頻(pin)(pin)電(dian)(dian)路(lu)(lu)460接收(shou)后轉換(huan)為音(yin)(yin)頻(pin)(pin)數(shu)(shu)據(ju),再將(jiang)音(yin)(yin)頻(pin)(pin)數(shu)(shu)據(ju)輸(shu)(shu)出處(chu)理器(qi)(qi)480處(chu)理后,經RF電(dian)(dian)路(lu)(lu)410以(yi)發送給比如另(ling)(ling)一手機,或者(zhe)將(jiang)音(yin)(yin)頻(pin)(pin)數(shu)(shu)據(ju)輸(shu)(shu)出至(zhi)存儲器(qi)(qi)420以(yi)便進一步(bu)處(chu)理。

WiFi屬于短(duan)距離(li)無線傳輸技術,手機(ji)通過WiFi模(mo)塊(kuai)470可(ke)(ke)以幫助用戶收發電子(zi)郵件、瀏覽網頁和(he)訪問流式(shi)媒體等,它(ta)為用戶提(ti)供了無線的(de)(de)(de)寬(kuan)帶互(hu)聯網訪問。雖(sui)然圖(tu)4示出(chu)了WiFi模(mo)塊(kuai)470,但是(shi)可(ke)(ke)以理解的(de)(de)(de)是(shi),其(qi)并不(bu)屬于手機(ji)的(de)(de)(de)必須構成,完(wan)全可(ke)(ke)以根(gen)據需要在不(bu)改變發明的(de)(de)(de)本質的(de)(de)(de)范圍內而省略。

處(chu)(chu)(chu)理(li)(li)(li)器(qi)(qi)480是手(shou)機的(de)控制中心,利用(yong)各種接口和(he)線(xian)路連接整個(ge)手(shou)機的(de)各個(ge)部(bu)分(fen),通過運行或執行存儲在存儲器(qi)(qi)420內(nei)的(de)軟(ruan)件程序和(he)/或模塊,以及調(diao)用(yong)存儲在存儲器(qi)(qi)420內(nei)的(de)數(shu)據,執行手(shou)機的(de)各種功能和(he)處(chu)(chu)(chu)理(li)(li)(li)數(shu)據,從而對手(shou)機進行整體監(jian)控。可(ke)選(xuan)的(de),處(chu)(chu)(chu)理(li)(li)(li)器(qi)(qi)480可(ke)包括一個(ge)或多(duo)個(ge)處(chu)(chu)(chu)理(li)(li)(li)單元;優選(xuan)的(de),處(chu)(chu)(chu)理(li)(li)(li)器(qi)(qi)480可(ke)集(ji)成(cheng)應(ying)用(yong)處(chu)(chu)(chu)理(li)(li)(li)器(qi)(qi)和(he)調(diao)制解調(diao)處(chu)(chu)(chu)理(li)(li)(li)器(qi)(qi),其中,應(ying)用(yong)處(chu)(chu)(chu)理(li)(li)(li)器(qi)(qi)主要處(chu)(chu)(chu)理(li)(li)(li)操(cao)作系(xi)統、用(yong)戶界面和(he)應(ying)用(yong)程序等,調(diao)制解調(diao)處(chu)(chu)(chu)理(li)(li)(li)器(qi)(qi)主要處(chu)(chu)(chu)理(li)(li)(li)無線(xian)通信(xin)。可(ke)以理(li)(li)(li)解的(de)是,上述調(diao)制解調(diao)處(chu)(chu)(chu)理(li)(li)(li)器(qi)(qi)也可(ke)以不集(ji)成(cheng)到(dao)處(chu)(chu)(chu)理(li)(li)(li)器(qi)(qi)480中。

手機還包(bao)括給(gei)各個部件供(gong)電(dian)的電(dian)源490(比如電(dian)池),優選的,電(dian)源可以(yi)通(tong)過(guo)電(dian)源管(guan)理(li)系統與(yu)處理(li)器480邏輯(ji)相連,從而(er)通(tong)過(guo)電(dian)源管(guan)理(li)系統實(shi)現管(guan)理(li)充(chong)電(dian)、放電(dian)、以(yi)及功耗管(guan)理(li)等功能。

盡管未示出,手(shou)機(ji)還可(ke)以包(bao)括攝像頭(tou)、藍牙(ya)模塊等(deng),在(zai)此不再贅述。

在本(ben)發明實施例中,該終端(duan)所包括(kuo)的(de)處(chu)理(li)器480還具有以下(xia)功(gong)能:

在監測到(dao)預設應用(yong)的消息事件時,判斷當(dang)前系(xi)統(tong)是否處(chu)于(yu)以第(di)二用(yong)戶登錄的安(an)全模式,所述預設應用(yong)為運行于(yu)以第(di)一用(yong)戶登錄的系(xi)統(tong)普通模式的應用(yong)程(cheng)序;

若當前系(xi)統處于安(an)全模式下,基于系(xi)統進程通(tong)信機制將所(suo)述(shu)消(xiao)息事件(jian)傳遞給系(xi)統安(an)全模式對應的服務進程,以通(tong)過所(suo)述(shu)服務進程在系(xi)統安(an)全模式下輸出(chu)響應所(suo)述(shu)消(xiao)息事件(jian)后(hou)產生的通(tong)知消(xiao)息。

所屬領域的(de)(de)技(ji)術人員可(ke)以(yi)清楚地了解到,為描述(shu)(shu)(shu)的(de)(de)方便和(he)簡潔,上述(shu)(shu)(shu)描述(shu)(shu)(shu)的(de)(de)系統,裝置和(he)單(dan)元的(de)(de)具(ju)體(ti)工作(zuo)過程(cheng),可(ke)以(yi)參考前述(shu)(shu)(shu)方法實施例中的(de)(de)對(dui)應過程(cheng),在此(ci)不再(zai)贅(zhui)述(shu)(shu)(shu)。

在本申請所(suo)(suo)(suo)(suo)提供的(de)(de)(de)(de)幾個實施例(li)中(zhong),應該理解到(dao)(dao),所(suo)(suo)(suo)(suo)揭(jie)露(lu)的(de)(de)(de)(de)系統(tong),裝(zhuang)置(zhi)(zhi)和方法,可以通過其(qi)它(ta)的(de)(de)(de)(de)方式實現(xian)。例(li)如(ru),以上所(suo)(suo)(suo)(suo)描述的(de)(de)(de)(de)裝(zhuang)置(zhi)(zhi)實施例(li)僅(jin)僅(jin)是示意(yi)性的(de)(de)(de)(de),例(li)如(ru),所(suo)(suo)(suo)(suo)述單元(yuan)的(de)(de)(de)(de)劃(hua)分,僅(jin)僅(jin)為一(yi)(yi)種(zhong)邏(luo)輯功能劃(hua)分,實際實現(xian)時可以有另外的(de)(de)(de)(de)劃(hua)分方式,例(li)如(ru)多個單元(yuan)或組件可以結合(he)或者可以集成到(dao)(dao)另一(yi)(yi)個系統(tong),或一(yi)(yi)些(xie)特征可以忽略,或不執行。另一(yi)(yi)點,所(suo)(suo)(suo)(suo)顯示或討論的(de)(de)(de)(de)相互之間的(de)(de)(de)(de)耦合(he)或直接(jie)耦合(he)或通信連接(jie)可以是通過一(yi)(yi)些(xie)接(jie)口,裝(zhuang)置(zhi)(zhi)或單元(yuan)的(de)(de)(de)(de)間接(jie)耦合(he)或通信連接(jie),可以是電(dian)性,機(ji)械或其(qi)它(ta)的(de)(de)(de)(de)形(xing)式。

所(suo)述作為分(fen)(fen)離部(bu)件說(shuo)明的(de)(de)(de)單(dan)元(yuan)可(ke)(ke)以(yi)是或者(zhe)也(ye)可(ke)(ke)以(yi)不是物(wu)理上(shang)分(fen)(fen)開的(de)(de)(de),作為單(dan)元(yuan)顯示(shi)的(de)(de)(de)部(bu)件可(ke)(ke)以(yi)是或者(zhe)也(ye)可(ke)(ke)以(yi)不是物(wu)理單(dan)元(yuan),即(ji)可(ke)(ke)以(yi)位于一個地方,或者(zhe)也(ye)可(ke)(ke)以(yi)分(fen)(fen)布(bu)到多個網絡單(dan)元(yuan)上(shang)。可(ke)(ke)以(yi)根據實際的(de)(de)(de)需要選擇其(qi)中的(de)(de)(de)部(bu)分(fen)(fen)或者(zhe)全部(bu)單(dan)元(yuan)來實現本實施例方案的(de)(de)(de)目的(de)(de)(de)。

另(ling)外,在本(ben)發明各(ge)個(ge)(ge)實(shi)(shi)施例中的各(ge)功能單(dan)(dan)元(yuan)(yuan)可以(yi)(yi)集(ji)成在一個(ge)(ge)處理單(dan)(dan)元(yuan)(yuan)中,也可以(yi)(yi)是各(ge)個(ge)(ge)單(dan)(dan)元(yuan)(yuan)單(dan)(dan)獨(du)物(wu)理存在,也可以(yi)(yi)兩個(ge)(ge)或(huo)兩個(ge)(ge)以(yi)(yi)上(shang)(shang)單(dan)(dan)元(yuan)(yuan)集(ji)成在一個(ge)(ge)單(dan)(dan)元(yuan)(yuan)中。上(shang)(shang)述集(ji)成的單(dan)(dan)元(yuan)(yuan)既可以(yi)(yi)采(cai)用硬(ying)件(jian)的形式(shi)實(shi)(shi)現,也可以(yi)(yi)采(cai)用軟件(jian)功能單(dan)(dan)元(yuan)(yuan)的形式(shi)實(shi)(shi)現。

本領域普通技術人員可(ke)(ke)以理(li)解上述實施例的(de)各種方法(fa)中的(de)全部(bu)(bu)或部(bu)(bu)分(fen)步驟(zou)是可(ke)(ke)以通過程(cheng)序(xu)(xu)來指令相關的(de)硬件來完成,該程(cheng)序(xu)(xu)可(ke)(ke)以存(cun)(cun)儲(chu)(chu)于一計算機可(ke)(ke)讀(du)(du)存(cun)(cun)儲(chu)(chu)介質中,存(cun)(cun)儲(chu)(chu)介質可(ke)(ke)以包括:只讀(du)(du)存(cun)(cun)儲(chu)(chu)器(ROM,Read Only Memory)、隨機存(cun)(cun)取存(cun)(cun)儲(chu)(chu)器(RAM,Random Access Memory)、磁盤或光盤等。

本領(ling)域普(pu)通技術人員可(ke)(ke)以理解實(shi)現上述實(shi)施例方法(fa)中的(de)全部或(huo)部分步驟(zou)是(shi)(shi)可(ke)(ke)以通過程序來(lai)指令(ling)相關的(de)硬(ying)件完成(cheng),所述的(de)程序可(ke)(ke)以存儲(chu)于一種計算機可(ke)(ke)讀(du)存儲(chu)介(jie)(jie)質中,上述提(ti)到(dao)的(de)存儲(chu)介(jie)(jie)質可(ke)(ke)以是(shi)(shi)只讀(du)存儲(chu)器(qi),磁盤或(huo)光盤等。

概括地說(shuo),本發(fa)明提(ti)供的技術方案(an)如下(xia):

A1、一種應用消息事件(jian)控制方法,包括如下步驟:

在監測到預設應(ying)用(yong)的消息事件時,判(pan)斷當前系(xi)統是否處于(yu)以第(di)二(er)用(yong)戶(hu)登錄的安全模式,所述預設應(ying)用(yong)為(wei)運行(xing)于(yu)以第(di)一用(yong)戶(hu)登錄的系(xi)統普通模式的應(ying)用(yong)程序;

若當前(qian)系統(tong)處于(yu)安(an)全(quan)(quan)模(mo)(mo)式下,基于(yu)系統(tong)進(jin)程通信機(ji)制(zhi)將所述(shu)消息(xi)事件傳遞給系統(tong)安(an)全(quan)(quan)模(mo)(mo)式對(dui)應的服(fu)務進(jin)程,以通過(guo)所述(shu)服(fu)務進(jin)程在系統(tong)安(an)全(quan)(quan)模(mo)(mo)式下輸出響應所述(shu)消息(xi)事件后產生(sheng)的通知消息(xi)。

A2、根(gen)據(ju)A1所(suo)述(shu)(shu)(shu)(shu)的方(fang)法,所(suo)述(shu)(shu)(shu)(shu)服(fu)務(wu)進程(cheng)為(wei)安卓系統的通知(zhi)(zhi)管理服(fu)務(wu)進程(cheng),所(suo)述(shu)(shu)(shu)(shu)消(xiao)息事(shi)(shi)件為(wei)通知(zhi)(zhi)事(shi)(shi)件,相應的,所(suo)述(shu)(shu)(shu)(shu)通知(zhi)(zhi)消(xiao)息為(wei)系統通知(zhi)(zhi)欄消(xiao)息,所(suo)述(shu)(shu)(shu)(shu)通知(zhi)(zhi)管理服(fu)務(wu)進程(cheng)受(shou)所(suo)述(shu)(shu)(shu)(shu)通知(zhi)(zhi)事(shi)(shi)件驅動而在系統通知(zhi)(zhi)欄輸出相應的通知(zhi)(zhi)欄消(xiao)息。

A3、根據(ju)A2所述(shu)的方法,通過安卓系統通知管理服(fu)務進程固有的監聽器監測預(yu)設應(ying)用的通知事(shi)件。

A4、根據A1所(suo)(suo)(suo)(suo)述(shu)的方法(fa),所(suo)(suo)(suo)(suo)述(shu)服務進(jin)程(cheng)(cheng)為(wei)安卓系(xi)統的鬧(nao)鐘管理服務進(jin)程(cheng)(cheng),所(suo)(suo)(suo)(suo)述(shu)消(xiao)息(xi)事(shi)件(jian)為(wei)鬧(nao)鐘事(shi)件(jian),相(xiang)應的,所(suo)(suo)(suo)(suo)述(shu)通知(zhi)消(xiao)息(xi)為(wei)與(yu)鬧(nao)鐘相(xiang)關的通知(zhi)消(xiao)息(xi),所(suo)(suo)(suo)(suo)述(shu)鬧(nao)鐘管理服務進(jin)程(cheng)(cheng)受所(suo)(suo)(suo)(suo)述(shu)鬧(nao)鐘事(shi)件(jian)驅動(dong)輸出相(xiang)應的鬧(nao)鐘消(xiao)息(xi)。

A5、根據A4所述的方法,通(tong)過注冊廣播監聽器監測(ce)預(yu)設應用的鬧鐘事件。

A6、根據A2或A4所(suo)述(shu)的(de)方(fang)法,所(suo)述(shu)輸(shu)出響應所(suo)述(shu)消息(xi)事件后產(chan)生的(de)通知消息(xi),還包括指示燈顯示、鈴聲(sheng)播(bo)放(fang)、震動反饋的(de)一種或多種。

A7、根據A1所(suo)述的方法,所(suo)述服(fu)務進(jin)程(cheng)在(zai)系(xi)統安全模(mo)式下(xia)(xia)輸出響應(ying)所(suo)述消(xiao)息(xi)事件后產(chan)生的通知消(xiao)息(xi)與(yu)在(zai)系(xi)統普通模(mo)式下(xia)(xia)輸出響應(ying)所(suo)述消(xiao)息(xi)事件后產(chan)生的通知消(xiao)息(xi)一致。

A8、根據(ju)A1所(suo)述的(de)(de)方(fang)法,當在系統(tong)安(an)全模(mo)(mo)式下輸出響應(ying)所(suo)述消(xiao)息(xi)事(shi)件后產生(sheng)的(de)(de)通(tong)知(zhi)消(xiao)息(xi)時,所(suo)述通(tong)知(zhi)消(xiao)息(xi)對應(ying)的(de)(de)預設應(ying)用所(suo)配(pei)置的(de)(de)圖(tu)標(biao)與在系統(tong)普通(tong)模(mo)(mo)式下的(de)(de)預設應(ying)用的(de)(de)初始(shi)圖(tu)標(biao)不同(tong)。

A9、根據A2所述的方法,還(huan)包(bao)括(kuo)步驟:

響(xiang)應作用(yong)于系統安全(quan)模(mo)式下的通(tong)知欄消(xiao)息(xi)的控制指令,將系統從安全(quan)模(mo)式切換到普通(tong)模(mo)式,并(bing)打開所述(shu)消(xiao)息(xi)事件相對應的預設應用(yong)。

A10、根據(ju)A9所述(shu)的方法,所述(shu)將系統從安全模(mo)式(shi)(shi)切換到普通模(mo)式(shi)(shi),具(ju)體還(huan)包括:

將(jiang)系統從第二用(yong)戶登(deng)(deng)錄狀(zhuang)態切(qie)換至第一用(yong)戶登(deng)(deng)錄狀(zhuang)態。

A11、根據A10所述(shu)的(de)方法(fa)(fa),通過調用(yong)安(an)卓系統的(de)ActivityManager類中(zhong)的(de)switchUser()方法(fa)(fa)將系統從(cong)第(di)二用(yong)戶(hu)(hu)登錄狀(zhuang)態切(qie)換至第(di)一用(yong)戶(hu)(hu)登錄狀(zhuang)態。

B12、一(yi)種應用消息事件(jian)控(kong)制裝(zhuang)置,包括(kuo):

監測模(mo)(mo)塊:用(yong)于在監測到預(yu)設應用(yong)的(de)(de)消息(xi)事件時,判斷當前系統(tong)是否處于以第(di)二(er)用(yong)戶登錄的(de)(de)安全模(mo)(mo)式,所(suo)述預(yu)設應用(yong)為運行于以第(di)一用(yong)戶登錄的(de)(de)系統(tong)普通模(mo)(mo)式的(de)(de)應用(yong)程序(xu);

傳遞模(mo)塊:用于(yu)若當前系統(tong)處于(yu)安全(quan)模(mo)式(shi)下,基于(yu)系統(tong)進程(cheng)通(tong)信機制將所述(shu)消(xiao)息(xi)事(shi)件傳遞給系統(tong)安全(quan)模(mo)式(shi)對應的(de)服務進程(cheng),以(yi)通(tong)過所述(shu)服務進程(cheng)在(zai)系統(tong)安全(quan)模(mo)式(shi)下輸出響應所述(shu)消(xiao)息(xi)事(shi)件后(hou)產生的(de)通(tong)知消(xiao)息(xi)。

B13、根(gen)據B12所述(shu)(shu)(shu)的(de)(de)裝(zhuang)置(zhi),所述(shu)(shu)(shu)服務進程為(wei)安卓系(xi)統的(de)(de)通(tong)(tong)知(zhi)(zhi)管(guan)理服務進程,所述(shu)(shu)(shu)消(xiao)息事件(jian)為(wei)通(tong)(tong)知(zhi)(zhi)事件(jian),相應(ying)的(de)(de),所述(shu)(shu)(shu)通(tong)(tong)知(zhi)(zhi)消(xiao)息為(wei)系(xi)統通(tong)(tong)知(zhi)(zhi)欄消(xiao)息,所述(shu)(shu)(shu)通(tong)(tong)知(zhi)(zhi)管(guan)理服務進程受所述(shu)(shu)(shu)通(tong)(tong)知(zhi)(zhi)事件(jian)驅動而在系(xi)統通(tong)(tong)知(zhi)(zhi)欄輸(shu)出(chu)相應(ying)的(de)(de)通(tong)(tong)知(zhi)(zhi)欄消(xiao)息。

B14、根據B13所述的(de)裝(zhuang)置,通(tong)過(guo)安卓系統(tong)通(tong)知(zhi)管理服務進(jin)程固有的(de)監(jian)(jian)聽器監(jian)(jian)測(ce)預設應用的(de)通(tong)知(zhi)事件。

B15、根(gen)據B12所(suo)(suo)(suo)述的裝置(zhi),所(suo)(suo)(suo)述服務(wu)進程為(wei)安卓系統的鬧(nao)鐘(zhong)(zhong)(zhong)管理(li)服務(wu)進程,所(suo)(suo)(suo)述消(xiao)息事件(jian)(jian)為(wei)鬧(nao)鐘(zhong)(zhong)(zhong)事件(jian)(jian),相應的,所(suo)(suo)(suo)述通知(zhi)消(xiao)息為(wei)與鬧(nao)鐘(zhong)(zhong)(zhong)相關的通知(zhi)消(xiao)息,所(suo)(suo)(suo)述鬧(nao)鐘(zhong)(zhong)(zhong)管理(li)服務(wu)進程受所(suo)(suo)(suo)述鬧(nao)鐘(zhong)(zhong)(zhong)事件(jian)(jian)驅動輸(shu)出相應的鬧(nao)鐘(zhong)(zhong)(zhong)消(xiao)息。

B16、根據(ju)B15所述的(de)裝(zhuang)置,通過注(zhu)冊廣播監(jian)聽器監(jian)測預設應用的(de)鬧鐘(zhong)事件。

B17、根據B13或B15所述(shu)的(de)裝置,所述(shu)輸出響(xiang)應所述(shu)消息事(shi)件后(hou)產生(sheng)的(de)通知(zhi)消息,還(huan)包括指示(shi)燈顯示(shi)、鈴聲播(bo)放、震動反饋的(de)一種或多種。

B18、根據B12所述的(de)(de)裝(zhuang)置,所述服務進(jin)程在系統安全模(mo)式下輸(shu)(shu)出響應(ying)所述消(xiao)息事(shi)件(jian)后產生(sheng)的(de)(de)通(tong)知(zhi)消(xiao)息與在系統普通(tong)模(mo)式下輸(shu)(shu)出響應(ying)所述消(xiao)息事(shi)件(jian)后產生(sheng)的(de)(de)通(tong)知(zhi)消(xiao)息一(yi)致(zhi)。

B19、根(gen)據B12所(suo)述的(de)(de)裝置,當在(zai)系統(tong)安(an)全模式下輸(shu)出響應(ying)所(suo)述消息(xi)(xi)事(shi)件后產生的(de)(de)通(tong)知消息(xi)(xi)時,所(suo)述通(tong)知消息(xi)(xi)對應(ying)的(de)(de)預設應(ying)用所(suo)配(pei)置的(de)(de)圖標與在(zai)系統(tong)普(pu)通(tong)模式下的(de)(de)預設應(ying)用的(de)(de)初(chu)始圖標不同。

B20、根據(ju)B12所述的裝置,還包括:

切換(huan)(huan)模(mo)(mo)塊(kuai):用(yong)(yong)(yong)于響(xiang)應作(zuo)用(yong)(yong)(yong)于系統安全模(mo)(mo)式(shi)下的通(tong)知欄消(xiao)息的控制指令(ling),將系統從安全模(mo)(mo)式(shi)切換(huan)(huan)到普通(tong)模(mo)(mo)式(shi),并打(da)開所(suo)述(shu)消(xiao)息事件相對(dui)應的預設應用(yong)(yong)(yong)。

B21、根據(ju)B20所(suo)(suo)述的裝置(zhi),所(suo)(suo)述切換模(mo)塊還(huan)包(bao)括(kuo):

用(yong)(yong)戶切換單元:用(yong)(yong)于將系統從第二(er)用(yong)(yong)戶登錄狀態切換至第一用(yong)(yong)戶登錄狀態。

B22、根(gen)據B21所述的(de)裝置(zhi),所述切(qie)換單(dan)元通(tong)過調用(yong)安卓系(xi)統的(de)ActivityManager類(lei)中的(de)switchUser()方法將系(xi)統從(cong)第(di)二用(yong)戶登錄狀態切(qie)換至第(di)一用(yong)戶登錄狀態。

C23、一種移動終端,其特征(zheng)在于,包括:

觸敏顯示器;

存儲器;

一個或多個處理器;

所述一個或多個處理器被配置為用于執行如A1~A11所述任意一項所述方(fang)法的(de)步(bu)驟。

綜上所述,本發明通過(guo)監測預設(she)應(ying)用(yong)的(de)(de)(de)(de)(de)消息(xi)事(shi)件(jian),將系(xi)統(tong)普(pu)通模(mo)式(shi)下(xia)的(de)(de)(de)(de)(de)預設(she)應(ying)用(yong)的(de)(de)(de)(de)(de)消息(xi)事(shi)件(jian)同(tong)步到系(xi)統(tong)安全(quan)模(mo)式(shi)下(xia),讓(rang)用(yong)戶在系(xi)統(tong)安全(quan)模(mo)式(shi)下(xia)仍然能(neng)第一時(shi)間接收到普(pu)通模(mo)式(shi)下(xia)的(de)(de)(de)(de)(de)預設(she)應(ying)用(yong)發出的(de)(de)(de)(de)(de)消息(xi)事(shi)件(jian)對應(ying)的(de)(de)(de)(de)(de)通知(zhi)(zhi)消息(xi);同(tong)時(shi),所述預設(she)應(ying)用(yong)為用(yong)戶常(chang)用(yong)的(de)(de)(de)(de)(de)具(ju)有時(shi)間類提醒的(de)(de)(de)(de)(de)應(ying)用(yong)和通訊(xun)類應(ying)用(yong),對于該類應(ying)用(yong)的(de)(de)(de)(de)(de)消息(xi)的(de)(de)(de)(de)(de)及時(shi)通知(zhi)(zhi),可以增強用(yong)戶體驗(yan),提高(gao)(gao)用(yong)戶使用(yong)安全(quan)模(mo)式(shi)的(de)(de)(de)(de)(de)興趣(qu),提高(gao)(gao)安全(quan)模(mo)式(shi)的(de)(de)(de)(de)(de)使用(yong)率,進而保障用(yong)戶終端的(de)(de)(de)(de)(de)系(xi)統(tong)安全(quan)。

雖然上(shang)面已經示(shi)出了本(ben)發明的(de)一些(xie)示(shi)例性實施例,但是本(ben)領域的(de)技(ji)術(shu)人員將(jiang)理解,在不脫離本(ben)發明的(de)原理或精(jing)神的(de)情況下(xia),可以對這些(xie)示(shi)例性實施例做出改(gai)變,本(ben)發明的(de)范圍由(you)權(quan)利要求及其等同(tong)物限定。

當前第1頁1 2 3 
網友詢問(wen)留言 已有0條留言
  • 還沒有人留言評論。精彩留言會獲得點贊!
1