[GUIDE]How to Make Tab in Settings.apk with Icon - Samsung Galaxy Mini

Hello Dear Today I Have A Guide All Credits Goes to CrDeanCatabay From His Awsome Rom.
Downloads The Zip File From Atthachment
1.Decomnile Your Settings Extract downloaded zip it to the decompiled folder.
2.Open String from /res/values/string
3.Add This
<string name="ic_settings_tab_phone_settings_title">Phone Settings</string>
<string name="ic_settings_tab_advanced_title">Advanced Settings</string>
<string name="ic_settings_tab_about">About Hyperion</string>
Click to expand...
Click to collapse
4.Recompnile
5. Decompnile Its Again
6.Now The Parts Where We Need to Modify Smali
7.Open Public from res/values/public
8.
Open TabActivity And Public
Find 0x7f03005b Change it to "indicator" (Layout)
Find 0x7f0b0019 Change it to "title" (ids)
Find 0x7f0b0018 Change it to "icon" (ids)
Find 0x7f0805d8 Change it to "ic_settings_tab_phone_settings_title" (string)
Find 0x7f0200c1 Change it to "ic_tab_system" (drwable)
Find 0x7f0805d9 Change it to "ic_settings_tab_advanced_title" (string)
Find 0x7f0200c0 Change it to "ic_tab_advanced" (drwable)
Find 0x7f0805da Change it to "ic_settings_tab_about" (string)
Find 0x7f0200bf Change it to "ic_tab_about" (drwable)
Find 0x7f03005c Change it to "main" (layout)
Open SystemActivity And Public
Find 0x7f04003a Change it to "advanced_settings" (xml)
Click to expand...
Click to collapse
9.Find This From AndroidManifiest.xml
<application android:label="@string/settings_label" android:icon="@drawable/ic_launcher_settings" android:taskAffinity="">
<uses-library android:name="touchwiz" />
Click to expand...
Click to collapse
10.Add this After The Line
<activity android:theme="@*android:style/Theme.NoTitleBar" android:label="@string/settings_label_launcher" android:name="TabsActivity" 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>
<activity android:name="SettingsActivity" />
<activity android:name="SystemActivity" />
Click to expand...
Click to collapse
11.Now Find This
<activity android:label="@string/settings_label_launcher" android:name="Settings" 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>
Click to expand...
Click to collapse
12.Replace with
<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>
Click to expand...
Click to collapse
13.Compnile Your Settings Make Flashble File Put into /system/app
14.Enjoy
Downloads

Will try soon..
Sent from my GT-S5570 using xda app-developers app

Reserved

SS Added

Related

[Q] How can I make sure which *.so files the apk (VideoPlayer) invokes

I find something interesting in i909's rom
Through the AndroidManifest.xml, the videoplayer seems to support more file formats than JPY rom. I try to replace the default one on jpy with it, but I failed, although I have repack the classes.dex. Maybe there are some so files which I failed to account.
So, how can I make sure which so files the apk involves? Thanks!
Code:
- <intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="http" />
<data android:mimeType="video/mp4" />
<data android:mimeType="video/mpeg4" />
<data android:mimeType="video/3gp" />
<data android:mimeType="video/3gpp" />
<data android:mimeType="video/3gpp2" />
<data android:mimeType="video/x-ms-asf" />
<data android:mimeType="video/x-ms-wmv" />
<data android:mimeType="video/flv" />
<data android:mimeType="video/mkv" />
<data android:mimeType="video/divx" />
<data android:mimeType="video/avi" />
<data android:mimeType="video/msvideo" />
<data android:mimeType="video/x-msvideo" />
<data android:mimeType="video/vnd.avi" />
<data android:mimeType="video/x-ms-real" />
</intent-filter>

[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)!!!
Patching framework-res.apk process:
If you have installed previous patch, the one with SystemUI,apk, revert it back to its original state!!
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="16" android:versionName="4.1.2-Gv5_tw" android:sharedUserLabel="@string/android_system_label" package="android" coreApp="true"
xmlns:android="http://schemas.android.com/apk/res/android">
<uses-sdk android:minSdkVersion="16" android:targetSdkVersion="16" />
.
.
.
.
<application android:theme="@style/Theme.DeviceDefault" 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.DeviceDefault.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:exported="true" android:process=":ui" android:excludeFromRecents="true" />
<activity android:theme="@style/Theme.DeviceDefault.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.DeviceDefault.Dialog" 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.DeviceDefault.DialogWhenLarge.NoActionBar" android:label="@string/choose_account_label" android:name="android.accounts.ChooseAccountTypeActivity" android:process=":ui" android:excludeFromRecents="true" />
<activity android:theme="@style/Theme.DeviceDefault.DialogWhenLarge" android:name="android.accounts.GrantCredentialsPermissionActivity" android:exported="true" android:process=":ui" android:excludeFromRecents="true" />
<activity android:theme="@style/Theme.DeviceDefault.Dialog" android:label="@string/sync_too_many_deletes" android:name="android.content.SyncActivityTooManyDeletes" android:process=":ui" />
<activity android:theme="@style/Theme.DeviceDefault" 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 it from original thread, here
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
Awesome! would love to see android 4.2 quick settings on the T as well
Sent from my LT30p
the problem is once i changed the AndroidManifest.xml and recompile
this compiled apk is unavailable
and some functions(those in the smali folder) do not work
Leo said:
the problem is once i changed the AndroidManifest.xml and recompile
this compiled apk is unavailable
and some functions(those in the smali folder) do not work
Click to expand...
Click to collapse
Buddy... if you change any system app AndroidManifest.xml, you need to replace it mandatorily through recovery. Do not replace it with RootExplorer!!!!
serajr said:
Buddy... if you change any system app AndroidManifest.xml, you need to replace it mandatorily through recovery. Do not replace it with RootExplorer!!!!
Click to expand...
Click to collapse
did u mean i should make a flashable patch and flash ?
ive done it...
if not, what other methods to use CWM..aroma files manager ?
thanks for ur help
im using apktoo1.5.2, does it matter?
Can you please make it for my Xperia V? :good:
Thank you very much!
Attached is my System.apk
datagubben said:
Can you please make it for my Xperia V? :good:
Thank you very much!
Attached is my System.apk
Click to expand...
Click to collapse
Yes bro... but provide me a deodexed (with classes.dex inside it) SystemUI.apk!!
After following the steps I am left with no Nav bar or Status bar...Any thoughts?
Phoenix-Lead said:
After following the steps I am left with no Nav bar or Status bar...Any thoughts?
Click to expand...
Click to collapse
Did you replaced it through recovery?
serajr said:
Did you replaced it through recovery?
Click to expand...
Click to collapse
So after recompiling the systemui.apk I create a flashable package to flash the .apk
Phoenix-Lead said:
So after recompiling the systemui.apk I create a flashable package to flash the .apk
Click to expand...
Click to collapse
Hummm... strange behavior!!! Could you send me both SystemUI (original and modded)?
serajr said:
Hummm... strange behavior!!! Could you send me both SystemUI (original and modded)?
Click to expand...
Click to collapse
same problem as mine
here's my files
plz check, thku very much
serajr said:
Hummm... strange behavior!!! Could you send me both SystemUI (original and modded)?
Click to expand...
Click to collapse
Original SystemUI.apk---> Download
Modified SystemUI.apk---> Download
Thanks in advanced for checking this out
Leo said:
same problem as mine
here's my files
plz check, thku very much
Click to expand...
Click to collapse
Buddy... your modded SystemUI is ok!!!! I really don´t know what´s happening!!!
I´ve noticed that your device AndroidManifest.xml has different android:sharedUserId compared with mine, see:
yours:
android:sharedUserId="com.sonymobile.uid.systemui"
mine:
android:sharedUserId="android.uid.system"
So I think the receivers can´t be inside it!!!!
For now, revert back original one and install Small App, only some toggles will not work. I´m gonna work in a "non-patched" version, ok!!!
Sorry in advance...
I need to know if someone here got success with the patch, please!!
Phoenix-Lead said:
Original SystemUI.apk---> Download
Modified SystemUI.apk---> Download
Thanks in advanced for checking this out
Click to expand...
Click to collapse
Sorry buddy!!! It´s all ok too... see above answer!!!
no need to say sorry pal
u did an awesome job !
i used ur TabnGrid on ICS and i love it a lot
now for JB im using it in smallapp,
wait for ur fixing and hope one day it will be available on stat bar :good::good::good:
thks again !
Could you, Serajr, do it for Xperia TX (LT29i) too? I tried, but I don't know how. Here is SustemUI deodexed from my unlocked, rooted, Xperia TX: http://d-h.st/TIw Thanks, thanks a lot!.
petalex99 said:
Could you, Serajr, do it for Xperia TX (LT29i) too? I tried, but I don't know how. Here is SustemUI deodexed from my unlocked, rooted, Xperia TX: http://d-h.st/TIw Thanks, thanks a lot!.
Click to expand...
Click to collapse
im using deodexed JBTX too and i tried
but something different
serajr has noticed our problem
just wait for his solution
Leo said:
im using deodexed JBTX too and i tried
but something different
serajr has noticed our problem
just wait for his solution
Click to expand...
Click to collapse
Sorry, I didn't seen your first message. Anyway, thanks for sustaining our TX community! Thanks to serajr again!

[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 and SystemUI 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)!!!
Patching framework-res.apk process:
If you have installed previous patch, the one with SystemUI,apk, revert it back to its original state!!
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="16" android:versionName="4.1.2-Gv5_tw" android:sharedUserLabel="@string/android_system_label" package="android" coreApp="true"
xmlns:android="http://schemas.android.com/apk/res/android">
<uses-sdk android:minSdkVersion="16" android:targetSdkVersion="16" />
.
.
.
.
<application android:theme="@style/Theme.DeviceDefault" 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.DeviceDefault.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:exported="true" android:process=":ui" android:excludeFromRecents="true" />
<activity android:theme="@style/Theme.DeviceDefault.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.DeviceDefault.Dialog" 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.DeviceDefault.DialogWhenLarge.NoActionBar" android:label="@string/choose_account_label" android:name="android.accounts.ChooseAccountTypeActivity" android:process=":ui" android:excludeFromRecents="true" />
<activity android:theme="@style/Theme.DeviceDefault.DialogWhenLarge" android:name="android.accounts.GrantCredentialsPermissionActivity" android:exported="true" android:process=":ui" android:excludeFromRecents="true" />
<activity android:theme="@style/Theme.DeviceDefault.Dialog" android:label="@string/sync_too_many_deletes" android:name="android.content.SyncActivityTooManyDeletes" android:process=":ui" />
<activity android:theme="@style/Theme.DeviceDefault" 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 it from original thread, here
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
deleted
Sent from my C6603 using xda premium
nice! a network mode switcher, so we can use it to switch between 2g/3g ???
still weary about this one, no easy installation (yet?)
broke23 said:
nice! a network mode switcher, so we can use it to switch between 2g/3g ???
still weary about this one, no easy installation (yet?)
Click to expand...
Click to collapse
That´s it buddy!!!
"no easy installation (yet?)"... Unfortunately, due Sony not share your platform key pairs to sign third-party applications!!
cool thing, is there any chance, that your whole system ui V8 and forth will be ported to the Z someday soon, serajr?
Linshart said:
cool thing, is there any chance, that your whole system ui V8 and forth will be ported to the Z someday soon, serajr?
Click to expand...
Click to collapse
Yep bro... v10 is about to be released with a lot of new features.
Just follow my SystemUI thread, and after v10 I´m gonna try that port, ok!!!
I tried adding smali SystemUI.apk changed. but things do not work 2G\3G
Would like to use it on my Nexus 4, it works there?
Looks great!! , working great!!
Brilliant Jobs Brother..
Maybe it's possible to use xposed framework instead decompile SystemUI.apk? Anyway, you are rock man! Thanks so much for your mods and apps!
New Patch!
lukakas said:
Maybe it's possible to use xposed framework instead decompile SystemUI.apk? Anyway, you are rock man! Thanks so much for your mods and apps!
Click to expand...
Click to collapse
Thanks bro... Yes, and the new framework patch is working on 2011 devices, take a look at here
Please, try it and tell me later... Thanks in advance!!!
cool :good:
amazing on my Xperia Z
Hi, serajr could you please provide a guide on how to edit the name of the small app to just "power toggles". It would feel a lot more stock. Thanks.
v1.1
Just new patch method, see OP!!
serajr said:
Just new patch method, see OP!!
Click to expand...
Click to collapse
What are the changes?
lancebukkake said:
What are the changes?
Click to expand...
Click to collapse
Due to some SystemUI not be compatible, so patch framework files. Nothing else.
But I think this week yet I´ll release v2 with some news like:
- Choose desired toggles
- Reorder them
- New toggles
Some buttons not working on XZ
Just flashed the new 1.1 and noticed that the following buttons aren't working:
GPS
Brightness
Lockscreen (changes color but doesn't seem to do anything)
Network mode
USB conn. mode
USB Debugging
Reboot
Shutdown
Not sure if you already know this or not.
I was originally running 1.0 so in order to install 1.1, I reverted back to the original SystemUI.apk then patched framework-res.apk and services.jar
lancebukkake said:
Just flashed the new 1.1 and noticed that the following buttons aren't working:
GPS
Brightness
Lockscreen (changes color but doesn't seem to do anything)
Network mode
USB conn. mode
USB Debugging
Reboot
Shutdown
Not sure if you already know this or not.
I was originally running 1.0 so in order to install 1.1, I reverted back to the original SystemUI.apk then patched framework-res.apk and services.jar
Click to expand...
Click to collapse
Thanks for feedback buddy!!
Could you please share your modded framework-res.apk and services.jar. If so I´ll take a look!
Thanks in advance!!!

Importing Eclipse Project into Studio

Hi All, Newbie here.
I have been provided a sample project, I believe it is an Eclipse project. I imported it into studio and that went ok but when I build it I get the following:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':approcessDebugManifest'.
> Manifest merger failed with multiple errors, see logs
Is there a common cause for such an error when importing into Studio? Where are these "logs"?
Thanks
Rich
PS Here is my manifest file: (The xmlns link boogered because I can't post links yet)
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="schemas.android.com/apk/res/android"
package="com.nfc.apps" android:versionCode="5" android:versionName="5.0">
<uses-sdk android:minSdkVersion="10" />
<uses-permission android:name="android.permission.NFC" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-feature android:name="android.hardware.nfc"
android:required="true" />
<application android:theme="@style/NFCVReader" android:icon="@drawable/icon" android:label="@string/app_name"
android:name=".DataDevice" android:debuggable="false">
<activity android:screenOrientation="portrait" android:name=".NFCappsActivity" android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:screenOrientation="portrait" android:name=".NFCappsActivity" android:label="@string/app_name">
<intent-filter>
<action android:name="android.nfc.action.TECH_DISCOVERED" />
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
<meta-data android:name="android.nfc.action.TECH_DISCOVERED" android:resource="@xml/nfc_tech_filter" />
</activity>
<activity android:screenOrientation="portrait" android:name=".Scan" />
<activity android:screenOrientation="portrait" android:name=".StandardMenu" />
<activity android:screenOrientation="portrait" android:name=".ScanRead" android:windowSoftInputMode="adjustPan"/>
<activity android:screenOrientation="portrait" android:name=".BasicWrite" />
<activity android:screenOrientation="portrait" android:name=".FileManagement" />
<activity android:screenOrientation="portrait" android:name=".ImageTransfer" />
<activity android:name=".ImageTransferDisplay" />
<activity android:screenOrientation="portrait" android:name=".PasswordManagement" />
<activity android:screenOrientation="portrait" android:name=".LockSectorManagement" />
<activity android:screenOrientation="portrait" android:name=".EHmanagement" />
<activity android:screenOrientation="portrait" android:name=".NDEFMenu" />
<activity android:screenOrientation="portrait" android:name=".NDEFWrite" />
<activity android:screenOrientation="portrait" android:name=".NDEFRead" />
<activity android:screenOrientation="portrait" android:name=".NDEFLibrary" />
</application>
</manifest>
I fixed this by eliminating the extra <activity> block, I assume this was added by the import tool. Strange.
Rich

Permission Requests doesn't work

My App instantly crashes as I start it with a http request uncommented. So I assume that's the problem.
According to online research I need to add the permission to the manifest. I did that but it doesn't seem to work:
Code:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<uses-permission android:name="android.permission.INTERNET" />
<application
android:allowBackup="true"
android:dataExtractionRules="@xml/data_extraction_rules"
android:fullBackupContent="@xml/backup_rules"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.MyApplication"
tools:targetApi="31">
<activity
android:name=".MainActivity"
android:exported="true"
android:label="@string/app_name"
android:theme="@style/Theme.MyApplication.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<meta-data
android:name="android.app.lib_name"
android:value="" />
</activity>
</application>
</manifest>
The app has no permissions according to the info thing in the emulator. I tried restarting the IDE since I could not figure out how to restart the emulation without that step. To be honest Iam still unsure if that restartet the emulator it seems too fast.

Categories

Resources