framework
宝宝有只猪
Android
展开
-
安卓照相机默认4:3
packages/apps/Camera/src/com/android/camera/CameraSettings.javapublic class CameraSettings { return; } - resetIfInvalid(pref, resetFirst);+ /*resetIfInvalid(pref, resetFirst);*/+ if(row == SettingChec原创 2021-09-07 18:52:05 · 392 阅读 · 0 评论 -
MKT 照相机ISO默认模式
packages\apps\Camera\res\values\mtk_camera_strings.xml<!-- ISO -->- <string name="pref_camera_iso_default" translatable="false">200</string>+ <string name="pref_camera_iso_default" translatable="false">auto</string>原创 2021-07-22 16:43:47 · 239 阅读 · 0 评论 -
MTK 8.1开机振动关闭
u-boot15/common/loader/boot_mode.cvoid normal_mode(void){#ifndef CONFIG_ZEBU vibrator_hw_init();+ set_vibrator(0);- set_vibrator(1); vlx_nand_boot(BOOT_PART, BACKLIGHT_ON, LCD_ON);#else vlx_nand_boot_zebu(BOOT_PART, BACKLIGHT_ON, LCD_ON);#endif原创 2021-07-12 10:10:44 · 155 阅读 · 0 评论 -
MTK 8.1关闭关机振动
vendor/sprd/platform/packages/apps/DreamCamera2/src/com/android/camera/PhotoModule.java // length of vibration before shutting down private static final int SHUTDOWN_VIBRATE_MS = 0;原创 2021-07-09 13:58:13 · 163 阅读 · 0 评论 -
MTK安卓8.1修改设置字体默认大小
frameworks/base/core/java/android/content/res/Configuration.javapublic void setToDefaults() {- fontScale = 1;+ fontScale = 1.15f;+ Log.d("ssssssss", "setToDefaults 1180 fontScale = " +fontScale);//huizhang mcc = mnc = 0;原创 2021-07-07 13:45:08 · 439 阅读 · 0 评论 -
MTK4.4隐藏照片尺寸
packages\apps\Gallery2\src\com\android\gallery3d\ui\DialogDetailsView.java int key = detail.getKey(); if (details.hasUnit(key)) { value = String.format("%s: %s %s", DetailsHelper.getDetailsName(原创 2021-06-28 17:37:27 · 118 阅读 · 0 评论 -
安卓显示hotseat应用名称
调整图标边距vendor\sprd\platform\packages\apps\SprdLauncher\src\com\android\sprdlauncher3\BubbleTextView.javasetCompoundDrawables(null, iconDrawable, null, null); if (setDefaultPadding) { DeviceProfile grid = app.getDynamicGrid().getDeviceP原创 2021-06-15 10:16:26 · 1644 阅读 · 4 评论 -
MTK kk隐藏基带版本
packages/apps/Settings/src/com/android/settings/DeviceInfoSettings.java@@ -605,6 +605,7 @@ */ + getPreferenceScreen().removePreference(findPreference(KEY_BASEBAND_VERSION)); PreferenceGroup parentPreferenc原创 2021-06-11 15:27:43 · 387 阅读 · 1 评论 -
展讯8.0点击标准直接进入修改
vendor\sprd\platform\packages\apps\AudioProfile\src\com\sprd\audioprofile\AudioProfileSettings.javapublic class AudioProfileSettings extends PreferenceActivity implements menuItem = allMenu; }原创 2021-06-07 19:59:54 · 133 阅读 · 0 评论 -
展讯8.0在情景模式中添加一个开关机铃声开关
vendor/sprd/platform/packages/apps/AudioProfile/res/xml/audio_profile_sound_settings.xmlvendor/sprd/platform/packages/apps/AudioProfile/res/xml/audio_profile_sound_settings.xml@@ -69,6 +69,10 @@ android:defaultValue="true" /> --> +原创 2021-06-03 17:33:18 · 331 阅读 · 0 评论 -
MTK安卓4.4修改虚拟按键功能
frameworks\base\core\res\res\values\config.xmlhome键 <!-- Control the behavior when the user long presses the home button. 0 - Nothing 1 - Recent apps view in SystemUI 2 - Launch assist intent This needs原创 2021-05-31 19:35:17 · 532 阅读 · 0 评论 -
展讯默认关闭数据流量
frameworks/opt/telephony/src/java/com/android/internal/telephony/DataEnableController.javaSettings.Global.putInt(mContext.getContentResolver(),- Settings.Global.MOBILE_DATA + SubscriptionManager.MAX_SUBSCRIPTION_ID_VALUE, 1);+原创 2021-05-26 17:11:07 · 134 阅读 · 0 评论 -
展讯屏蔽使用数据的图标
vendor\sprd\platform\frameworks\base\packages\SystemUI\src\com\android\systemui\statusbar\SignalClusterViewEx.java mMobileRoaming.setVisibility(mRoaming ? View.VISIBLE : View.GONE);+mMobileActivityIn.setVisibility(/*mMobileDataInOutId != 0 ? View.VISIBLE原创 2021-05-24 17:12:53 · 108 阅读 · 0 评论 -
展讯水滴屏通话被遮挡
frameworks/base/core/res/res/layout/notification_template_material_big_base.xml android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical"+ android:layout_marginTop="10dp" android:tag="bi.原创 2021-05-24 17:03:19 · 224 阅读 · 0 评论 -
MTK桌面默认显示谷歌go搜索工具,并固定搜索框
MTK桌面默认显示谷歌go搜索工具,并固定搜索框packages/apps/Launcher3/src/com/android/launcher3/Utilities.javandex ffa6bf0572..edecb39e9d 100755@@ -548,7 +548,7 @@ public final class Utilities { (SearchManager) context.getSystemService(Context.SEARCH_SERVICE原创 2021-05-17 14:58:18 · 371 阅读 · 0 评论 -
MTK屏蔽谷歌服务报错对话框KK
MTK屏蔽谷歌服务报错对话框KKframeworks/base/services/java/com/android/server/am/ActivityManagerService.java@@ -1211,8 +1211,17 @@ public final class ActivityManagerService extends ActivityManagerNative if (mShowDialogs && !mSleeping &原创 2021-04-30 10:54:47 · 242 阅读 · 0 评论 -
MTK6.0userdebug版本在模块编译push后开机慢
MTK6.0userdebug版本在模块编译push后开机慢frameworks\base\services\java\com\android\server\SystemServer.javamSystemServiceManager.startService(UiModeManagerService.class); /* try { mPackageManagerService.performBootDexOpt(); } catch (Throw原创 2021-04-30 10:47:21 · 98 阅读 · 0 评论 -
展讯修改摄像头预览默认16:9
展讯修改摄像头预览默认16:9vendor/sprd/platform/packages/apps/DreamCamera2/src/com/dream/camera/settings/DataModuleInterfacePV.javapublic abstract class DataModuleInterfacePV extends DataModuleBasic { data.mEntries = entries; data.mEntryValues = en原创 2021-04-23 10:40:11 · 367 阅读 · 0 评论 -
展讯修改开机铃声大小
展讯修改开机铃声大小vendor\sprd\platform\frameworks\base\cmds\bootanimation\BootAnimation.cpp#ifdef BOOTANIMATION_EXTbool BootAnimation::soundplay() { mp = NULL; if (mSoundFileName.length() == 0) { __android_log_print(ANDROID_LOG_WARN, LOG_TAG, "原创 2021-04-16 17:38:31 · 234 阅读 · 0 评论 -
MTK电池充电充满后自动断电,电池少于百分之20%再继续充电(如果重新插电源,电池少于100%,就立即充电
MTK电池充电充满后自动断电电池少于百分之20%再继续充电,如果重新插电源,电池少于100%,就立即充电device/mediateksample/k53v1_64_bsp/init.project.rcchown system system /proc/smb/ScreenComm chmod 0660 /proc/smb/ScreenComm -+ chmod 0777 /sys/devices/platform/mt-pmic/charger_status on原创 2021-04-09 16:50:17 · 1118 阅读 · 0 评论 -
MTK照相机预览聚焦动作
MTK照相机预览聚焦动作packages/apps/Camera/src/com/android/camera/CameraSettings.javapublic class CameraSettings { //Mediatek feature end // false means the continuous shot number will not show in the settings UI- public static final boolean SU原创 2021-04-09 15:14:11 · 219 阅读 · 0 评论 -
MTK指定app权限弹窗默认
MTK指定app权限弹窗默认frameworks/base/services/core/java/com/android/server/pm/PackageManagerService.java permissionsState.setGlobalGids(mGlobalGids); + if(pkg.packageName.contains("com.qi") || pkg.packageName.equals("com.allwinner.theatreplaye原创 2021-03-30 11:28:01 · 383 阅读 · 0 评论 -
MTK默认免提
MTK默认免提packages/services/Telecomm/src/com/android/server/telecom/CallAudioManager.javaprivate void setSystemAudioState(boolean isMuted, int route, int supportedRouteMask) { setSystemAudioState(false /* force */, isMuted, route, supportedRouteMas原创 2021-03-29 16:56:04 · 249 阅读 · 0 评论 -
MTK 去掉图库中的动态图片
MTK 去掉图库中的动态图片图库中的 动态图片属于属于四个appdevice/mediatek/mt6735/device.mk禁止这四个app参加编译PRODUCT_PACKAGES += LiveWallpapersPicker PRODUCT_PACKAGES += MagicSmokeWallpapers PRODUCT_PACKAGES += VisualizationWallpapers- PRODUCT_PACKAGES += Galaxy4- PRODUCT_PA原创 2021-03-24 10:36:54 · 135 阅读 · 0 评论 -
MTK去掉相机温度过高弹窗
MTK去掉相机温度过高弹窗vendor/mediatek/proprietary/packages/apps/Camera/src/com/mediatek/camera/AdditionManager.javamIContinuousShotAddition = new ContinuousShot(cameraContext); mDistanceInfo = new DistanceInfo(cameraContext); mRemoteCameraAdditi原创 2021-03-02 13:54:56 · 737 阅读 · 0 评论