Quantcast
Channel: xda-developers - Android Software and Hacking General [Developers Only]
Viewing all articles
Browse latest Browse all 3614

[Q] How to remove "CyanogenMod version" from Settings.apk?

$
0
0
First-and-foremost, I believe it is appropriate to ask this question here in this forum, if not, I apologize.

Now to my inquiry. I've kinda hit a brick wall trying to remove an item from the Settings.apk. To be more specific, I'm trying to remove the "CyanogenMod version" item from the "About Phone" menu in the Settings.apk. Here's a picture for reference: http://www.blogcdn.com/www.engadget....1/cm10.1n4.jpg.

So I tried to accomplish this by decompiling the System.apk with apk-multi-tool, going into the strings.xml in the res/values/ directory and removing the following two lines:
Code:

    <string name="mod_version">CyanogenMod version</string>
    <string name="mod_version_default">Unknown</string>

Then I went into the res/xml/ directory, opened up the device_info_settings.xml and removed the following line:
Code:

<Preference android:title="@string/mod_version" android:key="mod_version" android:summary="@string/mod_version_default" style="?android:preferenceInformationStyle" />
After that I went and recompiled it using the "Compile System APK files" option in apk-multi-tool and everything appeared to go perfectly fine. I then took the "unsignedSettings.apk", put it in the system/app/ directory, renamed it to "Settings.apk", and set appropriate permissions. Rebooted my phone, opened the Settings menu, went to "About Phone", and BAM! Big ol' error message: "Unfortunately, Settings has stopped". With one manly tear running down my face, and the feeling of utter defeat, I hit "OK"... Lol, okay, maybe there weren't any tears (:p), but to see the error message was definitely a major disappointment.

Anyhow, if anyone with more experience is willing to give a semi-novice a helping hand, it'd be very greatly appreciated. Thanks! :good:

-----------------------------------------------------------

PS: I'm not sure if this issue correlates to the fact that the "CyanogenMod version" refers to the build.prop code:
Code:

ro.modversion=EXAMPLE
Considering I had no issue removing "CyanogenMod Statistics" from the Settings.apk prior to this (using a similar method to the one described above), I'm rather confused as to why removing the "CyanogenMod version" is such a pain. Unless there's a reference or something somewhere in the code I'm missing... I dunno... :confused:

Viewing all articles
Browse latest Browse all 3614

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>