yashsingh1/xdaforums huggingface dataset:
[Galaxy Note GT-N7000 Android Development] BOOTMGR:
Disable Auto Scroll in Statusbar quickpanel

To disable auto scroll of toggles ( knows as quickpanel ) in statusbar (when expanded)

- Decompile SystemUI.apk

- Open com\android\systemui\statusbar\policy\quicksetting\QuickSettingPanel.smali

- Now search for .method public prepareTranslationX.Replace whole method with

.method public prepareTranslationX(Z)V
.locals 0
.parameter "isExpanded"

return-void
.end method

- Now search for .method public startScrollAnimation.Replace whole method with

.method public startScrollAnimation()V
.locals 0

return-void
.end method

sorry OP for copying it here also but i had to do so because i've seen that some devs don't respond to PMs.
[Galaxy Note GT-N7000 Android Development] majdinj:
For android.policy.jar:

Please make sure of the following:

http://xdaforums.com/showpost.php?p=46121282&postcount=90

ForSecSettings.apk

It looks like you copy the code I provided blindly,, as describe by error in smali process, the goto_1c and cond_1c are not defined which means you should use the correct condition and goto referral value of your smali file not the one in guide. I have highlighted those cond_1c and goto_1c to make you pay attention since those could be different according to your ROM and compiler tool. So make sure to use whatever there in smali already depending on the site I highlighted..

Excellent one man,, but what I understand, this one has been introduced by other dev, right?

I need the name of the developer for crediting..!!! so I could link it from OP.
[Galaxy Note GT-N7000 Android Development] BOOTMGR:
I searched for already found solution for it but never found it.

I'm sorry but i found it myself as some people were demanding for it in my ROM, may be some other dev has already found it.

Anyways no problem if someone has already posted it, the only intention of posting it here was that people would find it useful ( i've learnt a lot of things from this thread )
[Galaxy Note GT-N7000 Android Development] majdinj:
No problem mate,, at least I need this post to show that you searched to see if any had introduced it before you.. :laugh:

A link to your guide post is added to post #397 (credit is given to you :fingers-crossed:).. and yes sharing is caring dude, and thank you for contribution :cool:

New guide:

>> Disable Auto Scroll in Statusbar Quickpanel Toggle in post #397 (credits to [MENTION=2805784]mr.harsh[/MENTION])
[Galaxy Note GT-N7000 Android Development] Sulaimanshariff:
[MENTION=369057]majdinj[/MENTION] i think i have previously requested you for crt off animation on my device running stock rom 4.2.2 Samsung galaxy grand GT-I9082 can you pls help in any anyway??? :(
[Galaxy Note GT-N7000 Android Development] majdinj:
Have you tried the guide provided..!!! what happened once you applied the changes to your smali..
[Galaxy Note GT-N7000 Android Development] Sulaimanshariff:
Nope i am a noob very new to Android stuff got my phone 2 months back and have learnt almost a lot can you pls guide me to the respective crt off animation post as i dnt find it in page 1 and m searching:confused:
[Galaxy Note GT-N7000 Android Development] majdinj:
In post #1 there is table of content to direct you to the right post of the guide you want..

Here is the post:

http://xdaforums.com/showpost.php?p=45515800&postcount=396

You must read about how to use apk tool and baksmali tool, since it is not covered in this thread,,, There are a lot a lot a lot of tutorials for that in xda.
[Galaxy Note GT-N7000 Android Development] Sulaimanshariff:
Thanks a lot will try reading how to use it and will also read this post i can disturb u ryt fo any queries??? :p
[Galaxy Note GT-N7000 Android Development] brolee93:
23 toggles notification panel (Lidroid way)

Hi you think 23toggles of lidroid/wanam and you :) work on samsung galaxy note 2 leak 4.3 ?

Thanks for all your BIG job .

thanks
[Galaxy Note GT-N7000 Android Development] Goldie:
Please edit that huge quote out of your post!
[Galaxy Note GT-N7000 Android Development] majdinj:
Yes I think so if packages and objects methods referral are the same (Lcom/android/.........)

Try it mate after taking back up :D
[Galaxy Note GT-N7000 Android Development] brolee93:
ok thanks . how people have test in 4.2.2 ? .

i go to test tonight ;) thnaks for reply and thanks for all

