Post Reply

[Q] How to turn off phone in my own ROM

OP nathan_atheer

29th May 2014, 08:59 PM   |  #1  
OP Junior Member
Thanks Meter: 1
 
4 posts
Join Date:Joined: May 2014
I am basing my ROM on the Qualcomm's MSM8974 device. My device does not have a phone radio, but Android claims there is one. So it has Phone app, and Data Usage in setting, and Tethering options.

How do I disable this at build time? Is it a system.prop or a build variable? Maybe Qualcomm turned it on by default, and I have to delete some line? Anyone have a hint?
29th May 2014, 09:22 PM   |  #2  
Senior Member
Thanks Meter: 185
 
561 posts
Join Date:Joined: Feb 2012
Consider removing phone app and editing (decompiling) settings.apk to remove the phone, data usage and thetering sections by editing the setings.xml.
29th May 2014, 09:30 PM   |  #3  
OP Junior Member
Thanks Meter: 1
 
4 posts
Join Date:Joined: May 2014
Quote:
Originally Posted by dxppxd

Consider removing phone app and editing (decompiling) settings.apk to remove the phone, data usage and thetering sections by editing the setings.xml.

I could do that, but that would be a very brute force method, and I don't think its right.

For instance, if I build for the nexus 7, the system image actually has the Phone.apk on it, but after it boots, it disables the Phone app
30th May 2014, 02:29 AM   |  #4  
OP Junior Member
Thanks Meter: 1
 
4 posts
Join Date:Joined: May 2014
Solved
SOLVED
There is an XML file:
./frameworks/base/core/res/res/values/config.xml
That devices generally override with the device/.../overlay directory. In this file is this string array. It is a coded array. The first value of the string is the type, such as ConnectivityManager.TYPE_MOBILE, and the second is 0 or 1 for false/true for Simultanaity.
<string-array translatable="false" name="radioAttributes">
<item>"1,1"</item>
<item>"7,1"</item>
</string-array>
The Following User Says Thank You to nathan_atheer 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


Top Threads in Android Q&A, Help & Troubleshooting by ThreadRank