mirror of
https://codeberg.org/OpenTracksApp/OpenTracks.git
synced 2026-10-03 09:53:06 +02:00
2fa325dbf3
external applications access based on the sharing settings. Protect all RPCs calls using the caller's process id. When the service is started, we cannot tell whether the caller is MyTracks or another app. Thus when the service is started, we cannot access MyTracks database or start/stop a recording. Previsouly, only the MyTracks app widget is using the service's start method to start and stop a recording. Thus create a private service, ControlRecordingService, that only the MyTracks app widget can access and delegate starting/stopping a recording to TrackRecordingService.
36 lines
1.8 KiB
XML
36 lines
1.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright 2010 Google Inc.
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
<resources>
|
|
<!-- Permissions -->
|
|
<!-- This must be kept in sync with AndroidManifest.xml (we can't reference it there) -->
|
|
<string name="broadcast_notifications_permission">com.google.android.apps.mytracks.TRACK_NOTIFICATIONS</string>
|
|
<string name="read_track_data_permission">com.google.android.apps.mytracks.READ_TRACK_DATA</string>
|
|
<string name="write_track_data_permission">com.google.android.apps.mytracks.WRITE_TRACK_DATA</string>
|
|
|
|
<!-- Broadcast notification Intent constants -->
|
|
<string name="track_started_broadcast_action">com.google.android.apps.mytracks.TRACK_STARTED</string>
|
|
<string name="track_paused_broadcast_action">com.google.android.apps.mytracks.TRACK_PAUSED</string>
|
|
<string name="track_resumed_broadcast_action">com.google.android.apps.mytracks.TRACK_RESUMED</string>
|
|
<string name="track_stopped_broadcast_action">com.google.android.apps.mytracks.TRACK_STOPPED</string>
|
|
<string name="track_id_broadcast_extra">com.google.android.apps.mytracks.TRACK_ID</string>
|
|
|
|
<!-- My Tracks service constants -->
|
|
<string name="mytracks_service_class">com.google.android.apps.mytracks.services.TrackRecordingService</string>
|
|
<string name="mytracks_service_package">com.google.android.maps.mytracks</string>
|
|
|
|
</resources>
|