---------- Post added at 05:42 PM ---------- Previous post was at 05:41 PM ----------

ok thanks . how people have test in 4.2.2 ? .

i go to test tonight ;) thnaks for reply and thanks for all
[Galaxy Note GT-N7000 Android Development] cbucz24:
I still havent been able to get the scrolling to work yet, ive started digging thru smali but its not as apparent as xml...

but i do have a different question. Our rom is only using the stock fonts, ive seen other roms that have 3rd party fonts installed into the system but ive not been able to make them work. the list is there but they wont apply.
[Galaxy Note GT-N7000 Android Development] arocker:
Hello majdinj,

Thank you very much for your effort! I have used your guides with minimal issue when modifying my S3. I now have an S4 and have been trying to apply your "Four Way Reboot" guide to this phone with no success. I would ask you for a bit more guidance in this matter. Despite following your directions the end result is always a soft reboot. You have written at the end of the guide:

When I search GlobalActions.smali for "Landroid/content/context" i see multiple instances of this entry and see no reference to access$***. When I search GlobalActions.smali for access$*** i see two instances of this, one with access$000 and another with access$100. Neither seem to point to Landroid/content/context and i have tried to change the GlobalActions$99.smali to both of these values but always end up in a soft reboot. I have also verified that the "ok" and "clear" ids are correct as well. Your help is greatly appreciated.

Thank you in advance :)
[Galaxy Note GT-N7000 Android Development] ocoot:
hai bro [MENTION=369057]majdinj[/MENTION] , how about this?

[6311,4] Label goto_a has multiple defintions.
[6346,4] Label goto_a has multiple defintions.
[0,0] mismatched tree node: UP expecting I_PACKED_SWITCH_DECLARATIONS
[6319,10] Label "goto_njsafe" is not defined.
[6324,4] mismatched tree node: I_STATEMENT_FORMAT35c_METHOD expecting I_CATCHES
[6326,4] mismatched tree node: I_STATEMENT_FORMAT11x expecting <UP>
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: C:\APKMulti\projects\SecSettings.apk\smali\com\android\settings\DisplaySettings.smali
at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:45)
at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:33)
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:66)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:50)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:36)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:256)
at brut.androlib.Androlib.buildSources(Androlib.java:217)
at brut.androlib.Androlib.build(Androlib.java:208)
at brut.androlib.Androlib.build(Androlib.java:177)
at brut.apktool.Main.cmdBuild(Main.java:237)
at brut.apktool.Main.main(Main.java:79)
[Galaxy Note GT-N7000 Android Development] cbucz24:
i may not know smali like a lot of these guys but you at minimum need to explain what you wer trying to do...
[Galaxy Note GT-N7000 Android Development] majdinj:
Brother check this post:

http://xdaforums.com/showpost.php?p=46532217&postcount=443
[Galaxy Note GT-N7000 Android Development] majdinj:
Which scrolling you mean,, The quick panel toggle scrolling??? It is couple pages back,, and it is working properly and it is enough to patch the first method mentioned only..!!

Regarding fonts, the app should be signed properly,, I have caviar font pre-installed in my ROM and it is working fine out of stock flashing :D
[Galaxy Note GT-N7000 Android Development] arocker:
Thank you my friend. I will try it :)
[Galaxy Note GT-N7000 Android Development] ocoot:
oh oke thanks for explained.... sorry I'm not careful on it. will try, thanks :highfive:
[Galaxy Note GT-N7000 Android Development] cbucz24:
Ok lol I meant rotation not scrolling. Oh well I'll get back to that eventually.

