yashsingh1/xdaforums huggingface dataset:
[Xperia Arc Themes and Apps] Ayush Singh:
Help

How can we add such functionality to hide an app label from settings if the respective apk is not present?

like to hide music light label from settings for mini pro users?
[Xperia Arc Themes and Apps] sandy7:
decompile settings.apk..

goto res/xml/settings_headers.xml and remove these lines..

<header android:icon="@drawable/ic_light" android:title="@string/light_title">
<intent android:targetPackage="gilz.musiclight" android:action="android.intent.action.MAIN" android:targetClass="gilz.musiclight.MainActivity" />
</header>

recompile it
[Xperia Arc Themes and Apps] Ayush Singh:
ummm, i didnt mean to say that

i want the same settings.apk to be used on Lww as well as on mini pro

i want the music light label to stay hidden on mini pro, while to appear on lww with the same settings

LIKE THIS -

<header android:icon="@drawable/ic_settings_quickpanel" android:id="@id/manufacturer_settings">
<intent android:action="com.android.settings.QUICKPANEL_APPLICATION_SETTING" />
</header>

THIS LABEL ONLY APPEARS WHEN I ADD PANELSETTINGS.APK TO SYSTEM/APP ELSE REMAINS HIDDEN
[Xperia Arc Themes and Apps] sandy7:
Re: [TUTORIAL] How to add various framework/Settings mods [Update 16/3/2013]

Hmm...I never tired doing....

But 'my xperia' app has that kinda of thing to hide when u delete...

Let me go through and find a way to hide..
[Xperia Arc Themes and Apps] Ayush Singh:
One More thing i wanted to know

How to hide the app from app drawer its integration to settings.apk ?

i wanted to hide some apps as their labels are integrated to settings with the help of this tut
[Xperia Arc Themes and Apps] sandy7:
Re: [TUTORIAL] How to add various framework/Settings mods [Update 16/3/2013]

U have to delete a line in androidmanifest.xml

For some examples...go back some pages..u will find it.
[Xperia Arc Themes and Apps] jader13254:
android.intent.category.LAUNCHER" /> to android.intent.category.DEFAULT" />
[Xperia Arc Themes and Apps] dadierv17:
hi great tutorials but I have some problems (1 I think)

The mods that i added are

-small apps

-options in settings

and when i want to re-compiled the framework-res i got this!

C:\android\apktool>apktool b framework1 framework-res-new.apk
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
C:\android\apktool\framework1\res\values\public.xml:4220: error: Public symbol string/nav_title declared here is not defined.
C:\android\apktool\framework1\res\values\public.xml:4218: error: Public symbol string/overclocktool_title declared here is not defined.
C:\android\apktool\framework1\res\values\public.xml:4217: error: Public entry identifier 0x1040553 entry index is larger than available symbols (index 1363, total symbols 1319).
C:\android\apktool\framework1\res\values\public.xml:4217: error: Public symbol string/permdesc_externalTaskSwitcher declared here is not defined.
C:\android\apktool\framework1\res\values\public.xml:4215: error: Public entry identifier 0x1040551 entry index is larger than available symbols (index 1361, total symbols 1319).
C:\android\apktool\framework1\res\values\public.xml:4215: error: Public symbol string/permdesc_smallapp declared here is not defined.
C:\android\apktool\framework1\res\values\public.xml:4216: error: Public entry identifier 0x1040552 entry index is larger than available symbols (index 1362, total symbols 1319).
C:\android\apktool\framework1\res\values\public.xml:4216: error: Public symbol string/permlab_externalTaskSwitcher declared here is not defined.
C:\android\apktool\framework1\res\values\public.xml:4214: error: Public entry identifier 0x1040550 entry index is larger than available symbols (index 1360, total symbols 1319).
C:\android\apktool\framework1\res\values\public.xml:4214: error: Public symbol string/permlab_smallapp declared here is not defined.
C:\android\apktool\framework1\res\values\public.xml:4219: error: Public symbol string/quickpanel_location declared here is not defined.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Vega\AppData\Local\Temp\APKTOOL7296073442662532150.tmp, -x, -S, C:\android\apktool\framework1\res, -M, C:\android\apktool\framework1\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\Vega\AppData\Local\Temp\APKTOOL7296073442662532150.tmp, -x, -S, C:\android\apktool\framework1\res, -M, C:\android\apktool\framework1\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more

