This commit is contained in:
wenyifan 2023-10-15 12:46:30 +08:00
parent 7b1020b353
commit 7a41556495
5 changed files with 5 additions and 25 deletions

View File

@ -18,7 +18,7 @@ android {
buildTypes {
release {
minifyEnabled false
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
@ -29,8 +29,6 @@ android {
}
dependencies {
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'com.google.android.material:material:1.5.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'

View File

@ -21,7 +21,7 @@
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.ModemTool"
android:theme="@android:style/Theme.DeviceDefault.Light"
android:process="com.android.phone"
tools:targetApi="31">

View File

@ -1,5 +1,6 @@
package run.evan.modemtool;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.telephony.CellIdentityNr;
@ -15,16 +16,13 @@ import android.widget.EditText;
import android.widget.Spinner;
import android.widget.Toast;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import com.qualcomm.qcrilhook.QcRilHookCallback;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.util.List;
public class MainActivity extends AppCompatActivity {
public class MainActivity extends Activity {
private static final String TAG = "ModemTool";
@ -119,7 +117,7 @@ public class MainActivity extends AppCompatActivity {
cellInfoCallback = new TelephonyManager.CellInfoCallback() {
@Override
public void onCellInfo(@NonNull List<CellInfo> allCellInfo) {
public void onCellInfo(List<CellInfo> allCellInfo) {
for (CellInfo cellInfo : allCellInfo) {
if (cellInfo instanceof CellInfoNr) {
if(cellInfo.isRegistered()){

View File

@ -1,7 +0,0 @@
<resources xmlns:tools="http://schemas.android.com/tools">
<!-- Base application theme. -->
<style name="Base.Theme.ModemTool" parent="Theme.Material3.DayNight.NoActionBar">
<!-- Customize your dark theme here. -->
<!-- <item name="colorPrimary">@color/my_dark_primary</item> -->
</style>
</resources>

View File

@ -1,9 +0,0 @@
<resources xmlns:tools="http://schemas.android.com/tools">
<!-- Base application theme. -->
<style name="Base.Theme.ModemTool" parent="Theme.Material3.DayNight">
<!-- Customize your light theme here. -->
<!-- <item name="colorPrimary">@color/my_light_primary</item> -->
</style>
<style name="Theme.ModemTool" parent="Base.Theme.ModemTool" />
</resources>