The fonts seems a touchwiz issue. View attachment 2347227

Ive installed the xda power fonts apk. It seems I need to edit something to all po w them to switch. But I cant figure it out as of yet. I cant figure out where to start...
[Galaxy Note GT-N7000 Android Development] majdinj:
Why you don't make the font app yourself instead.. Just extract the font and then take a working font app, decompile it and then put your desired font and rename all previous font name in res and smali and AdroidManifest.xml then compile and sign and install in your device.
[Galaxy Note GT-N7000 Android Development] cbucz24:
I might be able to do that, where is the stock fonts app? Or it an app or just part of the settings?

I could probably just add it to the settings if it is couldn't?
[Galaxy Note GT-N7000 Android Development] majdinj:
There is separate apk font but I don't recall it (getting old, heh)

But download this font in attachment and apply your changes..
[Galaxy Note GT-N7000 Android Development] cbucz24:
Lol old..your funny thanks, I'll give it a go.

I will say, not many of these guides are working on my n3. Theres so much different in 4.3

Rats...it installed an showed but It didn't work either. I'll run some logs an see what comes back
[Galaxy Note GT-N7000 Android Development] bombaybadboy:
Care to list the ones that still work for 4.3 :)
[Galaxy Note GT-N7000 Android Development] majdinj:
Yep, use font that works on 4.3 and then patch it with font you want
[Galaxy Note GT-N7000 Android Development] bombaybadboy:
Sorry majdinj I ment guides if he has tried some, i just moved to 4.3 a few days ago :) it's a bit different inside 4.3 but plan to see how many guides can be adapted :)
[Galaxy Note GT-N7000 Android Development] cbucz24:
Your font apk didnt work either :(

So far, ive

rotated the lockscreen.

All the mms ones work that aren't already there.

I'll check my rom list in a few an let you know.

Ok...

Unlimited apps multiwindow (its not the same but pretty close)

4-way reboot menu

Scrollable wallpaper

I havent gotten any further in things yet. Ive taken a mod break to theme again. All my n2 work has to be rebuilt :screwy:

But I'll let you know what else works later
[Galaxy Note GT-N7000 Android Development] majdinj:
I don't have 4.3 to check,, but I think it will be the same principle if you take care for packages, objects and methods names changes.

For font, you need to have working font on 4.3 to start with (try to pull any stock font) then decompile it and patch it normally, since changing API may change java codes but it will work if you just change the font name folders and inside xml files and smali folders and AndroidManifest.xml package name
[Galaxy Note GT-N7000 Android Development] bombaybadboy:
Not long got a i9500 but all I have tried is changing statusbar colour and clear all notification in statusbar and a little theming. 4 way reboot is very useful to know thanks, jumping from 4.1 to 4.3 has changed, my SystemUI.apk took some messing about to compile with all the aapt warnings and style errors from apktool :)

I just thought I would add to see the changes :)
[Galaxy Note GT-N7000 Android Development] majdinj:
There is xposed module by [MENTION=3562083]wanam[/MENTION] that is made for 4.2.. check this thread here:

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

The 4-way reboot options can be ported to 4.2 OS by taking care of Lcom packages location of ShutdownThread.smali.. You need to decompile 4.3 services.jar to locate ShutdownThread.smali location and then correct that in 4-way reboot options smali.

I hoped if I could put hands on 4.2 or 4.3 TW OS, so I could clear that for you guys..!!!!!!!
[Galaxy Note GT-N7000 Android Development] bombaybadboy:
Sorry majdinj I didn't mean to go off topic on this great thread and I posted my sysui decompiled just in case you would like to see the sort of changes Samsung has made to apk and jar files. I have never fully trusted xposed or vrthemes and hope to see how many of your guides are still compatible for 4.3 :)
[Galaxy Note GT-N7000 Android Development] majdinj:
Thanks [MENTION=4608459]bombaybadboy[/MENTION],,

But I can't guarantee if my guides of 4.1 will still be working on 4.3 if you didn't change some packages location.. Also by guessing alone I can't also guarantee if you properly change the packages location will give you a working mod unless I put my hands on actual device running 4.3, so I can have my time of having a lot of failure trials then success.

Cheers,,,
[Galaxy Note GT-N7000 Android Development] bombaybadboy:
For me trial and error is at the heart of making mods, only way is to try or maybe try and adapt if necessary m8 :) not many guides for 4.3 yet
[Galaxy Note GT-N7000 Android Development] NimeniAltu:
[MENTION=369057]majdinj[/MENTION]

I've tried several times to add lockscreen torch mod to my galaxy s2 but always i

end in a bootloop and for some reason i can't logcat when phone doesn't boot fully

Can someone help me out ?

Attached smali is the modified one which gives me a bootloop
[Galaxy Note GT-N7000 Android Development] Goldie:
Push back the original policy then pull dumpstate_sys_error.txt.gz from data/log to see the problem ;)
[Galaxy Note GT-N7000 Android Development] NimeniAltu:
So you mean i should put back my original policy and then check that file ?
[Galaxy Note GT-N7000 Android Development] Goldie:
Yes, it is created when you get a loop. If you can recover from the loop by pushing your original policy you can pull that file and check whats up
[Galaxy Note GT-N7000 Android Development] NimeniAltu:
Damm can't use adb while phone is in bootloop

Shows "waiting for device"
[Galaxy Note GT-N7000 Android Development] majdinj:
but you can in recovery ;)
[Galaxy Note GT-N7000 Android Development] cbucz24:
Hey guys, quick question for ya an then I'll report back my findings :D

How or where would I find my settings.db ? Is this a separate file or just part of the secsettings.apk?
[Galaxy Note GT-N7000 Android Development] Goldie:
Data/data/com.android.providers.settings/databases
[Galaxy Note GT-N7000 Android Development] majdinj:
It is in /data/data/com.android.providers.settings/database/settings.db
[Galaxy Note GT-N7000 Android Development] Goldie:
Indeed. And I have found you can if you leave it looping a while too :)
[Galaxy Note GT-N7000 Android Development] cbucz24:
I haven't tried yet to see if I can edit the file elsewhere but I assume its possible as most stuff is...

This mod was done on my n3 but having the n2 an looking thru the systemui as much as I did I know it will work there too.

I using a method found in another thread which I'll link here in a few, ive added in all the removed stock toggles. Its an enormous amount of toggles but hey I have them. .

Here's the linkhttp://xdaforums.com/showthread.php?t=2342370

This method involves downloading a sqlite editor. Then accessing that settings.db. then adding in using the correct names all of the toggles you have listed.

Here is a list of available toggles I had, I remember my n2 had different ones but the method is the same

View attachment 2350345

Here's my result

View attachment 2350342
[Galaxy Note GT-N7000 Android Development] Goldie:
You can also do this by modding secsettingsprovider.apk and then clearing data of settings.storage with titanium. :)
[Galaxy Note GT-N7000 Android Development] cbucz24:
Ok cool, I was looking for ways to add to our rom.
[Galaxy Note GT-N7000 Android Development] majdinj:
I have tried to add new toggles to quick panel that is customizable by Display -> Notfication panel but have failed when I mod secsettingsprovider.apk..

Here is a link of post where I explain to where I reached hoping someone can help me:

http://xdaforums.com/showpost.php?p=40729563&postcount=13

These are not errors.. mm how could I explain it..!!! OK, these are unrecognized flags by the compiler version you are using (happened in last updates of baksmali). You need just to comment out the lines that are mentioned in the log.. or just download the modified KillConcept from attachment
[Galaxy Note GT-N7000 Android Development] Goldie:
Database helper is the file you need. Did you log the loop after modding it?
[Galaxy Note GT-N7000 Android Development] cbucz24:
I think im understanding you right, is this where you tried to add them?