C:\android\apktool>

please help me, i don't see the error in public.xml
[Xperia Arc Themes and Apps] sandy7:
what are u trying to do here....u are adding settings.apk options in framework-res.apk......thats impossible

thats y u getting these errors
[Xperia Arc Themes and Apps] Adi_aishiteru:
Hello sir, nice share :)

Btw, will the lockscreen tutorial work too for CM9 base rom ?

Thanks in advance :)
[Xperia Arc Themes and Apps] sandy7:
no there is different procedure or cm9...ill update tut soon it soon
[Xperia Arc Themes and Apps] Adi_aishiteru:
THANKS for that Sir :)

I will wait for the update :)
[Xperia Arc Themes and Apps] Ayush Singh:
Hey Sandy

I tried android.intent.category.LAUNCHER" /> to android.intent.category.DEFAULT" />

but now the apk isnt even installing.. i dont knw why i am gettin such error, its about 14th attempt from then,

can u plzz mod those apks for me?
[Xperia Arc Themes and Apps] sandy7:
upload the apk's
[Xperia Arc Themes and Apps] Ayush Singh:
here they are

:good:
[Xperia Arc Themes and Apps] sandy7:
here u go bro......i moded it for u...

some of the apps wont install like normal apk's......so push it system/app and set permissions...
[Xperia Arc Themes and Apps] Ayush Singh:
Thank you very much, Strange coz even I did the same n the labels didn't work

I am bit confused,,, :confused:

I tried your modded apks, they didn't work on my ROMs :crying:

can you please tell me if it works on your ROM?

coz no success on my ROM :(
[Xperia Arc Themes and Apps] sandy7:
Re: [TUTORIAL] How to add various framework/Settings mods [Update 16/3/2013]

It should bro once u patched it to settings.apk

Btw atm I can't test bcz iam on miui..
[Xperia Arc Themes and Apps] Ayush Singh:
NO prob bro

thanks again for all these awesome tuts :)

thses woke up the dev inside me :p
[Xperia Arc Themes and Apps] rockernaxo:
Hi Sandy!!

Now I'm trying to add Droidwall to my Rom's settings, but it gives me FC. I've done a logcat (which I've attached) and it says that the activity is not found.... very odd thing. I think I've defined all properly but I'm not sure.

I also upload AndroidManifiest.xml from droidwall and settings_headers.xml

If you could have a glance, I'd be very glad

Thanks in advance!!!!!
[Xperia Arc Themes and Apps] sandy7:
Re: [TUTORIAL] How to add various framework/Settings mods [Update 16/3/2013]

Ok I can't do it today...ill get back to u tomorrow.
[Xperia Arc Themes and Apps] :
Now i confuse over adding 0x01xxxxx from public to magniferview.smali

So all i need is just search for 0x10 in my magniferview.smali and then put the semc_magnifier_arrow_left last 5 digits hex code in there

Then, search for 0x10 in my magniferview.smali and then put the semc_magnifier_arrow_right last 5 digits hex code in there

Then, search for 0x10 in my magniferview.smali and then put the semc_magnifier_arrow_above last 5 digits hex code in there

till finish all of them 5

but i would like to ask that should we just need to put like that in order ( left right above ....) or just put it without order ?

*By the way there are plenty of 0x10 in magniferview.smaliso i can't figure out which one to replace :rolleyes:

