美文网首页
2023-06-06

2023-06-06

作者: Do影 | 来源:发表于2024-02-20 18:23 被阅读0次

常用笔记
adb shell "dumpsys package com.xupin.talk |grep versionName"
adb shell dumpsys activity com.android.settings
java -Djava.library.path=. -jar signapk.jar platform.x509.pem platform.pk8 xyPoc.apk xyPoc2.apk

adb shell dumpsys window |findstr "mFocus"

git format-patch -1 commitId

sed -i 's/帐号/账号/g' droi////override/vendor/mediatek/proprietary/packages/apps/MtkSettings/res/values-zh-rCN/strings.xml

adb shell dumpsys battery set temp 600

adb shell settings get system font_scale

adb shell settings put system font_scale 1.30

adb shell getprop | findstr iccid imei

./distribute -p system_codebase/dists/targets/Z917_MT8791T_H/z917a-lm-g510-1024g64g-hdp-bom2-T0-cn-macro/ --userdebug && ./distribute -b -t

./out_sys/host/linux-x86/bin/ota_from_target_files --path out_sys/host/linux-x86/ -i old.zip new.zip bb.zip

adb shell settings list global | grep preferred

adb shell am start -n com.android.dialer/com.android.dialer.app.DialtactsActivity
adb shell am start -n com.mediatek.mtklogger/com.mediatek.mtklogger.MainActivity
adb shell am start -n com.debug.loggerui/com.debug.loggerui.MainActivity

git push origin HEAD:refs/heads/Android_LM182 不需要review
git push origin HEAD:refs/for/Android_LM182

  • Android P + kernel-4.9 or after
  • download preloader with verified boot disabled which location is the same as scatter file. //preloader_<PROJECT>_SBOOT_DIS.bin

  • boot to Home Screen

  • go to setting -> system -> Developer options -> OEM unlocking

  • adb reboot bootloader

  • fastboot flashing unlock

  • press volume up key

  • fastboot reboot

  • adb root

  • adb disable-verity

  • adb reboot

  • adb root

  • adb remount

  • adb shell -》adb rm -rf xx.apk

  • adb push

GP51-S_EX_V1.0_20230825

GP51-S_V1.0_20230825

adb shell pm path com.android.launcher3

##3646633##
##4636##
##1989#

adb shell getprop

vendor/mediatek/proprietary/bootable/bootloader/preloader/freeme_flash_type/MT6739/EMCP_88/custom_MemoryDevice.h

droi/lm180/lm180/lm180_gb_all2_fbdc_poc_ipsj/override/kernel-4.4/arch/arm/boot/dts/bat_setting/mt6739_battery_table_ext.dtsi

device/mediateksample/tb8768p1_64_bsp/mid/US652U/items.ini:39:
ro.sf.lcd_density

FREEME_PRODUCT_LOCALES:=ru_RU zh_CN en_US

applyOomAdjLocked()
app.persistent = true;

Android 14 SDK API level 34

Android 13 SDK API level 33

Android 12L SDK API level 32

Android 12 SDK API level 31

Android 11 SDK API level 30

Android 10 SDK API level 29

Android 9 SDK API level 28

Android 8.1 SDK API level 27

Android 8.0 SDK API level 26

Android 7.1.1 SDK API level 25

Android 7.0 SDK API level 24

Android 6.0 SDK API level 23

Android 5.1 SDK API level 22

Android 5.0 SDK API level 21

Android 4.4w SDK API level 20

Android 4.4 SDK API level 19

Android 4.3 SDK API level 18

Android 4.2 SDK API level 17

Android 4.1 SDK API level 16

Android 4.0.3 SDK API level 15

Android 4.0 SDK API level 14

Android 3.2 SDK API level 13

Android 3.1 SDK API level 12

Android 3.0 SDK API level 11

Android 2.3.3 SDK API level 10

Android 2.3 SDK API level 9

Android 2.2 SDK API level 8

Android 2.1 SDK API level 7

Android 2.0.1 SDK API level 6

Android 2.0 SDK API level 5

Android 1.6 SDK API level 4

Android 1.5 SDK API level 3

Android 1.1 SDK API level 2

Android 1.0 SDK API level 1

adb shell am broadcast -a android.adw.intent.action.timezset --es timezone "Asia/Shanghai" --ei test_int 100 --ez test_boolean true
adb shell am broadcast -a action -f 0x01000000
-a : action

--es : String

