Enable GPS privacy lock when GPS is disabled.
Signed-off-by: Mike Lockwood <lockwood@android.com>
This commit is contained in:
parent
ae1989429b
commit
237c22f03d
1 changed files with 8 additions and 3 deletions
|
@ -1363,7 +1363,8 @@ static void* loc_eng_process_deferred_action (void* arg)
|
||||||
// make sure we do not run in background scheduling group
|
// make sure we do not run in background scheduling group
|
||||||
set_sched_policy(gettid(), SP_FOREGROUND);
|
set_sched_policy(gettid(), SP_FOREGROUND);
|
||||||
|
|
||||||
// disable GPS lock
|
// disable the GPS lock
|
||||||
|
LOGD("Setting GPS privacy lock to RPC_LOC_LOCK_NONE\n");
|
||||||
loc_eng_set_gps_lock(RPC_LOC_LOCK_NONE);
|
loc_eng_set_gps_lock(RPC_LOC_LOCK_NONE);
|
||||||
|
|
||||||
while (loc_eng_data.deferred_action_thread_need_exit == FALSE)
|
while (loc_eng_data.deferred_action_thread_need_exit == FALSE)
|
||||||
|
@ -1430,6 +1431,10 @@ static void* loc_eng_process_deferred_action (void* arg)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// reenable the GPS lock
|
||||||
|
LOGD("Setting GPS privacy lock to RPC_LOC_LOCK_ALL\n");
|
||||||
|
loc_eng_set_gps_lock(RPC_LOC_LOCK_ALL);
|
||||||
|
|
||||||
LOGD("loc_eng_process_deferred_action thread exiting\n");
|
LOGD("loc_eng_process_deferred_action thread exiting\n");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue