Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[Developer Guide]Lollipop Sense Radio readfix

OP sun_dream

Yesterday, 12:20 PM   |  #1  
sun_dream's Avatar
OP Senior Member
Flag WenZhou
Thanks Meter: 1,537
 
994 posts
Join Date:Joined: Aug 2007
Donate to Me
More
For HTC Device

The following is the Chinese, please help me to translate for English.

以下修复教程其数据来源是Modem服务启动加载:service kickstart /system/bin/qcks -1 modem_st1 -2 modem_st2 -3 radio_config -4 cdma_record -i /vendor/firmware/
(这是一个qcks的读取来源获取,即:你需要四个radio相关分区读取权限设置),有些东西的修复不是 因为一个意外,而是明白它的真正启动来源。


解开boot.img 得到ramdisk文件夹,打开file_contexts文档


搜索文本内容:HTC RIL

你将找到三处/dev/block/mmcblk的分区表内容。

M7设备默认为
/dev/block/mmcblk0p20
/dev/block/mmcblk0p21
/dev/block/mmcblk0p28

它们分别为(NV内容)modem_st1/modem_st2/cdma_record分区


(不需要按照顺序排列,因为它们的权限设置都是一样的,可以被系统自动识别)

只需要修改它们为目标机型即可,
例如Droid DNA为:
/dev/block/mmcblk0p22
/dev/block/mmcblk0p23
/dev/block/mmcblk0p30

我们修改nv的配置读取为正确的分区之后还需要修改radio_config分区(qcks告诉我们还缺少 一个):

继续搜索:qcks
找到内容如下:

/dev/mdm

/dev/ttyUSB[0-1]

/data/qcks

/data/qcks/.*

/data/efs

/data/efs/.*

/dev/block/mmcblk0p18(这是M7设备的默认radio_config分区)

改变/dev/block/mmcblk0p18为你的目标设备分区,例如Droid DNA 为/mmcblk0p17


===========================

当然还没完全解决,如果按照M7的默认设置,你还会遇到设备重启后桌面小组件被重置以及位置服 务无法使用。

那么你需要修改misc与local分区

搜索:block_device_health
找到M7为/dev/block/mmcblk0p19 其对应的是misc分区,修改为你的目标机型即可,Droid DNA为/dev/block/mmcblk0p21.

搜索:local_partition
找到M7为/dev/block/mmcblk0p26 其对应的是misc分区,修改为你的目标机型即可,Droid DNA为/dev/block/mmcblk0p28 .

==========================
如果是老机型。
到此为止算是完全修复好了,然后保存重新打包为boot.img就可以完美读取手机基带信息与各种服务正常 运行。

假如是新机型可能还拥有一个媒体控制分区:set the owner of partition control's block node to media and system

搜索:device_control

并修改block分区地址,其目标地址可以从目标机型的proc/emmc文件获取。假如你的设备没有control分区则可以删除:mmc_block_device_c ontrol整段信息,因为它对于老设备毫无意义。

==========================

By Sun Dream
Last edited by sun_dream; Yesterday at 01:25 PM.
The Following 2 Users Say Thank You to sun_dream For This Useful Post: [ View ]
Yesterday, 01:27 PM   |  #2  
sun_dream's Avatar
OP Senior Member
Flag WenZhou
Thanks Meter: 1,537
 
994 posts
Join Date:Joined: Aug 2007
Donate to Me
More
shafashafashafashafashafashafashafashafashafashafa shafashafa
The Following User Says Thank You to sun_dream For This Useful Post: [ View ]
Yesterday, 01:30 PM   |  #3  
santod040's Avatar
Recognized Developer / Recognized Contributor
Flag NorCal
Thanks Meter: 13,161
 
8,103 posts
Join Date:Joined: Nov 2008
Donate to Me
More
Thanks sun, I already figured this out, but I still had a partition wrong in mine which prevented data.
After looking through yours earlier, I found where I went wrong.
So thanks for posting yours and now also this, as it may help others as well.
Much appreciated!
The Following User Says Thank You to santod040 For This Useful Post: [ View ]
Yesterday, 01:30 PM   |  #4  
santod040's Avatar
Recognized Developer / Recognized Contributor
Flag NorCal
Thanks Meter: 13,161
 
8,103 posts
Join Date:Joined: Nov 2008
Donate to Me
More
TRANSLATION:


For HTC Devices

Unpack boot.img to get the ramdisk folder, open the document file_contexts


Search text: HTC RIL

You will find three / dev / block / mmcblk partition table contents.

M7 device defaults
/ dev / block / mmcblk0p20
/ dev / block / mmcblk0p21
/ dev / block / mmcblk0p28

They were (NV contents) modem_st1 / modem_st2 / cdma_record partition

Its data source is the signal service boot loader: service kickstart / system / bin / qcks -1 modem_st1 -2 modem_st2 -3 radio_config -4 cdma_record -i / vendor / firmware /
(This is a source of qcks reading acquisition, namely: You need to read the four radio-related zoning permission settings)


(Do not need to follow the order, because they have the same permissions, they can be automatically identified)

You only need to modify the target model,
Droid DNA for example:
/ dev / block / mmcblk0p22
/ dev / block / mmcblk0p23
/ dev / block / mmcblk0p30

Then we modify the configuration, so that nv can read the correct partition radio_config also need to modify the partition
(qcks tells us that we also are missing the following):

Continue search: qcks
Found as follows:

/ dev / mdm

/ dev / ttyUSB [0-1]

/ data / qcks

/data/qcks/.*

/ data / efs

/data/efs/.*

/ dev / block / mmcblk0p18 (this is the default partition radio_config M7 devices)

Change / dev / block / mmcblk0p18 partition for your target device, such as the Droid DNA / mmcblk0p17

Now repack the boot.img and then the OS can perfectly read phone baseband information

===========================

Of course, not completely solved, according to the default settings of M7, you will find that the device is reset on restart and the desktop widget and location services can not be used.

Then you need to modify the misc and local zoning

Search: block_device_health
Find M7 is / dev / block / mmcblk0p19 it corresponds misc partition, modify the model to your goal, Droid DNA is / dev / block / mmcblk0p21.

Search: local_partition
Find M7 is / dev / block / mmcblk0p26 it corresponds misc partition, modify the model to your goal, Droid DNA is / dev / block / mmcblk0p28.

==========================

If you are using old models the boot.img can be repacked and can perfectly read phone baseband information with a variety of services running.

If it is a new model, it may also have a Media Control Zoning: so set the owner of partition control's block node to media and system

Search: device_control

And modify the block partition address, destination address can be obtained from its target models proc / emmc file.
If your device does not have control, then the partition can be deleted entirely: (mmc_block_device_control) because it is meaningless for the old equipment.
Last edited by santod040; Yesterday at 01:38 PM.
The Following 4 Users Say Thank You to santod040 For This Useful Post: [ View ]
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes