yashsingh1/xdaforums huggingface dataset:
[Galaxy Note GT-N7000 Android Development] fcortes626:
so the new dumpstate file gives me these errors related to GlobalActions.

<6>[ 8250.128550] !@*** FATAL EXCEPTION IN SYSTEM PROCESS: UI
<6>[ 8250.128550] java.lang.NoClassDefFoundError: com.android.server.pm.ShutdownThread
<6>[ 8250.128550]	at com.android.internal.policy.impl.GlobalActions$99$1.onClick(GlobalActions.java)
<6>[ 8250.128581]	at com.android.internal.app.AlertController$ButtonHandler
11-28 13:59:52.544 15682 15828 I am_crash: [15682,0,system_server,-1,java.lang.NoClassDefFoundError,com.android.server.pm.ShutdownThread,GlobalActions.java,-1]
11-28 13:59:23.863 15682 15828 E AndroidRuntime: !@*** FATAL EXCEPTION IN SYSTEM PROCESS: UI
11-28 13:59:23.863 15682 15828 E AndroidRuntime: java.lang.NoClassDefFoundError: com.android.server.pm.ShutdownThread
11-28 13:59:23.863 15682 15828 E AndroidRuntime:	at com.android.internal.policy.impl.GlobalActions$99$1.onClick(GlobalActions.java)
11-28 13:59:23.863 15682 15828 E AndroidRuntime:	at com.android.internal.app.AlertController$ButtonHandler.handleMessage(AlertController.java:185)
11-28 13:59:23.863 15682 15828 E AndroidRuntime:	at android.os.Handler.dispatchMessage(Handler.java:99)
11-28 13:59:23.863 15682 15828 E AndroidRuntime:	at android.os.Looper.loop(Looper.java:137)
11-28 13:59:23.863 15682 15828 E AndroidRuntime:	at android.os.HandlerThread.run(HandlerThread.java:61)

UPDATE:

got it working thanks guys. did a google search and found another thread where they had the same errors and their solution worked for me. So basically if you have that error it means the path for ShutdownThread is different for your device. im my case it was moved to Lcom/android/server/power/ShutdownThread. So in the $99$1 file search for ShutdownThread and change the path from Lcom/android/server/pm/ShutdownThread to Lcom/android/server/power/ShutdownThread or where ever your ShutdownThread is located. To find mine I backsmali services.jar and looked for the file ShutdownThread.smali. $99$1 calls for it twice so you have to make sure you change both of them.
[Galaxy Note GT-N7000 Android Development] Goldie:
Now you gotta change the path to the shutdownthread. Its different in 4.3. Replace pm in the path for it with power :)

2 places I think in 99$1
[Galaxy Note GT-N7000 Android Development] fcortes626:
yup i did that and it worked now. thanks

ill make sure to mention you when i upload it:good:
[Galaxy Note GT-N7000 Android Development] jialong.david:
I'm decompile this one Notification panel extra toggles - the original way (Airplane, Torch, AllShareCast, WiFiHotSpot) !

While no luck i got this error:

Can anyone help me ?

Please!
[Galaxy Note GT-N7000 Android Development] Sami Kabir:
1. How can I make a "switch" to toggle CRT off Animation ON or OFF in the Settings app?

2. Is there any way to reduce the delay Dialer (SecPhone.apk) and Contacts app (SecContacts.apk) takes to load?:o
[Galaxy Note GT-N7000 Android Development] majdinj:
This is because the decompiler you use (apktool), use parameter instead of param (which is used by baksmali),,

Just delete all lines that the log points, and you should be OK (These are only used for debugging..!!)

1- There is thread for that in xda by [MENTION=1670609]shoman94[/MENTION], search it and you will find it

2- Yup you can, but I don't remember the jar or apk specific for that,, but there is global way in this thread using framework jar
[Galaxy Note GT-N7000 Android Development] jialong.david:
[/COLOR]
[Galaxy Note GT-N7000 Android Development] jialong.david:
Sorry there are many errors with apktool.

So now i going to use the Baksmali-Manager_v1.58 that recommended by you !

First it asked me to remove or retain .line and.....(What should i choose?)

For Notification panel extra toggles - the original way (Airplane, Torch, AllShareCast, WiFiHotSpot)

Mod are required to edit some .xml file which in resourse.arsc.

So i'm going to decompile with apktool to edit the .xml first and last compile it.

Next use new compiled apk.Baksmali with Baksmali-Manager_v1.58 and got classout file to edit out smali file.?

Final compile it? Can i do this?
[Galaxy Note GT-N7000 Android Development] majdinj:
remove: it will remove all debugging lines like those lines which make problem with compiling using apktool (.param, .local, .line...)

retain: it will baksmali without removing any debugging.

Then it will ask to use .locals or .registers for smali's methods

Read JF home page here for more info:

http://code.google.com/p/smali/

Yes you can use apktool to edit xml, then compile and then use baksmali to edit smali.. actually this is what I am doing :)

but for you as starter, I advice you to use one compiler at a time, so you will not get confused.. So use option #1 that I mentioned earlier.
[Galaxy Note GT-N7000 Android Development] jialong.david:
Thank for advice! i'm use option 1 but there are errors come out too after u asked me to removed the .param file.

So i had to use #3!

One question! Can i use the old file that i modded before (I have backup the edited three files caz the one use many time to edit)? (The three files "funny part begins......" lol)
[Galaxy Note GT-N7000 Android Development] majdinj:
You can do this trick instead:

- Use baksmali/smali manager to baksmali your SecSettings.apk

- Add the new smali there for AllShareCast.

- Use baksmali/smali manager to smali your SecSettings.apk

- Move Modded_SecSettings.apk to apktool working folder.

- Decompile using apktool and apply your changes to xml and smali,,, then compile,, it should be OK now :)
[Galaxy Note GT-N7000 Android Development] jialong.david:
Ok,thanks for your trick. (Why I no figured out this? XD)

I will report whether it work or no someday!

I'm 14's so i can't donate you but i pressed thanked button for about 8 post! (This what i can give you :p)
[Galaxy Note GT-N7000 Android Development] majdinj:
Heh, I don't need money buddy. If I wanted, I would put donate link, right?

Some THANKS is enough for me :)
[Galaxy Note GT-N7000 Android Development] Sami Kabir:
1. Thanks.. I've followed his guide to enable CRT off animation and it works.. :good:

2. Can you kindly give me a link or something to start my research on fixing this "delay" issue? :o
[Galaxy Note GT-N7000 Android Development] jialong.david:
Hmm....:D

---------- Post added at 12:31 PM ---------- Previous post was at 11:43 AM ----------

I got error again!

Please help me.

I: Baksmaling...

I: Loading resource table...

W: Skipping "android" package group

I: Loaded.

I: Decoding AndroidManifest.xml with resources...

I: Loading resource table from file: C:\Users\Jason\apktool\framework\1.apk

I: Loaded.

I: Decoding file-resources...

