Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,782,554 Members 36,279 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
K_TECH
Old
(Last edited by K_TECH; 12th April 2014 at 07:09 PM.)
#1  
K_TECH's Avatar
Senior Member - OP
Thanks Meter 577
Posts: 415
Join Date: Feb 2013
Location: Sidoarjo
Post [GUIDE][SMALI][CM9-11] add Changelog in Settings

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, 73 views)
File Type: txt CHANGELOG-ROM.txt - [Click for QR Code] (116 Bytes, 115 views)
The Following 4 Users Say Thank You to K_TECH For This Useful Post: [ Click to Expand ]
 
K_TECH
Old
(Last edited by K_TECH; 12th April 2014 at 06:47 PM.)
#2  
K_TECH's Avatar
Senior Member - OP
Thanks Meter 577
Posts: 415
Join Date: Feb 2013
Location: Sidoarjo
SCREENSHOT

INDONESIA - DEVELOPER
| Device: SGW GT-I8150 | My Works: Here |
The Following 4 Users Say Thank You to K_TECH For This Useful Post: [ Click to Expand ]
 
dugeriss
Old
#3  
dugeriss's Avatar
Senior Member
Thanks Meter 216
Posts: 211
Join Date: Apr 2013
Location: Gunung Pati,Semarang
Awesome guide om, i'll try soon,
The Following User Says Thank You to dugeriss For This Useful Post: [ Click to Expand ]
 
SatrioDwiPrabowo
Old
#4  
SatrioDwiPrabowo's Avatar
Senior Member
Thanks Meter 343
Posts: 359
Join Date: May 2012
Location: Karawang Rock City - West Java INDONESIA
MANTAP !!! thanks a lot bro
The Following User Says Thank You to SatrioDwiPrabowo For This Useful Post: [ Click to Expand ]
 
K_TECH
Old
#5  
K_TECH's Avatar
Senior Member - OP
Thanks Meter 577
Posts: 415
Join Date: Feb 2013
Location: Sidoarjo
Quote:
Originally Posted by dugeriss View Post
Awesome guide om, i'll try soon,

Quote:
Originally Posted by SatrioDwiPrabowo View Post
MANTAP !!! thanks a lot bro
Enjoy it
INDONESIA - DEVELOPER
| Device: SGW GT-I8150 | My Works: Here |
The Following 2 Users Say Thank You to K_TECH For This Useful Post: [ Click to Expand ]
 
D2Y aka E
Old
#6  
D2Y aka E's Avatar
Senior Member
Thanks Meter 51
Posts: 225
Join Date: Feb 2014
Location: muara wahau (borneo)
thanks..kaka
The Following User Says Thank You to D2Y aka E For This Useful Post: [ Click to Expand ]
 
shevchovski
Old
#7  
shevchovski's Avatar
Member
Thanks Meter 45
Posts: 87
Join Date: Oct 2013
Location: Toyamas - Banyuwangi
Quote:
Originally Posted by K_TECH View Post
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
 
KuaQ
Old
(Last edited by KuaQ; 5th May 2014 at 09:47 AM.)
#8  
KuaQ's Avatar
Senior Member
Thanks Meter 173
Posts: 196
Join Date: May 2012
Location: Włocławek

 
DONATE TO ME
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
 
davidlone
Old
#9  
davidlone's Avatar
Junior Member
Thanks Meter 1
Posts: 18
Join Date: Mar 2013
good job
thanks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes