summaryrefslogtreecommitdiffstats
path: root/minadbd/adb.h
diff options
context:
space:
mode:
authorDoug Zongker <dougz@google.com>2014-06-27 00:35:51 +0200
committerDoug Zongker <dougz@google.com>2014-07-02 21:16:36 +0200
commit075ad800c539503d0515e5e0b4af160eccedead9 (patch)
tree0fa4e4f99556393317ae486eb66aeb3cbad220df /minadbd/adb.h
parentam 3e0fc39e: am 974fe112: Merge "Fix recovery mode." (diff)
downloadandroid_bootable_recovery-075ad800c539503d0515e5e0b4af160eccedead9.tar
android_bootable_recovery-075ad800c539503d0515e5e0b4af160eccedead9.tar.gz
android_bootable_recovery-075ad800c539503d0515e5e0b4af160eccedead9.tar.bz2
android_bootable_recovery-075ad800c539503d0515e5e0b4af160eccedead9.tar.lz
android_bootable_recovery-075ad800c539503d0515e5e0b4af160eccedead9.tar.xz
android_bootable_recovery-075ad800c539503d0515e5e0b4af160eccedead9.tar.zst
android_bootable_recovery-075ad800c539503d0515e5e0b4af160eccedead9.zip
Diffstat (limited to 'minadbd/adb.h')
-rw-r--r--minadbd/adb.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/minadbd/adb.h b/minadbd/adb.h
index d389165ae..770f34d19 100644
--- a/minadbd/adb.h
+++ b/minadbd/adb.h
@@ -400,6 +400,7 @@ int connection_state(atransport *t);
#define CS_RECOVERY 4
#define CS_NOPERM 5 /* Insufficient permissions to communicate with the device */
#define CS_SIDELOAD 6
+#define CS_UNAUTHORIZED 7
extern int HOST;
extern int SHELL_EXIT_NOTIFY_FD;
@@ -420,6 +421,11 @@ extern int SHELL_EXIT_NOTIFY_FD;
int sendfailmsg(int fd, const char *reason);
int handle_host_request(char *service, transport_type ttype, char* serial, int reply_fd, asocket *s);
-#define ADB_SIDELOAD_FILENAME "/tmp/update.zip"
+// define the filenames created by the sideload-host FUSE filesystem
+#define ADB_SIDELOAD_HOST_MOUNTPOINT "/sideload"
+#define ADB_SIDELOAD_HOST_FILENAME "package.zip"
+#define ADB_SIDELOAD_HOST_PATHNAME (ADB_SIDELOAD_HOST_MOUNTPOINT "/" ADB_SIDELOAD_HOST_FILENAME)
+#define ADB_SIDELOAD_HOST_EXIT_FLAG "exit"
+#define ADB_SIDELOAD_HOST_EXIT_PATHNAME (ADB_SIDELOAD_HOST_MOUNTPOINT "/" ADB_SIDELOAD_HOST_EXIT_FLAG)
#endif