I've had a few folks message me with requests for guidance on how to add 4G WiMax to CM7-based ports. I figured I would go ahead and write up this quick guide on how to do it for LeWa OS. This should be very similar with other ROMs.
Let's start with the easy part.
- Copy /system/app/CMWimaxSettings.apk.
- Copy /system/framework/wimax-api.jar.
Decompile /system/framework/framework-res.apk
Edit ./res/xml/bools.xml
- change config_wimaxEnabled value to true
Edit ./res/xml/strings.xml
- change config_wimaxServiceJarLocation value to /system/framework/wimax-api.jar
- change config_wimaxManagerClassname value to com.htc.net.wimax.WimaxController
- change config_wimaxServiceClassname value to com.android.server.WimaxService
Edit ./res/xml/arrays.xml
- in networkAttributes element, add <item>wimax,6,6,2</item> (I add it after wifi)
- in radioAttributes element, add <item>6,1</item> (I add it to the top)
- in config_tether_upstream_regexs element, add <item>wimax\\d</item> (I add it to the bottom)
Now somewhere (probably Settings.apk), you'll want to add a link to it.
Example from my LeWa OS port:
That should be it.
PS-
While you're in arrays.xml and looking at config_tether_upstream_regexs, you should also look for something like wlan\\d (if it's there, it's probably the second item) and change it to eth\\d if you see it. This will fix tethering.
Let's start with the easy part.
- Copy /system/app/CMWimaxSettings.apk.
- Copy /system/framework/wimax-api.jar.
Decompile /system/framework/framework-res.apk
Edit ./res/xml/bools.xml
- change config_wimaxEnabled value to true
Edit ./res/xml/strings.xml
- change config_wimaxServiceJarLocation value to /system/framework/wimax-api.jar
- change config_wimaxManagerClassname value to com.htc.net.wimax.WimaxController
- change config_wimaxServiceClassname value to com.android.server.WimaxService
Edit ./res/xml/arrays.xml
- in networkAttributes element, add <item>wimax,6,6,2</item> (I add it after wifi)
- in radioAttributes element, add <item>6,1</item> (I add it to the top)
- in config_tether_upstream_regexs element, add <item>wimax\\d</item> (I add it to the bottom)
Now somewhere (probably Settings.apk), you'll want to add a link to it.
Example from my LeWa OS port:
Code:
<com.android.settings.IconPreferenceScreen android:title="@string/wimax_settings" android:key="wimax_settings" settings:icon="@drawable/ic_settings_wifi">
<intent android:targetPackage="com.android.settings.wimax" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.wimax.WimaxSettings" />
</com.android.settings.IconPreferenceScreen>
.
That should be it.
PS-
While you're in arrays.xml and looking at config_tether_upstream_regexs, you should also look for something like wlan\\d (if it's there, it's probably the second item) and change it to eth\\d if you see it. This will fix tethering.