This Is My First Guide So Please Forgive Me If I Forget Something
In This Guide I Will Show You How to Make A New Activity Like For example :
- Credits
- About Rom
And Etc.
Requirements:
Any Tool that can Decompile & Recompile with it's requirements
Notepad++ (Will Be Much Easier To Use This)
My Friend Saqib Nazm Has Made A Very Good Guide About How to Add Any Option In Settings.apk Which May Prove Helpful In This Guide : [Complete Tutorial] How to add any App/Option in Settings.apk
I Will Be Using Credits In About Phone As An Example:
First Of All You Should Know How To Decompile Settings.apk ( This Guide May Prove HelpFul : How to Decompile/Recompile Apk with Apk Multitool + Decompile/Recompile Jar Files
First Of All Extract And Decompile Your Settings.apk
_
Now Navigate To /res/xml/ And Open
- device_info_settings.xml (If You Want It In The About_Phone Section)
- Go Here If You Want To Add To Main Menu
Now Go To The End And Add (Or Whereever You Want It To Be)
Code:
<PreferenceScreen android:title="@string/device_credit" android:key="credits_info" android:summary="@string/device_credit_summary">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.deviceinfo.Credits" />
</PreferenceScreen>
{
"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"
}
_
Now Navigate To /res/values
And Open Strings.xml
Then Add This At The End
Code:
<string name="credits_activity_title">Credits</string>
<string name="device_credit">Credits</string>
<string name="device_credit_summary"></string>
<string name="credit_dev_header">Developed By:</string>
<string name="credit_dev_name">"Name Here"</string>
<string name="credit_header">Thanks To:</string>
<string name="credit_name">"-Name Here \n
-Name Here \n
-Name Here \n
-Name Here \n
-Name Here \n
-Name Here"</string>
Note : \n Is used to add a new line
_
Now Download The File From The Attachment And Paste The Files Into Your Decompiled Directory
_
Now Edit AndroidManifest.xml
And Add This To The End
Code:
<activity android:label="@string/credits_activity_title" android:name=".deviceinfo.Credits">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
_
Now Recompile The Apk And Then Decompile it Again
_
In The Directory You Just Decompiled The Apk Navigate To /res/values/
And Open Public.xml
Search For : device_info_credits
And Copy The ID Beside What You Just Searched
Then Navigate To /smali/com/android/settings/deviceinfo/
And Open Credits.smali
And Find This Code
Code:
.line 20
const v0, [U]0x7f050039[/U]
Change the UnderLined Part To The ID You Just Copied From Public.xml
_
Now You May Recompile Your Settings.apk
Please Remember To Sign The APK
*ScreenShots Are Available Within The Hidden Contents*
*How To Change This For WhatEver You Want*
*Here I Will Be Explaining How You Can Modify This Guide To Include Whatever You Want*
First In /res/xml/device_info_settings.xml *OPTIONAL*
Change The Codes In Red To What You Desire
Change The Code In Green To What You Desire As Well But Be Cautious About This As Most Things Will Use This
Code:
<PreferenceScreen android:title="@string/[COLOR="Red"]device_credit[/COLOR]" android:key="[COLOR="Red"]credits_info[/COLOR]" android:summary="@string[COLOR="red"]/device_credit_summary[/COLOR]">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.deviceinfo[COLOR="Green"].Credits[/COLOR]" />
</PreferenceScreen>
_
Now In /res/values/Strings.xml *IMPORTANT*
Change The Codes In Red To What You Set In The Previous Step
Change The Codes In Green To Whatever You Want To Be Displayed
Code:
<string name="[COLOR="Red"]credits_activity_title[/COLOR]">[COLOR="green"]Credits[/COLOR]</string>
<string name="[COLOR="red"]device_credit[/COLOR]">[COLOR="green"]Credits[/COLOR]</string>
<string name="[COLOR="red"]device_credit_summary[/COLOR]"></string>
<string name="[COLOR="red"]credit_dev_header[/COLOR]">[COLOR="Green"]Developed By:[/COLOR]</string>
<string name="[COLOR="red"]credit_dev_name[/COLOR]">[COLOR="Green"]Name Here[/COLOR]</string>
<string name="[COLOR="red"]credit_header[/COLOR]">[COLOR="green"]Thanks To:[/COLOR]</string>
<string name="[COLOR="red"]credit_name[/COLOR]">"[COLOR="green"]-Name Here \n
-Name Here \n
-Name Here \n
-Name Here \n
-Name Here \n
-Name Here[/COLOR]"</string>
_
Now In The Attached File *OPTIONAL*
Rename The Both Files In My Settings.apk
The Smali FIle Rename To What You Set In Step 1 (The One In Green)
Inside the smali file change all the occurences accordingly
in Public.xml to get the ID use the name of the renamed xml file
Now In Android Manifest
Change The Stuff In Red To What You Have Already Set
Code:
<activity android:label="@string/[COLOR="Red"]credits_activity_title[/COLOR]" android:name=".deviceinfo[COLOR="Red"].Credits[/COLOR]">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
Edit The xml file in my zip accordingly
And Now Follow My Guide
Ok wait @Sahaab
why to create a thread of you toke an example if this and its already here?
http://forum.xda-developers.com/showthread.php?t=2341389
Pandemic said:
Ok wait @Sahaab
why to create a thread of you toke an example if this and its already here?
http://forum.xda-developers.com/showthread.php?t=2341389
Click to expand...
Click to collapse
Try Creating A new activity with that guide
Right, that's the thing so many people asked me, glad that you made it here. I can just re-direct them here now
saqib nazm said:
Right, that's the thing so many people asked me, glad that you made it here. I can just re-direct them here now
Click to expand...
Click to collapse
Go ahead
And u said to make a guide so here it is
It took a while for me to do this for my ROM so I thought I wud
Sent from my LT18i
Hey
Sahaab
Click to expand...
Click to collapse
so i dont know how to deal with this error, any ideas
/home/dev/adt/apk/Settings/res/xml/device_info_settings.xml:42: error: Error parsing XML: no element found
USEFULL INFO
there is no line 42 , only line 41 (not even empty line 42)
ps i didnt change any of the given codes (too lazy and they are fine how they are , im not going to have a second credits menu am i?)
Pps Here is from line 30 to 41
Code:
</PreferenceScreen>
<Preference android:title="@string/model_number" android:key="device_model" android:summary="@string/device_info_default" style="?android:preferenceInformationStyle" />
<Preference android:title="@string/firmware_version" android:key="firmware_version" android:summary="@string/device_info_default" style="?android:preferenceInformationStyle" />
<Preference android:title="@string/fcc_equipment_id" android:key="fcc_equipment_id" android:summary="@string/device_info_default" style="?android:preferenceInformationStyle" />
<Preference android:title="@string/baseband_version" android:key="baseband_version" android:summary="@string/device_info_default" style="?android:preferenceInformationStyle" />
<Preference android:title="@string/kernel_version" android:key="kernel_version" android:summary="@string/device_info_default" style="?android:preferenceInformationStyle" />
[COLOR="Red"] <Preference android:title="@string/rom_header" android:key="rom_header" android:summary="@string/rom_name" style="?android:preferenceInformationStyle" />[/COLOR]
<Preference android:title="@string/build_number" android:key="build_number" android:summary="@string/device_info_default" style="?android:preferenceInformationStyle" />
<com.sonymobile.settings.preference.IncludePreference settings:include="@xml/somc_add_device_info_settings" />
[COLOR="Red"] <PreferenceScreen android:title="@string/device_credit" android:key="credits_info" android:summary="@string/device_credit_summary">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.deviceinfo.Credits" />[/COLOR]
</PreferenceScreen>
Key
RED=ADDED
Envious_Data said:
so i dont know how to deal with this error, any ideas
/home/dev/adt/apk/Settings/res/xml/device_info_settings.xml:42: error: Error parsing XML: no element found
USEFULL INFO
there is no line 42 , only line 41 (not even empty line 42)
ps i didnt change any of the given codes (too lazy and they are fine how they are , im not going to have a second credits menu am i?)
Pps Here is from line 30 to 41
Code:
</PreferenceScreen>
<Preference android:title="@string/model_number" android:key="device_model" android:summary="@string/device_info_default" style="?android:preferenceInformationStyle" />
<Preference android:title="@string/firmware_version" android:key="firmware_version" android:summary="@string/device_info_default" style="?android:preferenceInformationStyle" />
<Preference android:title="@string/fcc_equipment_id" android:key="fcc_equipment_id" android:summary="@string/device_info_default" style="?android:preferenceInformationStyle" />
<Preference android:title="@string/baseband_version" android:key="baseband_version" android:summary="@string/device_info_default" style="?android:preferenceInformationStyle" />
<Preference android:title="@string/kernel_version" android:key="kernel_version" android:summary="@string/device_info_default" style="?android:preferenceInformationStyle" />
[COLOR="Red"] <Preference android:title="@string/rom_header" android:key="rom_header" android:summary="@string/rom_name" style="?android:preferenceInformationStyle" />[/COLOR]
<Preference android:title="@string/build_number" android:key="build_number" android:summary="@string/device_info_default" style="?android:preferenceInformationStyle" />
<com.sonymobile.settings.preference.IncludePreference settings:include="@xml/somc_add_device_info_settings" />
[COLOR="Red"] <PreferenceScreen android:title="@string/device_credit" android:key="credits_info" android:summary="@string/device_credit_summary">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.deviceinfo.Credits" />[/COLOR]
</PreferenceScreen>
Key
RED=ADDED
Click to expand...
Click to collapse
Either u forgot to edit manifest
Or forgot to paste the files
Sent from my LT18i
Sahaab said:
Either u forgot to edit manifest
Or forgot to paste the files
Sent from my LT18i
Click to expand...
Click to collapse
i did edit android.manifest , and i did paste the files
Lines 933 to lines 939
Code:
<activity android:theme="@style/Theme.Holo.DialogWhenLarge" android:label="@string/credits_activity_title" android:name=".deviceinfo.Credits">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
</application>
</manifest>
EDIT i could send you my Files so you could have a look your self?
Excellent contribution my friend!
Envious_Data said:
i did edit android.manifest , and i did paste the files
Lines 933 to lines 939
Code:
EDIT i could send you my Files so you could have a look your self?
Click to expand...
Click to collapse
Plz give whole decompiled settings here
I will look at them in about 8 hours
Sent from my LT18i
here
Sahaab said:
Plz give whole decompiled settings here
I will look at them in about 8 hours
Sent from my LT18i
Click to expand...
Click to collapse
Framework , app and decompiled app included Download below (ps since its a google link it will expire in a few days)
https://doc-0c-8o-docs.googleuserco...0117431&hash=mfc7p0gtv45irjehbs9ij0n0p19cpc91
Envious_Data said:
Framework , app and decompiled app included Download below (ps since its a google link it will expire in a few days)
https://doc-0c-8o-docs.googleuserco...0117431&hash=mfc7p0gtv45irjehbs9ij0n0p19cpc91
Click to expand...
Click to collapse
Ok atleast not few hours
I am fine with days
Sent from my LT18i
Envious_Data said:
Framework , app and decompiled app included Download below (ps since its a google link it will expire in a few days)
https://doc-0c-8o-docs.googleuserco...0117431&hash=mfc7p0gtv45irjehbs9ij0n0p19cpc91
Click to expand...
Click to collapse
umm it says i am not allowed to access the link :-/
Its working fine. User mistake.
Please read out the errors, apktool tells you everything, its really easy to fix.
jader13254 said:
Its working fine. User mistake.
Please read out the errors, apktool tells you everything, its really easy to fix.
Click to expand...
Click to collapse
Could you plz fix it for him?
https://app.box.com/s/ziadp09v9m15pyjc4nwg
Better and less retared
Envious_Data said:
https://app.box.com/s/ziadp09v9m15pyjc4nwg
Better and less retared
Click to expand...
Click to collapse
Well iTs 4:30 A.m here so hence I will look at it tmrw
Sent from my LT18i
Envious_Data said:
https://app.box.com/s/ziadp09v9m15pyjc4nwg
Better and less retared
Click to expand...
Click to collapse
okay , so i fixed it and am uploading
had to restart using the settings.apk u gave me so it probably lost the modifications u may have done
the problem was prob one of the mods u had done :-/
Envious data
Sahaab said:
okay , so i fixed it and am uploading
had to restart using the settings.apk u gave me so it probably lost the modifications u may have done
the problem was prob one of the mods u had done :-/
Envious data
Click to expand...
Click to collapse
okay , was it just the aditional text boxes that you removed?? what exactly did you do?
ps go here -> http://enviousdataswebsite.jimdo.com/credits/
Related
{
"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"
}
So I came across this thread a week or more back and implemented it in my ICS rom, but I wasn't happy with it(various reasons but mostly because it is gesture based). So I abandoned it. Fast forward a couple days, jumping from project to project, idea to idea and I somehow ended up porting the latest ICS version of ShenduOS. Then boom, the settings app was *almost* exactly what I wanted. It featured a more natural swiping from tab to tab, similar to most launchers.
So I stripped the code for the tabs from the shendu settings app, stripped that code of any Shendu specific code and re-coded portions of the smali code so I could add it to the settings app of the ICS rom I use as my daily driver. What I ended up with is what seems to be something thats pretty generic and not rom specific.
So now I share with you what *should* work with any ICS+ rom. This guide will be very similar to the one I linked to above.
THIS SHOULD ALSO WORK ON OTHER DEVICES BUT I CANNOT TEST TO BE SURE
Prerequisites:
-experience decompiling/recompiling apk's with APKTool
-experience signing apks
-experience editing/theming apks
I will not go into any of the above any more then just saying when to preform certain actions......
GUIDE:
1. First you will need to decompile the Settings.apk from your ROM with apktool
2. Download the Settings.zip I attached to this post
3. Unzip the Settings.zip and copy the 'res' and 'smali' folders to your decompiled Settings.apk folder(merge with existing folders of the same names)
4. Open 'res/values/strings.xml' from the decompiled settings apk in your favorite text editor and add the following to the end of the list of strings...
Code:
<string name="personalized_setting">Personal</string>
<string name="device_setting">System</string>
<string name="app_setting">Applications</string>
5. Open 'res/values/ids.xml' from the decompiled settings apk in your favorite text editor and add the following to the end of the list of ID's
Code:
<item type="id" name="linearLayout1">false</item>
<item type="id" name="personalized_tab">false</item>
<item type="id" name="device_tab">false</item>
<item type="id" name="app_tab">false</item>
<item type="id" name="cursor">false</item>
<item type="id" name="vPager">false</item>
6.Now you must recompile the settings.apk. This is because APKtool will give resource ID's to certain resources we added during this process, we need these generated ID's in the following steps because the code access's some resources directly by the ID's.
7. Decompile the Newly recompiled APK again, from here on out I will assume your editing this newly recompiled/decompiled version.
8. With this step it is very easy to make a typo, so please make sure you are paying Extra attention to details during this step.
-Open up 'res/values/public.xml' and you will find lines similar to the following.
Code:
<public type="id" name="[COLOR="Red"]vPager[/COLOR]" id="[U]0x7f08022a[/U]" />
-Below I will give you a list of .smali file names, each file is located in the 'smali/com/android/settings/' folder of your decompiled settings.apk
- Each file name will be followed by a line similar to above, you need to search the smali files for the ID(underlined in the example above)
- Then search the public.xml I told you to open above for the name for each line(red in example above)
- Replace the ID in the smali file with the one you located in the public.xml
Code:
!--MainSettings.smali--!
<public type="id" name="vPager" id="0x7f08022a" />
<public type="id" name="cursor" id="0x7f080229" />
<public type="id" name="app_tab" id="0x7f080168" />
<public type="id" name="device_tab" id="0x7f080228" />
<public type="id" name="personalized_tab" id="0x7f080227" />
<public type="layout" name="mainsetting" id="0x7f040090" />
!--DeviceSettings.smali--!
<public type="xml" name="device_settings_headers" id="0x7f050051" />
!--AppSettings.smali--!
<public type="xml" name="app_settings_headers" id="0x7f050052" />
!--PersonalSettings.smali--!
<public type="xml" name="personal_settings_headers" id="0x7f050053" />
9. Now open up the 'AndroidManifest.xml' of your decompiled settings.apk in a text editor.
-Find a section similar to the below....
Code:
<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>
The important parts you are looking for are 'name="Settings" and the 'android.intent.category.LAUNCHER' lines, there *should* only be a single section with these.
Change this section to the below:
Code:
<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>
Directly above that section copy/paste the following code:
Code:
<activity android:name="MainSetting" android:theme="@android:style/Theme.NoTitleBar" android:taskAffinity="com.android.settings" android:launchMode="singleTask">
<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:label="@string/settings_label_launcher" android:name="PersonalSettings" android:taskAffinity="com.android.settings" android:launchMode="singleTask">
<intent-filter>
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity android:label="@string/settings_label_launcher" android:name="DeviceSettings" android:taskAffinity="com.android.settings" android:launchMode="singleTask">
<intent-filter>
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity android:label="@string/settings_label_launcher" android:name="AppSettings" android:taskAffinity="com.android.settings" android:launchMode="singleTask">
<intent-filter>
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
10. You are now done with this round of modifications, its time to recompile the APK. Because this is a system app and we edited AndroidManifest.xml we must sign this recompiled Apk before pushing it to the system. You can try using any of the keys that come with whatever apk signing tool you use, but you will more then likely end up with a Settings.apk that wont show as being installed. To overcome this on ASOP roms I download and sign system apks with the platfrom keys from CyanogenMod's android_build github. If everything goes well and you push the new signed apk to the system, your settings app should now look similar to this when you open it.
11. What you have is 3 tabs with no settings. I left this for you to do, as each rom has its own specific settings options. Most ASOP roms store the main page of settings options in the 'res/xml/settings_headers.xml'. Copy/paste/reorganize each of these options into the 'app_settings_headers.xml', 'device_settings_headers.xml' and 'personal_settings_headers.xml' files which are also located in 'res/xml/'.
12. After all is said and done above, you *may* need to edit/theme the 'res/layout/mainsettings.xml' to suit your roms specific look.
NOTE:
If you are attempting this on a Non-ASOP Rom or are having trouble you may need to follow these additional instructions
And to finally end this, here are some screenshots where I added this feature to the settings.apk of our twistedmodICS rom by pwn.
alternate mirror to files :http://www.mediafire.com/?8vp99zjfkbe42z2
reserved....
Nice to see you finally got it how you wanted it. Thanks for the guide
Sent from my myTouch_4G_Slide using Tapatalk 2
Nice guide. Thank you.
TEAM MiK
MikROMs Since 3/13/11
strapped365 said:
Nice to see you finally got it how you wanted it. Thanks for the guide
Sent from my myTouch_4G_Slide using Tapatalk 2
Click to expand...
Click to collapse
Yessir, I was giddy like a little school girl when I finally got it to function how I wanted
Sent from my HTC Evo Shift using xda app-developers app
Thanks for the work you put into this and the guide
Never mind, I figured it out!
SaintZ93 said:
Never mind, I figured it out!
Click to expand...
Click to collapse
lol.. I re-downloaded to double check, checked it, then quoted your reply only to see that you figured it out already... If you need anything else let me know
Awesome
Shifted from planet Namek
thanks Bro for the guide
but I'm still confuse with this
Quote :
"To overcome this on ASOP roms I
download and sign system apks with the
platfrom keys from CyanogenMod's
android_build github. "
can you guide that too ?
Thanks in advance
hello BigSplit.....after I followed your tutorial. I get this in apktool
C: \ Documents and Settings \ server \ Desktop \ ICS Apktool> apkto
I: Checking Whether sources has changed ...
I: Smaling ...
I: Checking Whether resources has changed ...
I: Building resources ...
AAPT: warning: string 'dsds_dsds_device_status' has no def
\ Documents and Settings \ server \ Desktop \ ICS Apktool \ Settings
AAPT: warning: string 'dsdsdevice_status' has no default t
ents and Settings \ server \ Desktop \ ICS Apktool \ Settings \ res;
I: Building apk file ...
C: \ Documents and Settings \ server \ Desktop \ ICS Apktool> apkto
I: Checking Whether sources has changed ...
I: Checking Whether resources has changed ...
I: Building apk file ...
C: \ Documents and Settings \ server \ Desktop \ ICS Apktool>
and I try to push my settings and my settings disappeared after reboot. help me to fix this problem .. thks
did u sign the apk like i mentioned in the op?
Adi_ai****eru said:
thanks Bro for the guide
but I'm still confuse with this
Quote :
"To overcome this on ASOP roms I
download and sign system apks with the
platfrom keys from CyanogenMod's
android_build github. "
can you guide that too ?
Thanks in advance
Click to expand...
Click to collapse
Google for a guide about signing apks. Most tutorials will have you sign apks with test keys, I gave you a link in that sentence you quoted directly to the files I said you should use in signing instead.
BigSplit said:
Google for a guide about signing apks. Most tutorials will have you sign apks with test keys, I gave you a link in that sentence you quoted directly to the files I said you should use in signing instead.
Click to expand...
Click to collapse
Adi_ai****eru said:
thanks Bro for the guide
but I'm still confuse with this
Quote :
"To overcome this on ASOP roms I
download and sign system apks with the
platfrom keys from CyanogenMod's
android_build github. "
can you guide that too ?
Thanks in advance
Click to expand...
Click to collapse
Dont worry, I got you
HOW TO SIGN APKS/ZIPS
Note: Java needs to be installed for this to work
1. Download the signapk.zip file from my mediafire
http://www.mediafire.com/#8gjgusqbct8q2
2. Extract it and read the "usage.txt"
3. Download the .pk8 and .pem files that BigSplit linked to and copy those into the extracted "signapk" directory
4. Open a command prompt window in the "signapk" extracted directory (Shift+RightClick > Open command prompt here)
5. Run the command in the "usage.txt", substituting your downloaded ".pem" file and your downloaded ".pk8" file and the Settings.apk file in the appropriate places
Command should look something like this
Code:
java -jar signapk.jar downloaded-certificate-HERE.pem download-key-HERE.pk8 SettingsAppHere.apk Settings-signed.apk
The "settings-signed.apk" part can be changed to anything, thats just the signed output file
"SettingsAppHere.apk" is the Settings app you are modding
Sent from my PG06100
Time to sticky this one
stare into oblivion
Fall into sleep
turkbot said:
Time to sticky this one
stare into oblivion
Fall into sleep
Click to expand...
Click to collapse
I know right.
Awesome find again, BigSplit, must've taken you a lot of digging in forums and background knowledge but I gotta say, the end product is definitely worth it :good:
Sent from my PG06100
CNexus said:
Dont worry, I got you
HOW TO SIGN APKS/ZIPS
Note: Java needs to be installed for this to work
1. Download the signapk.zip file from my mediafire
http://www.mediafire.com/#8gjgusqbct8q2
2. Extract it and read the "usage.txt"
3. Download the .pk8 and .pem files that BigSplit linked to and copy those into the extracted "signapk" directory
4. Open a command prompt window in the "signapk" extracted directory (Shift+RightClick > Open command prompt here)
5. Run the command in the "usage.txt", substituting your downloaded ".pem" file and your downloaded ".pk8" file and the Settings.apk file in the appropriate places
Command should look something like this
Code:
java -jar signapk.jar downloaded-certificate-HERE.pem download-key-HERE.pk8 SettingsAppHere.apk Settings-signed.apk
The "settings-signed.apk" part can be changed to anything, thats just the signed output file
"SettingsAppHere.apk" is the Settings app you are modding
Sent from my PG06100
Click to expand...
Click to collapse
How about ApkMultitools ?
I ussualy use ApkMultitools to decompile/compile/sign.apk
Sent from my GT-I8150 using xda app-developers app
Adi_ai****eru said:
How about ApkMultitools ?
I ussualy use ApkMultitools to decompile/compile/sign.apk
Sent from my GT-I8150 using xda app-developers app
Click to expand...
Click to collapse
I guess thats fine too. I like doing things manually though when I can
BigSplit said:
did u sign the apk like i mentioned in the op?
Click to expand...
Click to collapse
Sir ... Can you make this for me. I always fail at boot time ... my settings are always lost. probably because I could not find - <public type="layout" name="mainsetting" id="0x7f040090" /> in public.xml,
im st23i 4.0.4. thks sir ..
Nathan Ali Ashari said:
Sir ... Can you make this for me. I always fail at boot time ... my settings are always lost. probably because I could not find - <public type="layout" name="mainsetting" id="0x7f040090" /> in public.xml,
im st23i 4.0.4. thks sir ..
Click to expand...
Click to collapse
So you are on a stock firmware? If so, I would guess that the other packages are not signed with the same keys I linked to since its a stock ROM and not asop. The only thing you can do then is to attempt to re-sign every system apk/jar with a new signature(which I've never been successful at doing).
And the mainsetting will only show up in the public xml AFTER you compile it, then decompile it again. The only reason it wouldnt show up is if you are not placing the files i posted in the correct directories or not recompiling/decompiling when I said to.
eXtended CM10 Settings.
{
"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"
}
Featured.
Superuser Shortcut
DSPManager Shortcut
USB Connections Shortcut
Tethering Shortcut
Device owner info
Recovery version
Click to expand...
Click to collapse
Things you'll need.
PC or Laptop
apktool, zipalign and others
WinRAR or WinZip
Notepad++
Patience!
Click to expand...
Click to collapse
Installing apkTool.
STEP 1
You must install apktool to your PC from HERE and other tools HERE
Extract it to a same directory
Then, copy cmd from Windows/System32 Directory (ex. C:\Windows\System32) and move it your apktool directory
STEP 2
Download zipalign from HERE, move it to Windows Directory (ex. C:\Windows)
Superuser shortcut.
STEP 1
Copy your framework-res.apk from system/framework and Settings.apk from /system/app/ then place it in your apktool directory
STEP 2
Open cmd in your apktool directory, type
Code:
apktool if framework-res.apk
then
Code:
apktool d Settings.apk
STEP 3
Go to Settings\res\xml
Open settings_headers.xml with Notepad++
Go to this
Code:
<header android:icon="@drawable/ic_settings_themes" android:id="@id/themes_settings" android:title="@string/themes_settings_title">
<intent android:targetPackage="com.tmobile.themechooser" android:action="android.intent.action.MAIN" android:targetClass="com.tmobile.themechooser.ThemeChooser" />
</header>
add a line below
Code:
<header android:icon="@drawable/ic_settings_superuser" android:id="@id/superuser_settings" android:title="@string/superuser_settings_title">
<intent android:targetPackage="[COLOR="Red"](Referring to your Superuser app, go to post [URL="http://forum.xda-developers.com/showpost.php?p=41069458&postcount=3"]#3[/URL])[/COLOR]" android:action="android.intent.action.MAIN" android:targetClass="[COLOR="red"](Referring to your Superuser app, go to post [URL="http://forum.xda-developers.com/showpost.php?p=41069458&postcount=3"]#3[/URL])[/COLOR]" />
</header>
so it look like this
Code:
<header android:icon="@drawable/ic_settings_themes" android:id="@id/themes_settings" android:title="@string/themes_settings_title">
<intent android:targetPackage="com.tmobile.themechooser" android:action="android.intent.action.MAIN" android:targetClass="com.tmobile.themechooser.ThemeChooser" />
</header>
<header android:icon="@drawable/ic_settings_superuser" android:id="@id/superuser_settings" android:title="@string/superuser_settings_title">
<intent android:targetPackage="[COLOR="Red"](Referring to your Superuser app, go to post [URL="http://forum.xda-developers.com/showpost.php?p=41069458&postcount=3"]#3[/URL])[/COLOR]" android:action="android.intent.action.MAIN" android:targetClass="[COLOR="Red"](Referring to your Superuser app, go to post [URL="http://forum.xda-developers.com/showpost.php?p=41069458&postcount=3"]#3[/URL])[/COLOR]" />
</header>
and save
STEP 4
Download the Superuser icon .zip in the attachment below
Extract it to Settings\res\drawable-mdpi
STEP 5
Go to Settings\res\values
Open ids.xml with Notepad++
Go to this
Code:
<item type="id" name="themes_settings">false</item>
add a line below
Code:
<item type="id" name="superuser_settings">false</item>
so it look like this
Code:
<item type="id" name="themes_settings">false</item>
<item type="id" name="superuser_settings">false</item>
and save
STEP 6
Go to Settings\res\values
Open strings.xml with Notepad++
Go to this
Code:
<string name="themes_settings_title">Themes</string>
add a line below
Code:
<string name="superuser_settings_title">Superuser</string>
so it look like this
Code:
<string name="themes_settings_title">Themes</string>
<string name="superuser_settings_title">Superuser</string>
and save
STEP 7
Open cmd in your apktool directory, type
Code:
apktool b Settings al.apk
then open al.apk and Settings.apk with WinRAR, copy META-INF folder and AndroidManifest.xml from SystemUI.apk to al.apk, when it ask to compress click OK
STEP 8
Open cmd in your apktool directory, type
Code:
zipalign -v 4 al.apk Settingsmod.apk
STEP 9
Move your Settingsmod.apk to your phone, rename to Settings.apk, move it to /system/app/ and change permission to rw-r--r--
Then reboot
DSPManager shortcut.
STEP 1
If you have decompiled Settings.apk, Go to Settings\res\xml
Open settings_headers.xml with Notepad++
Go to this
Code:
<header android:icon="@drawable/ic_settings_themes" android:id="@id/themes_settings" android:title="@string/themes_settings_title">
<intent android:targetPackage="com.tmobile.themechooser" android:action="android.intent.action.MAIN" android:targetClass="com.tmobile.themechooser.ThemeChooser" />
</header>
add a line below
Code:
<header android:icon="@drawable/ic_settings_dspmanager" android:id="@id/dspmanager_settings" android:title="@string/dspmanager_settings_title">
<intent android:targetPackage="com.bel.android.dspmanager" android:action="android.intent.action.MAIN" android:targetClass="com.bel.android.dspmanager.activity.DSPManager" />
</header>
so it look like this
Code:
<header android:icon="@drawable/ic_settings_themes" android:id="@id/themes_settings" android:title="@string/themes_settings_title">
<intent android:targetPackage="com.tmobile.themechooser" android:action="android.intent.action.MAIN" android:targetClass="com.tmobile.themechooser.ThemeChooser" />
</header>
<header android:icon="@drawable/ic_settings_dspmanager" android:id="@id/dspmanager_settings" android:title="@string/dspmanager_settings_title">
<intent android:targetPackage="com.bel.android.dspmanager" android:action="android.intent.action.MAIN" android:targetClass="com.bel.android.dspmanager.activity.DSPManager" />
</header>
and save
STEP 2
Download the DSPManager icon .zip in the attachment below
Extract it to Settings\res\drawable-mdpi
STEP 3
Go to Settings\res\values
Open ids.xml with Notepad++
Go to this
Code:
<item type="id" name="themes_settings">false</item>
add a line below
Code:
<item type="id" name="dspmanager_settings">false</item>
so it look like this
Code:
<item type="id" name="themes_settings">false</item>
<item type="id" name="dspmanager_settings">false</item>
and save
STEP 4
Go to Settings\res\values
Open strings.xml with Notepad++
Go to this
Code:
<string name="themes_settings_title">Themes</string>
add a line below
Code:
<string name="dspmanager_settings_title">Equalizer</string>
so it look like this
Code:
<string name="themes_settings_title">Themes</string>
<string name="dspmanager_settings_title">Equalizer</string>
and save
STEP 5
Open cmd in your apktool directory, type
Code:
apktool b Settings al.apk
then open al.apk and Settings.apk with WinRAR, copy META-INF folder and AndroidManifest.xml from SystemUI.apk to al.apk, when it ask to compress click OK
STEP 6
Open cmd in your apktool directory, type
Code:
zipalign -v 4 al.apk Settingsmod.apk
STEP 7
Move your Settingsmod.apk to your phone, rename to Settings.apk, move it to /system/app/ and change permission to rw-r--r--
Then reboot
USB Connections shortcut.
STEP 1
If you have decompiled Settings.apk, Go to Settings\res\xml
Open settings_headers.xml with Notepad++
Go to this
Code:
<header android:icon="@drawable/ic_settings_applications" android:id="@id/application_settings" android:title="@string/applications_settings" android:fragment="com.android.settings.applications.ManageApplications" />
add a line below
Code:
<header android:icon="@drawable/ic_settings_usb" android:id="@id/usb_settings" android:title="@string/storage_title_usb" android:fragment="com.android.settings.deviceinfo.UsbSettings" />
so it look like this
Code:
<header android:icon="@drawable/ic_settings_applications" android:id="@id/application_settings" android:title="@string/applications_settings" android:fragment="com.android.settings.applications.ManageApplications" />
<header android:icon="@drawable/ic_settings_usb" android:id="@id/usb_settings" android:title="@string/storage_title_usb" android:fragment="com.android.settings.deviceinfo.UsbSettings" />
and save
STEP 2
Download the USB icon .zip in the attachment below
Extract it to Settings\res\drawable-mdpi
STEP 3
Go to Settings\res\values
Open ids.xml with Notepad++
Go to this
Code:
<item type="id" name="application_settings">false</item>
add a line below
Code:
<item type="id" name="usb_settings">false</item>
so it look like this
Code:
<item type="id" name="application_settings">false</item>
<item type="id" name="usb_settings">false</item>
and save
STEP 4
Go to Settings\res\values
Open strings.xml with Notepad++
Go to this
Code:
<string name="storage_title_usb">[COLOR="Red"]USB computer connection[/COLOR]</string>
change to
Code:
<string name="storage_title_usb">[COLOR="Red"]USB connection[/COLOR]</string>
and save
STEP 5
Open cmd in your apktool directory, type
Code:
apktool b Settings al.apk
then open al.apk and Settings.apk with WinRAR, copy META-INF folder and AndroidManifest.xml from SystemUI.apk to al.apk, when it ask to compress click OK
STEP 6
Open cmd in your apktool directory, type
Code:
zipalign -v 4 al.apk Settingsmod.apk
STEP 7
Move your Settingsmod.apk to your phone, rename to Settings.apk, move it to /system/app/ and change permission to rw-r--r--
Then reboot
Tethering shortcut.
STEP 1
If you have decompiled Settings.apk, Go to Settings\res\xml
Open settings_headers.xml with Notepad++
Go to this
Code:
<header android:icon="@drawable/ic_settings_bluetooth2" android:id="@id/bluetooth_settings" android:title="@string/bluetooth_settings_title" android:fragment="com.android.settings.bluetooth.BluetoothSettings" />
add a line below
Code:
<header android:icon="@drawable/ic_settings_tether" android:id="@id/tether_settings" android:title="@string/tether_settings_title" android:fragment="com.android.settings.TetherSettings" />
so it look like this
Code:
<header android:icon="@drawable/ic_settings_bluetooth2" android:id="@id/bluetooth_settings" android:title="@string/bluetooth_settings_title" android:fragment="com.android.settings.bluetooth.BluetoothSettings" />
<header android:icon="@drawable/ic_settings_tether" android:id="@id/tether_settings" android:title="@string/tether_settings_title_all" android:fragment="com.android.settings.TetherSettings" />
and save
STEP 2
Download the Tether icon .zip in the attachment below
Extract it to Settings\res\drawable-mdpi
STEP 3
Go to Settings\res\values
Open ids.xml with Notepad++
Go to this
Code:
<item type="id" name="bluetooth_settings">false</item>
add a line below
Code:
<item type="id" name="tether_settings">false</item>
so it look like this
Code:
<item type="id" name="bluetooth_settings">false</item>
<item type="id" name="tether_settings">false</item>
and save
STEP 4
Go to Settings\res\values
Open strings.xml with Notepad++
Go to this
Code:
<string name="bluetooth_settings_title">Bluetooth</string>
add a line below
Code:
<string name="tether_settings_title">Tethering</string>
so it look like this
Code:
<string name="bluetooth_settings_title">Bluetooth</string>
<string name="tether_settings_title">Tethering</string>
and save
STEP 5
Open cmd in your apktool directory, type
Code:
apktool b Settings al.apk
then open al.apk and Settings.apk with WinRAR, copy META-INF folder and AndroidManifest.xml from SystemUI.apk to al.apk, when it ask to compress click OK
STEP 6
Open cmd in your apktool directory, type
Code:
zipalign -v 4 al.apk Settingsmod.apk
STEP 7
Move your Settingsmod.apk to your phone, rename to Settings.apk, move it to /system/app/ and change permission to rw-r--r--
Then reboot
Device owner info.
STEP 1
If you have decompiled Settings.apk, Go to Settings\res\xml
Open device_info_settings.xml with Notepad++
Go to this
Code:
<Preference android:title="@string/firmware_version" android:key="firmware_version" android:summary="@string/device_info_default" style="?android:preferenceInformationStyle" />
add a line below
Code:
<Preference android:title="@string/device_owner" android:key="device_user" android:summary="@string/device_owner_info" style="?android:preferenceInformationStyle" />
so it look like this
Code:
<Preference android:title="@string/firmware_version" android:key="firmware_version" android:summary="@string/device_info_default" style="?android:preferenceInformationStyle" />
<Preference android:title="@string/device_owner" android:key="device_owner" android:summary="@string/device_owner_info" style="?android:preferenceInformationStyle" />
and save
STEP 2
Go to Settings\res\values
Open strings.xml with Notepad++
Go to this
Code:
<string name="device_info_default">Unknown</string>
add a line below
Code:
<string name="device_owner">Device owner</string>
<string name="device_owner_info">[COLOR="Red"]Your Name[/COLOR]</string>
so it look like this
Code:
<string name="device_info_default">Unknown</string>
<string name="device_owner">Device owner</string>
<string name="device_owner_info">[COLOR="Red"]Your Name[/COLOR]</string>
and save
STEP 3
Open cmd in your apktool directory, type
Code:
apktool b Settings al.apk
then open al.apk and Settings.apk with WinRAR, copy META-INF folder and AndroidManifest.xml from SystemUI.apk to al.apk, when it ask to compress click OK
STEP 4
Open cmd in your apktool directory, type
Code:
zipalign -v 4 al.apk Settingsmod.apk
STEP 5
Move your Settingsmod.apk to your phone, rename to Settings.apk, move it to /system/app/ and change permission to rw-r--r--
Then reboot
Recovery version.
STEP 1
If you have decompiled Settings.apk, Go to Settings\res\xml
Open device_info_settings.xml with Notepad++
Go to this
Code:
<Preference android:title="@string/mod_version" android:key="mod_version" android:summary="@string/mod_version_default" style="?android:preferenceInformationStyle" />
add a line below
Code:
<Preference android:title="@string/recovery_version" android:key="recovery_version" android:summary="@string/recovery_version_default" style="?android:preferenceInformationStyle" />
so it look like this
Code:
<Preference android:title="@string/mod_version" android:key="mod_version" android:summary="@string/mod_version_default" style="?android:preferenceInformationStyle" />
<Preference android:title="@string/recovery_version" android:key="recovery_version" android:summary="@string/recovery_version_default" style="?android:preferenceInformationStyle" />
and save
STEP 2
Go to Settings\res\values
Open strings.xml with Notepad++
Go to this
Code:
<string name="mod_version_default">Unknown</string>
add a line below
Code:
<string name="recovery_version">Recovery version</string>
<string name="recovery_version_default">[COLOR="Red"]Your Recovery[/COLOR]</string>
so it look like this
Code:
<string name="mod_version_default">Unknown</string>
<string name="recovery_version">Recovery version</string>
<string name="recovery_version_default">[COLOR="Red"]Your Recovery[/COLOR]</string>
and save
STEP 3
Open cmd in your apktool directory, type
Code:
apktool b Settings al.apk
then open al.apk and Settings.apk with WinRAR, copy META-INF folder and AndroidManifest.xml from SystemUI.apk to al.apk, when it ask to compress click OK
STEP 4
Open cmd in your apktool directory, type
Code:
zipalign -v 4 al.apk Settingsmod.apk
STEP 5
Move your Settingsmod.apk to your phone, rename to Settings.apk, move it to /system/app/ and change permission to rw-r--r--
Then reboot
Superuser app.
Superuser by ClockWorkMod (Koushik Dutta)
Code:
android:targetPackage="com.koushikdutta.superuser"
android:targetClass="com.koushikdutta.superuser.MainActivity"
Superuser by ChainsDD
Code:
android:targetPackage="com.noshufou.android.su"
android:targetClass="com.noshufou.android.su.Su"
SuperSU by Chainfire
Code:
android:targetPackage="eu.chainfire.supersu"
android:targetClass="eu.chainfire.supersu.MainActivity"
Click to expand...
Click to collapse
Credits to.
Quinny899 for his adding items guide HERE
Koush for his awesome Superuser app HERE
ChainsDD for his awesome Superuser app HERE
Chainfire for his awesome SuperSU app HERE
@sandy7 already taught this guide in this thread
your thread is some kind of spam in my view
always use search
yamin8000 said:
@sandy7 already taught this guide in this thread
your thread is some kind of spam in my view
always use search
Click to expand...
Click to collapse
But I didn't show how to add su shortcut....
So I think its not a spam..and plz do respect for this tut..
Any how OP nice explaination :thumbup::thumbup:
Sent from my SK17i using xda premium
sandy7 said:
But I didn't show how to add su shortcut....
So I think its not a spam..and plz do respect for this tut..
Any how OP nice explaination :thumbup::thumbup:
Sent from my SK17i using xda premium
Click to expand...
Click to collapse
i dont think adding superuser to settings is different from adding CPU option
both of them are same way
only different is name of package that can anybody find it in android-manifest
if this isn't true somebody must teach us how to add all of play store apps to settings in separate guides :laugh:
The guy atleast put in efforts to type n cared to share his knowledge
Respect the person for that mate!
And it is not a spam ...by any means...
Atleast it's way better than spams by noobs
Sent from my MT11i using xda premium
works great.... Owner in settings!
What about integrating Superuser to Settings .. as it is in Cm roms ??
sidharth.gtm said:
What about integrating Superuser to Settings .. as it is in Cm roms ??
Click to expand...
Click to collapse
Yeah I'm working on it now,,
Diaz1999 said:
Yeah I'm working on it now,,
Click to expand...
Click to collapse
Bro that would be real challenge..
and please teach us with great tutorials
sidharth.gtm said:
Bro that would be real challenge..
and please teach us with great tutorials
Click to expand...
Click to collapse
Please you or someone upload Settings.apk which contain Superuser integration ( usually CM10.1 Settings.apk ), I'll try to port it to our device CM10 Settings
via XDA for Timescape™
Diaz1999 said:
Please you or someone upload Settings.apk which contain Superuser integration ( usually CM10.1 Settings.apk ), I'll try to port it to our device CM10 Settings
via XDA for Timescape™
Click to expand...
Click to collapse
here you go bro !
sidharth.gtm said:
here you go bro !
Click to expand...
Click to collapse
Hoaahem,, now is 12.54 AM in my time zone, I'll try it tomorrow
via XDA for Timescape™
In PA2.5.7, that is based on CM10, in settings we have a option to make the status bar to adapt different transparent levels, so can we get that option in CM settings??
stanlin salu said:
In PA2.5.7, that is based on CM10, in settings we have a option to make the status bar to adapt different transparent levels, so can we get that option in CM settings??
Click to expand...
Click to collapse
I could make a shortcut for that, but you must follow this guide first, then the shortcut will be placed in System > Status bar > Change Transparency will open Statusbar Tweaks inside TweakBox Xposed Module
Can you make tutorial for tabbed settings?
i know there's one on XDA, but i guess that thread doesn't have support anymore and the tutorial is confusing :fingers-crossed:
awesome tut btw
stanlin salu said:
In PA2.5.7, that is based on CM10, in settings we have a option to make the status bar to adapt different transparent levels, so can we get that option in CM settings??
Click to expand...
Click to collapse
I've done make it, but I'm sorry I'm sick at home, have a cold and flu , I'll write the guide later
lanvrc said:
Can you make tutorial for tabbed settings?
i know there's one on XDA, but i guess that thread doesn't have support anymore and the tutorial is confusing :fingers-crossed:
awesome tut btw
Click to expand...
Click to collapse
I've found that guide, I'll try it later
via XDA for Timescape™
work on cm10?
Yes, look on the title...
Sent from my Xperia Mini Pro using xda app-developers app
Hiya all
I've got this piece of code from an xml in my settings.apk (SecSettings actually) that contains tutorials on motion settings.
Code:
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:title="@string/motion_tutorial_settings_title" android:key="parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<Preference android:title="@string/turn_over_title" android:key="turn_over" android:summary="@string/turn_over_summary" />
<Preference android:title="@string/shake_title" android:key="shake" android:summary="@string/shake_summary" />
<Preference android:title="@string/pick_up_to_call_out_title" android:key="pick_up_to_call_out" android:summary="@string/pick_up_to_call_out_summary" />
[Color=red] <Preference android:title="@string/air_glance_view" android:key="glance_view" android:summary="@string/air_glance_view_descption" />
<Preference android:title="@string/pick_up_title" android:key="pick_up" android:summary="@string/pick_up_summary" />
<Preference android:title="@string/double_tap_title" android:key="double_tap" android:summary="@string/double_tap_summary" />
<Preference android:title="@string/tilt_title" android:key="tilt" android:summary="@string/tilt_summary" />
<Preference android:title="@string/tilt_to_scroll_list_title" android:key="tilt_to_scroll_list" android:summary="@string/tilt_to_scroll_list_summary" />
<Preference android:title="@string/pan_title" android:key="pan" android:summary="@string/pan_summary" />
<Preference android:title="@string/pan_to_browse_image_title" android:key="pan_to_browse_image" android:summary="@string/pan_to_browse_image_summary" />
<Preference android:title="@string/palm_swipe_title" android:key="palm_swipe" android:summary="@string/palm_swipe_summary" />
<Preference android:title="@string/palm_touch_title" android:key="palm_touch" android:summary="@string/palm_touch_summary" />
<Preference android:title="@string/tap_and_twist_title" android:key="tap_and_twist" android:summary="@string/tap_and_twist_summary" />[/color]
</PreferenceScreen>
In there, all the red parts contain tutorials on settings that don't actually work on my device, and for OCD sake, I don't want them appearing in my settings because of it.
But simply cutting them out of that file will make the settings app crash whenever i open that menu :crying:
So question is: is there a way to hide these settings without impairing their functions?
XML style ofcourse, as I don't dare touch smali
bump! I am still struggling with this :crying:
Is there really no simple xml line for this?
If not, is it possible to resize the not-working menu's to zero pixels? (thus making them invisible)
for the record, adding android:visibility="gone" / androi:visibility="invisible" and android:layout_height="0.0dip" all do nothing
you need to remove also the line inside a smali sir. removing the line will just force the app to close . i also want to remove a category sir, but im not good at smali so i just remove the strings and leave it blank xD
sorry for my english xD
Hello. im trying to create a menu for my apps ( xposed etc.. ) bloatware apps .
I started with the bloatware apps.
I was able to link them in settings + I found the list of setting will be long so I decide to create a submenu of categories.
here is the pic attached when I click on fido_menu it force close...
and here is what I did :
I in settings_headers:
<header android:title="@string/header_category_geo" />
<header android:icon="@drawable/ic_fidomenu" android:id="@id/fido_menu" android:title="fido menu" android:fragment="xml.Fido_Menu.xml" /> im not sure about the fragment what do u think?
and the Fido_Menu.xml that I created
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:title="@string/fido_tab"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings."> do I have to create a samli file?
<Preference android:icon="@drawable/ic_fido" android:title="@string/fido_myaccount">
<intent android:targetPackage="com.fidosolutions.myaccount" android:action="android.intent.action.MAIN" android:targetClass="com.fidosolutions.myaccount.MyAccount" />
</Preference>
<Preference android:icon="@drawable/ic_vfido" android:title="@string/fido_VVM">
<intent android:targetPackage="com.fido.vvm" android:action="android.intent.action.MAIN" android:targetClass="com.communology.vvm.ui.MessagesListActivity" />
</Preference>
<Preference android:icon="@drawable/ic_afido" android:title="@string/fido_anti_theft">
<intent android:targetPackage="com.fido.rogers.security" android:action="android.intent.action.MAIN" android:targetClass="net.juniper.junos.pulse.android.ui.LaunchActivity" />
</Preference>
</PreferenceScreen>
Looking for help also how to create a smali file if need it
Thanks for your help
P.S: if u r not willing to help but just to fake that u r helping (( MEAN not giving the details )) so thanks in advance and don't help me...
Hello Today I am Showing How to add Extra Options in Settings CPU Info Screen Resolution Mem Info Swap Mem Info I will Update This Thread with New Options So Let"s Start
Requirement:
Apktool http://forum.xda-developers.com/show....php?t=1755243
Settings.apk From Your Phone
Nice Brain to Understand
Credits:
My Friends Aryne Neil Carlno Cabatan
Instructions:
Step 1 :- Pull Your Settings from Your Phone
Step 2 :- Decompile The Settings.apk
Step 3 :- Merged The Your Settings with My Zip
Step 4 :- Open Values/strings.xml
Step 5 :- Add This
Code:
<string name="cpu_info">CPU info</string>
<string name="mem_info">Mem info (avail/total)</string>
<string name="swap_mem_info">Swap mem info (avail/total)</string>
<string name="device_screen_resolution">Screen resolution</string>
Step 6 :- Open xml/device_info_settings
Step 7 :- Remove All lines
Step 8 :- Add This
Code:
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:title="@string/about_settings"
xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceScreen android:title="@string/device_status" android:key="status_info" android:summary="@string/device_status_summary">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.deviceinfo.Status" />
</PreferenceScreen>
<Preference android:title="@string/model_number" android:key="device_model" android:summary="@string/device_info_default" style="?android:preferenceInformationStyle" />
<Preference android:title="@string/firmware_version" android:key="firmware_version" android:summary="@string/device_info_default" style="?android:preferenceInformationStyle" />
<Preference android:title="@string/baseband_version" android:key="baseband_version" android:summary="@string/device_info_default" style="?android:preferenceInformationStyle" />
<Preference android:title="@string/kernel_version" android:key="kernel_version" android:summary="@string/device_info_default" />
<Preference android:title="@string/cpu_info" android:key="device_cpu" android:summary="@string/device_info_default" style="?android:preferenceInformationStyle" />
<Preference android:title="@string/device_screen_resolution" android:key="device_screen_resolution" style="?android:preferenceInformationStyle" />
<Preference android:title="@string/mem_info" android:key="device_memory" android:summary="@string/device_info_default" style="?android:preferenceInformationStyle" />
<Preference android:title="@string/swap_mem_info" android:key="device_swap_memory" android:summary="@string/device_info_default" style="?android:preferenceInformationStyle" />
<Preference android:title="Guide by" android:key="android_fire_xda" android:summary="AndroidFire" style="?android:preferenceInformationStyle" />
</PreferenceScreen>
Step 9 :- Recompile and Decompile Again
Step 10 :- Go to values/public.xml
Step 11 :- search for device_info_settings Note the id code
Step 12 :- Search for 0x7f040010 Change This according to your public
Step 13 :- Recompile And Sign And Enjoy
My Work
My Work
Android
APP
AF-Root Checker
[APP][4.1+] AF Calendar Widget
[APP][2.3+] AF CPU Widget
GUIDE
[GUIDE][2.3+] How to add AF Volume Panel to Android Phone
AF-Battery Mod
ICS PlatLogo
[GUIDE] How to Disable Scrolling Cache for Smooth
[GUIDE] How to add Extra Options in About Sections
[GUIDE] How to add Colorey Platlogo
[GUIDE] How to add Android L Preview Platlogo
[GUIDE] [TUTORIAL] [GUIDE] How to Play with Screen Title
[GUIDE]How to Replace Checkbox with Switch
ROM
[ROM] AF Firey
TOOL
[TOOL] AF-Apk[TOOL] AF-Signer
Reserved
AF Work
AF Work
Android
APP
[APP][4.1+] AF Calendar Widget
[APP][2.3+] AF CPU Widget
GUIDE
[GUIDE][2.3+] How to add AF Volume Panel to Android Phone
ROM
[ROM] AF Firey
TOOL
[TOOL] AF-Apk[TOOL] AF-Signer
I have an error
Hello there
At first I apologize for my English.
I tried this method but I have a problem with steps 11 and 12
can you help me?
when I do research in device_info_settings .. / values / public.xml
I find 2 id's:
Line 451: <public type="xml" name="device_info_settings" id="0x7f050011" />
Line 2469: <public type="string" name="device_info_settings" id="0x7f0b04a8" />
And I tried with the two solution, I get an error ...
And id 0x7f040010, is:
Line 261: <public type="layout" name="auto_brightness_preview" id="0x7f040010" />
thank you in advance.
daemon1666 said:
Hello there
At first I apologize for my English.
I tried this method but I have a problem with steps 11 and 12
can you help me?
when I do research in device_info_settings .. / values / public.xml
I find 2 id's:
Line 451:
Line 2469:
And I tried with the two solution, I get an error ...
And id 0x7f040010, is:
Line 261:
thank you in advance.
Click to expand...
Click to collapse
First of Thing that What Android Version r using if Your Android Version 2.3 leave step 12 and 13 if are using 3.0+ then find for that ids change valuse according to ur public device_info_settings (xml one not strings) if u get error pls show me logcat logcat will easily to understand ur problem Recommended You to use AF-Apk to Decompile and Recompile Apk If Want it search on google ok
2nd Things No Need to Say Thanks Just Presss the button
AndroidFire said:
First of You What Android Version if Your Android Version 2.3 leave step 12 and 13 if are using 2.3+ then find for that ids change valuse according to ur public device_info_settings (xml one not layout)
2nd Things No Need to Say Thanks Just Presss the button
Click to expand...
Click to collapse
I have a nexus 5
in custom rom 4.4.4
I started in xml, so I don't know by what I must change the id
can you show me an example?
Sorry but I am a beginner.
daemon1666 said:
I have a nexus 5
in custom rom 4.4.4
I started in xml, so I don't know by what I must change the id
can you show me an example?
Sorry but I am a beginner.
Click to expand...
Click to collapse
First things.
can u attach ur public.xml and DeviceInfoSettings.smali I will Do for You
Second Things Thanks Button will more appericated then saying thanks
AndroidFire said:
First things.
can u attach ur public.xml and DeviceInfoSettings.smali I will Do for You
Second Things Thanks Button will more appericated then saying thanks
Click to expand...
Click to collapse
I joined the archive.
Ihave already made steps 1-9
And
I clicked on the button "thanks" and +1 on Google+
daemon1666 said:
I joined the archive.
Ihave already made steps 1-9
And
I clicked on the button "thanks" and +1 on Google+
Click to expand...
Click to collapse
done mind don't kang my work respect my work here is the link just replace the file
https://db.tt/ieOJqB3g
Thx... Again
If something has changed, I'm sorry, I had tried so many things by myself.
What was the problem?
I just tested ..
The first compilation, I have problems compiling
having replaced the device_info_settings.smali well.
I have attached the log
deleted sorry..