blob: be8b7e8c6ca6bcd39a68048c7f6c14966c34b8e5 [file] [log] [blame]
Doug Zongkerddd6a282009-06-09 12:22:33 -07001/*
2 * Copyright (C) 2009 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#include <linux/input.h>
18
19#include "recovery_ui.h"
20#include "common.h"
Koushik K. Duttaa3c2f732010-02-19 14:17:22 -080021#include "extendedcommands.h"
Doug Zongkerddd6a282009-06-09 12:22:33 -070022
Koushik K. Dutta261dde92010-02-25 16:51:45 -080023char* MENU_HEADERS[] = { NULL };
Doug Zongkerddd6a282009-06-09 12:22:33 -070024
25char* MENU_ITEMS[] = { "reboot system now",
Koushik Dutta0df56f42011-11-16 16:00:35 -080026 "install zip from sdcard",
Doug Zongkerddd6a282009-06-09 12:22:33 -070027 "wipe data/factory reset",
28 "wipe cache partition",
Koushik Dutta6c7745d2010-08-07 12:17:13 -070029 "backup and restore",
30 "mounts and storage",
Koushik K. Dutta5899ac92010-03-19 13:34:36 -070031 "advanced",
Doug Zongkerddd6a282009-06-09 12:22:33 -070032 NULL };
33
Doug Zongker6809c512011-03-01 14:04:34 -080034void device_ui_init(UIParameters* ui_parameters) {
35}
36
Doug Zongkerefa1bab2010-02-01 15:59:12 -080037int device_recovery_start() {
38 return 0;
39}
40
Doug Zongker23412e62009-07-23 10:16:07 -070041int device_reboot_now(volatile char* key_pressed, int key_code) {
Doug Zongkercbb91292009-06-11 14:54:41 -070042 return 0;
Doug Zongkerddd6a282009-06-09 12:22:33 -070043}
44
Doug Zongkercbb91292009-06-11 14:54:41 -070045int device_perform_action(int which) {
46 return which;
Doug Zongkerddd6a282009-06-09 12:22:33 -070047}
Doug Zongkerb128f542009-06-18 15:07:14 -070048
49int device_wipe_data() {
50 return 0;
51}