After updating to 7.1.2 on Pixel XL (Marlin), I noticed that this no longer worked.
An updated CarrierEntitlement.apk was generated, and I made the 05TetherMod file contain the following entries. They may not both be required. Prior to adding them, even with the modified APK, 'tethering' was greyed out.
settings put global tether_dun_required 0 setprop net.tethering.noprovisioning 1; mount -o bind /su/CarrierEntitlement/CarrierEntitlement.apk /system/priv-app/CarrierEntitlement/CarrierEntitlement.apk
You can go ahead and push the attached file instead of the file in the first post, and replace it in /su/CarrierEntitlement.
adb push CarrierEntitlement.og.s.apk /sdcard/CarrierEntitlement.apk
For the interested in what goes into the pudding,
Fetch the /system/priv-app/CarrierEntitlement/CarrierEntitlement.apk file;
cp /system/priv-app/CarrierEntitlement/CarrierEntitlement.apk /sdcard/CarrierEntitlement.og.apk
Then pull using adb
adb pull /sdcard/CarrierEntitlement.og.apk
Use apktool to decompile;
apktool d CarrierEntitlement.og.apk
Remove the calls to carrier-specific provisioning, and instead return a null-response.
Per Fenny's guide, the following function was patched to this, in the file smali/com/google/android/carrierentitlement/CarrierEntitlement.smali
.method public static getCarrierEntitlement(Landroid/content/Context;)Lcom/google/android/carrierentitlement/CarrierEntitlement; .locals 3 .param p0, "context" # Landroid/content/Context; .prologue .line 103 const/4 v2, 0x0 return-object v2 .end method
rebuild the thing;
apktool b CarrierEntitlement.og
Re-sign, I don't think the signatures matter, but I didn't feel like spending the evening finding out with a bricked phone. Fenny apparently used this, and I did the same;
Then push the signed file;Code:
java -jar sign.jar ~/CarrierEntitlement.og/dist/CarrierEntitlement.og.apk
Follow directions, with extra lines covered above added to 05TetherModCode:
adb push CarrierEntitlement.og/dist/CarrierEntitlement.og.s.apk /sdcard/CarrierEntitlement.apk
I apologize for my ignorance - are you saying that the files in the first post will no longer work? I was planning on just flashing the zip. Assuming that to be the case, I'm a bit confused on specifically what I will do different. Can I simply follow the steps on the first post just with your file? I'm guessing that's not the case, just not sure when / where you would type the extra lines you added above and which ones are specifically needed. Sorry I'm a noob, but I appreciate your efforts/help!