--ei: int

--el: long

--ef:float

--eia: int[]

--ez:boolean

--ez:boolean

--f :FLAG

com.iflytek.speechcloud

  1. adb shell

  2. wm size

Physical size: 1600x480

  1. wm density

Physical density: 160

for %i in (*apk)do adb install "%i"

vendor/mediatek/proprietary/packages/apps/SystemUI/src/com/android/systemui/volume/VolumeDialogControllerImpl.java
if (streamType== AudioSystem.STREAM_ALARM || streamType== AudioSystem.STREAM_MUSIC || streamType== AudioSystem.STREAM_VOICE_CALL ) {
return;
}

Settings.Global.putInt(context.getContentResolver(),Settings.Global.ADB_ENABLED, 1);
vendor/mediatek/proprietary/packages/apps/MtkSettings/src/com/android/settings/fuelgauge/batterytip/AnomalyConfigReceiver.java

frameworks/base/packages/SettingsLib/src/com/android/settingslib/development/DevelopmentSettingsEnabler.java

frameworks/base/packages/SystemUI/src/com/android/systemui/usb/UsbDebuggingActivity.java
oinom 12345678

setenforce permissive

avc: denied { call } for scontext=u:r:aee_core_forwarder:s0 tcontext=u:r:servicemanager:s0 tclass=binder permissive=1

avc: denied { write } for name="brightness" dev="sysfs" ino=9326 scontext=u:r:platform_app:s0:c512,c768 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1

avc: denied { search } for name="leds" dev="sysfs" ino=5881 scontext=u:r:platform_app:s0:c512,c768 tcontext=u:object_r:sysfs_leds:s0 tclass=dir permissive=1

avc: denied { write } for name="property_service" dev="tmpfs" ino=8042 scontext=u:r:priv_app:s0:c512,c768 tcontext=u:object_r:property_socket:s0 tclass=sock_file permissive=0
allow priv_app property_socket:sock_file { write };

avc: denied { set } for property=sys.opencloseNum pid=7626 uid=10103 gid=10103 scontext=u:r:priv_app:s0:c512,c768 tcontext=u:object_r:system_prop:s0 tclass=property_service permissive=0'allow priv_app init:unix_stream_socket { connectto };

allow priv_app system_prop:property_service { set };

avc: denied { read } for name="sbat_gpio" dev="sysfs" ino=49614 scontext=u:r:platform_app:s0:c512,c768 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0 app=com.yft.factorymode
allow platform_app sysfs:file { read open getattr };

avc: denied { search } for name="leds" dev="sysfs" ino=5881 scontext=u:r:platform_app:s0:c512,c768 tcontext=u:object_r:sysfs_leds:s0 tclass=dir permissive=1
allow platform_app sysfs_leds:dir { search };


<bool name="def_dim_screen">false</bool>

<integer name="def_screen_off_timeout">2147483647</integer>
<integer name="def_sleep_timeout">-1</integer>

<bool name="def_airplane_mode_on">false</bool>

<bool name="def_theater_mode_on">false</bool>


<string name="def_airplane_mode_radios" translatable="false">cell,bluetooth,wifi,nfc,wimax</string>

<string name="airplane_mode_toggleable_radios" translatable="false">bluetooth,wifi,nfc</string>
<string name="def_bluetooth_disabled_profiles" translatable="false">0</string>

<bool name="def_auto_time">true</bool>

<bool name="def_auto_time_zone">true</bool>

<bool name="def_accelerometer_rotation">true</bool>


<integer name="def_screen_brightness">229</integer>

<string name="def_screen_brightness_float">0.9</string>

<bool name="def_screen_brightness_automatic_mode">false</bool>

<fraction name="def_window_animation_scale">100%</fraction>

<fraction name="def_window_transition_scale">100%</fraction>

<bool name="def_haptic_feedback">true</bool>

<bool name="def_bluetooth_on">true</bool>

<bool name="def_wifi_display_on">false</bool>

<bool name="def_install_non_market_apps">false</bool>

<integer name="def_location_mode">3</integer>

<bool name="assisted_gps_enabled">true</bool>

<bool name="def_netstats_enabled">true</bool>

<bool name="def_usb_mass_storage_enabled">true</bool>

<bool name="def_wifi_on">false</bool>


<integer name="def_wifi_sleep_policy">2</integer>
<bool name="def_wifi_wakeup_enabled">true</bool>

