yashsingh1/xdaforums huggingface dataset:
[Galaxy Note GT-N7000 Android Development] maskerwsk:
I had the same issue a while ago. In one of the $99 files there an access$ value that looks for mContent i had to change mine to reflect the actual mContext access value
[Galaxy Note GT-N7000 Android Development] Kishan14:
Ok buddy ll chk as i reach home.. N ll report u
[Galaxy Note GT-N7000 Android Development] Kishan14:
hello

buddy i saw access$700.. in both case are same... can u check where i m wrong.. ll upload the files required by you..
[Galaxy Note GT-N7000 Android Development] maskerwsk:
yeah go for it mate, ill see what I can do :)
[Galaxy Note GT-N7000 Android Development] Kishan14:
thanx a tonn buddy... :)

here u go

i have attached GlobalActions$99, $99$1, $99$2, GlobalAction.smali
[Galaxy Note GT-N7000 Android Development] maskerwsk:
id need this file aswell mate please

GlobalActions$SinglePressAction.smali.
[Galaxy Note GT-N7000 Android Development] Kishan14:
attached ids.xml & GlobalActions$SinglePressAction.smali too
[Galaxy Note GT-N7000 Android Development] pandian8552:
[help] how can i edit secsettings.apk

please help how can i edit secsettings.apk

i used apktool but it didnit work

i sawed in your post apk multi tool i dont know how to use it

please guide me

and another doubt for modding secsettings.apk which i want to install first framework-res.apk or com.htc.resources.apk iam using galaxy note

and send me the link for apk multitool which i want to download for error free compiling.

i am waiting for your reply:)
[Galaxy Note GT-N7000 Android Development] Kishan14:
the apktool u downloaded is outdated i guess... google it and download 1.5.2 version... then replace apktool.jar to the place where ur old apktool.jar is located..

first install framework-res.apk and twframework-res.apk .. use this command "apktool if framework-res.apk" and "apktool if twframework-res.apk"

later to decompile SecSettiongs.apk use this command "apktool d SecSettings.apk" make changes and to compile use this command "apktool b SecSettings" .. revert here if any other problem... ;)
[Galaxy Note GT-N7000 Android Development] Kishan14:
Bro did you got the solution?
[Galaxy Note GT-N7000 Android Development] lacoursiere18:
If you pull a log while the phone hot boots that will show exactly why it is doing so..just a thought instead of waiting for someone else to find what they "think" maybe the issue;)
[Galaxy Note GT-N7000 Android Development] Kishan14:
Buddy u gav me gud idea of taking log... That ll be better... Thnx mahn... Whole day i was figuring where i m wrong but failed... This is gud idea... Ll try by tomorrow as its late night nw... :D

btw Thnx bro for helping... Still if i fail to find pls guide me...

1 more thing... Will this stuff work on 4.2.2??
[Galaxy Note GT-N7000 Android Development] lacoursiere18:
Well yea.. Might be a little different here and there.. but yea.
[Galaxy Note GT-N7000 Android Development] pandian8552:
I successfully done

One help before signing the apk file

In the original settings. apk by opening it in winrar copying META.inf to modified apk in that what is the compression level I want to set store or normal
[Galaxy Note GT-N7000 Android Development] Kishan14:
Lisn after compiling... Open your original apk with 7zip drag meta-inf to build->apk then later again compile ur same decompiled folder... Done.. U have signed your apk.. :)
[Galaxy Note GT-N7000 Android Development] maskerwsk:
I havent mate it all looks fine to me. What phone and android version are you using? Upload the log so we can take alook
[Galaxy Note GT-N7000 Android Development] Kishan14:
I ll attach d log in few hours as m out now.. M using samsung galaxy grand Duos running 4.2.2..
[Galaxy Note GT-N7000 Android Development] cbucz24:
Kind of hard to say by this, so many different errors. Using the example of what directions were posted, post your section of what you changed.

I'd go a little bit before and afterwards the stated text.

---------- Post added at 10:26 AM ---------- Previous post was at 10:23 AM ----------

