Skip to content

Commit 8b79748

Browse files
danielml3bgcngm
authored andcommitted
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
1 parent 9617438 commit 8b79748

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

telephony/Android.bp

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
//
2+
// Copyright (C) 2024 The LineageOS Project
3+
//
4+
// SPDX-License-Identifier: Apache-2.0
5+
//
6+
7+
java_library {
8+
name: "xiaomi-telephony-stub",
9+
provides_uses_lib: "xiaomi-telephony-stub",
10+
installable: true,
11+
sdk_version: "system_current",
12+
srcs: [
13+
"src/**/*.java",
14+
],
15+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/*
2+
* SPDX-FileCopyrightText: 2024 The LineageOS Project
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
package android.telephony;
7+
8+
public class TelephonyBaseUtilsStub {
9+
public static boolean isMiuiRom() {
10+
return false;
11+
}
12+
}

0 commit comments

Comments
 (0)