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

[Tutorial][VIDEO] Add/integrate apps into Settings app!

OP RomWiz

16th April 2013, 09:07 PM   |  #1  
RomWiz's Avatar
OP Recognized Themer
Flag Helsingborg
Thanks Meter: 1,197
 
2,739 posts
Join Date:Joined: Jan 2012
Donate to Me
More
Hello!
I wanted to make this little tutorial since many people wounder how to add certain apps to settings app

On XDA Portal

Things you will need
Apktool: http://forum.xda-developers.com/show....php?t=1755243
Notepad++: http://notepad-plus-plus.org/download/v6.3.2.html

Video tutorial http://www.youtube.com/watch?v=75ZzDs3seqw

Check out my YouTube channel for more videos

The procedure

1: Download and extract apktool into a folder


2: Extract Settings.apk and framework-res.apk from your ROM to the apktool folder


3: Open up cmd and go to the APKtool folder


4: Install the framework


5: Put the app you want to add in the apktool folder then decompile Settings and the app


6: Open the settings folder and navigate to /res/values and open Strings.xml with notepad++


7: Add the name of the app furthest down


8: Navigate to /res/xml and open settings_headers.xml


9: Add this
Code:
	<header android:icon="@drawable/..." android:title="@string/...">
        <intent android:targetPackage="..." android:action="android.intent.action.MAIN" android:targetClass="..." />
    </header>



10: navigate to the decompile app you want to add and open androidmanifest.xml


11: Copy the name at the top


12: Then paste here


13: Hold on your screen and select shortcuts


14: Choose activities


15: Scrool to the app and then press it


16: Enter what you found there here


18: Choose a name for the icon you will be using



19: Go to the app you will be adding and navigate to /res/drawable-****


20: Copy the icon to Settings/res/drawable-**** and rename it to what you put in the XML file


21: And now lets build it


22: When the building is done navigate to Settings/dist/ and there is you new Settings app


I will add a zip in the attachments, just put the Settings app in /system/app/ folder in the zip then move it to your phone and flash it

EDIT Another way to install the app (with adb):
Code:
adb remount 
adb push Settings.apk /system/app/ 
adb shell chmod 644 /system/app/Settings.apk 
adb reboot
EDIT 2: If you get any FCs or errors (app not showing up) after installing try to open up the original Settings.apk and copy AndroidManifest.xml and META-INF folder to /apktool/Settings/build/apk/ then build again (repeat every time you build)
Attached Files
File Type: zip System Flasher.zip - [Click for QR Code] (144.2 KB, 469 views)
Last edited by RomWiz; 30th August 2013 at 03:27 PM. Reason: More info!
The Following 67 Users Say Thank You to RomWiz For This Useful Post: [ View ]
17th April 2013, 10:38 PM   |  #2  
Senior Member
Thanks Meter: 13
 
107 posts
Join Date:Joined: Feb 2012
very nice tutorial, for which roms will this work? stock, cmXX

i have a LG L9, with stock jelly bean rom. will this work for me?
18th April 2013, 07:10 AM   |  #3  
RomWiz's Avatar
OP Recognized Themer
Flag Helsingborg
Thanks Meter: 1,197
 
2,739 posts
Join Date:Joined: Jan 2012
Donate to Me
More
Quote:
Originally Posted by mcmaster81

very nice tutorial, for which roms will this work? stock, cmXX

i have a LG L9, with stock jelly bean rom. will this work for me?

Any rom above 4.0
The Following User Says Thank You to RomWiz For This Useful Post: [ View ]
18th April 2013, 08:26 AM   |  #4  
c3n_dhol's Avatar
Senior Member
Flag Salatiga
Thanks Meter: 17
 
129 posts
Join Date:Joined: Feb 2013
More
cool tutorial... thanks, I appreciate it...
18th April 2013, 08:38 AM   |  #5  
RomWiz's Avatar
OP Recognized Themer
Flag Helsingborg
Thanks Meter: 1,197
 
2,739 posts
Join Date:Joined: Jan 2012
Donate to Me
More
I think i will add a video tutorial soon
18th April 2013, 11:55 AM   |  #6  
Senior Member
Flag المملكة العربية
Thanks Meter: 4
 
112 posts
Join Date:Joined: Dec 2012
More
Tks 4 tuts useful.
18th April 2013, 12:21 PM   |  #7  
Junior Member
Flag VALLADOLID
Thanks Meter: 1
 
22 posts
Join Date:Joined: May 2012
More
Nice tutorial thanks
but i have a error when i complied settings.apk

C:\apktool>apktool b Settings.apk
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathN
otExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java: 164)
at brut.androlib.Androlib.build(Androlib.java:183)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(Abst ractDirectory.java:
103)
at brut.androlib.Androlib.readMetaFile(Androlib.java: 160)
... 4 more

could you help me?

sorry for my english

thanks
18th April 2013, 01:44 PM   |  #8  
RomWiz's Avatar
OP Recognized Themer
Flag Helsingborg
Thanks Meter: 1,197
 
2,739 posts
Join Date:Joined: Jan 2012
Donate to Me
More
Quote:
Originally Posted by hecvalve

Nice tutorial thanks
but i have a error when i complied settings.apk

C:\apktool>apktool b Settings.apk
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathN
otExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java: 164)
at brut.androlib.Androlib.build(Androlib.java:183)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(Abst ractDirectory.java:
103)
at brut.androlib.Androlib.readMetaFile(Androlib.java: 160)
... 4 more

could you help me?

sorry for my english

thanks

Dont have the .apk extension when building. Should look like this apktool b Settings
19th April 2013, 05:40 PM   |  #9  
alexforsale's Avatar
Junior Member
Thanks Meter: 3
 
16 posts
Join Date:Joined: Dec 2011
More
I will try this later thanks for the guide,
I'm trying to add a TTS setting to a rom which doesn't have a TTS options in the Settings -> language & input. can you tell me what activity should I choose? I cannot open TTS settings from my phone.
19th April 2013, 05:47 PM   |  #10  
RomWiz's Avatar
OP Recognized Themer
Flag Helsingborg
Thanks Meter: 1,197
 
2,739 posts
Join Date:Joined: Jan 2012
Donate to Me
More
Quote:
Originally Posted by alexforsale

I will try this later thanks for the guide,
I'm trying to add a TTS setting to a rom which doesn't have a TTS options in the Settings -> language & input. can you tell me what activity should I choose? I cannot open TTS settings from my phone.

Actually, i have never used TTS so i dont really know :/

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

Advanced Search
Display Modes