[Sony Cross-Device General] wolfmannight:
Xperia XZs Conversation/Messaging Port​

I'm wolfmannight back again to XDA.

Earlier i deleted my account cause i stop working on port...

Now I have bit of time to give you some cool xperia port...

Love and thanks to Sony Dev Team...

Pull out TelephonyProvider.apk from system/priv-app folder

Decompile TelephonyProvider.apk

Add lines in AndroidManifest.xml

<uses-permission android:name="android.permission.UPDATE_APP_OPS_STATS"/>
<application android:allowClearUserData="false" android:backupAgent="TelephonyBackupAgent" android:backupInForeground="true" android:defaultToDeviceProtectedStorage="true" android:directBootAware="true" android:fullBackupOnly="true" android:icon="@mipmap/ic_launcher_phone" android:label="@string/app_label" android:process="com.android.phone" android:restoreAnyVersion="true" android:usesCleartextTraffic="true">
<provider android:authorities="telephony" android:exported="true" android:multiprocess="false" android:name="TelephonyProvider" android:singleUser="true"/>
<provider android:authorities="sms" android:exported="true" android:multiprocess="false" android:name="SemcSmsProvider" android:readPermission="android.permission.READ_SMS" android:singleUser="true"/>
<provider android:authorities="mms" android:exported="true" android:multiprocess="false" android:name="SemcMmsProvider" android:readPermission="android.permission.READ_SMS" android:singleUser="true">
<grant-uri-permission android:pathPrefix="/part/"/>
<grant-uri-permission android:pathPrefix="/drm/"/>
</provider>
<provider android:authorities="smsc" android:exported="true" android:name="SomcSmscProvider" android:singleUser="true" android:writePermission="com.somc.permissions.WRITE_SMSC"/>
<provider android:authorities="mms-sms" android:exported="true" android:multiprocess="false" android:name="SemcMmsSmsProvider" android:readPermission="android.permission.READ_SMS" android:singleUser="true"/>
<provider android:authorities="mms-sms-capability" android:exported="true" android:multiprocess="true" android:name="SomcMmsSmsCapabilityProvider" android:readPermission="com.somc.permissions.READ_MMS_SMS_CAPABILITY" android:singleUser="true"/>
<provider android:authorities="hbpcd_lookup" android:exported="true" android:multiprocess="false" android:name="HbpcdLookupProvider" android:singleUser="true" android:writePermission="android.permission.MODIFY_PHONE_STATE"/>
<service android:exported="false" android:name=".TelephonyBackupAgent$DeferredSmsMmsRestoreService"/>
</application>

Unzip attachment smali.zip.

Merge files in smali folder.

Recompile apk, sign it with system keys, push back apk to system....

Install Messaging apk from apkmirror if install fails download it and put it in system manually...

Keep in touch and give feedback...

AOSP Builds Tested >>> working...

LineageOS Build >>> Panding..

MY STORY.... its funny...

well I Hard bricked my Xperia Z3c for experimenting with TA keys and restoration... i learned lot ....

But never Flash TA manually if its not of your phone or corrupted TA backup... it really can **** your phone.

Phone has no connection via USB, adb and fastboot mode both not working...

If you have any idea or way to get my phone back please PM me..

If you really donate something please PM me...

Working on Settings app port.. soon i post it