* Also can't figure out how to change the dimens ID in magniferview.smali ???
[Xperia Arc Themes and Apps] dadierv17:
Re: [TUTORIAL] How to add various framework/Settings mods [Update 16/3/2013]

No, i'm trying to add in framework the small apps..... And then more options in settings.apk (OC, nav bar, quick panel) but to do the modded settings i need the public.xml from framework-res.apk or not??
[Xperia Arc Themes and Apps] rockernaxo:
Re: [TUTORIAL] How to add various framework/Settings mods [Update 16/3/2013]

No only the one from the decompile settings

Enviado desde mi zapatófono tuneado
[Xperia Arc Themes and Apps] dadierv17:
Re: [TUTORIAL] How to add various framework/Settings mods [Update 16/3/2013]

Thanks (gracias amigo) .....the public.xml from settings.apk where is it?? In the values folder or the xml?? Because i dont see it :(
[Xperia Arc Themes and Apps] sandy7:
in values folder
[Xperia Arc Themes and Apps] Siddhesh:
Re: [TUTORIAL] How to add various framework/Settings mods [Update 16/3/2013]

To add small apps you need to edit your framework and to add more options to your settings you only need to edit your settings.apk no need of editing framework public.xml to add options in settings

Press Thanks if I helped.
[Xperia Arc Themes and Apps] sandy7:
upload ur public.xml and magniview.smalli ill mod it for u
[Xperia Arc Themes and Apps] sandy7:
after seeing the logcat....i can directly tell that u need patch some things in framework.jar to get it work...

if u can provide the link of droidwall ill can go through it
[Xperia Arc Themes and Apps] Pepi17:
Reboot options

Could anyone help me add reboot to CWM and screenshot options in the power menu?

Thanks :)
[Xperia Arc Themes and Apps] dadierv17:
Now i have this....i edit settings.apk (i only added the OC and quick panel)

i hope that someone could help me :fingers-crossed:

C:\android\apktool>apktool b Settings Settings-new.apk
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
C:\android\apktool\Settings\res\values\public.xml:2552: error: Public entry identifier 0x7f0b062a entry index is larger than available symbols (index 1578, total symbols 1563).
C:\android\apktool\Settings\res\values\public.xml:2552: error: Public symbol string/quickpanel_location declared here is not defined.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Vega\AppData\Local\Temp\APKTOOL9160864248807337035.tmp, -I, C:\Users\Vega\apktool\framework\1.apk, -I, C:\
Users\Vega\apktool\framework\2.apk, -S, C:\android\apktool\Settings\res, -M, C:\android\apktool\Settings\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Vega\AppData\Local\Temp\APKTOOL9160864248807337035.tmp, -I, C:\Users\Vega\apktool\framework\1.apk, -I, C:\Users\Vega\apktool\framework\2.apk, -S, C:\android\apktool\Settings\res, -M, C:\android\apktool\Settings\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more

C:\android\apktool>
[Xperia Arc Themes and Apps] Pepi17:
I had the same problem a wgile ago. You just have to delete the part that says "id=xxxxxxx" in public.xml, and when compiling new IDs will be generated for the apps you included.
[Xperia Arc Themes and Apps] :
Here plz as fast as possible !

Everything else is done just the magniview.smali not yet done !

Plz help :highfive:
[Xperia Arc Themes and Apps] sandy7:
here i added it for u
[Xperia Arc Themes and Apps] sandy7:
well this is where u went wrong....

in public.xml line 2552

<public type="string" name="quickpanel_location" id=[COLOR="Red"]"0x7f0b061a"[/COLOR] />

instead of it u wrote 0x7f0b062a thats y u got this error
[Xperia Arc Themes and Apps] rockernaxo:
Well, I have uploaded the apk to my dropbox. Thanks you for your time.

Do I have to mod framework.jar for all apps I want to add to settings or this is an odd case?
[Xperia Arc Themes and Apps] sandy7:
Re: [TUTORIAL] How to add various framework/Settings mods [Update 16/3/2013]

Bro I need the link of original thread where u got this apk
[Xperia Arc Themes and Apps] djedjy:
Great signature bro ;) :)
[Xperia Arc Themes and Apps] sandy7:
Re: [TUTORIAL] How to add various framework/Settings mods [Update 16/3/2013]

Thanks credit goes to marionette
[Xperia Arc Themes and Apps] rockernaxo:
OK

Do you mean this?

http://code.google.com/p/droidwall/downloads/detail?name=droidwall-v1_5_7.apk
[Xperia Arc Themes and Apps] :
Hey Sandy !

This my last question : Does all of framework MODs in this thread requires NXT framework-res.apk and NXT SemcGenericUxpRes.apk ? Ask i always end up without bootloop when i MOD those in my stock framework !!!

????
[Xperia Arc Themes and Apps] vr5411:
Re: [TUTORIAL] How to add various framework/Settings mods [Update 16/3/2013]

NXT?

No! These mods are for Xperia 2011 machines. You take files from them and mod them according to Sandy's tutorials.
[Xperia Arc Themes and Apps] :
But i always end up with bootloop !
[Xperia Arc Themes and Apps] rockernaxo:
Once you have finished making changes to your framework, compile it. Then decompile the modded file again and take a look of public.xml. If the id's have changed check THIS

If not, no idea:eek:
[Xperia Arc Themes and Apps] dadierv17:
Re: [TUTORIAL] How to add various framework/Settings mods [Update 16/3/2013]

Ok thanx i will try and report! :thumbup: :)
[Xperia Arc Themes and Apps] BeYoung_CareRockz:
Re: [TUTORIAL] How to add various framework/Settings mods [Update 16/3/2013]

First i wanna say your thread was AWESOME !! From a to z just in one thread.:thumbup:

I need enlightment from you bro..i following your guide to make magni glass.everythings smooth from step 1 to 5..but i got lost in step 6,i open all the file you said (the smali,your public xml,my public xml).where are the rest four id hex in smali that i should change.could u provide with a screenshoot,please
[Xperia Arc Themes and Apps] sandy7:
Re: [TUTORIAL] How to add various framework/Settings mods [Update 16/3/2013]

Well I know its confusing for everyone...

Give me some time around 8pm IST ill modify that guide in very understandable manner...

The point is in the samli we need assign 2 drawables id and 6 dimens id's
[Xperia Arc Themes and Apps] BeYoung_CareRockz:
Re: [TUTORIAL] How to add various framework/Settings mods [Update 16/3/2013]

I got same problem like Saingpor :confused:

Hi Saingpor,good to see u in this thread.

Sent from my stock MT25i
[Xperia Arc Themes and Apps] sandy7:
magnification glass guide got an update ....now i have clearly explained the id's to put in the right place in the smali...

plz go through the 2nd post to see the changes.
[Xperia Arc Themes and Apps] BeYoung_CareRockz:
Re: [TUTORIAL] How to add various framework/Settings mods [Update 16/3/2013]

THANKS A LOT !!! You're the best among the best :thumbup:

Sent from my stock MT25i, powered by Tigris
[Xperia Arc Themes and Apps] havocgb:
Sandy, I got the mod to work and now I have the navigation bar option in settings. But enabling it and restarting the device doesn't show any nav bar :confused:

I'm using your Optimax v2

I did only the steps required to get nav bar settings working and copied only Navigation.apk and Settings.apk to /system/app

Even super user is not blocking the app.
[Xperia Arc Themes and Apps] Siddhesh:
Re: [TUTORIAL] How to add various framework/Settings mods [Update 16/3/2013]

Have you made changes in your framework to make the nav bar work?

Press Thanks if I helped.
[Xperia Arc Themes and Apps] sandy7:
Re: [TUTORIAL] How to add various framework/Settings mods [Update 16/3/2013]

What I did in optimax Rom is ....I reduced the size og nave bar in framework_res.apk to 0.0dip so that it would activate 3dot menu....

So what u need to do is...decompile framework-res.apk

Goto res/values/dimens.xml

Find this line

'<dimen name="navigation_bar_height">0.0dip</dimen> ' and change it 22.0dip
[Xperia Arc Themes and Apps] EvilHobbit:
First, thanks a lot sandy7 for such a great job and teaching!

Now a question. Can You help me find out where and what to look

to be able remove AlarmClock from status bar?

Have been trying to find it myself, but no luck so far.

Thanks in adv.
[Xperia Arc Themes and Apps] sandy7:
Re: [TUTORIAL] How to add various framework/Settings mods [Update 16/3/2013]

I know only little bit about systemUI....u can ask this guy he will help u out...ask in this thread. http://xdaforums.com/showthread.php?t=2039214
[Xperia Arc Themes and Apps] EvilHobbit:
Thanks for such a quick response!

One more thing. Do i understand it right, I must deodex my

ROM for using all those tweaks (smallapps, lockscreens and etc.) ?
[Xperia Arc Themes and Apps] sandy7:
Re: [TUTORIAL] How to add various framework/Settings mods [Update 16/3/2013]

Yes u should
[Xperia Arc Themes and Apps] EvilHobbit:
Sorry, me .... again.

I wanted to know which ApkTool verison is best to use. In every thread i was able

to find its mostly different (seems like 1.4.1 is a bit favourite).

P.S. Can You please point, where exactly must we paste given code under

Adding Magnifying Glass (drawables section). Screenshot You did add is sadly

a wrong one (dimen section duplicate). As i am a noob its a bit confusing.

Thanks again! A Lot!
[Xperia Arc Themes and Apps] sandy7:
Re: [TUTORIAL] How to add various framework/Settings mods [Update 16/3/2013]

Plz just go through the tut and understand it..u will come to know what and where to put.
[Xperia Arc Themes and Apps] sandy7:
Re: [TUTORIAL] How to add various framework/Settings mods [Update 16/3/2013]

Guys I have a req....as magnification glass mod is hard to implement....so can any one make a video tut...so it will be useful for noobs...

Well I cant make video tut bcz my PC sucks...no harddisk space (still running on 80gb) and pc is so slow cant a run a screen capture software...

So any one interested of making a vid..plz post here.
[Xperia Arc Themes and Apps] sean.paul:
hi sandy thank u for your great work ,

why , when i run the small apps i got fc??

and how i can use this for my defult framework without once load the rom??

srry for my bad english
[Xperia Arc Themes and Apps] sandy7:
dont update the small apps from google play....
[Xperia Arc Themes and Apps] sandy7:
update .

settings tut got an update with more codes to add more options in settings.apk with new supporting files in new resources ( see 3rd post for more info's)

and also added a new tut to mod per app tablet dpi settings under display settings in settings.apk (also check 3rd post for more info)

happy learning and moding
[Xperia Arc Themes and Apps] havocgb:
I had a feeling so. So I had installed this NXT Framework. But still it didn't work. (Yes I decompiled and recompiled settings.apk again using the new framework-res.apk. After reading your post (quoted above) I also checked in its res/values/dimens.xml. These are the values there

<dimen name="navigation_bar_height">48.0dip</dimen>
<dimen name="navigation_bar_width">42.0dip</dimen>

Should I change these to 22.0 and 0.0? And why 0.0? Does that fit the navbar to the screen width? :)
[Xperia Arc Themes and Apps] sandy7:
Re: [TUTORIAL] How to add various framework/Settings mods [Update 26/3/2013]

Yes change it 22
[Xperia Arc Themes and Apps] sean.paul:
thank u again

but i did not update them , even i use samll app mod by aeon in my rom , but i got force close in small app again

would i hove problem in other source or file ???
[Xperia Arc Themes and Apps] havocgb:
Did that

