![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Android
wxx2150
此君很懒
展开
-
【adb】logcat输出设置文件大小,并设置文件格式
logcat原创 2023-03-07 19:55:08 · 1252 阅读 · 0 评论 -
android播放音频无声
喇叭无声原创 2023-02-16 14:08:11 · 353 阅读 · 0 评论 -
android app log抓取汇总
android 应用抓取log汇总原创 2022-10-19 17:42:17 · 1443 阅读 · 2 评论 -
TetheringService 启动流程
android TetherService 启动流程原创 2022-09-01 11:19:21 · 1463 阅读 · 0 评论 -
uiautomatorviewer 工具使用
uiautomatorviewer 使用首先通过uiautomator dump 生成当前ui xml打开uiatuomatorviewer.bat选择刚刚pull 出来的dump.xml文件上述就可以查看当前layout 布局。原创 2022-04-18 17:11:41 · 2146 阅读 · 0 评论 -
android.hardware.audio.service开机启动流程
1.init.rcon boot...# Start standard binderized HAL daemons//启动 hal classclass_start halclass_start core2.init.qcom.rcservice vendor.audio-hal /vendor/bin/hw/android.hardware.audio.service override class hal user audioserver # media原创 2022-02-24 10:57:12 · 3546 阅读 · 2 评论 -
android 判断开机向导是否完成
public class DefaultActivity extends Activity { @Override protected void onCreate(Bundle icicle) { super.onCreate(icicle); // Add a persistent setting to allow other apps to know the device has been provisioned. Settings.G原创 2022-02-10 10:10:02 · 2968 阅读 · 0 评论 -
android 11 来电状态按power键灭屏,后自动点亮问题
diff --git a/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java b/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.javaold mode 100644new mod原创 2021-12-14 14:10:06 · 2289 阅读 · 0 评论 -
Permission Denial: opening provider androidx.core.content.FileProvider from ProcessRecord
11-18 11:26:11.018 1110 1141 W ActivityManager: Permission Denial: opening provider androidx.core.content.FileProvider from ProcessRecord{cbef6f 17448:com.android.gallery3d/u0a126} (pid=17448, uid=10126) that is not exported from UID 1018511-18 11:26:11原创 2021-12-08 17:45:16 · 6418 阅读 · 4 评论 -
android 修改长按power 触发长按action时间
PhonewindowManager.javaif (!mPowerKeyHandled) { if (interactive) { // When interactive, we're already awake. // Wait for a long press or for the button to be released to decide what to do. if (hasLongPressOnPowerBehavior()) {原创 2021-11-26 10:01:13 · 2338 阅读 · 0 评论 -
通过AlarmManager实现定时重启
延时重启private PendingIntent mPendingIntent;private static final String ACTION_TIMEOUT = "reset.timeout";mPendingIntent = PendingIntent.getBroadcast(mContext,0,new Intent(ACTION_TIMEOUT),PendingIntent.FLAG_UPDATE_CURRENT);IntentFilter intentFilter = new I原创 2021-11-15 09:21:59 · 1922 阅读 · 0 评论 -
如何获取sim卡联系人信息
public static final Uri ICC_CONTENT_URI = Uri.parse("content://icc/adn");public static String _ID = BaseColumns._ID;public static String NAME = "name";public static String NUMBER = "number";Cursor cursor = null;try { cursor = context.getContentRes原创 2021-10-21 16:52:14 · 583 阅读 · 0 评论 -
qcom HFR 高帧率录像简介
高帧率录像简介 高帧率录像即慢动作拍摄,通常人眼能够接受的最好的视频帧速率是24帧/每秒。如果用120帧/秒拍摄一个动作,再用24帧每秒来播放的话,视频就放慢了5倍。 高通平台的 Slow motion feature :高速录制(HSR) : 以高fps(运行速率)捕获、编码并保存为高 fps(目标速率),运行速率等于目标速率。高帧率录制(HFR) : 以高fps(运行速率)捕获、编码并保存为30 fps(目标速率),运行速率大于目标速率。...原创 2021-07-27 20:57:43 · 1871 阅读 · 0 评论 -
android data 加密默认关闭
方法/device/sprd/<soc>/<board>/rootdir/root/fstab.xxx> 1、关闭默认加密:修改对应工程fstab文件,移除/data分区所在行的“,fileencryption=aes-256-xts”属性> 2、默认加密改为用户手动加密(此中方式修改后,用户可在设置--安全中自行决定是否开启FBE加密)修改对应工程fstab文件,将/data分区所在行的“fileencryption=aes-256-xts”属性改为“en原创 2021-04-07 10:13:55 · 3436 阅读 · 1 评论 -
android R push xxx恢复出厂设置之后无效
最近再处理android R 的项目,发现 push xxx 模块到设备中,设备恢复出厂设置之后,原来push的xxx模块的sha1sum值和push的不一样了。经过验证,恢复出厂后,push的xxx无效。我们尽量不要恢复出厂,可以将 /data/system/user/0 目录删除,reboot...原创 2021-04-01 10:39:57 · 452 阅读 · 1 评论 -
android ninja 模块快速编译指令
/prebuilts/build-tools/linux-x86/bin/ninja -f out/combined-XXXX.ninja -j8 XXXXSuch as,./prebuilts/build-tools/linux-x86/bin/ninja -f out/combined-bengal.ninja -j8 aboot./prebuilts/build-tools/linux-x86/bin/ninja -f out/combined-bengal.ninja -j8 boot.im原创 2021-03-23 13:54:58 · 1068 阅读 · 1 评论 -
定屏案例--monkey参数不对导致的定屏
monkey测试中如果不添加--kill-process-after-error 参数,在系统关键进程存在block的情况导致watchdog的时候会导致定屏而非重启,原因如下:在watchdog.java里面的run函数里,会做检测,如果controller不为空,说明有monkey,所以要将该信息回报给monkey,所以会调用monkey的systemNotResponding函数watchdog.java: synchronized (this) {原创 2021-03-22 10:06:28 · 299 阅读 · 0 评论 -
android 长按home键,打开任务列表i修改
PhoneWindowManager.javavoid handleLongPressOnHome(int deviceId) { if (mLongPressOnHomeBehavior == LONG_PRESS_HOME_NOTHING) { /*jicong.wang modify for task 10744 start {@*/ mHomeConsumed = true; toggleRecentApps(); /*jic原创 2021-03-19 15:23:52 · 312 阅读 · 0 评论 -
高通Android R ota radio升级修改
diff --git a/build/make/tools/releasetools/add_img_to_target_files.py b/build/make/tools/releasetools/add_img_to_target_files.pyold mode 100644new mode 100755index f58b697..fc59134--- a/build/make/tools/releasetools/add_img_to_target_files.py+++ b/bui原创 2021-03-19 11:10:34 · 1510 阅读 · 0 评论 -
java.lang.RuntimeException: Can‘t create handler inside thread Thread[AsyncTask #1,5,main] that has
完整log如下:03-04 04:36:02.685 E/AndroidRuntime( 4724): FATAL EXCEPTION: AsyncTask #103-04 04:36:02.685 E/AndroidRuntime( 4724): Process: com.android.systemui, PID: 472403-04 04:36:02.685 E/AndroidRuntime( 4724): java.lang.RuntimeException: Can't create han原创 2021-03-08 09:19:48 · 1603 阅读 · 0 评论 -
android 蓝牙分享rar
diff --git a/vendor/qcom/opensource/commonsys/packages/apps/Bluetooth/AndroidManifest.xml b/vendor/qcom/opensource/commonsys/packages/apps/Bluetooth/AndroidManifest.xmlindex 3660dee..e77d972 100755--- a/vendor/qcom/opensource/commonsys/packages/apps/Blue原创 2021-02-20 17:31:54 · 236 阅读 · 0 评论 -
android 手势,快速打开相机,默认关闭修改
diff --git a/frameworks/base/packages/SettingsProvider/res/values/defaults.xml b/frameworks/base/packages/SettingsProvider/res/values/defaults.xmlindex afcae19..8915200 100755--- a/frameworks/base/packages/SettingsProvider/res/values/defaults.xml+++ b/f原创 2021-02-18 15:35:06 · 530 阅读 · 0 评论 -
设置设备的主题背景颜色无变化
private static final boolean sInitColorBasedOnDefaultWp = true; //SystemProperties.getBoolean("ro.defaultwp.colorextracted", // !ActivityManager.isLowRamDeviceStatic());原创 2021-01-15 11:06:47 · 146 阅读 · 0 评论 -
The current OS build timestamp (1610174630) is newer than the maximum timestamp in the manifest
01-09 14:47:43.597 I/update_engine( 1244): [INFO:delta_performer.cc(1728)] Detected a 'full' payload.01-09 14:47:43.607 E/update_engine( 1244): [ERROR:delta_performer.cc(1775)] The current OS build timestamp (1610174630) is newer than the maximum timestam原创 2021-01-12 17:26:05 · 931 阅读 · 0 评论 -
ANDROID R 没有音量键,如何fastboot flashing unlock
diff --git a/bootable/bootloader/edk2/QcomModulePkg/Include/Library/MenuKeysDetection.h b/bootable/bootloader/edk2/QcomModulePkg/Include/Library/MenuKeysDetection.hold mode 100644new mode 100755index 48cf21d..3c9a0f5--- a/bootable/bootloader/edk2/QcomM原创 2021-01-11 14:19:50 · 2162 阅读 · 0 评论 -
android p低配置设备,首次开机铃声无声
原因是首次开机播放开机铃声的时候,铃声音量没有初始化完成。volume 为0修改:frameworks/av/services/audioflinger/Threads.cpp// prepareTracks_l() must be called with ThreadBase::mLock heldAudioFlinger::PlaybackThread::mixer_state AudioFlinger::MixerThread::prepareTracks_l( Vector&原创 2021-01-05 19:34:13 · 739 阅读 · 0 评论 -
androdi R A/B ota 差分命令
./build/make/tools/releasetools/ota_from_target_files.py -p out/target/product/qssi/obj/PACKAGING/otatools_intermediates/otatools -k build/make/target/product/security/testkey -v -i out/dist/merged-qssi_mc565x-target_filesA.zip out/dist/merged-qssi_mc原创 2020-12-28 17:45:46 · 476 阅读 · 0 评论 -
android提示“SIM not provisioned”
源码提示的地方ServiceStateTracker.javapublic void setNotification(int notifyType) { ...... case CS_REJECT_CAUSE_ENABLED: notificationId = CS_REJECT_CAUSE_NOTIFICATION; int resId = selectResourceForRejectCode(mRejectCode, multipleSubscriptions); if原创 2020-12-28 15:05:16 · 508 阅读 · 0 评论 -
android p如何添加开机铃声
android P 开机铃声添加将audio.wav 放到bootanimation.zip 中的part0中。变量 persist.sys.bootanim.play_sound 控制释放播放铃声具体的代码具体的实现再bootanimation_main.cpp中static const char PLAY_SOUND_PROP_NAME[] = "persist.sys.bootanim.play_sound";static const char BOOT_COMPLETED_PROP_NAM原创 2020-12-24 16:39:56 · 1226 阅读 · 1 评论 -
android 如果获取状态通知栏是哪个应用的
通过 adb shell dumpsys notification 查看Current Notification Manager state: Notification List: NotificationRecord(0x0d366e35: pkg=com.jicong.download user=UserHandle{0} id=1 tag=null importance=4 key=0|com.jicong.download|1|null|10078appImportanceLocked原创 2020-12-24 16:34:21 · 783 阅读 · 1 评论 -
Android R 使用网络ntp时间无效
android R 发现使用网络ntp时间无效。通过跟踪代码发现,framework中默认ntp服务网址为time.android.com由于android.com在国内是无法访问的。需要休要修改ntp默认服务地址。<string translatable="false" name="config_ntpServer">2.android.pool.ntp.org</string>...原创 2020-12-23 11:01:54 · 1762 阅读 · 2 评论 -
android r AB ota fail
需要注意的几个地方:a b ota 升级指令:E:\565\scripts>update_device.py --file Z:\code\565R\LA.UM.9.15\out\dist\merged-qssi_mc565x-ota.zipsuper image 大小配置要和modem原创 2020-12-16 14:26:43 · 407 阅读 · 0 评论 -
launcher3 横屏显示后,shortout 不显示label修改
diff --git a/packages/apps/Launcher3/src/com/android/launcher3/DeviceProfile.java b/packages/apps/Launcher3/src/com/android/launcher3/DeviceProfile.javaold mode 100644new mode 100755index ce32dc8..a099156--- a/packages/apps/Launcher3/src/com/android/la原创 2020-12-09 09:55:54 · 465 阅读 · 0 评论 -
Abort message: ‘FORTIFY: FD_SET: file descriptor 1070 >= FD_SETSIZE 128‘
问题现象压力测试骁龙相机,发现camera provicer 进程崩溃。无法正常打开相机,只有重新启动设备。相关的log:03-23 08:17:08.592 15634 15634 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***03-23 08:17:08.592 15634 15634 F DEBUG : Build fingerprint: 'SEUIC/d520/d520:9/D520原创 2020-12-03 16:28:35 · 2249 阅读 · 0 评论 -
ota two step 升级进入fastboot模式,无法启动修改
diff --git a/build/make/tools/releasetools/ota_from_target_files.py b/build/make/tools/releasetools/ota_from_target_files.pyindex 79670ee..0b2bcd5 100755--- a/build/make/tools/releasetools/ota_from_target_files.py+++ b/build/make/tools/releasetools/ota_原创 2020-11-26 10:21:46 · 420 阅读 · 0 评论 -
没有上下音量键,如何实现fastboot 模式下unlock/lock
高通P为例diff --git a/bootable/bootloader/lk/platform/msm_shared/display_menu.c b/bootable/bootloader/lk/platform/msm_shared/display_menu.cindex 5f4582f..a3f25e9 100644--- a/bootable/bootloader/lk/platform/msm_shared/display_menu.c+++ b/bootable/bootloader原创 2020-11-26 09:52:13 · 3904 阅读 · 2 评论 -
android usb 调试关闭后,重启后,usb调试又被系统打开了
protected boolean mBootAdbEnabled;mAdbEnabled = UsbHandlerLegacy.containsFunction(getSystemProperty( USB_PERSISTENT_CONFIG_PROPERTY, ""), UsbManager.USB_FUNCTION_ADB);/*jicong.wang modify for bug 2517 start {@*/mBootAdbEnabled = (Settings.Globa原创 2020-11-19 20:36:09 · 1226 阅读 · 0 评论 -
android lunch 报错
lunch 报错删除git 仓,重新git clone没有找到有效的方法原创 2020-11-19 20:30:24 · 280 阅读 · 0 评论 -
高通QFIL,开关usb调试端口,无法识别到下载端口
在UsbDeviceManager 中private void setAdbEnabled(boolean enable) { if (DEBUG) Slog.d(TAG, "setAdbEnabled: " + enable); if (enable != mAdbEnabled) { mAdbEnabled = enable; /*jicong.wang modify for bug 8540 start {@*/ String func原创 2020-11-19 20:27:29 · 3553 阅读 · 0 评论 -
android camera录像播放没有声音的问题
最近客户反馈,一项目录像播放,没有声音。查看源码发现:boolean isAudioSilence = isAudioSilence(mIsVideoCaptureIntent);boolean isAudioRecording = isAudioRecording();if (!isAudioSilence && !isAudioRecording){ mMediaRecorder.setAudioSource(MediaRecorder.AudioSource.CAMC原创 2020-10-23 14:38:21 · 1546 阅读 · 0 评论