[Guide] How to add tab on settings.apk - XPERIA X8 Themes and Apps

Original thread : http://forum.xda-developers.com/showthread.php?t=1900505
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
FAQ :
Q : Why u create a new thread here?
A : It just for u for CM7 user and i make it to easy tutorial
What u need :
- Apk tool/Apk Manager
- Framework-res.apk and Settings.apk
First Step :
- You need to If framework before decompile settings.apk
- Decompile settings.apk and extract my zip file to ur decompiled directory
- Open strings.xml and add this :
Code:
<string name="personal_settings_tab">Actions</string>
<string name="settings_ics_actions">APPLICATIONS</string>
<string name="program_settings_tab">Google</string>
<string name="settings_ics_google">GOOGLE APPS</string>
- Now, open ids.xml and add this :
Code:
<item type="id" name="tabHost">false</item>
<item type="id" name="tabsLayout">false</item>
<item type="id" name="tabsText">false</item>
- Compile your settings.apk and decompile again.
Second Step :
- Open TabbedSettings.smali and public.xml
- Find and replace with your ID on public.xml
Code:
[B]Find ------------------- Replace with ID of name[/B]
[B]IN smali/com/android/settings/TabbedSettings.smali[/B]
0x7f0c0002 ------------------- slide_out_left (anim)
0x7f0c0003 ------------------- slide_out_right (anim)
0x7f03005c ------------------- type="layout" name="tab_indicator"
0x7f0b011b ------------------- type="id" name="tabsText"
0x7f03005b ------------------- type="layout" name="tab_content"
0x7f0b0119 ------------------- type="id" name="tabHost"
[B]IN smali/com/android/settings/TabbedSettings$1.smali[/B]
0x7f0c0001 ------------------- type="anim" name="slide_in_right"
0x7f0c ------------------- type="anim" name="slide_in_left" (Only first 4 digits)
[B]IN smali/com/android/settings/PersonalSettings.smali[/B]
0x7f040039 ------------------- type="xml" name="personal_settings"
0x7f03005a ------------------- type="layout" name="speed_container"
[B]IN smali/com/android/settings/ProgramSettings.smali[/B]
0x7f04003a ------------------- type="xml" name="program_settings"
0x7f03005a ------------------- type="layout" name="speed_container"
Third Step :
- Open androidmanifest.xml and find this line :
Code:
<activity android:theme="@android:style/Theme.NoTitleBar" android:label="@string/settings_label_launcher" android:name="TabbedSettings" android:taskAffinity="com.android.settings" android:clearTaskOnLaunch="true" android:launchMode="singleTop">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="android.settings.SETTINGS" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
- Now replace it with these line :
Code:
<activity android:theme="@android:style/Theme.NoTitleBar" android:label="@string/settings_label_launcher" android:name="TabbedSettings" android:taskAffinity="com.android.settings" android:clearTaskOnLaunch="true" android:launchMode="bottom">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="android.settings.SETTINGS" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="PersonalSettings" />
<activity android:name="ProgramSettings" />
<activity android:label="@string/settings_label_launcher" android:name="Settings">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
- Compile your project and sign it with the same key of rom.
- Push to your /system/app directory and you got it! :good:

Good tutorial men

Hey dude I've got one problem here.. when I try to compile the Settings it got brut error, here the log :
Code:
D:\APKTOOL>apktool b Settings
I: Checking whether sources has changed...
I: Smaling...
[28,14] no viable alternative at input 'type'
[42,14] no viable alternative at input 'type'
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file
: D:\APKTOOL\Settings\smali\com\android\settings\PersonalSettings.smali
at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:45)
at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:33)
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:66)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:50)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:37)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:257)
at brut.androlib.Androlib.buildSources(Androlib.java:214)
at brut.androlib.Androlib.build(Androlib.java:205)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
can you solve it?

^ what ur rom? deodexed or odexed? try to deodexed before decompile ur system file. then u must if framework to.

yeah~~thank you for you guide~~

