[TUTORIAL update] XPERIA S IcS lOCKSCREEN FOR YOUR FILES - Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A

XPERIA ICS LOCKSCREEN TUTORIAL ............. Aeon​
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
THIS IS ONLY FOR THEMERS AND MODERS​
If Someone needs to add xperia S lockscreen to your MODED files​
::::::::::::::::::::::::::::::::ANDROID.POLICY.JAR:::::::::::::::::::::::::::::::​
First:::: Download This ::::http://www.mediafire.com/download.php?g35chi82ex5wou9
Then
DECOMPILE your android.policy.jar (After Deodexing them if odexed ) --- Using x10modtool or any other tool
Then
Copy the files from the downloaded RAR (above) to the decompiled folder /policy and RECOMPILE
Thats your android.policy.jar
---------------------------------------------------------------------------------------------------------------------------------------------
SORRY MY FRIENDS I MISSED ONE BIG POINT YOU DONT NEED FRAMEWORK-RES, JUST MY ANDROID. Policy IS ENOUGH
Thank You,
Aeon

Seems like nobody understands the TUT...........
I'll give u thanks!!

Allen Hu said:
Seems like nobody understands the TUT...........
I'll give u thanks!!
Click to expand...
Click to collapse
i understands..
but not interested,
prefer to aosp style so much..

could further clarify the hex codes?
Edit: solved

Can you please also add what edit in the settings.apk. I would like to edit my own instead of using the one you posted just incase of some differences.
Cheers,
Evil.

I noticed that one need not make modifications to the framework-res.apk
only in android.policy.jar it is enough to function as

In regard to the hex codes, before i put these strings into the public.xml my last hex code under type=string is 0x01040524 so does that mean i would change the hex codes give in the OP to 0x01040525 0x01040526 respectively??
Cheers,
Evil.

evilbarcode said:
In regard to the hex codes, before i put these strings into the public.xml my last hex code under type=string is 0x01040524 so does that mean i would change the hex codes give in the OP to 0x01040525 0x01040526 respectively??
Cheers,
Evil.
Click to expand...
Click to collapse
No need to modify framework-res.apk
But I tried all ways to add the changes but I got many errors when compiling
you must add lines like this:
Code:
public type="string" name="lockscreen_strings_sim_puk_enter_puk_header_txt" id="0x01040512" />
<public type="string" name="lockscreen_strings_sim_puk_locked_header_txt" id="0x01040513" />
<public type="string" name="lockscreen_strings_sim_puk_locked_message_txt" id="0x01040514" />
<public type="string" name="lockscreen_strings_sim_puk_locked_out_message_txt" id="0x01040515" />
<public type="string" name="lockscreen_strings_sim_puk_new_pin_header_txt" id="0x01040516" />
<public type="string" name="lockscreen_strings_sim_puk_retype_new_pin_header_txt" id="0x01040517" />
<public type="string" name="lockscreen_strings_sim_puk_wrong_nbr_digits_header_txt" id="0x01040518" />
<public type="string" name="seport_strings_accessory_not_supported_txt" id="0x01040519" />
<public type="string" name="add_region_in_locale_picker_dummy_string" id="0x0104051a" />
[COLOR="Red"] <public type="string" name="permlab_external_lockscreen" id="0x0104051b" />
<public type="string" name="permdesc_external_lockscreen" id="0x0104051c" />[/COLOR]
correct me if I'm wrong