<dimen name="navigation_bar_height">22.0dip</dimen>
<dimen name="navigation_bar_width">0.0dip</dimen>

And now bootloop! :confused:
[Xperia Arc Themes and Apps] sandy7:
Re: [TUTORIAL] How to add various framework/Settings mods [Update 26/3/2013]

Hmm.cant give a bootloop...might the framework-res faulty
[Xperia Arc Themes and Apps] sandy7:
Re: [TUTORIAL] How to add various framework/Settings mods [Update 26/3/2013]

Ill try to get new source of apps ASAP
[Xperia Arc Themes and Apps] galaxys3lover:
what if i want to add these mods into a rom i am building?.. how do i add it... for example the volume skip track mod how do i go about that?..
[Xperia Arc Themes and Apps] sandy7:
Re: [TUTORIAL] How to add various framework/Settings mods [Update 26/3/2013]

Add the mods in the particular files I have mentioned..
[Xperia Arc Themes and Apps] sandy7:
no one ...bump
[Xperia Arc Themes and Apps] sean.paul:
hi sandy

such are my hex in public , but i rename hex of new line that i add

look at this :

i got no error in recompile but my small app have fc - my magnif have fc too

i have not reboot option - no changes in the lock screen

plz help me

can i use another framework.jar to make magnif???
[Xperia Arc Themes and Apps] sandy7:
try with different framework
[Xperia Arc Themes and Apps] EvilHobbit:
Hello sandy7.

I think video tut is not so nescessary, everything is quite understandable.

Keep up with fantastic mission, really appreciated :good:

In one of my previous posts i just wanted to point You that under

MAGNIFICATION GLASS tut, section 2, You have made a tiny

mistake (could be confusing). Second and third screenshots are

identical (Dimen and Drawables). Nothing more.

Tut works fine, Thanks a Lot!
[Xperia Arc Themes and Apps] sandy7:
Re: [TUTORIAL] How to add various framework/Settings mods [Update 26/3/2013]

Ho..look into that thanks pointing out....

I wanted a vid to make understand to noob's who dont know anything
[Xperia Arc Themes and Apps] vr5411:
Re: [TUTORIAL] How to add various framework/Settings mods [Update 26/3/2013]

Small apps tutorial is missing impacts in one file in framework.jar and one file is missing. android-policy.jar impacts are missing also.

Included services.jar file is not related to small apps (no impacts there).

When you overcome above, find SystemUI.apk that support it (one additional smali and two modded smali files).

To be honest. Majority is required in order to make external task manager working.

Small Camera update from market is just fine. You can accept that.

For others to work you will need new Task Manager.apk

Kind Regards, vr
[Xperia Arc Themes and Apps] galaxys3lover:
so i do everything until step 6 ... copy and replace the newly compiled android.policy.jar in the system/framework folder and done?
[Xperia Arc Themes and Apps] Ayush Singh:
Hey Sandy

I tried all these framework mods...

Skip Track vol +/- working fine

Cam Pause/Play working fine

X-S Lock Screen working fine with other frameworks but not with mine :(

Small Apps tut working fine with other frameworks but not with mine :(

Magnification port didn't work with those frameworks i tried :(

Settings modding is like universal :) , works with every settings :)

n also one EDIT- magnification resource pngs to be added to drawable-hdpi, not to drawables-hdpi
[Xperia Arc Themes and Apps] EvilHobbit:
Hello again sandy7.

One tiny succestion, maybe You can provide a link first page to one of many

Hex Dictionaries (for ex: http://www.hexdictionary.com/).

I mean, users can check the hex code, if they are not sure what comes next or

which was a last. As they all should be in proper order:

0x010405fd <----- to check that previous was 0x010405fc

and 0x010405fe will follow

also what comes after 0x010405ff

It can be quite a headache when person havent used hex before and when it comes

to the letters instead of numbers... in my opinion.

I hope You can understand me, my english is rusty (read: sucks).