I: Decoding values */* XMLs...

I: Done.

I: Copying assets and libs...

I: Checking whether sources has changed...

I: Smaling...

Exception in thread "main" java.lang.NullPointerException

at org.jf.util.PathUtil.getRelativeFile(PathUtil.java:44)

at org.jf.smali.smaliFlexLexer.getSourceName(smaliFlexLexer.java:2878)

at org.jf.smali.smaliFlexLexer.getErrorHeader(smaliFlexLexer.java:2970)

at org.jf.smali.smaliFlexLexer.nextToken(smaliFlexLexer.java:2839)

at org.antlr.runtime.CommonTokenStream.fillBuffer(CommonTokenStream.java:119)

at org.antlr.runtime.CommonTokenStream.LT(CommonTokenStream.java:238)

at org.jf.smali.smaliParser.smali_file(smaliParser.java:449)

at brut.androlib.mod.SmaliMod.assembleSmaliFile(SmaliMod.java:71)

at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:43)

at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:33)

at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:64)

at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:48)

at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:35)

at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:243)

at brut.androlib.Androlib.buildSources(Androlib.java:200)

at brut.androlib.Androlib.build(Androlib.java:191)

at brut.androlib.Androlib.build(Androlib.java:174)

at brut.apktool.Main.cmdBuild(Main.java:188)

at brut.apktool.Main.main(Main.java:70)
[Galaxy Note GT-N7000 Android Development] majdinj:
There is problem with smali editing. Make sure of your editing buddy.
[Galaxy Note GT-N7000 Android Development] jialong.david:
ok...sorry
[Galaxy Note GT-N7000 Android Development] BOOTMGR:
Disable TouchWizGUI for SystemUI

Hi,

I'm back with a new Mod.Actually its not a mod but its a fix for sammy's bad code.I know we all hate sammy's heavy and laggy TW UI.But i must say thanks to sammy this time for adding flag to enable/disable its crappy TW UI.

What you'll get

:

1) Butterly Smooth Statusbar (complete AOSP Taste)

2) All things which are drawn/controlled via SystemUI.apk (recent apps,bean bags etc) will be AOSP style

3) Enables you to mod your statusbar easily by applying guides for CM/AOSP.

4) Devs won't need to waste time on understanding layouts in tw_statusbar_*.xml because now status_bar_*.xml will be used to draw layouts

So let's start

CAUTION:

Serious bugs can occur because of sammy's bad coding.This is just start.We'll need to solve lot of other bugs.Reason for sharing it here is that people can share their knowledge for solving them.

This is an example which shows how badly uncle sammy codes.There are lot of other bugs in TouchWiz.The most annoying thing of TW is long delay in opening dialer.Please grow up sammy.

Tested with sammy crappy 4.1.2 firmware.

[MENTION=369057]majdinj[/MENTION] :

Don't you think this thread should moved to general section?

Because most of these mods will work with any samsung devices.
[Galaxy Note GT-N7000 Android Development] UpInTheAir:
I'll give it a go once i get over this dammed migraine.......

Thanks to everyone contributing to this great thread. Excellent resource and knowledge base !

Sent from my P6810 in disguise
[Galaxy Note GT-N7000 Android Development] n0ak:
+1

+1 for this.
[Galaxy Note GT-N7000 Android Development] cbucz24:
I'm just a bit confused. What is this removing? The animations?
[Galaxy Note GT-N7000 Android Development] danivancouver:
4 way reboot

4 way reboot

The line 78, the new method gives me GlobalActions $ 99 copilar error, if I put the old value Copila

New const/high16 v2, 0x1040000

Old const/high16 v2, 0x104
[Galaxy Note GT-N7000 Android Development] Dr. Narinder:
while editing SecSettings for AllShareCast I get following error after changing .param p1 to .parameter.

Please help

Microsoft Windows XP [Version 5.1.2600]

(C) Copyright 1985-2001 Microsoft Corp.

C:\APKTOOLS>apktool b SecSettings

I: Checking whether sources has changed...

I: Smaling...

[79,15] no viable alternative at input '"ll"'

[87,15] no viable alternative at input '"indexTextView"'

[95,15] no viable alternative at input '"contentTextView"'

[122,15] no viable alternative at input '"lp"'

[366,15] no viable alternative at input '"str"'

[425,15] no viable alternative at input '"str"'

[433,15] no viable alternative at input '"ll"'

[441,15] no viable alternative at input '"contentTextView"'

Exception in thread "main" brut.androlib.AndrolibException: Could not smali file

: C:\APKTOOLS\SecSettings\smali\com\android\settings\wfd\IndexedTextLayout.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:37)

at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:257)

at brut.androlib.Androlib.buildSources(Androlib.java:214)

at brut.androlib.Androlib.build(Androlib.java:205)

at brut.androlib.Androlib.build(Androlib.java:176)

at brut.apktool.Main.cmdBuild(Main.java:228)

at brut.apktool.Main.main(Main.java:79)

C:\APKTOOLS>
[Galaxy Note GT-N7000 Android Development] majdinj:
WOW, that's really awesome,, I know these overridden codes sometimes cause problem... Although I am not a big fan for AOSP skin, but at least your guide gives AOSP layout some meaning for existing ;).. I will link your post man in OP.

Reason for not sharing this in general section: mm,, since I don't have enough knowledge to have judgment either these guides will work on other devices or not. So for safety, I put it here,, but now after one year, I realized if it was in general section, it could extend the helping to other xda mates :)

I don't know what you did, but this is example of the change that you should do to compile using apktool:

Before:

# direct methods
.method public constructor <init>(Landroid/content/Context;)V

.registers 3
[B][COLOR="Red"].param p1, "context" # Landroid/content/Context;[/COLOR][/B]

.prologue
.line 65
const/4 v0, 0x0

invoke-direct {p0, p1, v0}, Lcom/android/systemui/statusbar/policy/Traffic;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

.line 66
return-void
.end method

After:

# direct methods
.method public constructor <init>(Landroid/content/Context;)V

.registers 3
[B][COLOR="RoyalBlue"].parameter "context"[/COLOR][/B]

.prologue
.line 65
const/4 v0, 0x0

invoke-direct {p0, p1, v0}, Lcom/android/systemui/statusbar/policy/Traffic;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

.line 66
return-void
.end method

or comment the code out by #:

# direct methods
.method public constructor <init>(Landroid/content/Context;)V

.registers 3
[B][COLOR="RoyalBlue"]#[/COLOR][/B].param p1, "context" # Landroid/content/Context;

.prologue
.line 65
const/4 v0, 0x0

invoke-direct {p0, p1, v0}, Lcom/android/systemui/statusbar/policy/Traffic;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

.line 66
return-void
.end method
[Galaxy Note GT-N7000 Android Development] Dr. Narinder:
Thanx for help. Ialready have modded and every thing works nicely.

I want to ask one thing can the number of visible toggles be increased.
[Galaxy Note GT-N7000 Android Development] cbucz24:
Yes, if you used the lidroid method to add toggles then just check more boxes. They will all appear.
[Galaxy Note GT-N7000 Android Development] enewman17:
[MOD] How to: Infinite lock screen widgets with all widgets enabled

I've got a lot of good info for mod here so I'll give back a little. :good:

How to: TouchWiz 4.3 and 4.2.2 Infinite lock screen widgets with all widgets enabled.

http://xdaforums.com/showthread.php?p=48319163#post48319163
[Galaxy Note GT-N7000 Android Development] cbucz24:
looks interesting
[Galaxy Note GT-N7000 Android Development] danivancouver:
Hello, I followed the steps in this guide http://xdaforums.com/showthread.php?t=2109973 Mod, but throws error I reboot the phone.

you get it? Can you explain that process I have to follow?
[Galaxy Note GT-N7000 Android Development] Goldie:
No log = guesswork/no help :rolleyes:
[Galaxy Note GT-N7000 Android Development] danivancouver:
Hello, sorry for my English, do you mean record ...

I followed the process and have Compiled mod everything without any fault, I checked the ID and all right, but I fault the setting ...

I'm trying to learn ....

regards

Hola , perdona por mi ingles , a que te refieres registro ...

He seguido el proceso del mod y he copilado todo sin ningun Fallo , he revisado los ID y todo correcto , pero me falla el setting...

Estoy intentando aprender....

Saludos
[Galaxy Note GT-N7000 Android Development] Vivek_Neel:
No.

Post the error here.

Get a logcat or post the dumpstate from data/log
[Galaxy Note GT-N7000 Android Development] danivancouver:
ok, this is new to me I have to learn to do it

Enviado desde mi GT-N7000 mediante Tapatalk
[Galaxy Note GT-N7000 Android Development] Vivek_Neel:
Here you have a great guide about how to take logcat

http://xdaforums.com/showthread.php?t=2274119
[Galaxy Note GT-N7000 Android Development] danivancouver:
There you have it

https://www.wuala.com/danivancouve/1/?key=zK4Bu5VoiwMo
[Galaxy Note GT-N7000 Android Development] Goldie:
I dunno what you did but statusbar clock mod would not cause that error. Your error is in lockscreen :/

I guess you should start again.
[Galaxy Note GT-N7000 Android Development] danivancouver:
I have conducted:

Statusbar or Transparent Statusbar on Lockscreen

Remove cloudy ripple lockscreen overlay and Improve

4-way Reboot Menu

I edited the png and battery grear

Some of may conflict?

I'll do the first Multiple Lockscreen MOD and tell you,

regards

---------- Post added at 09:55 PM ---------- Previous post was at 09:23 PM ----------

I've entered the mod in the rom from scratch and Flashed and this is the bug that jumps

12-11 21:35:12.065: E/AndroidRuntime(2071): *** FATAL EXCEPTION IN SYSTEM PROCESS: WindowManagerPolicy

12-11 21:35:12.065: E/AndroidRuntime(2071): java.lang.IllegalStateException: Unrecognized unlock widget: null

12-11 21:35:12.065: E/AndroidRuntime(2071):	at com.android.internal.policy.impl.AcerLockScreen.<init>(LockScreen.java)

12-11 21:35:12.065: E/AndroidRuntime(2071):	at com.android.internal.policy.impl.LockPatternKeyguardView.createLockScreen(LockPatternKeyguardView.java)

12-11 21:35:12.065: E/AndroidRuntime(2071):	at com.android.internal.policy.impl.LockPatternKeyguardView.recreateLockScreen(LockPatternKeyguardView.java:985)

12-11 21:35:12.065: E/AndroidRuntime(2071):	at com.android.internal.policy.impl.LockPatternKeyguardView.updateScreen(LockPatternKeyguardView.java:1249)

12-11 21:35:12.065: E/AndroidRuntime(2071):	at com.android.internal.policy.impl.LockPatternKeyguardView.<init>(LockPatternKeyguardView.java:721)

12-11 21:35:12.065: E/AndroidRuntime(2071):	at com.android.internal.policy.impl.LockPatternKeyguardViewProperties.createKeyguardView(LockPatternKeyguardViewProperties.java:52)

12-11 21:35:12.065: E/AndroidRuntime(2071):	at com.android.internal.policy.impl.KeyguardViewManager.show(KeyguardViewManager.java:165)

12-11 21:35:12.065: E/AndroidRuntime(2071):	at com.android.internal.policy.impl.KeyguardViewMediator.handleShow(KeyguardViewMediator.java:1427)

12-11 21:35:12.065: E/AndroidRuntime(2071):	at com.android.internal.policy.impl.KeyguardViewMediator.access$1400(KeyguardViewMediator.java:110)

12-11 21:35:12.065: E/AndroidRuntime(2071):	at com.android.internal.policy.impl.KeyguardViewMediator$4.handleMessage(KeyguardViewMediator.java:1280)

12-11 21:35:12.065: E/AndroidRuntime(2071):	at android.os.Handler.dispatchMessage(Handler.java:99)

12-11 21:35:12.065: E/AndroidRuntime(2071):	at android.os.Looper.loop(Looper.java:137)

12-11 21:35:12.065: E/AndroidRuntime(2071):	at com.android.server.wm.WindowManagerService$PolicyThread.run(WindowManagerService.java:967)
[Galaxy Note GT-N7000 Android Development] Goldie:
Yeah...like I said caused by lockscreen but you said it was caused by the clock mod. Which its not.

Anyway...You should turn ripple off when not using ripple to stop that error. There is a fix you can do that checks type key and automatically disables ripple but im not typing that up now so just do it manually :)
[Galaxy Note GT-N7000 Android Development] ChinmayKunkikar:
Hello dev!

You are simply amazing!

I loved these mods. But the only problem is that I am a non-Samsung user. I have a Xperia.

Do some of your mods work for other phones too?

Like - SMS hacks, integrating apps in settings etc?

Thanks!
[Galaxy Note GT-N7000 Android Development] MoMaz:
I followed the guide to add a apk to secsetting/system menu but it seems it does not work on 4.3. Can someone else confirm please? I get no errors when re-complying so I know all the codes and files are right.
[Galaxy Note GT-N7000 Android Development] Goldie:
Stuff can compile and still be wrong. Post a log
[Galaxy Note GT-N7000 Android Development] not-i:
There is a lot of changes between 4.1.2 and 4.3. I had some problems with my first mods on 4.3 although they compiled ok so you will need to look into it further. ie: the directories of somethings have changed for example
[Galaxy Note GT-N7000 Android Development] ocoot:
hi sorry for wrong section. but, i am already post on the thread no one help me. may anyone help me to add clock mod?

http://xdaforums.com/showpost.php?p=47286975&postcount=183

anyone may can help me? on my phonestatusbar$mmyticker.smali with file given by the OP has many differences from that I have, it makes a problem when there is incoming notifications, my statusbar then FC when have notification... this is my log

E/AndroidRuntime( 1353): FATAL EXCEPTION: main
E/AndroidRuntime( 1353): java.lang.NullPointerException
E/AndroidRuntime( 1353):	at com.android.systemui.statusbar.phone.PhoneStatusBar$MyTicker.tickerStarting(PhoneStatusBar.java:2868)
E/AndroidRuntime( 1353):	at com.android.systemui.statusbar.phone.Ticker.addEntry(Ticker.java:222)
E/AndroidRuntime( 1353):	at com.android.systemui.statusbar.phone.PhoneStatusBar.tick(PhoneStatusBar.java:2880)
E/AndroidRuntime( 1353):	at com.android.systemui.statusbar.phone.PhoneStatusBar.addNotification(PhoneStatusBar.java:1247)
E/AndroidRuntime( 1353):	at com.android.systemui.statusbar.CommandQueue$H.handleMessage(CommandQueue.java:338)
E/AndroidRuntime( 1353):	at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 1353):	at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 1353):	at android.app.ActivityThread.main(ActivityThread.java:4963)
E/AndroidRuntime( 1353):	at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 1353):	at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 1353):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1038)
E/AndroidRuntime( 1353):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:805)
E/AndroidRuntime( 1353):	at dalvik.system.NativeStart.main(Native Method)

may anyone help me to editing my phonestatusbar$ticker, i attach my ticker with 2 file: PhoneStatusBar$MyTicker.smali (mod) and PhoneStatusBar$MyTicker_ori.smali (ori) thanks and please help me :(

https://www.dropbox.com/s/z6oh8mm86xdzaxf/ticker.rar
[Galaxy Note GT-N7000 Android Development] remuntada78:
have replaced the id in phonestatusbar$ticker with your System /res/value/public ids?
[Galaxy Note GT-N7000 Android Development] ocoot:
[MENTION=5292754]remuntada78[/MENTION] yes i am already replaced that. my systemui it's work but when received notification my statusbar will give FC and the log above explained that... caused my ticker and the OP given from that thread it's many different :(
[Galaxy Note GT-N7000 Android Development] Goldie:
I think this is the 10th time ive posted these words this week....

Give a full log!!!!! Post the dumpstate_app_error.txt.gz. There may be more further up. :)

Not sure why he posted the full ticker smali as there wasnt much to change as i remember in that file.
[Galaxy Note GT-N7000 Android Development] Goldie:
I tried to do it on my phone for you but its too awkward. Basically all you are doing is copying chunks of code you have for micons and replacing with mcentreclocklayout. Its pretty straightforward. Use a compare program to identify how many lines in a chunk. They vary from 3 up to about 5 or 6. Then just copy the chunk for micons and paste underneath and change to centre clock layout.