yashsingh1/xdaforums huggingface dataset:
[Galaxy Note GT-N7000 Android Development] cbucz24:
i just went thru everything i did...i did it exactly like majdinj explained here. mine looks just like it does here. granted im sure mine is in a different place, but thats expected since im 2 versions of tw away.

now...i got a error log from the decompile issue i had.

apktool d SecSettingsProvider.apk
I: Baksmaling...
I: Loading resource table...
Exception in thread "main" java.lang.NullPointerException
at brut.androlib.res.decoder.ARSCDecoder.addMissingResSpecs(ARSCDecoder.java:326)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:138)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:110)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:83)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:49)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:491)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:74)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:66)
at brut.androlib.Androlib.getResTable(Androlib.java:50)
at brut.androlib.ApkDecoder.getResTable(ApkDecoder.java:189)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:114)
at brut.apktool.Main.cmdDecode(Main.java:146)
at brut.apktool.Main.main(Main.java:77)

and yes, ive installed my framework, twframework, and systemui...?
[Galaxy Note GT-N7000 Android Development] tkari4:
[MENTION=369057]majdinj[/MENTION]

Played with the Settings.smali files and accidentally unlocked all settings option. :D

Need some help!

How can I set this csc feature TRUE without others.xml?

.line 596
invoke-static {}, Lcom/sec/android/app/CscFeature;->getInstance()Lcom/sec/android/app/CscFeature;

move-result-object v3

const-string v6, "CscFeature_Setting_EnableMenuBlockCallMsg"

invoke-virtual {v3, v6}, Lcom/sec/android/app/CscFeature;->getEnableStatus(Ljava/lang/String;)Z

move-result v3

if-nez v3, :cond_23

Hidden settings:

Some of them is working... :laugh:
[Galaxy Note GT-N7000 Android Development] Goldie:
Above if-nez v3 line put const/4 v3, 0x1

This will override the boolean value returned by the csc feature check with your own value of true
[Galaxy Note GT-N7000 Android Development] cbucz24:
What smali file is that from? Can you give a more detailed location please
[Galaxy Note GT-N7000 Android Development] tkari4:
of course:

\com\android\settings\Settings.smali

It's in the SecSettings.apk.

;)
[Galaxy Note GT-N7000 Android Development] majdinj:
The errors appear when trying to load tables from dependencies, make sure your dependencies are installed in %userprofile%\apktool\framework folder

You have 2 options here:

- as described by [MENTION=3065070]Goldieking[/MENTION] (const/4 v3, 0x1 #0x1 means enabled where 0x0 means disable)

- or delete the whole section

Can you elaborate more about Advanced settings, docmo settings, and customizable key please..!!
[Galaxy Note GT-N7000 Android Development] tkari4:
I think unlocked the headers in Settings.smali.

I have been deleted the red lines:

.line 596
[COLOR="red"] invoke-static {}, Lcom/sec/android/app/CscFeature;->getInstance()Lcom/sec/android/app/CscFeature;

move-result-object v3

const-string v6, "CscFeature_Setting_EnableMenuBlockCallMsg"

invoke-virtual {v3, v6}, Lcom/sec/android/app/CscFeature;->getEnableStatus(Ljava/lang/String;)Z

move-result v3

if-nez v3, :cond_23[/COLOR]

.line 598
invoke-interface {p1, v0}, Ljava/util/List;->remove(Ljava/lang/Object;)Z

goto/16 :goto_23

.line 600
:cond_e9
const v3, 0x7f0b03f7

[COLOR="Red"] if-ne v5, v3, :cond_106[/COLOR]

---------- Post added at 03:09 PM ---------- Previous post was at 02:34 PM ----------

some more...

only deleted all lines witch one includes this:

Landroid/preference/PreferenceScreen;->removePreference(Landroid/preference/Preference;)Z

- joyn service FC

- Smart network No FC

- Auto power on/off FC

- Network service discovery No FC

- Roaming ? automatic or Sprint settings No FC

- Proxy settings No FC

- Cell Brodcasts (CB) FC

- NFC FC :laugh:

- S Beam FC

SecSettings.apk : \com\android\settings\WirelessSettings.smali
[Galaxy Note GT-N7000 Android Development] majdinj:
Thanks [MENTION=2312076]tkari4[/MENTION], I wanted just some info about Advanced settings, docmo settings, and customizable key please..!! They seem interesting,,

Regarding the code:

Landroid/preference/PreferenceScreen;->removePreference(Landroid/preference/Preference;)Z

It is the first thing to look at, to enable any feature ;)
[Galaxy Note GT-N7000 Android Development] tkari4:
I wrote already what I did nothing special only deleted the red lines...

