Skip to content

Commit

Permalink
Fix manual network search
Browse files Browse the repository at this point in the history
  • Loading branch information
vm03 authored and Quarx2k committed Aug 10, 2015
1 parent 6685386 commit 41903b2
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 1 deletion.
3 changes: 3 additions & 0 deletions BoardConfig.mk
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ USE_OPENGL_RENDERER := true
# Hardware tunables framework
BOARD_HARDWARE_CLASS := device/lge/w7/cmhw/

# RIL
BOARD_RIL_CLASS := ../../../device/lge/w7/ril/

# Bluetooth
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/lge/w7/bluetooth
BOARD_HAVE_BLUETOOTH := true
Expand Down
3 changes: 2 additions & 1 deletion device_w7.mk
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,8 @@ PRODUCT_PROPERTY_OVERRIDES += \
persist.radio.call_type=1 \
ro.config.vc_call_vol_steps=7 \
ro.modem.no_wdog_chk=1 \
persist.call_recording.enabled=1
persist.call_recording.enabled=1 \
ro.telephony.ril_class=LgeRIL

PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
persist.sys.usb.config=mtp,adb
Expand Down
50 changes: 50 additions & 0 deletions ril/telephony/java/com/android/internal/LgeRIL.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
/*
* Copyright (C) 2012 The CyanogenMod Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.android.internal.telephony;

import static com.android.internal.telephony.RILConstants.*;

import android.content.Context;
import android.os.AsyncResult;
import android.os.Message;


public class LgeRIL extends RIL implements CommandsInterface {
public LgeRIL(Context context, int networkMode, int cdmaSubscription, Integer instanceId) {
super(context, networkMode, cdmaSubscription, instanceId);

mQANElements = 5;
}

@Override
public void
setNetworkSelectionModeManual(String operatorNumeric, Message response) {
RILRequest rr
= RILRequest.obtain(RIL_REQUEST_SET_NETWORK_SELECTION_MANUAL,
response);

if (RILJ_LOGD) riljLog(rr.serialString() + "> " + requestToString(rr.mRequest)
+ " " + operatorNumeric);

rr.mParcel.writeInt(2);
rr.mParcel.writeString(operatorNumeric);
rr.mParcel.writeString("NOCHANGE");

send(rr);
}

}

0 comments on commit 41903b2

Please sign in to comment.