View attachment 2351857

I tried to decompile the secsettingsprovider.apk but ut returned an error. The error didn't give any indication as where it failed.
[Galaxy Note GT-N7000 Android Development] majdinj:
I didn't touch databasehelper.smali,,, only strings.xml and then got bootloop.!!! strange heh, but my mistake that time I didn't do log.. but why to get bootloop for only adding strings..!!!
[Galaxy Note GT-N7000 Android Development] Goldie:
Thats why. You need to mod databasehelper too as well as strings :)
[Galaxy Note GT-N7000 Android Development] majdinj:
Just decompile and look at it, yes there is method that seems interesting:

.method private upgradeNotificationPanel(Landroid/database/sqlite/SQLiteDatabase;)V

I will see what I could do for it in the next weekend.

Edits:

Just add new db values in strings.xml to:

<string name="def_active_notification_list_q1">yourActiveTogglesHere</string>

for active toggles

and:

<string name="def_candidate_notification_list_q1">yourExtraTogglesHere</string>

for Display -> Notification panel extra toggles

BEFORE

AFTER

​

Some toggles will give fc and this is expected since we need to patch their smali or is hw specific,, but at least this is the principle behind db of SecSettingsProvider.apk

Cheers,,
[Galaxy Note GT-N7000 Android Development] cbucz24:
So is there then a reason I cant decompile that apk? Some extra sammy dependancy I didn't load.
[Galaxy Note GT-N7000 Android Development] Kamy:
Thanks a lot majdini, it works. sorry I am just a noob in smali trying to catch up quicker :)
[Galaxy Note GT-N7000 Android Development] janres155:
Hi madjdinj, I just want to ask is SecGallary2_Galaxy need dependencies for tw-framework? and what compilation i will use, is it compile system apk files? Thanks! I am just confuse with this one.
[Galaxy Note GT-N7000 Android Development] majdinj:
No need to worry [MENTION=4819130]kmokhtar79[/MENTION],

We are all noob in something for sure, so that we need each others.; and this is the community how it should be ;)

Sure, you must install all dependencies first (framework-res.apk and tw-(framework-res.apk).

If you are using APK multi-tool, then choose compile as system apk to preserve its signature inact
[Galaxy Note GT-N7000 Android Development] janres155:
I have tried decompile it with tw-framework then compile at as system and choose yes for adding files that i havent modded then deleted reasource,asrc from keep. then pushed apk to my but im having "unfortunately, gallery has stopped".
[Galaxy Note GT-N7000 Android Development] majdinj:
Is this what you have done:

1- install framework-res.apk

2- Install tw-framework-res.apk

3- decompile SecGallery_2.apk

4- do your changes

5- compile as system

6- choose yes if prompt

7- in keep folder, delete res folder and resource.asrc

8- continue compiling

If did all these and still got fc and you are sure about your modding, then copy signatures from original SecGallery_2.apk and drop it inside the modded SecGallery_2.apk using 7-zip
[Galaxy Note GT-N7000 Android Development] janres155:
Thanks! I managed to make it work. :)
[Galaxy Note GT-N7000 Android Development] Goldie:
My bad. I was talking from s2 which didn't have any notification panel options hence no strings or stuff in databasehelper. So needed both modding :)
[Galaxy Note GT-N7000 Android Development] majdinj:
Don't worry, I got working customizable Airplane Mode, and just put how to in [MENTION=1042140]tdunham[/MENTION] thread here:

http://xdaforums.com/showpost.php?p=46848239&postcount=25

Thanks [MENTION=3065070]Goldieking[/MENTION] for your advices, you are the man :)

