xiaomi: Drop megvii stubs

They do not work properly on all devices (such as breaking face detection).
Since we already ship face unlock and aren't bound by the Lineage Charter, drop them.

Change-Id: If46ca4ed656ca87a5ff9f9d917d64481aacf7507
This commit is contained in:
basamaryan 2024-10-01 19:41:33 -04:00
parent 40728c3a73
commit 76ed4f4cee
No known key found for this signature in database
GPG Key ID: 707BA6C82329E8F9
2 changed files with 0 additions and 66 deletions

View File

@ -1,23 +0,0 @@
//
// Copyright (C) 2022 The LineageOS Project
//
// SPDX-License-Identifier: Apache-2.0
//
cc_defaults {
name: "libMegviiFacepp_defaults",
vendor: true,
srcs: [
"megvii.c",
],
}
cc_library_shared {
name: "libMegviiFacepp-0.5.2",
defaults: ["libMegviiFacepp_defaults"],
}
cc_library_shared {
name: "libmegface",
vendor: true,
}

View File

@ -1,43 +0,0 @@
/*
* Copyright (C) 2022 The LineageOS Project
*
* SPDX-License-Identifier: Apache-2.0
*/
static int stub_fail() {
return -1;
}
static char *stub_fail_str() {
return "stub";
}
void *mg_facepp[] = {
&stub_fail,
&stub_fail,
&stub_fail,
&stub_fail_str,
&stub_fail_str,
&stub_fail,
&stub_fail,
&stub_fail,
&stub_fail,
&stub_fail,
&stub_fail,
&stub_fail,
&stub_fail,
&stub_fail,
&stub_fail,
&stub_fail,
&stub_fail,
&stub_fail,
&stub_fail,
&stub_fail,
&stub_fail,
&stub_fail,
&stub_fail,
&stub_fail,
&stub_fail,
&stub_fail,
&stub_fail,
};