Would anyone be interested in a mod I made to enable native resize for home screen widgets?

I've only tried it on one so far, going to see if it works for more in a day or so.

I modded my s5 launcher to be 5x6. And the apk I modded was Apollo music player.

Anyone? If so, I'll post the instructions
[Galaxy Note GT-N7000 Android Development] Sami Kabir:
Can anyone please help me setup a Toggle button next to the Settings app button on the Notification Panel to just "expand" all the Quicksetting toggles similar to what Android 4.2 and above does?

I don't want to add any extra toggles or add the ability to rearrange the toggles on the go. I just want a button that upon pressed will just show all the toggles and hide them back if pressed again...

Here's a screenshot to make things more clear:
[Galaxy Note GT-N7000 Android Development] Sami Kabir:
Hey mate, the Blocking mode menu is hidden by default on my phone. So I did what you did to make it visible and even though it works perfectly, it causes another problem... For some reason, doing this removes all the linked User Accounts (like Google, Whatsapp, Facebook, Yahoo, etc.) from under "Accounts" section in the Settings app and there is no way to bring them back... The only way to fix that is by putting back the two lines I removed ( defeats the purpose, doesn't it? )

So, do you have any idea why its doing this?
[Galaxy Note GT-N7000 Android Development] tkari4:
No I have no idea...

On my Note 3 I'm using this option as enabled CSC feature.

Maybe this isn't the right one because there are more lines like that, but you can try it:

open: Settings.smali

find: CscFeature_Setting_EnableMenuBlockCallMsg

add blue line

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

move-result-object v3

const-string v6, "[COLOR="DarkGreen"]CscFeature_Setting_EnableMenuBlockCallMsg[/COLOR]"

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

move-result v3

[COLOR="Blue"]const/4 v3, 0x1[/COLOR]

if-nez v3, :cond_23

:confused:
[Galaxy Note GT-N7000 Android Development] Sami Kabir:
Here are the codes in settings.smali that controls the visibility of Blocking Mode..

.line 808
:cond_2e
const v9, 0x7f0b03ff

if-ne v4, v9, :cond_2

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

goto/16 :goto_2

So where will I put const/4 v3, 0x1?

Below const v9, 0x7f0b03ff, above goto/16 :goto_2 or below goto/16 :goto_2? And should I remove these 2 lines?

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

goto/16 :goto_2

PS: Is there any other way to toggle its visibility? My friend did it using some other way but sadly he can't remember how he did it...
[Galaxy Note GT-N7000 Android Development] cbucz24:
Check out this tutorial

http://xdaforums.com/showthread.php?t=2341389

[Tutorial] How to add any App/Option in Settings.apk

Its a bit older but Its all the same principal of adding the toggle switch
[Galaxy Note GT-N7000 Android Development] tkari4:
There are three ways to enable it, please don't use them together.

1.)

Deleting the lines

2.)

Enabling the CSC feature in the smali (with const/4 v3, 0x1)

3.)

Enabling it in others.xml

add this line to it: <CscFeature_Setting_EnableMenuBlockCallMsg>TRUE</CscFeature_Setting_EnableMenuBlockCallMsg>

More info here: http://xdaforums.com/showpost.php?p=47555787&postcount=16
[Galaxy Note GT-N7000 Android Development] Sami Kabir:
But this is for Call/Message Block. I already enabled that with no fuss. Now I am trying to enable Blocking Mode (image attached below).. For some reason Samsung decided to hide it for our phone...

So now, all I have to do is add const/4 v3, 0x1 to this code right?

.line 808
:cond_2e
const v9, 0x7f0b03ff

if-ne v4, v9, :cond_2

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

goto/16 :goto_2

But where should I put it? :o
[Galaxy Note GT-N7000 Android Development] tkari4:
Sorry misunderstood..

For Blocking mode I didn't find a CSC feature, so you can't use "const/4 v3, 0x1" I think.

What kind of phone do you have? Android version?

Did you tried it with one other CSC?

In the Settings.smali are some CSCs if you find yours, than try to rename it.

