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

Search This thread

khusika

Forum Moderator / Recognized Developer
Staff member
Feb 14, 2013
2,834
3
7,140
Malang
khusika.dev
Xiaomi 12
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:
[COLOR="Red"]xmlns:android="http://schemas.android.com/apk/res/android">[/COLOR]
	<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
 

Attachments

  • Settings.zip
    3.5 KB · Views: 331
  • CHANGELOG-ROM.txt
    116 bytes · Views: 441
Last edited:

khusika

Forum Moderator / Recognized Developer
Staff member
Feb 14, 2013
2,834
3
7,140
Malang
khusika.dev
Xiaomi 12
SCREENSHOT
uhe5a7es.jpg

5yhe2e8y.jpg
 
Last edited:
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:
[COLOR="Red"]xmlns:android="http://schemas.android.com/apk/res/android">[/COLOR]
	<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

Thank's om :D :good: and awesome guide
 

KuaQ

Senior Member
May 4, 2012
631
1,047
Włocławek
kuaq-projects.meximas.com
Error when recompiling :/
Code:
I: Checking whether sources has changed...
I: Smaling...
[38,4] Error for input '.param': Invalid directive
[39,4] Error for input '.param': Invalid directive
[38,11] mismatched input 'p1' expecting END_METHOD_DIRECTIVE
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: D:\APK-Multi-Toolv1.0.11\APK-Multi-Tool-Stable-RELEASE\APK-Multi-Tool-Stable-RELEASE\projects\Settings.apk\smali\com\android\settings\ktech\ayana$1.smali

I fix it... lastest apktool :cowboy:
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 9
    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:
    [COLOR="Red"]xmlns:android="http://schemas.android.com/apk/res/android">[/COLOR]
    	<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
    5
    2
    1
    Awesome guide om, i'll try soon, :good:
    1
    MANTAP !!! thanks a lot bro