Provide a Java library with required Xiaomi telephony methods
To make this jar available to all system APKs, load it as bootjar: ``` PRODUCT_PACKAGES += \ xiaomi-telephony-stub PRODUCT_BOOT_JARS += \ xiaomi-telephony-stub ``` Change-Id: I69006732e6f915dc2a5cd1a3262b7ccf37372986
This commit is contained in:
parent
9617438fcc
commit
8b79748dbc
2 changed files with 27 additions and 0 deletions
15
telephony/Android.bp
Normal file
15
telephony/Android.bp
Normal file
|
@ -0,0 +1,15 @@
|
|||
//
|
||||
// Copyright (C) 2024 The LineageOS Project
|
||||
//
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
|
||||
java_library {
|
||||
name: "xiaomi-telephony-stub",
|
||||
provides_uses_lib: "xiaomi-telephony-stub",
|
||||
installable: true,
|
||||
sdk_version: "system_current",
|
||||
srcs: [
|
||||
"src/**/*.java",
|
||||
],
|
||||
}
|
12
telephony/src/android/telephony/TelephonyBaseUtilsStub.java
Normal file
12
telephony/src/android/telephony/TelephonyBaseUtilsStub.java
Normal file
|
@ -0,0 +1,12 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2024 The LineageOS Project
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
package android.telephony;
|
||||
|
||||
public class TelephonyBaseUtilsStub {
|
||||
public static boolean isMiuiRom() {
|
||||
return false;
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue