资源简介
可在Windows下编译的源代码,用VS2010编译
代码片段和文件信息
/*
* Copyright (C) 2007 The Android Open Source Project
*
* Licensed under the Apache License Version 2.0 (the “License“);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing software
* distributed under the License is distributed on an “AS IS“ BASIS
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#define TRACE_TAG TRACE_ADB
#include
#include
#include
#include
#include
#include
#include
#include
//#include
#include “sysdeps.h“
#include “adb.h“
#include “adb_auth.h“
#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
#if !ADB_HOST
#include
#include
#include
#include
#else
#include “usb_vendors.h“
#endif
#include
#if ADB_TRACE
ADB_MUTEX_DEFINE( D_lock );
#endif
int HOST = 0;
static int auth_enabled = 0;
#if !ADB_HOST
static const char *adb_device_banner = “device“;
#endif
void fatal(const char *fmt ...)
{
va_list ap;
va_start(ap fmt);
fprintf(stderr “error: “);
vfprintf(stderr fmt ap);
fprintf(stderr “\n“);
va_end(ap);
exit(-1);
}
void fatal_errno(const char *fmt ...)
{
va_list ap;
va_start(ap fmt);
fprintf(stderr “error: %s: “ strerror(errno));
vfprintf(stderr fmt ap);
fprintf(stderr “\n“);
va_end(ap);
exit(-1);
}
int adb_trace_mask;
/* read a comma/space/colum/semi-column separated list of tags
* from the ADB_TRACE environment variable and build the trace
* mask from it. note that ‘1‘ and ‘all‘ are special cases to
* enable all tracing
*/
void adb_trace_init(void)
{
const char* p = getenv(“ADB_TRACE“);
const char* q;
static const struct {
const char* tag;
int flag;
} tags[] = {
{ “1“ 0 }
{ “all“ 0 }
{ “adb“ TRACE_ADB }
{ “sockets“ TRACE_SOCKETS }
{ “packets“ TRACE_PACKETS }
{ “rwx“ TRACE_RWX }
{ “usb“ TRACE_USB }
{ “sync“ TRACE_SYNC }
{ “sysdeps“ TRACE_SYSDEPS }
{ “transport“ TRACE_TRANSPORT }
{ “jdwp“ TRACE_JDWP }
{ “services“ TRACE_SERVICES }
{ “auth“ TRACE_AUTH }
{ NULL 0 }
};
if (p == NULL)
return;
/* use a comma/column/semi-colum/space separated list */
while (*p) {
int len tagn;
q = strpbrk(p “ :;“);
if (q == NULL) {
q = p + strlen(p);
}
len = q - p;
for (tagn = 0; tags[tagn].tag != NULL; tagn++)
{
int taglen = strlen(tags[tagn].tag);
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2014-01-26 15:13 adb-source\
目录 0 2014-01-26 15:13 adb-source\adb\
文件 44302 2014-01-26 15:11 adb-source\adb\adb.cpp
文件 14674 2013-03-26 16:07 adb-source\adb\adb.h
文件 31744 2014-01-26 14:42 adb-source\adb\adb.suo
文件 8160 2013-09-12 19:46 adb-source\adb\adb.vcxproj
文件 3767 2013-09-01 21:17 adb-source\adb\adb.vcxproj.filters
文件 453 2013-09-13 17:51 adb-source\adb\adb.vcxproj.user
文件 1940 2013-03-26 16:07 adb-source\adb\adb_auth.h
文件 5387 2013-03-26 16:07 adb-source\adb\adb_auth_client.c
文件 9525 2014-01-26 14:54 adb-source\adb\adb_auth_host.cpp
文件 8022 2014-01-26 14:54 adb-source\adb\adb_client.cpp
文件 1601 2013-03-26 16:07 adb-source\adb\adb_client.h
文件 3890 2013-03-26 16:07 adb-source\adb\Android.mk
文件 4608 2013-03-26 16:07 adb-source\adb\backup_service.c
文件 7604 2013-09-01 21:27 adb-source\adb\centraldir.cpp
文件 47835 2014-01-26 14:56 adb-source\adb\commandline.cpp
文件 1009 2013-03-26 16:07 adb-source\adb\console.cpp
文件 17778 2013-03-26 16:07 adb-source\adb\fdevent.c
文件 2184 2013-03-26 16:07 adb-source\adb\fdevent.h
文件 26440 2014-01-26 15:12 adb-source\adb\file_sync_client.cpp
文件 9248 2013-03-26 16:07 adb-source\adb\file_sync_service.c
文件 2425 2013-03-26 16:07 adb-source\adb\file_sync_service.h
文件 5217 2013-03-26 16:07 adb-source\adb\fr
文件 1036 2013-03-26 16:07 adb-source\adb\get_my_path_darwin.c
文件 1015 2013-03-26 16:07 adb-source\adb\get_my_path_freebsd.c
文件 962 2013-03-26 16:07 adb-source\adb\get_my_path_linux.c
文件 985 2014-01-26 15:00 adb-source\adb\get_my_path_windows.cpp
文件 20165 2013-03-26 16:07 adb-source\adb\jdwp_service.c
文件 1024 2013-07-31 02:57 adb-source\adb\list.cpp
文件 2445 2013-03-26 16:07 adb-source\adb\log_service.c
............此处省略170个文件信息
相关资源
- Chrome AdBlock_v3.22.1
- ADB 安装驱动包支持win10
- win10adb驱动
- high-speed digital design/a hnadbook of black
- 超好用的公路创建插件RoadBuilder.zip
- adb 1.0.41.zip
- Adb工具及测试模式开启
- VirtualBreadboard4.3.8.msi
- 华为手机ADB及HDB驱动
- win10(ADB包)
- adb&libwinhthread;-1.dll.rar
- Broadband Dielectric Spectroscopy
- 改码adb批处理20181021.rar
- VirtualBreadboard/vjredist
- badboy安装包
- Modern Antenna Hnadbook - Constantine A. Balan
- mariadb10.4.7的rpm包及安装所需要的依赖
- 新出炉的ADB 支持所有的中文命令
- adb1.0.31windows版本
- e6399b11d6426c0b85561cf7ef4adbb9.txt
- adb工具.zip
- ADB 1.0.40.rar
- ADBKeyBoard完美解决ADB输入中文
- Adblock Plus123797
- adb工具完整版带fastboot驱动
- adb-disable-verity
- ADB ToolADB工具,用于解锁
- 高通磁盘模式ADB一键进入9008
- 安卓ADB和aapt工具
- UBOOTloadb命令加载应用程序到SDRAM中运
评论
共有 条评论