如何关闭高层业务

来源:互联网 发布:剑灵for mac 编辑:程序博客网 时间:2024/04/30 17:26
 

如何关闭高层业务

在入库时,为了进行协议一制性测试,需要关闭高层业务。

比如关闭DCD、飞信、移动MM、、、、、、因为它们会主动发动数据连接(PDP连接),进行数据更新。

下面介绍一下如何关闭高层业务。

1.打开Log

在做测试前一定要打开AP Log和CP Log进行Log的抓取,接着用数据线将样机连接到PC机上,选择ADB模式。

注:如果没有安装ADB驱动,必须先安装,才能使用。(ADB安装见附录)

2.关闭高层业务

1)移除下列apk应用程序:

adb shell

#rm /system/app/Linx.apk

#rm /system/app/BugReporter.apk

#rm /system/app/Mail.apk.bak

#rm /system/carrier/DMClient.apk

#rm /system/carrier/139Mail.apk

#rm /system/carrier/DCD.apk

#rm /system/carrier/Fetion.apk

#rm /opl/apps/apk/Motorolasmsautoreg.apk

#rm /opl/telephony/tel/eeh_livetime

更改配置文件.

adb pull /opl/etc/system.prop d:\

modify ro.ril.check.cfu = true to ro.ril.check.cfu = false.

adb push d:\system.prop /opl/etc/system.prop

 

Only For CTA test, For install PsKiller.apk. If have no SD card, please try adb install PsKiller.apk.

This apk is to remove APN from phone. Please choose remove all apn before test.

完成了以上步骤后,请重新启动手机,顺便提一下,请全部移除上面的要求apk应用程序。

 

附录:

 

一.常用指令:

1.     AT+CFUN=0                (关闭飞行模式)

2.     AT+CFUN=1                (退出飞信模式)

3.     PDP ative:               (PDP激活指令输入三条)

AT+CGEQREQ=1,3,64,64

AT+CGDCONT=1,”IP”

AT+CGACT=1,1

4.     AT+CGEQREQ=1,3,64,2048       (设置上下行速度指令)

 

二.关掉移动MM   删掉rm /system/carrier/MobileMarket.apk

 

三.关掉AP热点    修改/opl/etc/system.prop  ro.tether.denied = true

 

四.WiFi节能模式关闭(需要进入到ADB模式)

   1. 如果手机连接上了AP, 等得到IP地址后就进入节能模式.

     如果没有任何连接,默认情况是退出了节能模式的,可以通过命令"iwconfig eth0 power on"进入节能模式.

 

   2. 退出节能模式:

     手机连上AP并得到IP地址后, 通过命令"iwconfig eth0 power off" 即可退出节能模式.

 

五.充电截止后图标一直在滚动的问题替换软件中的boot_normal.img文件

 

六.关闭上层软件(标记红色的命令)

#edit system.prop

    #1. change "ro.ril.check.cfu = true" to "ro.ril.check.cfu = false"--呼叫转移关闭

    #2. add "apps.linx.boot_reg = false" to opl/etc/system.prop

    #-- 在第一次开机或第一次主清除后会激活PDP进行数据连接,

    #为避免问题需要在system.prop中添加此行命令。

    adb push $cur_dir/YULONG/system.prop  /opl/etc/system.prop

   

    #--LPR report livetime(each 6 hours)

    adb shell mv /opl/telephony/tel/eeh_livetime /opl/telephony/tel/eeh_livetime.bak

   

    #---DM客户端关闭

    adb shell mv /system/carrier/DMClient.apk /system/carrier/DMClient.apk.bak

    # ---DCD客户端关闭

    adb shell mv /system/carrier/DCD.apk /system/carrier/DCD.apk.bak

    #飞信关闭

    adb shell mv /system/carrier/Fetion.apk /system/carrier/Fetion.apk.bak

    #--139邮箱关闭

    adb shell mv /system/carrier/139Mail.apk /system/carrier/139Mail.apk.bak

   

    # --邮箱关闭

    adb shell mv /system/app/Mail.apk /system/app/Mail.apk.bak

    #--BugReporter关闭

    adb shell mv /system/app/BugReporter.apk /system/app/BugReporter.apk.bak

 

七.命令之 adb adb (Android Debug Bridge)

 adb devices              - list all connected devices

 adb start-server       - ensure that there is a server running

 adb kill-server          - kill the server if it is running

 adb push <local> <remote>    - copy file/dir to device

 adb pull <remote> <local>      - copy file/dir from device

 adb shell                  - run remote shell interactively

 adb logcat [ <filter-spec> ] - View device log

支持原创,谢谢

原创粉丝点击