some config

更换python的pip镜像源

vi .pip/pip.conf

 [global]
 index-url = https://pypi.tuna.tsinghua.edu.cn/simple

vim配置文件

vi .vimrc

i3配置文件

  • vi .i3/config
  • vi .i3/i3status/config
/** * Perform the specified type of NV config reset. The radio will be taken offline * and the device must be rebooted after the operation. Used for device * configuration by some CDMA operators. * * <p>Requires Permission: * {@link android.Manifest.permission#MODIFY_PHONE_STATE MODIFY_PHONE_STATE} or that the calling * app has carrier privileges (see {@link #hasCarrierPrivileges}). * * TODO: remove this one. use {@link #rebootRadio()} for reset type 1 and * {@link #resetRadioConfig()} for reset type 3 * * @param resetType reset type: 1: reload NV reset, 2: erase NV reset, 3: factory NV reset * @return true on success; false on any failure. * * @hide */ @UnsupportedAppUsage public boolean nvResetConfig(int resetType) { try { ITelephony telephony = getITelephony(); if (telephony != null) { if (resetType == 1 /*1: reload NV reset */) { return telephony.rebootModem(getSlotIndex()); } else if (resetType == 3 /3: factory NV reset /) { return telephony.resetModemConfig(getSlotIndex()); } else { Rlog.e(TAG, "nvResetConfig unsupported reset type"); } } } catch (RemoteException ex) { Rlog.e(TAG, "nvResetConfig RemoteException", ex); } catch (NullPointerException ex) { Rlog.e(TAG, "nvResetConfig NPE", ex); } return false; } / * Rollback modem configurations to factory default except some config which are in whitelist. * Used for device configuration by some carriers. * * <p>Requires Permission: * {@link android.Manifest.permission#MODIFY_PHONE_STATE MODIFY_PHONE_STATE} or that the calling * app has carrier privileges (see {@link #hasCarrierPrivileges}). * * @return {@code true} on success; {@code false} on any failure. * * @hide */ @RequiresPermission(Manifest.permission.MODIFY_PHONE_STATE) @SystemApi public boolean resetRadioConfig() { try { ITelephony telephony = getITelephony(); if (telephony != null) { return telephony.resetModemConfig(getSlotIndex()); } } catch (RemoteException ex) { Rlog.e(TAG, "resetRadioConfig RemoteException", ex); } catch (NullPointerException ex) { Rlog.e(TAG, "resetRadioConfig NPE", ex); } return false; }这两个接口是否可以恢复相关的网络
最新发布
07-14
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值