potter: add rild socket shim

Change-Id: I2583d4c913130d8a20ce1e7381dd8eba9478a950
This commit is contained in:
luca020400
2017-08-29 12:08:38 +02:00
committed by Vachounet
parent ae8dc398b3
commit 416f9cd5e2
2 changed files with 28 additions and 0 deletions

View File

@@ -48,3 +48,12 @@ LOCAL_MODULE := libshims_get_process_name
LOCAL_MODULE_TAGS := optional
include $(BUILD_SHARED_LIBRARY)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := rild_socket.c
LOCAL_MODULE := rild_socket
LOCAL_MODULE_TAGS := optional
include $(BUILD_SHARED_LIBRARY)

19
libshims/rild_socket.c Normal file
View File

@@ -0,0 +1,19 @@
/*
* Copyright (C) 2017 The LineageOS 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.
*/
#define MAX_SOCKET_NAME_LENGTH 6
char rild[MAX_SOCKET_NAME_LENGTH] = "rild";