[Android Software Development] sashakozlovskiy:
Hello everybody. I am android developer and i want to modify fm radio for agm m7 (lineage). I have decompiled app,but when i try to run fm radio and play some fm wave,i get a message,what this function is unavailable now. I have it in /system/app and in /system/priv-app with permissions 644 and 777,i.e i tryed to do it as a system app. Also in /system/priv-app i have text link on libfmjni.so My phone is rooted. As i understood from debug,native method openDev and probably some other methods from native lib return false. In manifest i have:

<?xml version="1.0" encoding="utf-8"?>

<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="2" android:versionName="2.0" package="com.android.fmradio" platformBuildVersionCode="27" platformBuildVersionName="8.1.0">

<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="26" android:usesCleartextTraffic="false"/>

<uses-permission android:name="android.permission.ACCESS_BROADCAST_RADIO"/>

<uses-permission android:name="android.permission.BLUETOOTH"/>

<uses-permission android:name="android.permission.MODIFY_AUDIO_ROUTING"/>

<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>

<uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"/>

<uses-permission android:name="android.permission.RECORD_AUDIO"/>

<uses-permission android:name="android.permission.WAKE_LOCK"/>

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

<application android:label="@string/app_name" android:icon="@Mipmap/ic_launcher" android:hardwareAccelerated="true">

<activity android:theme="@style/AppTheme" android:label="@string/app_name" android:name="com.android.fmradio.FmMainActivity" android:launchMode="standard" android:screenOrientation="portrait" android:windowSoftInputMode="adjustPan" android:usesCleartextTraffic="false">

<intent-filter>

<action android:name="android.intent.action.MAIN"/>

<category android:name="android.intent.category.LAUNCHER"/>

</intent-filter>

</activity>

<activity android:theme="@style/LightTheme" android:label="@string/station_title" android:name="com.android.fmradio.FmFavoriteActivity" android:launchMode="singleTask" android:configChanges="screenSize" android:windowSoftInputMode="stateAlwaysHidden"/>

<service android:name="com.android.fmradio.FmService" android:exported="false">

<intent-filter>

<action android:name="com.android.fmradio.IFmRadioService"/>

</intent-filter>

</service>

<provider android:name="com.android.fmradio.FmProvider" android:exported="false" android:authorities="com.android.fmradio"/>

<activity android:theme="@style/LightTheme" android:label="@string/record_title" android:name="com.android.fmradio.FmRecordActivity" android:launchMode="singleTask" android:configChanges="screenSize|keyboardHidden|mnc|mcc"/>

<activity android:label="@string/app_name" android:name="com.android.fmradio.FmEmActivity" android:clearTaskOnLaunch="true" android:launchMode="singleTask" android:configChanges="screenSize|orientation|keyboardHidden|mnc|mcc">

<intent-filter>

<action android:name="com.mediatek.fmradio.FmRadioEmActivity"/>

<category android:name="android.intent.category.LAUNCHER"/>

</intent-filter>

</activity>

<receiver android:name="com.android.fmradio.FMMediaButtonIntentReceiver">

<intent-filter>

<action android:name="android.intent.action.MEDIA_BUTTON"/>

</intent-filter>

</receiver>

</application>

</manifest>

May be it connected with differents signatures of custom firmware and my app? If true,whether it possible sign firmware with other signature,if i haven't source code of firmware for agm m7? May be this problem not connected with signatures?

Also maybe someone have decompiled fm radio for xiaomi redmi note 9 s,because i want to change one thing in this app.