<bool name="def_networks_available_notification_on">true</bool>

<bool name="def_backup_enabled">false</bool>

<!-- Default value for whether or not to pulse the notification LED when there is a
     pending notification -->
<!--当有消息时LED通知灯反复闪-->
<bool name="def_notification_pulse">true</bool>
<!--当有MountService事件时是否播放通知音-->
<bool name="def_mount_play_notification_snd">true</bool>
<!--在ums主机监控时是否自动开启ums-->
<bool name="def_mount_ums_autostart">false</bool>
<!--当ums主机监控时是否显示在通知栏-->
<bool name="def_mount_ums_prompt">true</bool>
<!--当ums启用时是否在通知栏提示-->
<bool name="def_mount_ums_notify_enabled">true</bool>

<!-- user interface sound effects -->
<!--是否播放低电量声音-->
<integer name="def_power_sounds_enabled">1</integer>
<!--低电量声音的url-->
<string name="def_low_battery_sound" translatable="false">/product/media/audio/ui/LowBattery.ogg</string>
<!--当插入底座时是否播放声音-->
<integer name="def_dock_sounds_enabled">0</integer>
<!--当插入底座时播放声音的url-->
<string name="def_desk_dock_sound" translatable="false">/product/media/audio/ui/Dock.ogg</string>
<!--当拔出底座时播放声音的url-->
<string name="def_desk_undock_sound" translatable="false">/product/media/audio/ui/Undock.ogg</string>
<!--插入车载底座时播放声音的url-->
<string name="def_car_dock_sound" translatable="false">/product/media/audio/ui/Dock.ogg</string>
<!--拔出车载底座时播放声音的url-->
<string name="def_car_undock_sound" translatable="false">/product/media/audio/ui/Undock.ogg</string>
<!--是否启用锁屏声音-->
<integer name="def_lockscreen_sounds_enabled">1</integer>
<!--锁屏声音的url-->
<string name="def_lock_sound" translatable="false">/product/media/audio/ui/Lock.ogg</string>
<!--解锁声音的url-->
<string name="def_unlock_sound" translatable="false">/product/media/audio/ui/Unlock.ogg</string>
<!--开始无线充电声音的url-->
<string name="def_wireless_charging_started_sound" translatable="false">/product/media/audio/ui/WirelessChargingStarted.ogg</string>

<!--是否禁用锁屏-->
<bool name="def_lockscreen_disabled">true</bool>
<!--设备是否已提供-->
<bool name="def_device_provisioned">false</bool>

<!-- Notifications use ringer volume -->
<!--是否将铃声作为通知声使用-->
<bool name="def_notifications_use_ring_volume">true</bool>

<!-- Default for Settings.System.VIBRATE_IN_SILENT -->
<!--静默模式是否允许震动反馈-->
<bool name="def_vibrate_in_silent">true</bool>

<!-- Default for Settings.Secure.ACCESSIBILITY_SPEAK_PASSWORD -->
<!--在可访问模式时是否允许读出密码-->
<bool name="def_accessibility_speak_password">true</bool>

<!-- Default for Settings.Secure.TOUCH_EXPLORATION_ENABLED -->
<!--是否启用触控探测-->
<bool name="def_touch_exploration_enabled">false</bool>

<!-- Default value for Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_SCALE -->
<!--设置显示放大的百分比-->
<fraction name="def_accessibility_display_magnification_scale">200%</fraction>

<!-- Default value for Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_ENABLED -->
<!--是否启用可设置放大屏幕显示比例-->
<bool name="def_accessibility_display_magnification_enabled">false</bool>

<!-- Default value for Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_AUTO_UPDATE -->
<!--是否允许屏幕放大比例自动更新-->
<bool name="def_accessibility_display_magnification_auto_update">true</bool>

<!-- Default for Settings.System.USER_ROTATION -->
<!--屏幕旋转策略,默认启用旋转-->
<integer name="def_user_rotation">0</integer>

<!-- Default for Settings.Secure.DOWNLOAD_MAX_BYTES_OVER_MOBILE. <=0 if no limit -->
<!--下载时的最大速度,以字节为单位-->
<integer name="def_download_manager_max_bytes_over_mobile">-1</integer>
<!-- Default for Settings.Secure.DOWNLOAD_RECOMMENDED_MAX_BYTES_OVER_MOBILE. <=0 if no limit -->
<!--下载时推荐的最大速度,以字节为单位-->
<integer name="def_download_manager_recommended_max_bytes_over_mobile">-1</integer>

