Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ cc_defaults {
"librecovery_fastboot",
"libminui",
"librecovery_utils",
"librecovery_diagnostics",
"libotautil",
"libsnapshot_nobinder",
"libsnapshot_cow",
Expand Down
32 changes: 32 additions & 0 deletions diagnostics/Android.bp
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/* TODO: Should there be a copyright here? */

/* TODO: Should we retain the below? */
package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "bootable_recovery_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["bootable_recovery_license"],
}

// Make a new static library for diagnostics tooling which can access
// other parts of recovery that may conatian device-specific codes
// (e.g., librecovery_ui)
cc_library_static {
name: "librecovery_diagnostics",

recovery_available: true,

srcs: [
"storage_scan.cpp",
],

shared_libs: [
"librecovery_ui",
],

export_include_dirs: [
"include",
],
}
9 changes: 9 additions & 0 deletions diagnostics/include/diagnostics/storage_scan.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/* TODO: copyright? */

#pragma once

#include "recovery_ui/ui.h"

// Read block devices available from recovery to ensure that the
// underlying storage works nominally
void scan_storage(RecoveryUI* ui);
Loading