Gustavo RD78 said:
No need to modify framework-res.apk
But I tried all ways to add the changes but I got many errors when compiling
you must add lines like this:
Code:
public type="string" name="lockscreen_strings_sim_puk_enter_puk_header_txt" id="0x01040512" />
<public type="string" name="lockscreen_strings_sim_puk_locked_header_txt" id="0x01040513" />
<public type="string" name="lockscreen_strings_sim_puk_locked_message_txt" id="0x01040514" />
<public type="string" name="lockscreen_strings_sim_puk_locked_out_message_txt" id="0x01040515" />
<public type="string" name="lockscreen_strings_sim_puk_new_pin_header_txt" id="0x01040516" />
<public type="string" name="lockscreen_strings_sim_puk_retype_new_pin_header_txt" id="0x01040517" />
<public type="string" name="lockscreen_strings_sim_puk_wrong_nbr_digits_header_txt" id="0x01040518" />
<public type="string" name="seport_strings_accessory_not_supported_txt" id="0x01040519" />
<public type="string" name="add_region_in_locale_picker_dummy_string" id="0x0104051a" />
[COLOR=Red] <public type="string" name="permlab_external_lockscreen" id="0x0104051b" />
<public type="string" name="permdesc_external_lockscreen" id="0x0104051c" />[/COLOR]
correct me if I'm wrong
Click to expand...
Click to collapse
I did mine like this and it seems like there is no problems
Code:
<public type="string" name="seport_strings_accessory_not_supported_txt" id="0x01040519" />
<public type="string" name="add_region_in_locale_picker_dummy_string" id="0x0104051a" />
[COLOR=Blue]<public type="string" name="reboot" id="0x0104051b" />
<public type="string" name="reboot_progress" id="0x0104051c" />[/COLOR]
<public type="string" name="reboot_confirm" id="0x0104051d" />
<public type="string" name="reboot_confirm_question" id="0x0104051e" />
<public type="string" name="recovery" id="0x0104051f" />
<public type="string" name="recovery_progress" id="0x01040520" />
<public type="string" name="recovery_confirm" id="0x01040521" />
<public type="string" name="recovery_confirm_question" id="0x01040522" />
<public type="string" name="app_killed_message" id="0x01040523" />
<public type="string" name="global_action_screenshot" id="0x01040524" />
[COLOR=Red]<public type="string" name="permlab_external_lockscreen" id="0x01040525" />
<public type="string" name="permdesc_external_lockscreen" id="0x01040526" /[/COLOR]>
Because the stings in blue already had the hex codes in use so I just changed the hex to whats in red. How is it that you dont have the same number of strings as me? Are you on stock? Or a rom based on stock?

evilbarcode said:
I did mine like this and it seems like there is no problems
Code:
<public type="string" name="seport_strings_accessory_not_supported_txt" id="0x01040519" />
<public type="string" name="add_region_in_locale_picker_dummy_string" id="0x0104051a" />
[COLOR=Blue]<public type="string" name="reboot" id="0x0104051b" />
<public type="string" name="reboot_progress" id="0x0104051c" />[/COLOR]
<public type="string" name="reboot_confirm" id="0x0104051d" />
<public type="string" name="reboot_confirm_question" id="0x0104051e" />
<public type="string" name="recovery" id="0x0104051f" />
<public type="string" name="recovery_progress" id="0x01040520" />
<public type="string" name="recovery_confirm" id="0x01040521" />
<public type="string" name="recovery_confirm_question" id="0x01040522" />
<public type="string" name="app_killed_message" id="0x01040523" />
<public type="string" name="global_action_screenshot" id="0x01040524" />
[COLOR=Red]<public type="string" name="permlab_external_lockscreen" id="0x01040525" />
<public type="string" name="permdesc_external_lockscreen" id="0x01040526" /[/COLOR]>
Because the stings in blue already had the hex codes in use so I just changed the hex to whats in red. How is it that you dont have the same number of strings as me? Are you on stock? Or a rom based on stock?
Click to expand...
Click to collapse
That's right!
I performed this mod on mod draco_ag

Gustavo RD78 said:
That's right!
I performed this mod on mod draco_ag
Click to expand...
Click to collapse
Oh right. OK so anyone who reads this, in regards to the hex strings, you need to put the strings at the end of type=string in the public.xml and change the hex string so it follows on from the last hex in string in YOUR public.xml, do not use the hexs posted here because your hex strings may vary.
Cheers,
Evil.

evilbarcode said:
Can you please also add what edit in the settings.apk. I would like to edit my own instead of using the one you posted just incase of some differences.
Cheers,
Evil.
Click to expand...
Click to collapse
+1

SORRY MY FRIENDS I MISSED ONE BIG POINT YOU DONT NEED FRAMEWORK-RES, JUST MY ANDROID. Policy IS ENOUGH
Thank You,
Aeon