<!-- Default for Settings.Secure.LONG_PRESS_TIMEOUT_MILLIS -->
<!--按压失效时长,以毫秒为单位-->
<integer name="def_long_press_timeout_millis">400</integer>

<!-- Default for Settings.System.POINTER_SPEED -->
<!--指针速度设置,范围-7到7-->
<integer name="def_pointer_speed">0</integer>

<!-- Default for DTMF tones enabled -->
<!--在拨号时拨号器是否启用DTMF音频-->
<bool name="def_dtmf_tones_enabled">true</bool>
<!-- Default for UI touch sounds enabled -->
<!--是否启用触屏解锁等音效反馈-->
<bool name="def_sound_effects_enabled">true</bool>

<!-- Development settings -->
<!--当插入充电器时,是否保持唤醒状态-->
<bool name="def_stay_on_while_plugged_in">false</bool>

<!-- Number of retries for connecting to DHCP.
     Value here is the same as WifiStateMachine.DEFAULT_MAX_DHCP_RETRIES -->
<!--最大重连次数-->
<integer name="def_max_dhcp_retries">9</integer>

<!-- Default for Settings.Secure.USER_SETUP_COMPLETE -->
<!--当前用户是否已经通过安装向导设置-->
<bool name="def_user_setup_complete">true</bool>

<!-- Default for Settings.Global.LOW_BATTERY_SOUND_TIMEOUT.
     0 means no timeout; battery sounds will always play
     >0 is milliseconds of screen-off time after which battery sounds will not play -->
<!--当经过一定时间后,如果低电量提醒为播放声音,则灭屏-->
<integer name="def_low_battery_sound_timeout">0</integer>

<!-- Initial value for the Settings.Secure.IMMERSIVE_MODE_CONFIRMATIONS setting,
     which is a comma separated list of packages that no longer need confirmation
     for immersive mode.
     Override to disable immersive mode confirmation for certain packages. -->
<!--应用进入沉浸模式默认值为已确认,不弹出提示框  confirmed-->
<string name="def_immersive_mode_confirmations" translatable="false"></string>

<!-- Default for Settings.Global.WIFI_SCAN_ALWAYS_AVAILABLE -->
<!--设置-wlan-高级-随时扫描开关-->
<integer name="def_wifi_scan_always_available">0</integer>

<!-- Default for Settings.Secure.LOCK_SCREEN_SHOW_NOTIFICATIONS, 1==on -->
<!--是否在锁屏界面显示通知-->
<integer name="def_lock_screen_show_notifications">1</integer>

<!-- Default for Settings.Secure.LOCK_SCREEN_ALLOW_PRIVATE_NOTIFICATIONS -->
<!--允许在锁屏界面上显示私有通知,就像是解锁状态下一样-->
<bool name="def_lock_screen_allow_private_notifications">true</bool>

<!-- Default for Settings.Global.HEADS_UP_NOTIFICATIONS_ENABLED, 1==on -->
<integer name="def_heads_up_enabled">1</integer>

<!-- Default for Settings.Global.DEVICE_NAME $1=MANUFACTURER $2=MODEL-->
<!--设置多个设备名称-->
<string name="def_device_name">%1$s %2$s</string>

<!-- Default for Settings.Global.DEVICE_NAME $1=MODEL-->
<!--设置单个设备名称-->
<string name="def_device_name_simple">%1$s</string>

<!-- Default for Settings.Secure.WAKE_GESTURE_ENABLED -->
<!--手势唤醒是否可用-->
<bool name="def_wake_gesture_enabled">false</bool>

相关文章

  • 2023-06-06

    一双明亮的眸子,容纳了被碾碎了阳光,炯炯有神,似乎偷偷在糖水里浸泡过的微笑,一眼看上去就是个很温暖的人,不管黑色白...

  • 2023-06-06

    一双明亮的眸子,容纳了被碾碎了阳光,炯炯有神,似乎偷偷在糖水里浸泡过的微笑,一眼看上去就是个很温暖的人,不管黑色白...

  • 2023-06-06

    一双明亮的眸子,容纳了被碾碎了阳光,炯炯有神,似乎偷偷在糖水里浸泡过的微笑,一眼看上去就是个很温暖的人,不管黑色白...

网友评论

      本文标题:2023-06-06

      本文链接:https://www.haomeiwen.com/subject/rwiiedtx.html