Quantcast
Channel: xda-developers - Android Themes
Viewing all articles
Browse latest Browse all 4090

[GUIDE][SMALI][CM9-11] add Changelog in Settings

$
0
0
NOTE: I've tested this guide, only in CM9-11 rom. I'm not sure it work or not in other rom like Stock Rom
Hello guys, im back with small guide
With this guide, you'll be able to show changelog in settings for your rom like in CM rom

first of all need some requirement for this GUIDE
REQUIREMENT:
- BRAIN
- Patient
- experience
- Know how to decompile/recompiling Apk
- notepad++
- Tool for decompiling, : APKTOOL 2.0.0 beta 9 or latest version
- Tool for Sign apk, : CM Signer

Ok, Lets start

STEP 1
- Decompile Settings.apk

Go to and paste this code below

- Settings.apk\res\value\strings.xml
Code:

    <string name="judul">Rom changelog</string>
    <string name="judul_endas">Changelog</string>
    <string name="loding">Loading changelog...</string>
    <string name="rusak">Unable to load changelog</string>
    <string name="gak_kenal">Unknown</string>
    <string name="kelamin">Version</string>

- Settings.apk\res\xml\device_info_settings.xml
add this line after xmlns:android="http://schemas.android.com/apk/res/android">
Code:

xmlns:android="http://schemas.android.com/apk/res/android">
        <PreferenceScreen android:title="@string/judul" android:key="ayana">
                <intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.ktech.ayana" />
        </PreferenceScreen>

- Settings.apk\AndroidManifest.xml
Code:

        <activity android:label="@string/judul" android:name=".ktech.ayana">
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
            </intent-filter>
        </activity>

- After that, push all source files from attachment in the right directory
- Recompile Settings.apk
- Sign Settings.apk
- Decompile Settings.apk

- Compare the code below with your public

Code:

Settings\smali\com\settings\ktech\

ayana$1.smali
        #52                0x7f070877        type="string" name="judul_endas"
ayana.smali
        #33                0x7f070879        type="string" name="rusak"
        #257                0x7f070878        type="string" name="loding"

- Recompile Settings.apk
- Sign Settings.apk
- Push Settings.apk in your rom


STEP 2
- Push "CHANGELOG-ROM.txt" in /system/etc/here
- Set permission rw-r-r-
- done

Attached Files
File Type: zip Settings.zip - [Click for QR Code] (3.5 KB)
File Type: txt CHANGELOG-ROM.txt - [Click for QR Code] (116 Bytes)

Viewing all articles
Browse latest Browse all 4090

Trending Articles



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