for example: const-string v6, "BST"

Some times they removes options.
[Galaxy Note GT-N7000 Android Development] isaak:
I think you missed my post, please check it out:

http://xdaforums.com/showpost.php?p=53106910&postcount=860
[Galaxy Note GT-N7000 Android Development] Jhossell:
excuseme

i`m sorry, hi i`m jhossell and i desperate, i update the kernel of my galaxy note, but i think was broken the pack of the kernenl. my note ​​does not turn on, does not go into recovery, only heats up when I connect, I can do anything?

sorry for the english, i am learning
[Galaxy Note GT-N7000 Android Development] Sami Kabir:
Can it at least go to Download Mode? (Vol Down + Home + Power) If it can then connect your phone with your PC and flash your stock firmware using Odin.

If it doesn't even turn on then I'm afraid you've hard bricked your phone :/

Sent from my GT-I9070
[Galaxy Note GT-N7000 Android Development] Jhossell:
no, not really 'lights, heated only when I connect to the energy, I lost?
[Galaxy Note GT-N7000 Android Development] cbucz24:
I'll look at it in just a little bit. I've been buried in my stuff an haven't had much of a chance to do much else.

Sorry it's taken a little bit
[Galaxy Note GT-N7000 Android Development] smeet.somaiya:
Maybe this can help you to get to download mode

http://xdaforums.com/showthread.php?p=53276295
[Galaxy Note GT-N7000 Android Development] Jhossell:
Thanks brother, I'll try, and I will be informing
[Galaxy Note GT-N7000 Android Development] pandian8552:
hi majdinj

i want one help from you.

i edited secsettings.apk and i enabled inkeffect as per you told in your post .

i carefully readed your post and copied inkeffect resources and done edited successfully using apk multitool.

but the problem is when i compiled and pushed to my phone and rebooted when opening settings>lockscreen>lockscreen options.

there is no ink effect toggle :crying: then how can i choose ink effect?

but in lockscreen when i unlocked blue ink alone comes.

i can't choose any other color ink because there is no toggle in lockscreen options menu.

i tried editing for about seven times but the result is failure.

please give me some solutions for this problem as soon as possible.
[Galaxy Note GT-N7000 Android Development] Jackwu696:
[MENTION=369057]majdinj[/MENTION]

Hello, I have been fiddling around with 23 custom toogles. I have followed each step u described including copying wanam's file. My question is, as I recompile, it would ask me to delete the XML and the resources. I deleted tw_status_bar_expanded.xml the first time I recompiled the original SystemUI.apk to get the new system_SystemUI.apk in order to generate new ids in public.xml file for exp_power_stat like you guided. So should I delete the edited AndroidManifest.xml at the end of the final recompiling before signing as your tool asked to? I tried 3 times and get 3 FC's sytemui. luckily backup saves the day. I'm fairly new to this so I'm sorry if my question has been asked as I couldn't find the answer. Thanks
[Galaxy Note GT-N7000 Android Development] Kamy:
Hey mate, I suggest you using this tool as you are free to deleting modified files. I am using it for Note 1 and 3 working balze.
[Galaxy Note GT-N7000 Android Development] Jackwu696:
Thanks buddy! Was trying from simple modding first to try how my luck goes. LOL. Thank you so much.
[Galaxy Note GT-N7000 Android Development] tkari4:
Good news!

We did it with [MENTION=5743017]H170kR1[/MENTION] !

Solution is easy!

Do not remove the goto line.. :o

So, only remove the red line:

.line 808
:cond_2e
const v9, 0x7f0b03ff

if-ne v4, v9, :cond_2

.line 811
[COLOR="Red"]invoke-interface {p1, v1}, Ljava/util/List;->remove(Ljava/lang/Object;)Z[/COLOR]

goto/16 :goto_2

My fault, some removed goto/16 :goto_2 line kills the smali...

:o
[Galaxy Note GT-N7000 Android Development] Sami Kabir:
Please help me setup a Quicksettings toggle

I'm trying to add a toggle button that will show all the QuickSettings buttons (like what TouchWiz on Android 4.2 and above does).. Bnd after hours of hard work, it did not work :(

My SystemUI keeps force closing and the problem is that I still don't completely understand logcats or smali codes properly so I need your help..

Here's my filtered out logcat:

06-20 10:44:12.181 10986 11002 E Drive.UninstallOperation: Package still installed com.android.systemui

06-20 10:44:50.538 11423 11423 E AndroidRuntime: java.lang.NoSuchMethodError: com.android.systemui.statusbar.phone.PhoneStatusBar.update_power_button

06-20 10:44:50.538 11423 11423 E AndroidRuntime:	at com.android.systemui.statusbar.phone.PhoneStatusBar.makeStatusBarView(PhoneStatusBar.java:708)

06-20 10:44:50.538 11423 11423 E AndroidRuntime:	at com.android.systemui.statusbar.phone.PhoneStatusBar.addStatusBarWindow(PhoneStatusBar.java:3067)

06-20 10:44:50.538 11423 11423 E AndroidRuntime:	at com.android.systemui.statusbar.phone.PhoneStatusBar.createAndAddWindows(PhoneStatusBar.java:3036)

06-20 10:44:50.538 11423 11423 E AndroidRuntime:	at com.android.systemui.statusbar.BaseStatusBar.start(BaseStatusBar.java:460)

06-20 10:44:50.538 11423 11423 E AndroidRuntime:	at com.android.systemui.statusbar.phone.PhoneStatusBar.start(PhoneStatusBar.java:483)

06-20 10:44:50.538 11423 11423 E AndroidRuntime:	at com.android.systemui.SystemUIService.onCreate(SystemUIService.java:94)

06-20 10:44:57.225 11306 11324 E ActivityManager: App already has crash dialog: ProcessRecord{41cd67a8 11423:com.android.systemui/u0a77}

and here's my PhoneStatusBar.smali file. Please take a look at them if you have the time. Thanks :)

(and I'm sorry if you find this post off-topic, but I am really desperate about this since I wasted a lot of days trying to figure out what's wrong with it..)
[Galaxy Note GT-N7000 Android Development] lacoursiere18:
Your error is here at this directory:

com.android.systemui.statusbar.phone.PhoneStatusBar

There error is this:

java.lang.NoSuchMethodError: com.android.systemui.statusbar.phone.PhoneStatusBar.update_power_button

So it is searching for a method that you added a call to but is not there..this method: update_power_button

Take a look at the smali you go it from a search for that method..

I am also still learning but thats what I get from this..:p

EDIT:Yea error is on .method protected makeStatusBarView()Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;

.line 8722

invoke-virtual {p0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->update_power_button()V

So it's searching for .method update_power_button()V and it's not in that smali
[Galaxy Note GT-N7000 Android Development] Goldie:
Where did you get this code? It's looking for a method update_power_button which you don't have. Did you paste the code from somewhere?
[Galaxy Note GT-N7000 Android Development] lacoursiere18:
Edited last post..
[Galaxy Note GT-N7000 Android Development] Goldie:
He also has aosp methods for settings button to hide single row toggles and accesses for it. Looks a bit of a mess to be honest. Butchered from a few places maybe
[Galaxy Note GT-N7000 Android Development] lacoursiere18:
Yea prob [MENTION=3862405]SpaceCaker[/MENTION] 's thread.. Need to get it all organized in there buddy..AOSP does things a little bit easier, per say, than how Samsung sets things up..:eek:
[Galaxy Note GT-N7000 Android Development] Sami Kabir:
Okay guys, I've added the missing smali code:

.method update_power_button()V
.locals 6

iget-object v1, p0, Lcom/android/systemui/SystemUI;->mContext:Landroid/content/Context;

invoke-virtual {v1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v1

const-string v2, "power_button_sb"

const/4 v3, 0x1

invoke-static {v1, v2, v3}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v3

if-nez v3, :cond_0

const v3, 0x8

:cond_0
iget-object v4, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarWindow:Lcom/android/systemui/statusbar/phone/StatusBarWindowView;

const v5, 0x7f0d013e

invoke-virtual {v4, v5}, Lcom/android/systemui/statusbar/phone/StatusBarWindowView;->findViewById(I)Landroid/view/View;

move-result-object v4

invoke-virtual {v4, v3}, Landroid/widget/FrameLayout;->setVisibility(I)V

return-void
.end method

And as feared, it didn't work... Here's my logcat:

---- Jun 20, 2014 6:51:45 PM ----

06-20 18:46:51.249 3392 3392 E AndroidRuntime: java.lang.RuntimeException: Unable to create service com.android.systemui.SystemUIService: java.lang.NullPointerException

06-20 18:46:51.249 3392 3392 E AndroidRuntime:	at com.android.systemui.statusbar.phone.PhoneStatusBar.update_power_button(PhoneStatusBar.java)

06-20 18:46:51.249 3392 3392 E AndroidRuntime:	at com.android.systemui.statusbar.phone.PhoneStatusBar.makeStatusBarView(PhoneStatusBar.java:708)

06-20 18:46:51.249 3392 3392 E AndroidRuntime:	at com.android.systemui.statusbar.phone.PhoneStatusBar.addStatusBarWindow(PhoneStatusBar.java:3067)

06-20 18:46:51.249 3392 3392 E AndroidRuntime:	at com.android.systemui.statusbar.phone.PhoneStatusBar.createAndAddWindows(PhoneStatusBar.java:3036)

06-20 18:46:51.249 3392 3392 E AndroidRuntime:	at com.android.systemui.statusbar.BaseStatusBar.start(BaseStatusBar.java:460)

06-20 18:46:51.249 3392 3392 E AndroidRuntime:	at com.android.systemui.statusbar.phone.PhoneStatusBar.start(PhoneStatusBar.java:483)

06-20 18:46:51.249 3392 3392 E AndroidRuntime:	at com.android.systemui.SystemUIService.onCreate(SystemUIService.java:94)

06-20 18:46:58.686 3257 3275 E ActivityManager: App already has crash dialog: ProcessRecord{4214b188 3392:com.android.systemui/u0a77}

---- Jun 20, 2014 6:51:45 PM ----
[Galaxy Note GT-N7000 Android Development] lacoursiere18:
[MENTION=3065070]Goldie[/MENTION] will have to chime in here.. NullPointersException always seem to elude me.. Would you mind posting a full log.. There might be some clues further up..

But it definitely has to do with that method you just added.. something is not right..
[Galaxy Note GT-N7000 Android Development] Goldie:
You need to post where you are getting this stuff. They are not stock or aosp methods but methods from someone's work. You need to say what you are adding and why
[Galaxy Note GT-N7000 Android Development] Sami Kabir:
I am trying to add a toggle button (next to the settings button) that will show all the quick settings toggles (image). This is something that TouchWiz on Android 4.2 and above can do by default. I am using Android 4.1.2 (samsung's firmware) and I want to add this feature to my ROM. After some research, I found out that a developer named Sale found a way to do this and included it in his ROM (NeatROM) and also in someone else's ROM (WizzedKat).. I asked him for help but since he's busy with his life, he only told me what files he edited in his SystemUI.apk. So I downloaded this SystemUI.apk (for reference), decompiled it and started comparing his edited files with my files.. and I also started adding all the missing lines and editing the existing ones.. Well, you know the rest now...

So that's the story.. If there's anything else you'd like to know then please do tell me :)
[Galaxy Note GT-N7000 Android Development] Goldie:
So you want this then as Sale did not make the mod. Interesting that the hide toggles on pressing settings method is there as that mod was not implemented in any of those roms or mods as far as I know
[Galaxy Note GT-N7000 Android Development] Sami Kabir:
That's not exactly what I want. SpaceCaker's thread instructs users to get a AOSP styled quicksetting buttons whereas I just want to make a toggle button to only show all my existing quicksetting toggles (like the way TouchWiz on Android 4.2 and above does). I don't want to add any extra toggles or add the ability to rearrange the toggles on the go. I just want a button that upon pressed will just show all the toggles and hide them back if pressed again.. :o
[Galaxy Note GT-N7000 Android Development] Goldie:
So follow the guide but put the usual quicksetting in place of the new toggles. That's effectively what the ui you are looking at does
[Galaxy Note GT-N7000 Android Development] Nick_73:
I'm trying to add AOSP lockscreen to my TouchWiz 4.1.2 ROM. But there's only one issue: the strings.xml is not in res/values in SecSettings.apk. What do I do?! I made it this far following the steps in order. Thx :)
[Galaxy Note GT-N7000 Android Development] lacoursiere18:
Something is wrong then.. either your SecSettings or your frameworks are not installed.. every apk will more than likely have strings.xml
[Galaxy Note GT-N7000 Android Development] Goldie:
Im guessing the decompile failed half way
[Galaxy Note GT-N7000 Android Development] isaak:
Can you report me the name of files, please?

Basically because I'm not interested to an animated toggle button, I just want to have static quick settings toggles like in this image, except the fact I need just 2 rows with 10 toggles.

For this task I use Power toggles app from Google Play, but I'd like to dump it to save memory.
[Galaxy Note GT-N7000 Android Development] Sami Kabir:
He never answered to my message so I abandoned his method. And so, I no don't know the names of those files any more.. And besides it was a complicated process which did not work at the end..

Another person helped me make it.. He modified my SystemUI.apk and gave it to me. He did most of the work - including making a functional toggle button to expand all the quick setting toggles. I only made some changes and improvements to it.

And so, I did not ask him how he did it but I think his work is quite similar to the instructions mentioned on this thread. You can try following it but it may not work because its for Gingerbread I think. But you can still try it and use my ROM's SystemUI.apk for reference.. and for adding or removing toggles, all the buttons will be found in arrays.xml :o
[Galaxy Note GT-N7000 Android Development] isaak:
Great tutorial, thx.

IMHO you just need to specify with better words that you can only use two addons among four in the array, but fortunately I fixed it.
[Galaxy Note GT-N7000 Android Development] Goldie:
You should post the log dumpstate_sys_error.txt.gz from data/log rather than your files
[Galaxy Note GT-N7000 Android Development] isaak:
Thank you, but I fixed it (I updated my previous post).
[Galaxy Note GT-N7000 Android Development] isaak:
Anyway, I'm still waiting support from this old request:

http://xdaforums.com/showpost.php?p=52870722&postcount=857

http://xdaforums.com/showpost.php?p=53106910&postcount=860

First post is a logcat of the issue, second post all steps to reproduce it.

I suspect a conflict with another app, but I'm not really sure about it.
[Galaxy Note GT-N7000 Android Development] Sami Kabir:
Need some help :)

I don't know about you guys, but I don't really like Samsung's Camera and Gallery app.. and so I replaced them with stock Jellybean's ones. And although everything works great, there is one thing that I'm really missing.. And that is the ability to set custom lockscreen wallpapers. For some reason, this can only be done using Samsung's Gallery app and so I'd like to know how I can add this feature to my ROM.

After a little bit of searching, I found those 2 threads showing you how to do this..

1. http://xdaforums.com/showthread.php?t=1468821

2. http://xdaforums.com/showthread.php?t=2727161

But since one of them is outdated and the other one is for Android 4.2, can anyone please help me get this functionality in Android 4.1.2?

Thanks :)
[Galaxy Note GT-N7000 Android Development] lacoursiere18:
Well since a LOT of the KeyGaurd stuff got moved into Keygaurd.apk, in 4.4.2, your best bet is to look in there.. Not sure how much the code has changed.. But shouldnt be that different
[Galaxy Note GT-N7000 Android Development] Romancy:
thank you very much you are big man very man :)
[Galaxy Note GT-N7000 Android Development] Kamy:
Anybody help please tellimg me how to enable landscape mode for AOSP lockscreen.