feat: 更新GPS功能,添加自定义位置支持,调整权限和配置,移除旧服务
This commit is contained in:
66
gps/Android.bp
Normal file
66
gps/Android.bp
Normal file
@@ -0,0 +1,66 @@
|
||||
// Copyright (C) 2023 The Android Open Source Project
|
||||
//
|
||||
// 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.
|
||||
|
||||
cc_library_shared {
|
||||
name: "libredroid_gps_jni",
|
||||
|
||||
srcs: [
|
||||
"com_android_server_location_GnssLocationProvider.cpp",
|
||||
],
|
||||
|
||||
cflags: [
|
||||
"-Wall",
|
||||
"-Werror",
|
||||
"-Wextra",
|
||||
"-std=c++17",
|
||||
],
|
||||
|
||||
shared_libs: [
|
||||
"libandroid_runtime",
|
||||
"libbinder",
|
||||
"libcutils",
|
||||
"liblog",
|
||||
"libnativehelper",
|
||||
"libutils",
|
||||
"libhardware",
|
||||
"libhardware_legacy",
|
||||
"libhidlbase",
|
||||
"libhidltransport",
|
||||
"android.hardware.gnss@1.0",
|
||||
"android.hardware.gnss@1.1",
|
||||
"android.hardware.gnss@2.0",
|
||||
"android.hardware.gnss@2.1",
|
||||
"android.hardware.gnss-V1-ndk",
|
||||
],
|
||||
|
||||
static_libs: [
|
||||
"libc++fs",
|
||||
],
|
||||
|
||||
header_libs: [
|
||||
"jni_headers",
|
||||
"libandroid_runtime_headers",
|
||||
],
|
||||
|
||||
include_dirs: [
|
||||
"frameworks/base/services/core/jni",
|
||||
"frameworks/base/core/jni",
|
||||
],
|
||||
|
||||
vendor: true,
|
||||
|
||||
compile_multilib: "both",
|
||||
|
||||
relative_install_path: "hw",
|
||||
}
|
||||
Reference in New Issue
Block a user