Advanced settings looks like csc feature I think this is the trigger:

.line 1425
invoke-static {}, Lcom/sec/android/app/CscFeature;->getInstance()Lcom/sec/android/app/CscFeature;

move-result-object v1

const-string v2, "[COLOR="Blue"]CscFeature_Setting_ReplaceLabel4DeveloperOptionAs[/COLOR]"

invoke-virtual {v1, v2}, Lcom/sec/android/app/CscFeature;->getString(Ljava/lang/String;)Ljava/lang/String;

move-result-object v1

invoke-virtual {v1}, Ljava/lang/String;->isEmpty()Z

move-result v1

if-eqz v1, :cond_12

Smart network looks like is working:
[Galaxy Note GT-N7000 Android Development] majdinj:
My dear, you did great special work, don't be harsh to yourself, you deserve it,, :laugh:

And for AllShareCast raw resources compression, just open the SecSettings.apk and go to res folder and drop out the raw folder in your computer then drop it back and set compression method to STORE.. see picture

​

Now push SecSetting.apk to your device,,

​

I didn't push any libs and for me it seems working fine. If you have dongle, can you remove the extra libs and try if it is really needed or not
[Galaxy Note GT-N7000 Android Development] tkari4:
I can't do it because do not have dongle. :(

So far not a lot of extra is working...

Horizontal calibration is working! ;) The first one!

SecSettings.apk: \com\android\settings\DisplaySettings.smali
[Galaxy Note GT-N7000 Android Development] majdinj:
I assume it is working,, I will try to visit one of my friends who has samsung plasma TV that has AllCastShare capability and I will test it.. So far it is still in beta stage till proven other wise, but no harm to share :good:

Thanks for all what you have done [MENTION=2312076]tkari4[/MENTION] :o
[Galaxy Note GT-N7000 Android Development] cbucz24:
[MENTION=369057]majdinj[/MENTION] I do have the normal dependencies loaded.

I can say though, I can do the one for 4.1 but this 4.3 isnt working. ..is it possible that there are more dependencies that ive missed?

I loaded framework-res.apk, twframework-res.apk, ans systemui.apk just for good measure.
[Galaxy Note GT-N7000 Android Development] majdinj:
It could be,, as I am crazy sometimes, try to install SecSettings and SecSettingsProvider :eek:
[Galaxy Note GT-N7000 Android Development] encik_racun:
All this mods for deodexed or original odex?
[Galaxy Note GT-N7000 Android Development] cbucz24:
Deodexed
[Galaxy Note GT-N7000 Android Development] Dr. Narinder:
Why Full battery notification get disabled automatically?

Secondly can full battery

sound

notification be added?
[Galaxy Note GT-N7000 Android Development] majdinj:
Why Full battery notification get disabled automatically?

Which device you are using??? Our GT-N7000 full battery notification will persist by default until you unplug the charger, unless you mod PowerUI.smali in SystemUI.apk

Secondly can full battery

sound

notification be added?

Theoretically yes but I didn't dig more in this part,,

I am guessing in SystemUI.apk in PowerUI.smali you need to add new codes that call a new const-string vx, "full_battery_sound" key from .method notifyFullBatteryNotification()V to .method playSound(I)V which then will use another codes to call const-string vx, "system/media/audio/ui/TW_Battery_full.ogg". After that add new sound in system/media/audio/ui/TW_Battery_full.ogg

May be I will try that, but I can't promise since a lot of works to maintain first,,

Cheers,,,
[Galaxy Note GT-N7000 Android Development] nokiamodeln91:
I used tasker to do that.

Battery full-> notify using sound.
[Galaxy Note GT-N7000 Android Development] janres155:
Hi! I would to suggest if you can make guide on how to mod the drawables (graphical changes) for an .apk. :)

It will be a great help for people who want to mod graphics.
[Galaxy Note GT-N7000 Android Development] Goldie:
There's a million guides on the net on using photoshop and a million guides on xda for theming apk images ;)
[Galaxy Note GT-N7000 Android Development] HighlanderZA:
Check my thread, there is a basic guide on changing pngs in apks.

The actual png editing is something you'll have to research yourself, just as Goldie said!
[Galaxy Note GT-N7000 Android Development] asmanao:
:hi [MENTION=369057]majdinj[/MENTION]

I use the rom xxlta "amd team". the lock screen rotates. and the specification says that you can not stop it. I tried your guide but it does not work. you know any other remedy :confused:
[Galaxy Note GT-N7000 Android Development] majdinj:
Why not? it is JB 4.1.2 so why not?

