- 博客(40)
- 资源 (4)
- 收藏
- 关注
原创 win10下 darknet 编译安装(opencv with cuda)
下载源码 git clone https://github.com/AlexeyAB/darknet.git 到 d:\proj\darkent,相比 https://github.com/pjreddie/darknet.git 版本,更方便windows下编译安装安装 Visual Studio 2015/2017/2019安装 CMake >= 3.8 for modern CU...
2020-01-15 20:25:54 1057
原创 Win10 VS2019情况下 安装Caffe
在VS2019下选择安装MSVC v140 生成工具(VS2015的生成工具还是要安装一下的,比较省事。)安装Windows 8.1 SDK(需要这个SDK,否则要改一堆东西吧。)安装cmake,最新版即可。打开VS2015 x64 native cmd设置环境变量set path=c:\Program Files (x86)\Microsoft Visual Studio\2019\...
2020-01-13 21:35:01 5008 4
原创 Ubuntu 18.04 安装Caffe (CPU only)
纯粹安装非常简单,根据官方主页,sudo apt install caffe-cpucaffe 直接可以运行了。$ python3.6>>> import caffe也是正常的。然而,运行CIFAR-10碰上了问题,还是要搞个源码安装方便调试才行啊。然后,根据官方主页sudo apt build-dep caffe-cpu # d...
2019-11-18 17:00:34 900 1
原创 Win10下安装Tensorflow+Keras (CPU版本)
Win10下安装Tensorflow+Keras(CPU版本)OS: Windows 10.0.18362.418 64-bit安装 anaconda python 3.7 64-bit添加国内镜像源运行 Anaconda Navigator点击主界面左侧的Home一栏,然后点击Channels按钮,再点击右上角的Add按钮,添加https://mirrors.tuna.tsinghu...
2019-11-05 17:58:43 1011
原创 Android添加USB add-on硬件访问服务
这里要在android N添加一个Usb add-on的状态查询、切换控制的服务。应该L/M版本中也可以使用。android O以及之后的话,框架有变化,应该都放到vendor下。1. AIDL1.1 创建 frameworks/base/core/java/android/os/IUsbAddon.aidlpackage android.os;/** {@hide} */inte...
2018-12-01 18:13:40 601
原创 android系统 在jack-server下 生成 jar 用于android app工程
android studio原来支持的jack-server 又过时了,但是android系统很多版本用的是jack-server编译,也不太可能去修改,所以只能想办法生成原始的jar来使用了。android M: 在makefile中disable jackLOCAL_JACK_ENABLED = disabled android N:7.0:export ANDR...
2018-12-01 12:34:35 759
原创 Android 执行命令并获取命令pid
执行命令如下: try { ProcessBuilder builder = new ProcessBuilder(exe); builder.directory(new File("/system/xbin/")); builder.redir...
2018-11-27 17:06:52 1934
原创 [android adb shell] 怎么解锁图案锁屏(pattern lock)的手机?
所谓的防水手机由于冲洗屏幕进水而触摸失灵了,幸好adb是打开的,还能用usb连上,然而问题来了,我加了图案锁屏,虽然adb shell能进,但死活操作不了啊。。。首先,要确定触摸事件的设备,我的手机是event2其次,分辨率肯定得搞清楚,可参考 https://blog.csdn.net/u011967006/article/details/53760678 获取分辨率。stackov...
2018-11-01 20:42:09 5636 4
原创 [android adb shell] 获取屏幕分辨率
1. adb shell wm wm size: 2. adb shell dumpsys window displays adb shell dumpsys window | grep init
2018-11-01 20:21:16 1549
原创 android 开发环境搭建(Ubuntu)
低版本:Ubuntu 14sudo apt-get install openjdk-7-jdksudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev x...
2018-10-31 20:35:45 495
原创 Linux tar'ed xz 压缩成3G的包以及解压
tar Jcvf - alps/ | split -b 3G - mt6735_20160321.txzcat /mnt/hgfs/proj/mt6735_20160322.txz.a* | tar xJvf -
2018-10-30 22:52:24 224
原创 SnapdragonCamera想要 照相机/摄像头 照片显示型号跟设备型号不一样的修改
packages\apps\SnapdragonCamera\src\com\android\camera\exif\ExifInterface.java public boolean addMakeAndModelTag() { ExifTag t = buildTag(TAG_MAKE, Build.MANUFACTURER); if (t == nul...
2018-10-28 11:35:09 633
原创 apn&spn的修改
不同android版本,文件位置不同,修改位置也不尽相同。整个列表: frameworks/base/core/res/res/xml/apns.xml当前使用: development/data/etc/apns-conf.xmlandroid8:vendor\qcom\proprietary\telephony-apps\etc\apns-conf.xmlvendor\qcom...
2018-10-28 11:23:47 734
原创 QFIL 端口自动切换/qcomsysd
有些版本user版本下,QFIL下载无法自动切换到下载端口,可做如下修改:device\qcom\common\common.mk persist.vendor.qcomsysd.enabled=1ifeq ($(TARGET_HAS_LOW_RAM),true) PRODUCT_PROPERTY_OVERRIDES += \ keyguard.no...
2018-10-28 11:17:10 1376 3
原创 [Android GMS 认证] VTS/CTS on GSI相关问题
1. CtsGraphicsTestCases android.graphics.cts.VulkanFeaturesTest#testVulkanHardwareFeaturesdevice/qcom/common/base.mk注释如下四行#PRODUCT_COPY_FILES += \# frameworks/native/data/etc/android.hardware...
2018-10-28 11:04:55 3716
原创 [Android GMS 认证] GTS相关问题
首先,设置 export APE_API_KEY='/home/sukha/your_ape_api_key.json' 问题1:GtsNmgiarcTestCases run gts -m GtsNmgiarcTestCases -t com.google.android.nmgiarc.gts.CarrierServicesTests#testAcsaPropertySetCorrec...
2018-10-27 19:44:20 5717
原创 [Android GMS 认证] keystore/keymaster/Attestation的问题
首先确定写入key,操作如下:检查 /persist/data/sfs 目录下是否有key文件存在 adb shell ls -la /persist/data/sfs做过key provision的机器重新写key,参照如下步骤: 1)烧userdebug版本,重新写key需要在userdebug版本上才能做 2)执行下面命令擦除rpmb分区 M...
2018-10-27 19:30:00 8128 2
原创 [Android GMS 认证] PERF脚本测试问题
1. check_f2fs.sh fix: FAIL: missing patch "f2fs: do not preallocate blocks which has wrong buffer"M msm-3.18/fs/f2fs/data.cM msm-3.18/fs/f2fs/f2fs.hM msm-3.18/fs/f2fs/file.c...
2018-10-27 09:57:52 962
原创 [Android GMS 认证] STS 问题列表之 android.security.cts.StagefrightTest#testStagefright_bug_63522067
-m CtsSecurityTestCases -t android.security.cts.StagefrightTest#testStagefright_bug_63522067需要打如下patch:diff --git a/decoder/ihevcd_decode.c b/decoder/ihevcd_decode.c index 83f9b42..d2ea7a5 ...
2018-10-27 09:47:24 1025
原创 [Android GMS 认证] STS 问题列表之 android.security.cts.StagefrightTest#testStagefright_bug_34896431
-m CtsSecurityTestCases -t android.security.cts.StagefrightTest#testStagefright_bug_34896431 如下patch即可。diff --git a/drivers/media/platform/msm/vidc/msm_vdec.c b/drivers/media/platform/msm/vidc/ms...
2018-10-27 09:46:06 1150
原创 [Android GMS 认证] CTS 问题列表之 CtsAutoFillServiceTestCases
run cts -m CtsAutoFillServiceTestCases -t android.autofillservice.cts.WebViewActivityTest#testAutofillAndSaverun cts -m CtsAutoFillServiceTestCases -t android.autofillservice.cts.WebViewActivityTes...
2018-10-27 09:44:18 1390
原创 [Android GMS 认证] CTS 问题列表之 CtsOsTestCases
android.os.storage.cts.StorageManagerTest#testMountAndUnmountObbNormal fail junit.framework.AssertionFailedError: OBB should be mountedandroid.os.storage.cts.StorageManagerTest#testMountAndUnmou...
2018-10-27 09:39:41 1121 1
原创 [Android GMS 认证] CTS 问题列表之 CtsSecurityTestCases
run cts -m CtsSecurityTestCases -t android.security.cts.StagefrightTest#testStagefright_cve_2015_6600 --skip-preconditions 这是高通闭源部分的问题,向高通要patch。LINUX/android/vendor/qcom/proprietary/prebuilt_HY11...
2018-10-27 09:37:26 1291
原创 [Android GMS 认证] CTS 问题列表之 CtsServicesHostTestCases
这个项目是针对Go版本,android.server.cts.ActivityManagerDisplayTests#testConsequentLaunchActivityFromSecondaryDisplay fail java.lang.IndexOutOfBoundsException: Index: 0, Size: 0android.server.cts.Acti...
2018-10-26 09:50:25 2315 1
原创 [Android GMS 认证] CTS 问题列表之 CtsVideoTestCases,CtsMediaTestCases
run cts -m CtsVideoTestCases -t android.video.cts.VideoEncoderDecoderTest#testVp8Goog0Perf1280x0720android.video.cts.VideoEncoderDecoderTest#testVp8Goog0Perf1280x0720 fail junit.framework.Asse...
2018-10-26 09:48:17 2228
原创 [Android GMS 认证] CTS 问题列表之 CtsCameraTestCases
这个模块是CTS/VTS 问题比较多的模块。首先检查测试Camera的条件: 1. 保证前后摄像头都不要被遮挡。 2. 保证环境亮度,lv值至少在60以上。 3. 保证preview的帧率至少在24fps以上,capture的帧率在15fps以上 4. feature table中,preview size跟picture 的size满足如下条件: ...
2018-10-26 09:45:58 4962 2
原创 [Android GMS 认证] CTS 问题列表之CtsCarrierApiTestCases
CtsCarrierApiTestCasesandroid.carrierapi.cts.CarrierApiTest#testGetIccAuthenticationandroid.carrierapi.cts.CarrierApiTest#testHasCarrierPrivilegesandroid.carrierapi.cts.CarrierApiTest#testSendDiale...
2018-10-26 09:38:26 1702
原创 [Android GMS 认证] CTS 问题列表之 CtsBluetoothTestCases fail
android.bluetooth.cts.BluetoothLeScanTest#testBasicBleScan fail junit.framework.AssertionFailedError: Scan results shouldn't be emptyandroid.bluetooth.cts.BluetoothLeScanTest#testOpportunisticScan...
2018-10-26 09:37:41 790
原创 [Android GMS 认证] CTS 问题列表之 android.app.cts.SystemFeaturesTest#testCameraFeatures
run cts -m CtsAppTestCases -t android.app.cts.SystemFeaturesTest#testCameraFeatures --skip-preconditions --precondition-arg skip-media-download android.app.cts.SystemFeaturesTest#testCameraFeatures...
2018-10-26 09:36:23 1177
原创 [Android GMS 认证] CTS 问题列表之 android.app.cts.SystemFeaturesTest#testSensorFeatures
android.app.cts.SystemFeaturesTest#testSensorFeatures failjunit.framework.AssertionFailedError: PackageManager#hasSystemFeature(android.hardware.sensor.compass) returns true but SensorManager#getSens...
2018-10-26 09:34:39 1140
原创 [Android GMS 认证] CTS 测试准备
https://source.android.com/compatibility/cts/setup1.恢复出厂2.语言US3.安全中锁屏选择None4.连接WIFI,IPV65.开发者模式中USB debugging打开6.开发者模式中Verify apps over USB关掉7.关闭24小时格式8.打开stay awakeexport PATH=`pwd`/out/hos...
2018-10-26 09:32:37 317
原创 [Android GMS 认证] CTS Verifier 设备不支持OTG时去除USB相关的测试项
关闭 android.hardware.usb.host 这个feature编辑 frameworks/native/data/etc/android.hardware.usb.host.xml 即可。
2018-10-26 09:31:25 418
原创 [Android GMS 认证] CTS Verifier 测试结果的迁移
有时候测试完大部分项目而由于测试机的硬件缺陷,无法通过某些项目,可以把测试结果进行迁移,备份恢复到另一台机器然后出报告。 adb backup -f com.android.cts.verifier.backup -apk com.android.cts.verifier # backup on one deviceadb restore com.android.cts.veri...
2018-10-26 09:29:32 1347
原创 预置系统apk
以8909go为例:修改 device\qcom\msm8909go\msm8909go.mk#3rd-party$(call inherit-product-if-exists, vendor/xxx/app_3rd.mk)vendor\xxx\Android.mkvendor\xxx\app_3rd.mk 添加 vendor\xxx\app_3rd.mk vendor\...
2018-10-15 16:52:09 308 1
原创 把第三方jar库加入android framework services
首先,已有一个库,譬如acssmc-1.1.4.jar,把这个库拷贝到一个合适的目录,./vendor/lentek/libs/acssmc (这是mtk的项目目录)然后创建Android.mk如下:LOCAL_PATH := $(call my-dir)include $(CLEAR_VARS)LOCAL_MODULE = acssmcLOCAL_MODULE_CLASS = JA...
2018-10-15 16:18:44 977
原创 android SDK升级路径锁定问题
总是看到群里面有人问这个问题,以前也是翻了很多地方才找出来的方法:出自google android的某个帖子里的跟帖:android SDK 升级时,提示: are locking the following directory:运行 cmd.exe转到你的安装盘符,进入安装目录,cd android_sdk\运行tools\android.bat,就可以解决该问题
2012-12-08 22:02:57 369
转载 px,in,mm,pt,dp,dip,sp
<br />Historically, programmers always designed computer interfaces in terms of pixels. For example, you mightmake a field 300 pixels wide, allow 5 pixels of spacing between columns, and define icons 16-by-16 pixels in size. The problem is that if yo
2011-05-21 21:57:00 970
转载 Solving the absence of Android source...
Create a new Android project, then follow these steps. Right-click the project and choose Build Path -> Configure Build Path. Click the Libraries tab. Click Android 2.2 (or whatever version is shown) and then click the Remove button. C
2011-05-20 11:13:00 327
原创 Eclipse building workspace 不终止
Eclipse有时候会自动进行building workspace..., 一直不退出在启动时加入参数: -vmargs -Xmx512M
2011-05-19 10:08:00 466
facetune 1.1.3
2018-10-01
[Application.Security.for.the.Android.Platform(2011.12)].Jeff.Six.文字版
2013-04-16
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人