Android 12 13 系统设置单双卡

在/LA.UM_QSSI11/device/qcom$ grep -rn "persist.radio.multisim.config"
common/rootdir/etc/init.class_main.sh:119:    multisim=`getprop persist.radio.multisim.config`
QSSI11/device/qcom/common/base.mk:1197:  

 PRODUCT_PROPERTY_OVERRIDES += persist.radio.multisim.config=dsds

persist.radio.multisim.config dsds // 双卡双待

persist.radio.multisim.config dsda // 双卡双通

persist.radio.multisim.config ssss // 单卡

重新编译AP文件,烧录重启。

adb shell

getprop persist.radio.multisim.config

QSSI12\frameworks\base\telephony\java\android\telephony\TelephonyManager.java

这块受frameworks单卡或多卡的控制 代码如下:
建议frameworks设置为单卡:
mTelephonyManager = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);
mIsMultiSim = mTelephonyManager.getPhoneCount() &g

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
你可以通过在 TableLayout 中的每个 TableRow 中设置不同的背景来实现单双行不同的背景效果。具体步骤如下: 1. 在 res/drawable 目录下创建两个 XML 文件,分别命名为 odd_bg.xml 和 even_bg.xml。这两个文件分别代表了奇数行和偶数行的背景。 2. 在 odd_bg.xml 中添加以下内容: ```xml <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <solid android:color="@color/odd_color" /> </shape> ``` 其中,@color/odd_color 代表了奇数行的背景颜色。 3. 在 even_bg.xml 中添加以下内容: ```xml <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <solid android:color="@color/even_color" /> </shape> ``` 其中,@color/even_color 代表了偶数行的背景颜色。 4. 在 TableLayout 中添加每个 TableRow 的时候,判断当前行是奇数行还是偶数行,然后设置不同的背景。 ```java for (int i = 0; i < rowCount; i++) { TableRow tableRow = new TableRow(this); // 判断当前行是奇数行还是偶数行 if (i % 2 == 0) { tableRow.setBackgroundResource(R.drawable.even_bg); } else { tableRow.setBackgroundResource(R.drawable.odd_bg); } // 添加其他控件到 TableRow 中 ... tableLayout.addView(tableRow); } ``` 其中,R.drawable.even_bg 和 R.drawable.odd_bg 分别对应了上面创建的两个 XML 文件。 这样就可以实现单双行不同的背景效果了。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值