decompile framework-res.apk, go to res\values and open bools.xml and adjust this line:

<bool name="config_enableLockScreenRotation">true</bool>

to:

<bool name="config_enableLockScreenRotation">false</bool>
[Galaxy Note GT-N7000 Android Development] tkari4:
TW 4.1.2 hidden options

I found them yesterday accidental, but now I know how to make them visible! :D

baksmali SecSettings.apk

open Settings.smali com\android\settings\Settings.smali

look for this lines and delete them:

invoke-interface {p1, v0}, Ljava/util/List;->remove(Ljava/lang/Object;)Z

goto/16 :goto_23

I have attached a description of what each line gives and my Settings.smali for easier identification.

All available settings option:

some info...

FC "yet": Change home ; Global roaming, SIM Card manager, Customized keys, Backup Assistant Plus, Dual mode settings, Dual standby setting

Airplane mode toggle: :good:

Wifi hotspot toggles: toggle in the menu not working must go inside the option to turn it on

Nearby devices: same as under More Settings menu

Call/message block: :good:

Customizable key: (not working)

Power:

- Auto power off (after 1 hour screen on time the phone turns off) Bug: sometimes the phone turns off in sleep mode too !!!

PhilZ kernel: :good:

Speedmod kernel: :good:

- Power saving mode is working (the same as in the main menu)

- Show on start-up (not working)

- Fast power-on is working (it changes the Power Off function to Fast "Hot" Reboot)

PhilZ kernel: bootloop

SpedMod kernel: :good:

User & restrictions: is working (but uses "much" more memory if the second user is logged in)

- Content restrictions: (not working)
[Galaxy Note GT-N7000 Android Development] asmanao:
I've tried does not work. sounds weird but it is so. That is why I asked if there were other ways :rolleyes:
[Galaxy Note GT-N7000 Android Development] tkari4:
Check all values folder maybe there is more bools.xml.

like values-sw320dp, values-sw399dp.... etc..

maybe...
[Galaxy Note GT-N7000 Android Development] asmanao:
I changed the framework-res.apk with that of sweetrom. still rotates :confused::confused:
[Galaxy Note GT-N7000 Android Development] majdinj:
Awesome [MENTION=2312076]tkari4[/MENTION],, and thanks for sharing,, I will link this post from OP,, and I will add new guide for quick panel toggles (Airplane, Torch AllShareCast) tonight hopefully

framework-res.apk doesn't have classes smali,,,

So I think it is something done in framework.jar or framework2.jar,,, try to push these from another ROM and see.

Oh, can you take a log from your device while it is rotating in LockScreen so we may be able to locate which smali is involved
[Galaxy Note GT-N7000 Android Development] asmanao:
how do I get the log?

changed framework.jar and framework2.jar but nothing changes
[Galaxy Note GT-N7000 Android Development] cbucz24:
Lol well ive tried adding any of the apks that I could guess would be related to that..the secsettings.apk failed to install as framework. And anything else did too. Im guessing thats it may be something that samsung may have not released as of yet...

On a side note, im wondering about another issue im having with a multi-window mod. Its not everyone having it but there have been reports of people having the issue of the item dragged into the window not being whats selected.

I know ive had that issue from time to time but I dont know what causes it. I assume there is an additional smali mod I have to incorporate.
[Galaxy Note GT-N7000 Android Development] majdinj:
By using adb:

adb logcat > log.txt

or better to use monitor.exe from android sdk in sdk\tools\lib\monitor-x86 or sdk\tools\lib\monitor-x86_64

Never have this issue but as you said it could be an additional smali that must be modded to in certain devices. o_O
[Galaxy Note GT-N7000 Android Development] asmanao:
I rotated 3 times if we understand something
[Galaxy Note GT-N7000 Android Development] majdinj:
It points to KeyguardViewMediator and WindowManager... try to push android.policy.jar from another ROM and see

New Guides Added:

>> Settings menu extra hidden options in post #397 (thanks to [MENTION=2312076]tkari4[/MENTION])

>> Notification panel extra toggles - the original way (Airplane, Torch, AllShareCast) in post #398

All new guides are linked in TABLE OF CONTENT in post #1
[Galaxy Note GT-N7000 Android Development] Dr. Narinder:
Hi majdinj. I want to know is there a way to add active display and pocket mod of 4.3 in android 4.1
[Galaxy Note GT-N7000 Android Development] cbucz24:
Hey guys figured I would share how I ended up getting my font issue fixed. Its been a while, and I meant to share it sooner but Ive been distracted with 20 million other things...

Anyways, I wanted to add extra fonts to my phone so I could change them in settings without having to flash anything extra and also be able to still go back to the stock font without any extra hassles.

SO, method involves decompiling any font apk, for this I chose ChocoEUKor.apk

At this point you should have your standard items in the folder

assets

res

smali

open assets folder and you should see

fonts

xml

At this point is where you add the fonts you would like to see in the settings menu. I have included the files I used for mine. It adds roughly 400+/- fonts to the menu.

You can add more, but that requires that you do a little work yourself. If 400 fonts isnt enough for you then thats on you to fix it.You can use the files I have as a templete.

But basically, these files get added to the folders you see. then you compile the apk as normal and flash or push back to yur system. reboot and enjoy more fonts...

Source files here
[Galaxy Note GT-N7000 Android Development] Dr. Narinder:
Is it possible to add ink effect in ICS Roms
[Galaxy Note GT-N7000 Android Development] cbucz24:
Anything is possible as long as your phone had the capabilities.

The guide [MENTION=369057]majdinj[/MENTION] has will direct you to the right areas, but since it's different version android files and structures will be different.

Trial and error my friend. Before anything, make a backup :D
[Galaxy Note GT-N7000 Android Development] Dryblow:
Quote, i don't find it.
[Galaxy Note GT-N7000 Android Development] Robbie Hood:
you are rigth no java classes in a library :)

---------- Post added at 10:54 PM ---------- Previous post was at 10:52 PM ----------

its possible the apk gets smaller , this because it gets png optimised and zip aligned after modifying it .

Did you try it yet ?

i have no clue about apk manager because i just use apktool so no clue what the otions mean :D
[Galaxy Note GT-N7000 Android Development] Dryblow:
11 option is for the compile System APK for same signed

I tried several times but not work on my "Note".
[Galaxy Note GT-N7000 Android Development] Robbie Hood:
checked if the META-INF folder is in the apk ? (these are the rom signatures)
[Galaxy Note GT-N7000 Android Development] nokiamodeln91:
Yes.. Drag the META-ING and androidmanifest.xml from the original framework to the modified framework using 7z
[Galaxy Note GT-N7000 Android Development] Dryblow:
yes, is on apk

---------- Post added at 11:26 PM ---------- Previous post was at 11:22 PM ----------

It's possibly I'm wrong on change rw-r-r on system and not flash in recovery mode?

P.s. sorry for my very very bad English lol
[Galaxy Note GT-N7000 Android Development] Robbie Hood:
well depends what kernel you are running.

I had major issues with pulling and puoshing files with PhiLz kernel .

And ended up looping on correct coded files

You have to do a real bad job in framework-res to not make it boot , its alost impossible unless you editted some layout incorrect

what did you modify btw ?
[Galaxy Note GT-N7000 Android Development] nokiamodeln91:
There is a statement in OP which says "remember to set the compression level to 0 before proceeding"
[Galaxy Note GT-N7000 Android Development] ddrwin:
thanks very much！
[Galaxy Note GT-N7000 Android Development] rupalazzi:
Hello everyone. majdinj thanks for this thread, very nice piece of info, more than useful, but I liked to ask you something about enabling airview.

I'm running cronosmachine's [ROM][STOCK][JB][4.1.2][JZO54k.N7000XXLSC][10-12-2012] right now. I downloaded, placed and set permissions as instructions

1. Just add this file to /system/etc/permissions in your phone.

2. Fix permission to rw-r--r-- and reboot

So now airview is working almost perfectly, I say almost cuase when I open S-Planner in month view, airview shows nothing, yet week view or any other view for S-Planner works fine with airview. Have you (or anyone else for the matter) experience this?

Again. Thanks for your time and dedication.
[Galaxy Note GT-N7000 Android Development] Dryblow:
Now work with compression 0 fuction!i have change "false" in "true" on string for crtoff effect, the effect works equally..

---------- Post added at 03:52 PM ---------- Previous post was at 03:20 PM ----------

I change string but after compiled turn "false", why? :/
[Galaxy Note GT-N7000 Android Development] eybee1970:
you have to delete resources.arsc in 'keep' folder when recompiling....but I don't think this is thread for basic compiling questions
[Galaxy Note GT-N7000 Android Development] Dryblow:
Sorry for OT...
[Galaxy Note GT-N7000 Android Development] majdinj:
framework-res.apk is little bit a cheeky apk!!

I personally do the followings:

- Either to set compression level to 0 and this will work but will give large size apk..

- OR if you want just to change some pics, just open framework-res.apk using WinRAR or 7-zip archiver and simply drag and drop your pics in its corresponding folder (keeping in mind the the pic name is exactly the same to that you will substitute). this will give you reasonable apk size that works fine without boot loop -- I personally use this method to change default wallpaper!! --

