Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

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

OP K_TECH

12th April 2014, 07:33 PM   |  #1  
K_TECH's Avatar
OP Recognized Contributor
Flag Sidoarjo
Thanks Meter: 825
 
516 posts
Join Date:Joined: Feb 2013
More
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, 95 views)
File Type: txt CHANGELOG-ROM.txt - [Click for QR Code] (116 Bytes, 152 views)
Last edited by K_TECH; 12th April 2014 at 08:09 PM.
The Following 4 Users Say Thank You to K_TECH For This Useful Post: [ View ]
12th April 2014, 07:45 PM   |  #2  
K_TECH's Avatar
OP Recognized Contributor
Flag Sidoarjo
Thanks Meter: 825
 
516 posts
Join Date:Joined: Feb 2013
More
SCREENSHOT

Last edited by K_TECH; 12th April 2014 at 07:47 PM.
The Following 4 Users Say Thank You to K_TECH For This Useful Post: [ View ]
12th April 2014, 07:55 PM   |  #3  
dugeriss's Avatar
Senior Member
Flag Gunung Pati,Semarang
Thanks Meter: 220
 
226 posts
Join Date:Joined: Apr 2013
More
Awesome guide om, i'll try soon,
The Following User Says Thank You to dugeriss For This Useful Post: [ View ]
12th April 2014, 08:29 PM   |  #4  
SatrioDwiPrabowo's Avatar
Senior Member
Flag Karawang Rock City - West Java INDONESIA
Thanks Meter: 391
 
394 posts
Join Date:Joined: May 2012
More
MANTAP !!! thanks a lot bro
The Following User Says Thank You to SatrioDwiPrabowo For This Useful Post: [ View ]
12th April 2014, 09:10 PM   |  #5  
K_TECH's Avatar
OP Recognized Contributor
Flag Sidoarjo
Thanks Meter: 825
 
516 posts
Join Date:Joined: Feb 2013
More
Quote:
Originally Posted by dugeriss

Awesome guide om, i'll try soon,


Quote:
Originally Posted by SatrioDwiPrabowo

MANTAP !!! thanks a lot bro

Enjoy it
The Following 2 Users Say Thank You to K_TECH For This Useful Post: [ View ]
13th April 2014, 02:43 AM   |  #6  
D2Y aka E's Avatar
Senior Member
Flag muara wahau (borneo)
Thanks Meter: 52
 
262 posts
Join Date:Joined: Feb 2014
More
thanks..kaka
The Following User Says Thank You to D2Y aka E For This Useful Post: [ View ]
4th May 2014, 09:45 PM   |  #7  
shevchovski's Avatar
Member
Flag Toyamas - Banyuwangi
Thanks Meter: 56
 
94 posts
Join Date:Joined: Oct 2013
More
Quote:
Originally Posted by K_TECH

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

Thank's om and awesome guide
5th May 2014, 10:34 AM   |  #8  
KuaQ's Avatar
Senior Member
Flag Włocławek
Thanks Meter: 301
 
261 posts
Join Date:Joined: May 2012
Donate to Me
More
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
Last edited by KuaQ; 5th May 2014 at 10:47 AM.
7th May 2014, 08:13 AM   |  #9  
davidlone's Avatar
Junior Member
Thanks Meter: 1
 
18 posts
Join Date:Joined: Mar 2013
good job
thanks

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes