1. 信息-设置-通知-重要程度-中(不发出提示音),非锁屏界面下无提示通知框弹出

vendor/mediatek/proprietary/packages/apps/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java

method:shouldPeek

@@ -7578,8 +7578,8 @@ private PowerManager.WakeLock mNotificationWakeLock;
} // Allow peeking for DEFAULT notifications only if we're on Ambient Display.
- int importanceLevel = isDozing() ? NotificationManager.IMPORTANCE_DEFAULT
- : NotificationManager.IMPORTANCE_HIGH;
+ int importanceLevel = NotificationManager.IMPORTANCE_LOW/*devin.20180510 isDozing() ? NotificationManager.IMPORTANCE_DEFAULT
+ : NotificationManager.IMPORTANCE_HIGH;*/
if (mNotificationData.getImportance(sbn.getKey()) < importanceLevel) {
if (true/**DEBUG*/) Log.d(TAG, "No peeking: unimportant notification: " + sbn.getKey());
return false;

2. 关机动画播放时长/关机时长/关机动画播放不全

vendor/mediatek/proprietary/frameworks/base/services/core/java/com/mediatek/server/MtkShutdownThread.java

method:showCustomizedShutdownAnimation

-    private static final int MIN_SHUTDOWN_ANIMATION_PLAY_TIME = 5 * 1000;
+ private static final int MIN_SHUTDOWN_ANIMATION_PLAY_TIME = 10 * 1000;//devin.20180510 beginAnimationTime = 0;
boolean mShutOffAnimation = configShutdownAnimation(context);
- int screenTurnOffTime = getScreenTurnOffTime(context);
+ int screenTurnOffTime = MIN_SHUTDOWN_ANIMATION_PLAY_TIME;//getScreenTurnOffTime(context);devin.20180510
synchronized (mEnableAnimatingSync) {
if (mEnableAnimating) {
if (mShutOffAnimation) {

3. 灭屏状态下收到短信、蓝牙收到文件,屏幕亮屏

vendor/mediatek/proprietary/packages/apps/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java

+private PowerManager.WakeLock mNotificationWakeLock;

     public void onAsyncInflationFinished(Entry entry) {
mPendingNotifications.remove(entry.key);
// If there was an async task started after the removal, we don't want to add it back to
// the list, otherwise we might get leaks.
boolean isNew = mNotificationData.get(entry.key) == null;
+ //devin.20180424
+ mNotificationWakeLock = mPowerManager.newWakeLock(PowerManager.FULL_WAKE_LOCK | PowerManager.ACQUIRE_CAUSES_WAKEUP
+                   | PowerManager.ON_AFTER_RELEASE, TAG);
+ //end
+ mNotificationWakeLock.setReferenceCounted(false);
if (isNew && !entry.row.isRemoved()) { protected void addNotificationViews(Entry entry) {
if (entry == null) {
return;
}
// Add the expanded view and icon.
mNotificationData.add(entry);
Log.d(TAG, "packgename:"+entry.key);
+ //devin.20180424
+ if (!mPowerManager.isScreenOn() && entry.key != null && (entry.key.contains("com.google.android.apps.messaging")
+             || entry.key.contains("com.android.bluetooth"))){
+ mNotificationWakeLock.acquire(5000);
+ Log.d(TAG, "special app notification turn screen on");
+ }
+ //end
updateNotifications();
} public void updateNotification(StatusBarNotification notification, RankingMap ranking)
throws InflationException {
......
if (entry == null) {
return;
} mNotificationData.add(entry);
+ //devin.20180424
+ if (!mPowerManager.isScreenOn() && entry.key != null && (entry.key.contains("com.google.android.apps.messaging")
+                    || entry.key.contains("com.android.bluetooth"))){
+ mNotificationWakeLock.acquire(5000);
+ Log.d(TAG, "special app notification turn screen on");
+ }
+ //end
mHeadsUpEntriesToRemoveOnSwitch.remove(entry);
mRemoteInputEntriesToRemoveOnCollapse.remove(entry);
......

4. 默认音量

frameworks/base/media/java/android/media/AudioSystem.java

@@ -866,11 +866,11 @@ public class AudioSystem
*/
public static int[] DEFAULT_STREAM_VOLUME = new int[] {
4, // STREAM_VOICE_CALL
- 15, // STREAM_SYSTEM
- 15, // STREAM_RING
- 15, // STREAM_MUSIC
- 15, // STREAM_ALARM
- 15, // STREAM_NOTIFICATION
+ 12, // STREAM_SYSTEM
+ 12, // STREAM_RING
+ 12, // STREAM_MUSIC
+ 12, // STREAM_ALARM
+ 12, // STREAM_NOTIFICATION

多媒体音量

frameworks/base/services/core/java/com/android/server/audio/AudioService.java

@@ -712,7 +712,7 @@ public class AudioService extends IAudioService.Stub
MAX_STREAM_VOLUME[AudioSystem.STREAM_MUSIC] / 4;
} else {
AudioSystem.DEFAULT_STREAM_VOLUME[AudioSystem.STREAM_MUSIC] =
- MAX_STREAM_VOLUME[AudioSystem.STREAM_MUSIC] / 3;
+ /*MAX_STREAM_VOLUME[AudioSystem.STREAM_MUSIC] / 3*/ 12;//devin.20180509
}
}

5. 默认亮度

vendor/mediatek/proprietary/packages/apps/SettingsProvider/res/values/defaults.xml

+    <integer name="def_screen_brightness">158</integer>

6. 去掉设置-应用和通知-查看全部23个应用-信息-应用通知-应用中的其他设置

vendor/mediatek/proprietary/packages/apps/MtkSettings/src/com/android/settings/notification/NotificationSettingsBase.java

     protected void addAppLinkPref() {
- if (mAppRow.settingsIntent != null && mAppLink == null) {
+ Log.i("joyatel","pkg:"+mAppRow.pkg);
+ if (mAppRow.settingsIntent != null && mAppLink == null && !mAppRow.pkg.equals("com.google.android.apps.messaging")/*devin.20180507*/) {
addPreferencesFromResource(R.xml.inapp_notification_settings);
mAppLink = (Preference) findPreference(KEY_APP_LINK);

7. 打开设置-存储中的默认存储器菜单及功能

vendor/mediatek/proprietary/packages/apps/MtkSettings/src/com/mediatek/settings/deviceinfo/StorageSettingsExts.java

@@ -57,13 +57,14 @@ public class StorageSettingsExts {
mDiskCategory = (PreferenceCategory) mRoot
.findPreference(KEY_DEFAULT_WRITE_DISK); - if (!FeatureOption.MTK_DEFAULT_WRITE_DISK || FeatureOption.MTK_A1_FEATURE) {
+ if (FeatureOption.MTK_DEFAULT_WRITE_DISK || FeatureOption.MTK_A1_FEATURE) {
mRoot.removePreference(mDiskCategory);
}
} private void updateDefaultWriteDiskCategory() {
- if (!FeatureOption.MTK_DEFAULT_WRITE_DISK || FeatureOption.MTK_A1_FEATURE) {
+ Log.i("devin","MTK_A1_FEATURE:"+FeatureOption.MTK_A1_FEATURE);
+ if (FeatureOption.MTK_DEFAULT_WRITE_DISK || FeatureOption.MTK_A1_FEATURE) {
return;
}

vendor/mediatek/proprietary/frameworks/base/core/java/com/mediatek/storage/StorageManagerEx.java

@@ -101,8 +101,15 @@ public class StorageManagerEx {
boolean supportMultiUsers = false; // Modifications for O1.BSP+ as default path feature is not supported.
- path = Environment.getExternalStorageDirectory().getAbsolutePath();
+ //devin.20180424
+ // path = Environment.getExternalStorageDirectory().getAbsolutePath();
+ path = SystemProperties.get(PROP_SD_DEFAULT_PATH);
+ Log.i(TAG,"path1:"+path);
+ if(path.equals("")){
+ path = Environment.getExternalStorageDirectory().getAbsolutePath();
+ }
Log.i(TAG, " Default path taken as primary storage, path=" + path);
+ //devin.20180424
// Modifications complete for O1.BSP+.
return path;

通话录音、FM录音默认存储跟随设置

vendor/mediatek/proprietary/packages/apps/FMRadio/src/com/android/fmradio/FmUtils.java

+import com.mediatek.storage.StorageManagerEx;

@@ -201,7 +202,8 @@ public class FmUtils {
* @return The phone storage path
*/
public static String getDefaultStoragePath() {
- return Environment.getExternalStorageDirectory().getPath();
+ // return Environment.getExternalStorageDirectory().getPath();
+ return StorageManagerEx.getDefaultPath(); //devin.20180424
}

vendor/mediatek/proprietary/packages/services/CallRecorderService/src/com/mediatek/callrecorder/Recorder.java

@@ -116,8 +116,8 @@ public abstract class Recorder implements OnErrorListener {

         SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd_HH.mm.ss");
String prefix = dateFormat.format(new Date());
- //File sampleDir = new File(StorageManagerEx.getDefaultPath());
- File sampleDir = Environment.getExternalStorageDirectory();
+ File sampleDir = new File(StorageManagerEx.getDefaultPath());//devin.20180424
+ //File sampleDir = Environment.getExternalStorageDirectory();

8. 相机设置拍照预览默认4:3

vendor/mediatek/proprietary/packages/apps/Camera/src/com/android/camera/bridge/CameraDeviceExt.java

@@ -190,7 +190,8 @@ public class CameraDeviceExt implements ICameraDeviceExt {
mParametersExt);
if (supportedRatios != null && supportedRatios.size() > 0) {
SharedPreferences.Editor editor = mPreferences.edit();
- String ratioString = supportedRatios.get(supportedRatios.size() - 1);
+ //String ratioString = supportedRatios.get(supportedRatios.size() - 1);
+ String ratioString = supportedRatios.get(0);//devin.2018420
editor.putString(SettingConstants.KEY_PICTURE_RATIO, ratioString);
editor.apply();
pictureRatio = ratioString;

vendor/mediatek/proprietary/packages/apps/Camera/src/com/mediatek/camera/setting/SettingUtils.java

@@ -259,7 +259,8 @@ public class SettingUtils {
String ratioString = null;
if (supportedRatios != null && supportedRatios.size() > 0) {
SharedPreferences.Editor editor = sharedPreferences.edit();
- ratioString = supportedRatios.get(supportedRatios.size() - 1);
+ //ratioString = supportedRatios.get(supportedRatios.size() - 1);
+ ratioString = supportedRatios.get(0);//devin.20180420
editor.putString(SettingConstants.KEY_PICTURE_RATIO, ratioString);
editor.apply();

9. 文件默认显示内部存储设备

     public static boolean mustShowDeviceRoot(Intent intent) {
/// M: Discussed with QA, this option should always be shown
- return false;
+ return true;//devin.20180423
//return intent.getBooleanExtra(DocumentsContract.EXTRA_SHOW_ADVANCED, false);
}

10. Camera 屏蔽高温报警和连拍

vendor/mediatek/proprietary/packages/apps/Camera/src/com/mediatek/camera/AdditionManager.java

@@ -78,12 +78,12 @@ public class AdditionManager {
mIContinuousShotAddition = new ContinuousShot(cameraContext);
mDistanceInfo = new DistanceInfo(cameraContext);
mRemoteCameraAddition = new RemoteCameraAddition(cameraContext);
- mNormalAddition.add(new ThermalThrottle(cameraContext));
+ // mNormalAddition.add(new ThermalThrottle(cameraContext));
mPhotoAddtion.add(new Asd(cameraContext));
- mPhotoAddtion.add(mIContinuousShotAddition);
+ //mPhotoAddtion.add(mIContinuousShotAddition);
mNormalAddition.add(mDistanceInfo);
mPhotoAddtion.add(mRemoteCameraAddition);
- mDenoiseAddition.add(mIContinuousShotAddition);
+ // mDenoiseAddition.add(mIContinuousShotAddition);
}

vendor/mediatek/proprietary/packages/apps/Camera/src/com/mediatek/camera/addition/thermalthrottle/ThermalThrottle.java

@@ -148,7 +148,7 @@ public class ThermalThrottle extends CameraAddition {
private void updateCountDownTime(final Activity activity) {
Log.d(TAG, "[updateCountDownTime]mCountDown = " + mWatingTime + ",mIsResumed = "
+ mIsResumed);
- if (isTemperTooHigh()) {
+ if (false/**isTemperTooHigh()**/) {
if (mWatingTime > 0) {
mWatingTime--;
mAlertDialog.setCountDownTime(String.valueOf(mWatingTime));

11. 低电量不能开启手电筒

vendor/mediatek/proprietary/packages/apps/SystemUI/src/com/android/systemui/statusbar/policy/FlashlightControllerImpl.java

+import android.os.BatteryManager;
+import android.widget.Toast; public void setFlashlight(boolean enabled) { + BatteryManager batteryManager=(BatteryManager)mContext.getSystemService(mContext.BATTERY_SERVICE);
+ int counter = batteryManager.getIntProperty(BatteryManager.BATTERY_PROPERTY_CHARGE_COUNTER);
+ int averge = batteryManager.getIntProperty(BatteryManager.BATTERY_PROPERTY_CURRENT_AVERAGE);
+ int current_now = batteryManager.getIntProperty(BatteryManager.BATTERY_PROPERTY_CURRENT_NOW);
+ Log.d(TAG,"FlashlightControllerImpl::setFlashlight...counter:"+counter+", averge:"+averge+", current_now:"+current_now);
+
+ boolean enoughtBatteryLevel = counter >= 3;
+ if(!enoughtBatteryLevel){
+ Toast.makeText(mContext, "low battery level", 3000).show();
+ }
+
+ enabled = enabled&enoughtBatteryLevel; boolean pendingError = false;
synchronized (this) {
if (mCameraId == null) return;

12. 添加虚拟键振动功能

frameworks/base/services/core/java/com/android/server/policy/PhoneWindowManager.java

@@ -6097,7 +6097,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {
} boolean useHapticFeedback = down
- && (policyFlags & WindowManagerPolicy.FLAG_VIRTUAL) != 0
+ // && (policyFlags & WindowManagerPolicy.FLAG_VIRTUAL) != 0
&& event.getRepeatCount() == 0;

13. 去掉关闭网络数据时的叉号

vendor/mediatek/proprietary/packages/apps/SystemUI/src/com/android/systemui/statusbar/policy/TelephonyIcons.java

-    static final int ICON_DATA_DISABLED = R.drawable.stat_sys_data_disabled;
+ static final int ICON_DATA_DISABLED = -1/**R.drawable.stat_sys_data_disabled**/; - static final int QS_ICON_DATA_DISABLED = R.drawable.ic_qs_data_disabled;
+ static final int QS_ICON_DATA_DISABLED = -1/**R.drawable.ic_qs_data_disabled**/;

14. 切换语言后设置中的"勿扰偏好设置"菜单下的自动规则字符串不刷新

frameworks/base/services/core/java/com/android/server/notification/NotificationManagerService.java

@@ -818,8 +818,9 @@ public class NotificationManagerService extends SystemService {
@Override
public void onReceive(Context context, Intent intent) {
if (Intent.ACTION_LOCALE_CHANGED.equals(intent.getAction())) {
- mZenModeHelper.updateDefaultZenRules();
+ //mZenModeHelper.updateDefaultZenRules(); devin.2018419
mRankingHelper.onLocaleChanged(context, ActivityManager.getCurrentUser());
+ mZenModeHelper = new ZenModeHelper(getContext(), mHandler.getLooper(), mConditionProviders);//devin.2018419
}
}
};

15. 客制化BT,WiFi direct,WLAN热点名称

BT:device/generic/common/bluetooth/bdroid_buildcfg.h

-#define BTM_DEF_LOCAL_NAME   "Android Bluedroid"
+#define BTM_DEF_LOCAL_NAME "Vox_5S"

WiFi direct:vendor/mediatek/proprietary/packages/apps/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java

@@ -2659,6 +2659,8 @@ class DatabaseHelper extends SQLiteOpenHelper {
loadSetting(stmt, Settings.Global.ENHANCED_4G_MODE_ENABLED,
ImsConfig.FeatureValueConstants.ON); + loadSetting(stmt, Settings.Global.WIFI_P2P_DEVICE_NAME,"Vox_5S");
+
/// M: Load MTK added Global providers before Android M.
mUtils.loadCustomGlobalSettings(stmt);

WLAN热点:frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiApConfigStore.java

@@ -207,8 +207,9 @@ public class WifiApConfigStore {
*/
private WifiConfiguration getDefaultApConfiguration() {
WifiConfiguration config = new WifiConfiguration();
- config.SSID = mContext.getResources().getString(
- R.string.wifi_tether_configure_ssid_default) + "_" + getRandomIntForDefaultSsid();
+ //config.SSID = mContext.getResources().getString(
+ // R.string.wifi_tether_configure_ssid_default) + "_" + getRandomIntForDefaultSsid();
+ config.SSID = "Vox_5S";
config.allowedKeyManagement.set(KeyMgmt.WPA2_PSK);
String randomUUID = UUID.randomUUID().toString();
//first 12 chars from xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx

16. 12小时制,锁屏/状态栏增加A/PM显示

锁屏:vendor/mediatek/proprietary/packages/apps/SystemUI/res-keyguard/values/strings.xml

-    <string name="keyguard_widget_12_hours_format" translatable="false">h:mm</string>
+ <string name="keyguard_widget_12_hours_format" translatable="false">aa</string>

vendor/mediatek/proprietary/packages/apps/SystemUI/src/com/android/keyguard/KeyguardStatusView.java

@@ -308,9 +308,9 @@ public class KeyguardStatusView extends GridLayout {
clockView12 = DateFormat.getBestDateTimePattern(locale, clockView12Skel);
// CLDR insists on adding an AM/PM indicator even though it wasn't in the skeleton
// format. The following code removes the AM/PM indicator if we didn't want it.
- if (!clockView12Skel.contains("a")) {
+ /* meng if (!clockView12Skel.contains("a")) {
clockView12 = clockView12.replaceAll("a", "").trim();
- }
+ }*/ clockView24 = DateFormat.getBestDateTimePattern(locale, clockView24Skel);

状态栏:vendor/mediatek/proprietary/packages/apps/SystemUI/src/com/android/systemui/statusbar/policy/Clock.java

@@ -108,8 +108,9 @@ public class Clock extends TextView implements DemoMode, Tunable, CommandQueue.C
try {
mSystemUIFactoryBase = OpSystemUICustomizationFactoryBase.getOpFactory(context);
mStatusBarExt = mSystemUIFactoryBase.makeSystemUIStatusBar(context);
- mAmPmStyle = mStatusBarExt.getClockAmPmStyle(a.getInt(R.styleable.Clock_amPmStyle,
- AM_PM_STYLE_GONE));
+ //mAmPmStyle = mStatusBarExt.getClockAmPmStyle(a.getInt(R.styleable.Clock_amPmStyle,
+ // AM_PM_STYLE_GONE));
+ mAmPmStyle = AM_PM_STYLE_NORMAL;
mShowDark = a.getBoolean(R.styleable.Clock_showDark, true);
} finally {
a.recycle();

17. 长按Home键 取消屏幕固定

frameworks/base/core/res/res/values/strings.xml

-    <string name="lock_to_app_toast">To unpin this screen, touch &amp; hold Back and Overview
- buttons</string>
+ <string name="lock_to_app_toast">To unpin this screen, touch &amp; hold Home buttons</string>

vendor/mediatek/proprietary/packages/apps/SystemUI/res/values/strings.xml

-    <string name="screen_pinning_description">This keeps it in view until you unpin. Touch &amp; hold Back and Overview to unpin.</string>
+ <string name="screen_pinning_description">This keeps it in view until you unpin. Touch &amp; hold Home to unpin.</string>

frameworks/base/services/core/java/com/android/server/policy/PhoneWindowManager.java

+import android.app.IActivityManager;
+import android.view.accessibility.AccessibilityManager;
+import android.view.accessibility.AccessibilityManager.AccessibilityServicesStateChangeListener;
+import android.app.ActivityManagerNative; + private void onLongPressBackMenu(){
+ IActivityManager activityManager = ActivityManagerNative.getDefault();
+ boolean touchExplorationEnabled = mAccessibilityManager.isTouchExplorationEnabled();
+ try {
+ boolean inLockTaskMode = activityManager.isInLockTaskMode();
+ Log.d("joyatel","onLongPressBackMenu......inLockTaskMode:"+inLockTaskMode+", touchExplorationEnabled:"+touchExplorationEnabled);
+ if (inLockTaskMode && !touchExplorationEnabled) {
+ activityManager.stopLockTaskMode();
+ }
+
+
+ } catch (RemoteException e) {
+ Log.d(TAG, "Unable to reach activity manager", e);
+ }
+
+
+ } @@ -3488,6 +3511,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {
} else if ((event.getFlags() & KeyEvent.FLAG_LONG_PRESS) != 0) {
if (!keyguardOn) {
handleLongPressOnHome(event.getDeviceId());
+ onLongPressBackMenu();
}
}

18. 联系人-任意联系人-设置-设置铃声-默认铃声的状态下点击添加铃声,返回后没有焦点packages/providers/MediaProvider/src/com/android/providers/media/RingtonePickerActivity.ja+ ///devin.20180518 @{

+    protected void onResume() {
+ super.onResume();
+ requeryForAdapter();
+ }
+ ///@} private void requeryForAdapter() {
// Refresh and set a new cursor, closing the old one.
initRingtoneManager();
mAdapter.changeCursor(mCursor); // Update checked item location.
- int checkedPosition = POS_UNKNOWN;
+ int checkedPosition = /*POS_UNKNOWN*/getCheckedItem();//devin.20180518
for (int i = 0; i < mAdapter.getCount(); i++) {
if (mAdapter.getItemId(i) == mCheckedItemId) {
checkedPosition = getListPosition(i);

 

19.主界面hotseat打开相机,底部有白线
packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
@@ -2672,6 +2672,7 @@ public class Launcher extends BaseActivity
// private contract between launcher and may be ignored in the future).
boolean useLaunchAnimation = (v != null) &&
!intent.hasExtra(INTENT_EXTRA_IGNORE_LAUNCH_ANIMATION);
+ useLaunchAnimation = false; //andy
Bundle optsBundle = useLaunchAnimation ? getActivityLaunchOptions(v) : null; UserHandle user = item == null ? null : item.user;

20. 默认SIM卡短信设置去掉每次都询问

  vendor/mediatek/proprietary/packages/apps/MtkSettings/ext/src/com/mediatek/settings/ext/DefaultRCSSettings.java

     public boolean isNeedAskFirstItemForSms() {
Log.d("@M_" + TAG, "isNeedAskFirstItemForSms");
- return true;
+ return false;///mh.20180523 default=true
}

vendor/mediatek/proprietary/packages/apps/MtkSettings/src/com/android/settings/sim/SimDialogActivity.java

    private int getPickSmsDefaultSub(final List<SubscriptionInfo> subInfoList,
int value) {
int subId = SubscriptionManager.INVALID_SUBSCRIPTION_ID;
if (value < 1) {
int length = subInfoList == null ? 0 : subInfoList.size();
//if (length == 1) {mh.20180528
subId = subInfoList.get(value).getSubscriptionId();
//} else {
// subId = MtkDefaultSmsSimSettings.ASK_USER_SUB_ID;
//}
} else if (value >= 1 && value < subInfoList.size() + 1) {
subId = subInfoList.get(value).getSubscriptionId();
}
subId = mRCSExt.getDefaultSmsClickContentExt(subInfoList, value, subId);
Log.d(TAG, "getPickSmsDefaultSub, value: " + value + ", subId: " + subId);
return subId;
}

Android 8.1 MTK6739修改文档的更多相关文章

  1. Mongodb:修改文档结构后出现错误:Element '***' does not match any field or property of class ***.

    Mongodb:修改文档结构后出现错误:Element '***' does not match any field or property of class ***. Mongodb是一种面向文档的 ...

  2. 将Word文档发给别人时如何限制别人只能修改文档部分内容

    将Word文档发给别人时如何限制别人只能修改文档部分内容  转自:互联网.时间:2014-04-16   作者:snow   来源:互联网 在很多情况下我们都不希望别人修改我们的文档内容,特别实在将W ...

  3. MongoDB--使用修改器修改文档

    可以使用修改器啦修改文档,比如增加.删除文档的键值.使用修改器首先要定位到某个文档, 然后再增加相应的修改选项,需要使用update语句 1.$inc修改器修改文档 > db.users.fin ...

  4. 测试驱动开发实践5————testSave之修改文档分类

    [内容指引] 1.确定"修改文档分类"的微服务接口及所需的参数 2.设计测试用例及测试用例合并 3.为测试用例赋值并驱动开发 上一篇我们通过17个测试用例完成了"新增文档 ...

  5. dedecms后台每页文章条数如何修改(“文档列表”每一页显示的文档条数)

    小明在学习采集,弄了个dedecms作为发布平台,几个小时后跑来报喜说好简单,但又不想制造那么多spam,每个分类只保留几条就好.在后台删除这些文章,每页只显示30个,看了下有100多页,立马沮丧了, ...

  6. bs4--官文--修改文档树

    修改文档树 Beautiful Soup的强项是文档树的搜索,但同时也可以方便的修改文档树 修改tag的名称和属性 在 Attributes 的章节中已经介绍过这个功能,但是再看一遍也无妨. 重命名一 ...

  7. SharePoint中用Power shell命令修改文档的创建时间

    第一步:pnp组件连接到SharePointConnect-PnpOnline -url 网站地址 第二步:查出文档库及文档库下所有的文件 Get-PnPListItem -List 文档库名称 第三 ...

  8. Android多媒体--MediaCodec 中文API文档

    *由于工作需要,需要利用MediaCodec实现Playback及Transcode等功能,故在学习过程中翻译了Google官方的MediaCodec API文档,由于作者水平限制,文中难免有错误和不 ...

  9. Android打开系统的Document文档图片选择

    打开Document UI 过滤图片 private void startAcitivty() { Intent intent = new Intent(); intent.setAction(&qu ...

随机推荐

  1. express+mongoDB(mLab)做一个todolist小项目

    这是在网课上学习的,先建立一个express-todolist文件夹作为项目跟目录 另外,我们直接把项目上用到的css文件和js文件下载下来放在项目里 这里直接贴出来 先建立一个public文件夹,放 ...

  2. (7)打造简单OS-加载内核

    一.简要说明 我们在第五讲[(5)打造简单OS-进入保护模式]中的mbr.S 汇编文件有段这样的代码 mov eax, 0x2 ; 起始扇区lba地址,从间隔第二个扇区开始 mov bx, 0x900 ...

  3. Redis删除相同前缀的key

          如何优雅地删除Redis set集合中前缀相同的key?       Redis中有删除单条数据的命令DEL,却没有批量删除特定前缀key的指令,但我们经常遇到需要根据前缀来删除的业务场景 ...

  4. JS-七大查找算法

    顺序查找 二分查找 插值查找 斐波那契查找 树表查找 分块查找 哈希查找 查找定义:根据给定的某个值,在查找表中确定一个其关键字等于给定值的数据元素(或记录).查找算法分类:1)静态查找和动态查找:注 ...

  5. xposed代码示例

    package com.example.xposedhook; import android.util.Log; import de.robv.android.xposed.IXposedHookLo ...

  6. python学习之模块:xlsxwriter

    1.安装xlsxwriter模块 pip install xlsxwriter 2.使用 import xlsxwriter workbook = xlsxwriter.Workbook('hello ...

  7. qt 创建程序目录

    voidinitDir() { QStringuserFilePath=QStandardPaths::writableLocation(QStandardPaths::DocumentsLocati ...

  8. php接口数据安全解决方案(一)

    前言 目录介绍 登录鉴权图 接口请求安全性校验整体流程图 代码展示 演示用户登录 演示获取用户信息 文章完整代码地址 后记 前言 目的: 1.实现前后端代码分离,分布式部署 2.利用token替代se ...

  9. Unix/Linux系统下获得时间戳函数

    在Unix/Linux系统下,使用gettimeofday函数来获得当前系统的时间戳,精度可达到微秒(microsecond,即μs)级别. 通过结构体timeval来存放当前时间戳的信息: #ifn ...

  10. bat命令编写大全

    bat命令编写大全 摘自:https://blog.csdn.net/haibo19981/article/details/52161653 2016年08月09日 12:26:31 爱睡觉的猫L 阅 ...