<activity android:theme="@android:style/Theme.NoTitleBar" android:label="@string/settings_label_launcher" android:name="TabbedSettings" android:taskAffinity="com.android.settings" android:clearTaskOnLaunch="true" android:launchMode="singleTop">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="android.settings.SETTINGS" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
i can not find it

need help..
i cant understand Second Step...
The Step is
fine the "0x7f0c0002" from TabbedSettings.smali
to replaced from new public id right??

Error..
--------------------------------------------------------------------------
|14-Oct-2013 -- 21:25:29.94|
--------------------------------------------------------------------------
java version "1.7.0_17"
Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
Java HotSpot(TM) Client VM (build 23.7-b01, mixed mode, sharing)
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, C:\Users\Panneer\AppData\Local\Temp\APKTOOL8040088455671024053.tmp, -I, C:\Users\Panneer\apktool\framework\1.apk, -S, C:\APK-Multi-Tool\other\..\projects\System_Settings.apk\res, -M, C:\APK-Multi-Tool\other\..\projects\System_Settings.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:255)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:324)
at brut.androlib.Androlib.buildResources(Androlib.java:269)
at brut.androlib.Androlib.build(Androlib.java:192)
at brut.androlib.Androlib.build(Androlib.java:174)
at brut.apktool.Main.cmdBuild(Main.java:188)
at brut.apktool.Main.main(Main.java:70)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, C:\Users\Panneer\AppData\Local\Temp\APKTOOL8040088455671024053.tmp, -I, C:\Users\Panneer\apktool\framework\1.apk, -S, C:\APK-Multi-Tool\other\..\projects\System_Settings.apk\res, -M, C:\APK-Multi-Tool\other\..\projects\System_Settings.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:253)
... 6 more
C:\APK-Multi-Tool\other\..\projects\System_Settings.apk\AndroidManifest.xml:389: error: Error: String types not allowed (at 'launchMode' with value 'bottom').

hi master, why I could not find a line that is contained in AndroidManifest.xml?
Code:
<activity android:theme="@android:style/Theme.NoTitleBar" android:label="@string/settings_label_launcher" android:name="TabbedSettings" android:taskAffinity="com.android.settings" android:clearTaskOnLaunch="true" android:launchMode="singleTop">

Error
C:\Users\Nicx14\Desktop\Indonesian\SecondStep>apktool b Settings
I: Checking whether sources has changed...
I: Smaling...
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file
: [email protected]1cc55fb
at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:45)
at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:33)
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:64)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:48)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:35)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:222)
at brut.androlib.Androlib.buildSources(Androlib.java:179)
at brut.androlib.Androlib.build(Androlib.java:170)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Pls. fix this problem? pls reply to me...

hi pls help
hey androidManifest.xml part didnt worked for me.. pls help..
Code:
<activity android:theme="@android:style/Theme.NoTitleBar" android:label="@string/settings_label_launcher" android:name="TabbedSettings" android:taskAffinity="com.android.settings" android:clearTaskOnLaunch="true" android:launchMode="singleTop">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="android.settings.SETTINGS" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
i m on stock deodex 4.2.2 rom.. Samsung i9082

Related

[Q] what is “BasicDream” in android ICS?

I read the Launcher source code which version is ICS. There is a RocketLauncher class which extends BasicDream. what is BasicDream? what can BasicDream do? I can find this line import android.support.v13.dreams.BasicDream;, but I can't find any information about it on Internet. Please give me some information to understand it. Thanks!
I found those code in launcher manifest.xml <activity android:name="com.android.launcher2.RocketLauncher" android:label="@string/dream_name" android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.DREAM" /> </intent-filter> </activity>
There is a new category android.intent.category.DREAM, what is it used to do? That RocketLauncher is an Activity?

[Q] ADW Theme - Help...

Alright so to start off i have eclipse, the android sdk, and all that other good stuff setup properly.
Now the problem is i keep getting an error in the androidmanifest.xml saying
<uses-sdk android:minSdkVersion="4"/>
The error message when clicked upon is, <uses-sdk> tag appears after <application> tag.
I have tried multiple versions of the sdk build including 2.2 (as the guide suggest) and changing the minimum sdk requirement but i always seem to run into this exact same problem. Any ideas? Oh and also im using this template
AnderWeb-ADW.Theme-Template-d8491c4
Heres the entire AndroidManifest.xml...
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="Red.Glow.Adw"
android:versionCode="1"
android:versionName="1.0"
android:installLocation="internalOnly">
<application android:label="@string/theme_title" android:icon="@drawable/theme_icon">
<activity android:name=".main"
android:label="@string/theme_title">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="org.adw.launcher.THEMES" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<intent-filter>
<action android:name="org.adw.launcher.icons.ACTION_PICK_ICON" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name="red.glow.adw.docks"
android:label="@string/theme_title"
android:icon="@drawable/theme_icon">
<intent-filter>
<action android:name="android.intent.action.PICK" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="image/*" />
</intent-filter>
</activity>
<provider android:name="red.glow.adw.docksProvider" android:authorities="red.glow.adw.docksProvider" />
</application>
<uses-sdk android:minSdkVersion="4"/>
</manifest>
Ehh figured it out.. AnderWeb's template build was throwing me up a ton of errors but kaydensigh's template works great.

[TUTORIAL] GB/ICS How To Create New Theme & Convert Default Themes App To Normal App

[TUTORIAL] GB/ICS How To Create New Theme & Convert Default Themes App To Normal App
Sorry My Bad English
Apktool Tutorial
http://forum.xda-developers.com/showthread.php?t=2011254
Notepad Plus
http://notepad-plus-plus.org/download
Tutorial Create New Theme
Download test_theme.apk
decomplie test_theme to Apktool
Go to projects test_theme.apk folder Open Android Manifest.xml to notepad Plus
Code:
[/<?xml version="1.0" encoding="utf-8"?>
<manifest android:versionCode="2000" android:versionName="1.0" package="com.[COLOR="Red"]orochi_2013_tonypanduru_fish[/COLOR].themes"
xmlns:android="http://schemas.android.com/apk/res/android">
<uses-sdk android:minSdkVersion="10" android:targetSdkVersion="10" />
<application android:label="[COLOR="red"]Fish By Orochi[/COLOR]" android:icon="@drawable/icon">
<uses-library android:name="com.sonyericsson.privateapis_1p" />
<service android:label="@string/orochi_theme_title" android:name=".orochiThemeService">
<intent-filter>
<action android:name="com.sonyericsson.theme.RuntimeThemeService" />
</intent-filter>
<meta-data android:name="com.sonyericsson.service.theme" android:resource="@xml/orochi_themeinfo" />
</service>
</application>
</manifest>
Edit red Sections
Sample
Code:
<?xml version="1.0" encoding="utf-8"?>
<manifest android:versionCode="2000" android:versionName="1.0" package="com.xperia_2011.themes"
xmlns:android="http://schemas.android.com/apk/res/android">
<uses-sdk android:minSdkVersion="10" android:targetSdkVersion="10" />
<application android:label="xperia 2011 By Orochi" android:icon="@drawable/icon">
<uses-library android:name="com.sonyericsson.privateapis_1p" />
<service android:label="@string/orochi_theme_title" android:name=".orochiThemeService">
<intent-filter>
<action android:name="com.sonyericsson.theme.RuntimeThemeService" />
</intent-filter>
<meta-data android:name="com.sonyericsson.service.theme" android:resource="@xml/orochi_themeinfo" />
</service>
</application>
</manifest>
And Save Androidmanifest.xml
Go to projects test_theme.apk/smali/com Folder Rename orochi_2013_tonypanduru_fish folder to xperia_2011
go to projetcs test_theme.apk/smali\com\xperia_2011\themes open orochiThemeService.smali to notepad plus
edit First Line
Code:
[COLOR="red"].class public Lcom/orochi_2013_tonypanduru_fish/themes/orochiThemeService;[/COLOR]
to
Code:
[COLOR="red"].class public Lcom/xperia_2011/themes/orochiThemeService;[/COLOR]
save files
Go to test_theme.apk/res/values folder string.xml open notepad plus edit Theme Name
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">[COLOR="red"]Fish[/COLOR]</string>
<string name="orochi_theme_title">[COLOR="red"]Fish[/COLOR]</string>
</resources>
to
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">Xperia 2011</string>
<string name="orochi_theme_title">Xperia 2011 </string>
</resources>
Go to projects test_theme.apk/res drawable-mdpi and drawable-land-mdpi Change All İmg
and Finish open APKTOOL Set 14 Create+Sign New App Created Signed_test_theme.apk :good:
Tutorial Convert Defaultthemes App to Normal install App
DefaultThemes.apk Decomplie to Apktool
go to projects DefaultThemes.apk folder Open Android Manifest.xml note pad plus
orginal Android Manifest.xml
Code:
[COLOR="Red"]<?xml version="1.0" encoding="utf-8"?>
<manifest android:versionCode="2000" android:versionName="2.0" package="com.sonyericsson.defaultruntimethemes"
xmlns:android="http://schemas.android.com/apk/res/android">
<uses-sdk android:minSdkVersion="10" android:targetSdkVersion="10" />
<application>
<uses-library android:name="com.sonyericsson.privateapis_1p" />[/COLOR]
<service android:label="@string/green_theme_title" android:name=".GreenThemeService">
<intent-filter>
<action android:name="com.sonyericsson.theme.RuntimeThemeService" />
</intent-filter>
<meta-data android:name="com.sonyericsson.service.theme" android:resource="@xml/green_themeinfo" />
</service>
<service android:label="@string/black_theme_title" android:name=".BlackThemeService">
<intent-filter>
<action android:name="com.sonyericsson.theme.RuntimeThemeService" />
</intent-filter>
<meta-data android:name="com.sonyericsson.service.theme" android:resource="@xml/black_themeinfo" />
</service>
<service android:label="@string/orange_theme_title" android:name=".OrangeThemeService">
<intent-filter>
<action android:name="com.sonyericsson.theme.RuntimeThemeService" />
</intent-filter>
<meta-data android:name="com.sonyericsson.service.theme" android:resource="@xml/orange_themeinfo" />
</service>
<service android:label="@string/blue_theme_title" android:name=".BlueThemeService">
<intent-filter>
<action android:name="com.sonyericsson.theme.RuntimeThemeService" />
</intent-filter>
<meta-data android:name="com.sonyericsson.service.theme" android:resource="@xml/blue_themeinfo" />
</service>
<service android:label="@string/pink_theme_title" android:name=".PinkThemeService">
<intent-filter>
<action android:name="com.sonyericsson.theme.RuntimeThemeService" />
</intent-filter>
<meta-data android:name="com.sonyericsson.service.theme" android:resource="@xml/pink_themeinfo" />
</service>
<service android:label="@string/rainbow_theme_title" android:name=".RainbowThemeService">
<intent-filter>
<action android:name="com.sonyericsson.theme.RuntimeThemeService" />
</intent-filter>
<meta-data android:name="com.sonyericsson.service.theme" android:resource="@xml/rainbow_themeinfo" />
</service>
<service android:label="@string/red_theme_title" android:name=".RedThemeService">
<intent-filter>
<action android:name="com.sonyericsson.theme.RuntimeThemeService" />
</intent-filter>
<meta-data android:name="com.sonyericsson.service.theme" android:resource="@xml/red_themeinfo" />
</service>
</application>
</manifest>
delete red section
Copy New text save xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<manifest android:versionCode="2000" android:versionName="1.0" package="com.new.defaultruntimethemes"
xmlns:android="http://schemas.android.com/apk/res/android">
<uses-sdk android:minSdkVersion="10" android:targetSdkVersion="10" />
<application android:label="new Themes" android:icon="@drawable/icon">
<uses-library android:name="com.sonyericsson.privateapis_1p" />
go to DefaultThemes.apk folder res/values/strings.xml Edit Theme Name
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="black_theme_title">[COLOR="Red"]Silk[/COLOR]</string>
<string name="blue_theme_title">[COLOR="red"]Sapphire[/COLOR]</string>
<string name="green_theme_title">[COLOR="red"]Emerald[/COLOR]</string>
<string name="orange_theme_title">[COLOR="red"]Gold[/COLOR]</string>
<string name="pink_theme_title">[COLOR="red"]Ametyhst[/COLOR]</string>
<string name="rainbow_theme_title">[COLOR="red"]Turquiose[/COLOR]</string>
<string name="red_theme_title">[COLOR="red"]Ruby[/COLOR]</string>
</resources>
go to DefaultThemes.apk folder res/values/public.xml add new drawable code
Code:
[COLOR="red"]<public type="drawable" name="icon" id="0x7f020028" />[/COLOR]
Download icon.png Copy projetcs DefaultThemes.apk\res\drawable-mdpi folder or Add your İcon 48x48 or 72x72 png Format İmg
goto projetcs DefaultThemes.apk/smali/com Folder Rename to sonyericsson folder (new)
Go to DefaultThemes.apk/smali/com/new/defaultruntimethemes edit 7 smali files change First line
blackThemeService.smali
blueThemeService.smali
greenThemeService.smali
orangeThemeService.smali
redThemeService.smali
rainbowThemeService.smali
pinkThemeService.smali
Sample
Code:
.class public Lcom/[COLOR="red"]sonyericsson[/COLOR]/defaultruntimethemes/BlackThemeService;
to
Code:
.class public Lcom/[COLOR="red"]new[/COLOR]/defaultruntimethemes/BlackThemeService;
Edit 7 Smali File And
DefaultThemes.apk\res\drawable-mdpi + DefaultThemes.apk\res\drawable-land-mdpi folder Change All İmage
Finish open Apktool Set 14 ( Recomplie+Sign ) new app Created signed_DefaultThemes.apk rename new app install
Thanks again
Great work man,
will try.
Nice tutorial my friend
saqib nazm said:
Nice tutorial my friend [/QUOTE
:good: thanks bro
Click to expand...
Click to collapse
great
great work my friend :good:
Need root?
Scythemore said:
Need root?
Click to expand...
Click to collapse
No Root Acces :good:
Orochixxx said:
No Root Acces :good:
Click to expand...
Click to collapse
i always wondered how do this....but i know now....
btw nice tut

[SMALL APP] [JB / ICS] Serajr Power Toggles - 23 Toggles Set - v1.1 - 10/06/13

Here´s my Serajr Power Toggles small application for all Sony JB/ICS Small App ready devices. It was built from scratch by me using lastest Sony Add-on SDK.
For now, all 23 toggles will be available and enable/disable and reorder buttons is not allowed!
I´ve tested it only on my fat ST15i, but it should work on all patched Framework stock roms, and here are the proofs:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Here's a little warning: Unfortunately Sony does not provide it´s platform key pairs to sign third-party applications, and some toggles only the system can manage, so in order to get all toggles working, a very simple framework-res.apk and services.jar patch is needed. But don´t worry, the patch process does not edit any smali file, just creates new ones (provided on attachments)!!!
If you have installed previous patch, the one with SystemUI,apk, revert it back to its original state!!
Patching framework-res.apk process:
1. Decompile your framework-res.apk (pay attention, yours can be a little different from mine)
2. Edit AndroidManifest.xml (with notepad++)
3. Add red lines, save and close it:
Code:
<?xml version="1.0" encoding="utf-8"?>
<manifest android:sharedUserId="android.uid.system" android:versionCode="15" android:versionName="4.0.4-tL1_3w" android:sharedUserLabel="@string/android_system_label" package="android" coreApp="true"
xmlns:android="http://schemas.android.com/apk/res/android">
<eat-comment />
.
.
.
.
.
.
.
<application android:label="@string/android_system_label" android:icon="@drawable/ic_launcher_android" android:allowClearUserData="false" android:hasCode="false" android:persistent="true" android:process="system" android:backupAgent="com.android.server.SystemBackupAgent" android:killAfterRestore="false">
<activity android:theme="@style/BidiDialogAlert" android:name="com.android.internal.app.ChooserActivity" android:multiprocess="true" android:excludeFromRecents="true" android:finishOnCloseSystemDialogs="true">
<intent-filter>
<action android:name="android.intent.action.CHOOSER" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity android:theme="@style/Theme.Holo.Dialog" android:label="@string/heavy_weight_switcher_title" android:name="com.android.internal.app.HeavyWeightSwitcherActivity" android:process=":ui" android:excludeFromRecents="true" android:finishOnCloseSystemDialogs="true" />
<activity android:theme="@style/Theme.Wallpaper.NoTitleBar.Fullscreen" android:name="com.android.internal.app.PlatLogoActivity" android:process=":ui" />
<activity android:theme="@style/Theme.NoDisplay" android:name="com.android.internal.app.DisableCarModeActivity" android:process=":ui" android:excludeFromRecents="true" />
<activity android:theme="@style/BidiDialogAlert" android:name="com.android.internal.app.RingtonePickerActivity" android:process=":ui" android:multiprocess="true" android:excludeFromRecents="true">
<intent-filter>
<action android:name="android.intent.action.RINGTONE_PICKER" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity android:theme="@style/Theme.Holo.Dialog" android:label="@string/choose_account_label" android:name="android.accounts.ChooseAccountActivity" android:exported="true" android:process=":ui" android:excludeFromRecents="true" />
<activity android:theme="@style/Theme.Holo.DialogWhenLarge.NoActionBar" android:label="@string/choose_account_label" android:name="android.accounts.ChooseTypeAndAccountActivity" android:exported="true" android:process=":ui" android:excludeFromRecents="true" />
<activity android:theme="@style/Theme.Holo.DialogWhenLarge.NoActionBar" android:label="@string/choose_account_label" android:name="android.accounts.ChooseAccountTypeActivity" android:process=":ui" android:excludeFromRecents="true" />
<activity android:theme="@style/Theme.Holo.DialogWhenLarge" android:name="android.accounts.GrantCredentialsPermissionActivity" android:exported="true" android:process=":ui" android:excludeFromRecents="true" />
<activity android:theme="@style/Theme.Holo.Dialog" android:label="@string/sync_too_many_deletes" android:name="android.content.SyncActivityTooManyDeletes" android:process=":ui" />
<activity android:name="com.android.server.ShutdownActivity" android:permission="android.permission.SHUTDOWN" android:excludeFromRecents="true">
<intent-filter>
<action android:name="android.intent.action.ACTION_REQUEST_SHUTDOWN" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.REBOOT" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity android:theme="@style/BidiDialogAlert" android:name="com.android.internal.app.NetInitiatedActivity" android:process=":ui" android:excludeFromRecents="true" />
<receiver android:name="com.android.server.BootReceiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
</receiver>
<receiver android:name="com.android.server.MasterClearReceiver" android:permission="android.permission.MASTER_CLEAR" android:priority="100">
<intent-filter>
<action android:name="android.intent.action.MASTER_CLEAR" />
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<category android:name="android.intent.category.MASTER_CLEAR" />
</intent-filter>
</receiver>
<service android:name="com.android.internal.os.storage.ExternalStorageFormatter" android:permission="android.permission.MASTER_CLEAR" android:exported="true" />
[COLOR="Red"]<receiver android:name="com.serajr.powertoggles.receivers.NetworkModeButtonReceiver" android:process="com.android.phone">
<intent-filter>
<action android:name="com.serajr.powertoggles.SMALLAPP_CHANGE_NETWORK_MODE" />
<action android:name="com.serajr.powertoggles.SMALLAPP_NEW_NETWORK_MODE" />
</intent-filter>
</receiver>
<receiver android:name="com.serajr.powertoggles.receivers.BrightnessButtonReceiver">
<intent-filter>
<action android:name="com.serajr.powertoggles.SMALLAPP_CHANGE_BRIGHTNESS_MODE" />
<action android:name="com.serajr.powertoggles.SMALLAPP_NEW_BRIGHTNESS_MODE" />
</intent-filter>
</receiver>
<receiver android:name="com.serajr.powertoggles.receivers.GPSButtonReceiver">
<intent-filter>
<action android:name="com.serajr.powertoggles.SMALLAPP_CHANGE_GPS_STATE" />
<action android:name="com.serajr.powertoggles.SMALLAPP_NEW_GPS_STATE" />
</intent-filter>
</receiver>
<receiver android:name="com.serajr.powertoggles.receivers.RebootButtonReceiver">
<intent-filter>
<action android:name="com.serajr.powertoggles.SMALLAPP_REQUEST_REBOOT" />
<action android:name="com.serajr.powertoggles.SMALLAPP_REBOOT_MODE" />
</intent-filter>
</receiver>
<receiver android:name="com.serajr.powertoggles.receivers.ShutdownButtonReceiver">
<intent-filter>
<action android:name="com.serajr.powertoggles.SMALLAPP_REQUEST_SHUTDOWN" />
</intent-filter>
</receiver>
<receiver android:name="com.serajr.powertoggles.receivers.USBConnectionModeButtonReceiver">
<intent-filter>
<action android:name="com.serajr.powertoggles.SMALLAPP_CHANGE_USB_CONNECTION_MODE" />
<action android:name="com.serajr.powertoggles.SMALLAPP_NEW_USB_CONNECTION_MODE" />
</intent-filter>
</receiver>
<receiver android:name="com.serajr.powertoggles.receivers.USBDebuggingButtonReceiver">
<intent-filter>
<action android:name="com.serajr.powertoggles.SMALLAPP_CHANGE_USB_DEBUGGING_STATE" />
<action android:name="com.serajr.powertoggles.SMALLAPP_NEW_USB_DEBUGGING_STATE" />
</intent-filter>
</receiver>[/COLOR]
</application>
</manifest>
4. Compile it (don´t re-sign it)!!
5. Done!
Patching services.jar process:
1. Decompile your services.jar (optionally use attached Jar_Decompile_Compile tool)
2. Download attached smali.zip file to your computer and unzip it
3. Copy unziped contents with all folders structure into decompiled services.jar project
4. You´ll get: ...\com\serajr\powertoggles\receivers\ (here are 8 smali files)
5. Compile project to get a new classes.dex
6. Replace classes.dex inside services.jar (open it with 7-Zip)
7. Done!
- Download attached framework_and_services_replacer.zip to your computer
- Open it with 7-Zip and go to \system\framework\ empty folder
- Drag and drop both modded framework-res.apk and services.jar inside \system\framework\ empty folder and close it
- Flash framework_and_services_replacer.zip
- Done!
Install process:
1. Download attached v1.0_JB_ICS_SmallApp-SerajrPowerToggles.zip file to your SD Card root
2. Flash it through recovery (CWM)
3. Done!
Attachment files info:
v1.0_JB_ICS_SmallApp-SerajrPowerToggles.zip
- Serajr Power Toggles Small App (flashable zip)
JB_ICS_SmallApp-Framework.zip - Optional
- Small App framework, external task switcher, and permission files (flashable zip)
- BE SURE TO REMOVE/UNINSTALL ANY PREVIOUSLY INSTALLED SmallAppManagerService.apk AND TaskSwitcher.apk (OR Task.apk) FROM /system/app/ BEFORE INSTALL THIS ONE
smali.zip
- Smali files for SystemUI.apk patching process (simple zip file)
Jar_Decompile_Compile.zip
- Tool for decompile/compile jar files
framework_and_services_replacer.zip
- Flashable zip file to easy replace patched framework-res.apk and services.jar
PLEASE... DO NOT MIRROR OR RE-MOD IT WITHOUT MY PERMISSION!!!​
if you like it... Press Thanks!!!!
.
.
Changelog
v1.0 - 15/05/13:
- Initial release
Thumbs...
Thumbs!!
Reserved
Reserved...
Yet another masterpiece..
Downloading
Sent from my ST15i using xda premium
O.M.G :good:
Orochixxx said:
O.M.G :good:
Click to expand...
Click to collapse
When u mod with your icons?
I've been waiting for this........!!!!!!!!!!!!!!!!!!!!! THX A LOT MAN:fingers-crossed:
Really Great Sir :good: , But Can U make it in flashable MOD ?
RivaultUser said:
I've been waiting for this........!!!!!!!!!!!!!!!!!!!!! THX A LOT MAN:fingers-crossed:
Click to expand...
Click to collapse
Mohamed Hashem said:
Really Great Sir :good: , But Can U make it in flashable MOD ?
Click to expand...
Click to collapse
First two attached files... aren´t they? Thanks buddies....
serajr said:
First two attached files... aren´t they? Thanks buddies....
Click to expand...
Click to collapse
Really Thank U SERAJR U are the best !
I will flash it now
v1.1
Just new patch method, see OP!!
working great on ported small apps on an mtk device, thank you so much for this. btw i dumped my idea of porting your toggles, this is way better for my device imo.. thanks so much for this sir:good::good::good:
Really Great Sir
Help
I wan to use the on my phone but don`t small app option i have xperia j with stock jb 4.1.2
I'm a novice on changing the frameworks or something else like that. I would like to know how to make it works on LT28 w/ 211 JB as nothing happened to my small apps bar after I'd flashed the 23 toggles zip file. Any advice? Thanks.
Help Me
serajr said:
Just new patch method, see OP!!
Click to expand...
Click to collapse
Can you do for me this OP?
My framework and My Services.jar
http://www.mediafire.com/?e2u9685x96xt9au
I did many times.But reboot mod,usb debugging,shutdown .... not working.Plz help me.You are very Hard-Working.This is easy for you

Want to add activity in Settings.apk file

I want to add activity in Settings.apk, for that I have created Activity in below path
/home/amit/android/lineage/packages/apps/Settings/src/com/android/settings/network
I have declared AirplaneModePreference activity in AndroidManifest.xml like below
Code:
<activity android:name="com.android.settings.network.AirplaneModePreference"
android:taskAffinity="com.android.settings"
android:configChanges="orientation|keyboardHidden|screenSize"
android:parentActivityName="Settings"
android:label="Advance Airplane Mode">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
But still, when I start the AirplaneModePreference activity, I am getting following error
Code:
Process: com.android.settings, PID: 24946
android.content.ActivityNotFoundException: Unable to find explicit activity class {com.android.settings.network/com.android.settings.network.AirplaneModePreference}; have you declared this activity in your AndroidManifest.xml (which is in Settings/AndroidManifest.xml) ?
at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:2005)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1673)
at android.app.Activity.startActivityForResult(Activity.java:4587)
at android.app.Activity.startActivityForResult(Activity.java:4545)
at android.app.Activity.startActivity(Activity.java:4906)
at android.app.Activity.startActivity(Activity.java:4874)
at android.content.ContextWrapper.startActivity(ContextWrapper.java:379)
at android.support.v7.preference.Preference.performClick(Preference.java:1139)
at com.android.settingslib.RestrictedPreference.performClick(RestrictedPreference.java:78)
at android.support.v7.preference.Preference.performClick(Preference.java:1107)
at android.support.v7.preference.Preference$1.onClick(Preference.java:172)
at android.view.View.performClick(View.java:6597)
at android.view.View.performClickInternal(View.java:6574)
at android.view.View.access$3100(View.java:778)
at android.view.View$PerformClick.run(View.java:25906)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6729)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
Do you have any idea, then please let me know, thanks a lot in advance

Categories

Resources