Next will be to add flash light toggle :p
[Galaxy Note GT-N7000 Android Development] janres155:
Hi again! I just want to ask if I need custom kernel before I can make crt-off work? I followed your instructions carefully and also for the fix but i cant make it work.
[Galaxy Note GT-N7000 Android Development] majdinj:
yes, crt effect needs supported kernel... with some kernels, it will only work if wifi is switched on
[Galaxy Note GT-N7000 Android Development] janres155:
Thanks! Btw, can you suggest a custom kernel that works with crt-off. Since I got my N7000 I'm looking for a custom kernel that is good for TW based ROM.
[Galaxy Note GT-N7000 Android Development] majdinj:
Personally I like stock custom kernel (yo can say mis-believe ..!!) so I have Philz kernel on my device, but it supports crt effect if wifi is switched on only.. This is the Philz thread:

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

There is another kernel that is made by [MENTION=1847171]crime_of_heart[/MENTION] that supports crt effect fully.. This is the thread:

http://xdaforums.com/showthread.php?t=2252977&highlight=hello+world

So the choice is yours,,
[Galaxy Note GT-N7000 Android Development] janres155:
Hi! I tried the Ink Effect but I get smali error in the files i copied from "to android.policy.jar" to classout\com\android\internal\policy\impl\sec\. This is what i have done.

1.	Copy the contents of “to android.policy.jar” folder.

2.	Decompile android.policy.jar by backsmali/smali program.

3.	Go to classout\com\android\internal\policy\impl\sec\ folder and paste the content of “to android.policy.jar” folder there and accept overwriting.

During smali i get error, so i checked the log. All errors where found at the ink effect resources that you provided.
[Galaxy Note GT-N7000 Android Development] majdinj:
The log will point which line is having error.. if it is debugging line (e.g, .parameter, .local, .param....) then you can safely delete the whole line (this happens to some new compilers)
[Galaxy Note GT-N7000 Android Development] janres155:
This made me insane. Tons of lines. :)

Is the compiler built in with you baksmali/smali app?
[Galaxy Note GT-N7000 Android Development] majdinj:
I think this problem started with v2.0b6 of baksmali/smali jars,,, so if you are using my manager, try v1.5 which has a previous version
[Galaxy Note GT-N7000 Android Development] cbucz24:
ok [MENTION=369057]majdinj[/MENTION] i have a question about the all apps multiwindow mod. ive done it a bunch of times and its always worked. but i seem to have an odd question about the method you have here vs someone elses.

note2 thread

has it listed like this

.method public isSupportApp(Ljava/lang/String;)Z
.registers 2
.prologue

const/4 v0, 0x1
return v0
.end method

and your guide has it like this:

.method public isSupportApp(Ljava/lang/String;)Z
.registers 2

.prologue
const/4 v0, 0x1

return p0
.end method

im still trying to understand smali and ive read a few guides, one by goldieking that explains parts. i can get it but at this point i dont understand why one would be used over another...

yours has the v0 and his has p0...

this is how the last one i made looks now

.method public isSupportApp(Ljava/lang/String;)Z
.registers 2

.prologue
const/4 p0, 0x1

return p0
.end method

i have no idea where i got that from, but it worked...for mine but some are having issues. which is right and why?:rolleyes:
[Galaxy Note GT-N7000 Android Development] janres155:
Hi! It still doesn't work, maybe I will attach the log file. I read that it is more in directive error.

Here is the log.log:

https://www.dropbox.com/s/iqvhw1gp0ffhws7/log.log
[Galaxy Note GT-N7000 Android Development] Goldie:
The difference will be the call. It will be asking for p0 in one and v0 in the other. One will probably have had p0 moved into v0 like this....

move-object/from16 v0, p0
[Galaxy Note GT-N7000 Android Development] bombaybadboy:
Just wondered what changes you needed for 4 way reboot, had a quick try and ended up with new Accessibility option in menu but no new reboot options. I will take a closer look at it tonight when I have more time to work on it properly