- OR if you edit xml file(s), just compile your apk (you will get system_framework-res.apk), then open the original framework-res.apk (unmodified one) by WinRAR or 7-zip archiver and substitute resources.arsc with the one in the new compiled apk (system_framework-res.apk)

hope this will help ya dude!! :cowboy:

----------------------------------------------------

yes you are right... unfortunately this is what we have right now until somebody come up with a solution!!
[Galaxy Note GT-N7000 Android Development] nokiamodeln91:
Hi majdinj.

Ok this is where I am.

CRT effect. > In the OP it says change the value to false. Mine is already false. Anyways i changed it to true. and recompiled and got System_framework-res.apk

framework-res.apk - 25.9MB

System_framework-res.apk - 21.3MB

now when i open the original framework and replace the resources.arsc with the modded one, the original one becomes the size of 21MB.. How?

i have compared the resources.arsc as well ( original = 6.15 and new =6.16) How does the framework reduce so much in size?

Comp level set to 0

and the CRT effect is not there as well and i lost the google account as well
[Galaxy Note GT-N7000 Android Development] rupalazzi:
Thanks. Just wanted to be sure I wasn't doing something wrong.
[Galaxy Note GT-N7000 Android Development] Dryblow:
I did this but not work, crt effect remains.. but i haven't flashed from recovery, i copied from root explorer and set permission rw-r-r, this is my problem?
[Galaxy Note GT-N7000 Android Development] majdinj:
OK, for step by step, see this thread

It should be fine.. else you might need further reading for how to use apktool program.

Be cold nerves... It is mandatory to learn new thing!!!
[Galaxy Note GT-N7000 Android Development] nokiamodeln91:
the original framework has config_animateScreenLights set to false already. still there is no CRT effect,
[Galaxy Note GT-N7000 Android Development] vuidoi:
Great topic

I Love you ,majdinj :D
[Galaxy Note GT-N7000 Android Development] Goldie:
You gotta port ripple first which believe me is a pain in the ass and not worth the time it will take and ripple isn't possible pre 4.0.4. I tried on 4.0.3 for months until 4.0.4 came and then it worked but unless you have lots of experience porting lockscreens I really wouldn't attempt it.
[Galaxy Note GT-N7000 Android Development] Dr. Narinder:
Sir

If i am using Alliance ICS rom then how to proceed as there is a problem i cannot find Lockscreen_settings.xml
[Galaxy Note GT-N7000 Android Development] Goldie:
You could try to take the renderer and libs from alliance jb and the custom settings has the color choice in it. Dont forget to fix the couple of ids in renderer. Tbh though you're better just using JB :/
[Galaxy Note GT-N7000 Android Development] aaasss10:
Hello majdinj,

concerning the flashlight extra toggle,

would be possible to use the built-in flashlight application (Assistive light) instead of the app Torch.apk?

Thanks for your attention! :good:
[Galaxy Note GT-N7000 Android Development] cbucz24:
I don't see why you couldn't. You would just need to make sure it's written properly.
[Galaxy Note GT-N7000 Android Development] Dr. Narinder:
Slight details if possible for you will be great.

Thanx for response and attention
[Galaxy Note GT-N7000 Android Development] Goldie:
Like I said....use the CircleUnlockRippleRenderer smalis from alliance jb and the libwaterripple's. Correct the id in CircleUnlockRippleRenderer to reference reflection map and use the jb custom settings to set the color. You will have to replace ics custom settings after setting a color though as it won't work for your other existing mods
[Galaxy Note GT-N7000 Android Development] Dr. Narinder:
Sorry but there is no reflectionmap reference id in ICS framework-res.apk although it is present in JB framework
[Galaxy Note GT-N7000 Android Development] Goldie:
There should be in alliance ics as it has ripple?
[Galaxy Note GT-N7000 Android Development] Dr. Narinder:
When i compared both frameworks then found that same value corresponds to

<public type="drawable" name="APKTOOL_DUMMY_0649" id="0x01080649" />

in ICS framework
[Galaxy Note GT-N7000 Android Development] Goldie:
There is reflection map image in res?
[Galaxy Note GT-N7000 Android Development] Dr. Narinder:
No
[Galaxy Note GT-N7000 Android Development] Goldie:
Then something is wrong because alliance ics has ported ripple which means it has to have reflection map image
[Galaxy Note GT-N7000 Android Development] Dr. Narinder:
There is no reflectionmap.jpg in ICS but is present in JB

If i put reflectionmap.jpg in res folder and recompile followed by decompile then i can get the reference number for reflectionmap. will it work?