evilbarcode said:
Oh right. OK so anyone who reads this, in regards to the hex strings, you need to put the strings at the end of type=string in the public.xml and change the hex string so it follows on from the last hex in string in YOUR public.xml, do not use the hexs posted here because your hex strings may vary.
Cheers,
Evil.
Click to expand...
Click to collapse
Normally you only need to edit public.xml if you're removing something. If you're adding an image, string or whatever, the references are generated automatically when you compile. It's part of what the compiler actually does.

Hey Aeon, I edited my android.policy.jar and Settings.apk and flashed it to my rom with the lockscreen, but it isnt working. The lockscreen settings are there and I can change them, but the lockscreen isnt being used. The original lockscreen is still present on real ics 4.1. Can you help me with this please?
Last time i flashed it I used your whole zip, apart from the android.policy.jar, and the framework-res.apk, which where mine and i edited according to this thread. I reflashed my rom (real ics 4.1) because i realised using your settings took away some stuff that i had already.
And now it doesn't want to work this time.
Cheers for any advice.
Evil.
P.s. I used the deodexed version.

Ticklefish said:
Normally you only need to edit public.xml if you're removing something. If you're adding an image, string or whatever, the references are generated automatically when you compile. It's part of what the compiler actually does.
Click to expand...
Click to collapse
how to edit .xml?

RudzLong said:
how to edit .xml?
Click to expand...
Click to collapse
Notepad++ is a handy tool, but I normally use just ordinary Notepad for most things.

Ticklefish said:
Notepad++ is a handy tool, but I normally use just ordinary Notepad for most things.
Click to expand...
Click to collapse
I got it... Thank's
Sent from my Boston using xda premium

Ticklefish said:
Notepad++ is a handy tool, but I normally use just ordinary Notepad for most things.
Click to expand...
Click to collapse
Notepad++ has been my best friend since i first got android haha. Mr. Tickle, can you please help me with my problem. I think i have done something wrong. Check my post just above if you can please.
Cheers,
Evil.

evilbarcode said:
Hey Aeon, I edited my android.policy.jar and Settings.apk and flashed it to my rom with the lockscreen, but it isnt working. The lockscreen settings are there and I can change them, but the lockscreen isnt being used. The original lockscreen is still present on real ics 4.1. Can you help me with this please?
Last time i flashed it I used your whole zip, apart from the android.policy.jar, and the framework-res.apk, which where mine and i edited according to this thread. I reflashed my rom (real ics 4.1) because i realised using your settings took away some stuff that i had already.
And now it doesn't want to work this time.
Cheers for any advice.
Evil.
P.s. I used the deodexed version.
Click to expand...
Click to collapse
Did my zip work for you? And what did you do ? I mean steps, as you have a deodex version there is very small chance you won't get it , so am positive you'll get it if done correctly, but explain
Thank You,
Aeon

Related

[Q]Help Me Please (ICS-Public.xml)

Hi. I have a question. Miui supporter of turkey. I want to edit the application settings.apk miui v4 rom.
I want to add their own use in the application of a tweak. but public.xml 'I want to add it to another command line code used by miui. What should I do about this.
To give an example:
I want to add code
<public type="drawable" name="miui_tr_tools" id="0x7f020000" />
MIUI original code
<public type="drawable" name="about_device_ab_solid" id="0x7f020000" />
id="0x7f020000" />
codes are the same. What should I do here it is. Thank you very much in advance. I apologize for that English is bad.

[GUIDE] How To Create A New Activity In Settings

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/

[Q] How to hide menu items?

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

[Q] Help please to create a submenu with apps in settings

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...

SOLVED

SOLVED
Dekill93 said:
hy all ... i want to modify systemui, but I do not understand a bit ... anyone please help me .. :crying: :crying: :crying:
1. how to remove or hide the time and date in the status bar pulldown?
2. how to change the background BBM into a Wi-Fi AP background?
for more details you can see my pictures ..
thank you
Click to expand...
Click to collapse
Number One Solved
IMO bbm background is in bbm app, so you should search for png there
godlesplay said:
IMO bbm background is in bbm app, so you should search for png there
Click to expand...
Click to collapse
I just want to change the background BBM as background Wifi AP ... I've found in the framework-res.apk when I change no change whatsoever ... do you know where to change it?
sory i don't using cm 11
Dekill93 said:
I just want to change the background BBM as background Wifi AP ... I've found in the framework-res.apk when I change no change whatsoever ... do you know where to change it?
sory i don't using cm 11
Click to expand...
Click to collapse
you missunderstand!!!
he said, if u want to change the shown BBM background, you need to change IT IN THE BBM app!!! (not in framework-res)
& i guess with ''sory i don't using cm 11'' you are reffering to his SIGNATURE. its his signature NOT A MESSAGE TO YOU
atleast give him a thx, as he found out that the png is located in bbm app
bejunk said:
you missunderstand!!!
he said, if u want to change the shown BBM background, you need to change IT IN THE BBM app!!! (not in framework-res)
& i guess with ''sory i don't using cm 11'' you are reffering to his SIGNATURE. its his signature NOT A MESSAGE TO YOU
atleast give him a thx, as he found out that the png is located in bbm app
Click to expand...
Click to collapse
you try to see the background ap wifi .. it is in the framework-res.apk when I using a cm 10 background bbm and wifi ap its same .. is there something wrong on my framewok-res.apk have? sorry I think it's a message for me
sory my bad english
paste here your framework and bbm app, I will try find it...
godlesplay said:
paste here your framework and bbm app, I will try find it...
Click to expand...
Click to collapse
oke... wait i think problem on systemui.apk
Solved guys... I have changed script in SystemUI/res/layout/status_bar_notification_row.xml
I change
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout android:background="@drawable/status_bar_notification_row_background_color" android:layout_width="fill_parent" android:layout_height="@dimen/notification_height"
xmlns:android="http://schemas.android.com/apk/res/android">
<Button android:id="@id/veto" android:background="@null" androidaddingLeft="8.0dip" androidaddingRight="8.0dip" android:layout_width="48.0dip" android:layout_height="fill_parent" android:layout_marginRight="-80.0dip" android:layout_alignParentRight="true" android:layout_centerVertical="true" />
<ImageView android:id="@id/large_icon" android:background="@*android:drawable/minitab_lt_unselected_press" android:clickable="true" android:layout_width="@*android:dimen/notification_large_icon_width" android:layout_height="@*android:dimen/notification_large_icon_height" android:scaleType="center" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" />
<com.android.systemui.statusbar.LatestItemView android:id="@id/content" android:background="@drawable/notification_row_bg" android:focusable="true" android:clickable="true" android:layout_width="fill_parent" android:layout_height="64.0dip" android:layout_toRightOf="@id/large_icon" android:layout_alignParentTop="true" android:layout_alignParentRight="true" />
<View android:background="@drawable/horiz_list_div" android:layout_width="fill_parent" android:layout_height="@dimen/notification_divider_height" android:layout_alignParentBottom="true" />
</RelativeLayout>
to
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout androidrientation="vertical" android:layout_width="fill_parent" android:layout_height="@dimen/notification_height"
xmlns:android="http://schemas.android.com/apk/res/android">
<View android:background="@drawable/horiz_list_div" android:layout_width="fill_parent" android:layout_height="1.0dip" />
<RelativeLayout android:background="@drawable/notification_item_background_color" android:layout_width="fill_parent" android:layout_height="61.0dip">
<Button android:id="@id/veto" android:background="@null" androidaddingLeft="8.0dip" androidaddingRight="8.0dip" android:layout_width="48.0dip" android:layout_height="fill_parent" android:layout_marginRight="-80.0dip" android:layout_alignParentRight="true" android:layout_centerVertical="true" />
<ImageView android:id="@id/large_icon" android:background="@*android:drawable/notify_panel_notification_icon_bg_tile" android:clickable="true" android:layout_width="@*android:dimen/notification_large_icon_width" android:layout_height="@*android:dimen/notification_large_icon_height" android:scaleType="center" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" />
<com.android.systemui.statusbar.LatestItemView android:id="@id/content" android:background="@drawable/notification_row_bg" android:focusable="true" android:clickable="true" android:layout_width="fill_parent" android:layout_height="61.0dip" android:layout_toRightOf="@id/large_icon" android:layout_alignParentTop="true" android:layout_alignParentRight="true" />
</RelativeLayout>
<View android:background="@*android:color/transparent" android:layout_width="fill_parent" android:layout_height="2.0dip" />
</LinearLayout>
thx for participating..

Categories

Resources