• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root CM4DX Network Location Fix w/ CRT mod

yawdapaah

Android Expert
Aug 20, 2009
900
288
NJ
Next up is network location. I need someone (brave) to verify that coarse network locations works.
Props to the D2 guys. I didn't even think that the problem could be framework related. I just happened to google CM7 and network location. Their solution was to load the sholes framework (which would obviously fail for the DX). Knowing that it was a framework issue, it was pretty easy to find out the responsible xml and copy the fixes from the 596 framework.

To fix this, I had to edit strings.xml in framework-res.apk and add the following:

@ config_networkLocationProvider to
com.google.android.location.NetworkLocationProvider

@config_geocodeProvider to
com.google.android.location.GeocodeProvider

I also changed this one but I don't know if it's required. I saw ppp0 in the test menu and aLogcat so I figured it was necessary.
@config_datause_iface to
ppp0

All three of those values were set to @Null

Here's the flashable zip - CMod7_Fixes.zip Please mount system before installing.
Here's the .xml file for those that want to do it themselves - http://www.mediafire.com/?d2e55hde8h8x8qp

I added (read Kanged!) the CRT mod as well. Thanks/props to Webst3r @Rootzwiki for doing that.
 
Next up is network location. I need someone (brave) to verify that coarse network locations works.
Props to the D2 guys. I didn't even think that the problem could be framework related. I just happened to google CM7 and network location. Their solution was to load the sholes framework (which would obviously fail for the DX). Knowing that it was a framework issue, it was pretty easy to find out the responsible xml and copy the fixes from the 596 framework.

To fix this, I had to edit strings.xml in framework-res.apk and add the following:

@ config_networkLocationProvider to
com.google.android.location.NetworkLocationProvider

@config_geocodeProvider to
com.google.android.location.GeocodeProvider

I also changed this one but I don't know if it's required. I saw ppp0 in the test menu and aLogcat so I figured it was necessary.
@config_datause_iface to
ppp0

All three of those values were set to @Null

Here's the flashable zip - CMod7_Fixes.zip Please mount system before installing.
Here's the .xml file for those that want to do it themselves - strings.xml

I added (read Kanged!) the CRT mod as well. Thanks/props to Webst3r @Rootzwiki for doing that.

Going to try this now, will let you know once I am done.
 
Upvote 0
@yawdapaah

I haven't really looked at anything for CM7, I just barely installed it for the first time about 1 hour ago :D

Anyway, is the CRT mod the same as always, by just simply editing bools.xml?

Apparently. I've never cared too much for it so I never learned to do it. I just kanged bools.xml from Webst3r and added it to my framework.
 
Upvote 0
I used JRummy's root tools. It changed the network logo fine.

I did this manually by decompiling and compiling the apk :D

I made all the changes that yawdapaah described in his first post; it helps me learn it.

I also made a zip that applies the camera fix and this fix (coarse location fix), I also changed the network tag to "Cyanogen Mod", and I added the change that has the screen turn on when you disconnect the phone from charging.

I'm not sure if we get 10% increments on this I forgot to check (I'm way out of the loop on CM right now), but I'm also going to change the battery to a green slotted type with 10% if it doesn't already have it (haven't done the battery yet though).
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones