yashsingh1/xdaforums huggingface dataset:
[Galaxy S III Android Development] mikeman45:
Im a little confused at the end where it says to place both folders from zip in systemui/smali/

what confuses me is the folders in zip are named wanam and com but if i do that wont the com folder replace the one i just made all the smali changes too. systemui/cmali/com/android/systemui/status bar

edit: plus the last 2 set of code i didnt have the first line invoke-virtual {v13,v14 or the invoke-virtual {v1,v13,v2 so i just added them and the rest of the code to the end , would that be correct or will i get errors.

edit: never mind on the first question I figured it out. Sometimes I move too fast and don't think, silly me
[Galaxy S III Android Development] dataman:
Wanam,

I have been enjoying your MOD on TD's AIO pack for GS2 Sprint Epic 4g Touch.

http://xdaforums.com/showthread.php?t=2149900&

we have an issue with the brightness toggle not obeying the quickpanel settings for the brightness.

So the brightness toggle just switches the brightness from Auto to Manual no matter what setting you set in qyickpanel... unless I manually lower the brightness all the way down, then every time I press the brightness toggle it goes up according to the quickpanel settings till it gets to 100% and gets stock their between auto and manual..

I brought this up to Tdunham's attention and he probably will get in touch with you about it.

when the brightness is at 100% I can see the toggle switch trys to take it down to 25% as it should but something overrides it and brings it to 100% and then switches between auto and manual.

I tried all the settings in quickpanel

I have it set to Auto 25% 50% 75% 100% which makes no difference.

I was wondering if you have any idea what could be causing the issue at all...

Thank you!
[Galaxy S III Android Development] .c0dy:
It's a bit late, and maybe it is working now for you. But i got the same. Reason for me is the Devil Kernel. I had the same with hydrx kernel. Maybe it is a kernelproblem for you too :)

Gesendet von meinem GT-I9300 mit Tapatalk 2
[Galaxy S III Android Development] Mundo Hackz:
okay so i been using androidmanifest 4.1.1 to get the flashlight and reboot working on my 4.1.2 ROM .. but now how do i fix them on a stock androidmanifest from 4,1,2??? any1 please
[Galaxy S III Android Development] Mundo Hackz:
How you go the flashlight and Reboot working??? I edit the androidmedifest but nothing and how do I compile without transferring the androidmedifest without erasing the permission added to them please help
[Galaxy S III Android Development] nbnion:
you don't transfer it after save, just use the one you modified, that's how I got mine to work on deodexed only
[Galaxy S III Android Development] Mundo Hackz:
But you added the uses.permission reboot and camera to androidmedifest? ?

didnt work gave me FC... also im using Note 2
[Galaxy S III Android Development] nbnion:
yes, as long as it's deodex, I couldn't make it work on odex. deodex will take it.

transfer only the meta and use the mod androidmanifest
[Galaxy S III Android Development] Mundo Hackz:
So I add the uses permission then save the androidmedifest and just transfer meta-inf and i should be good???
[Galaxy S III Android Development] nbnion:
yes, you got it :)
[Galaxy S III Android Development] Mundo Hackz:
I hope it works.. because I had to re do the my whole systemUI because it kept showing 4.1.1 and I'm on 4.1.2 MC2 lol

And what happens if that doesn't work??
[Galaxy S III Android Development] Mundo Hackz:
Didn't work
[Galaxy S III Android Development] nbnion:
I think you did something wrong, I've done 2 mods based on wanam, uxuma7 and ucmc1

on both flashlight working and reboot.

if you don't believe me check out my mods....
[Galaxy S III Android Development] Mundo Hackz:
I've installed the uses permission then saved androidmedifest and then just transfered the meda-inf

---------- Post added at 11:57 PM ---------- Previous post was at 11:54 PM ----------

Do I get the meda-inf from a stock 4.1.2 or my own systemui from my rom b4
[Galaxy S III Android Development] Mundo Hackz:
if you can double check for me i would really appreciate it

https://www.dropbox.com/s/a89fk8zdwsnxunk/SystemUI.apk
[Galaxy S III Android Development] Unknownforce:
Working on this one right now for the Galaxy S4, I'm having trouble with the reboot and shutdown buttons. Logcat is telling me that NoSuchMethodError: android.app.StatusBarManager.collapse

Is this located somewhere else, or does the app just not have access to it anymore?
[Galaxy S III Android Development] nbnion:
I'll check out in the morning
[Galaxy S III Android Development] adityaf:
Hey man im getting systemUI force close? Any suggestions?
[Galaxy S III Android Development] joshua5683:
Ugh makes no sense probably cause I'm vzw.. it's slightly different and I don't know what to do... where can I find a vzw guide and how are developers able to figure it out? :(

I think I figured it out.. but when I recompile I get errors ... :( what does it take to get some lidroid toggles jeez...
[Galaxy S III Android Development] DigitalUnderground:
So by looks of OP title, this now does work for 4.1.2???
[Galaxy S III Android Development] DSA:
perhaps posting what the errors are?

we aren't mind readers
[Galaxy S III Android Development] joshua5683:
Can't remember, I didn't think anyone would read this thread so I didn't post it. systemui has always been a problem for some reason. I think I'll just not do development for now or maybe I'll try again on the next phone I get

Sent from my SCH-I535
[Galaxy S III Android Development] Mundo Hackz:
Don't give up bro there's always some1 to help out

Wolfed out Note Dos
[Galaxy S III Android Development] joshua5683:
Thanks I'll try again and post the error. I'll try not to get discouraged if I waste a couple hours again lol

Sent from my SCH-I535

---------- Post added at 11:44 AM ---------- Previous post was at 10:45 AM ----------

Here are the errors when trying to recompile SystemUI:

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Windows\system32>cd..

C:\Windows>cd..

C:\>cd Users/Josh/Desktop/apktool

C:\Users\Josh\Desktop\apktool>apktool if C:\Users\Josh\Desktop\framework-res.apk

I: Framework installed to: C:\Users\Josh\apktool\framework\1.apk

C:\Users\Josh\Desktop\apktool>apktool if C:\Users\Josh\Desktop\twframework-res.a
pk
I: Framework installed to: C:\Users\Josh\apktool\framework\2.apk

C:\Users\Josh\Desktop\apktool>apktool b SystemUI SystemUI.apk
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
C:\Users\Josh\Desktop\apktool\SystemUI\res\layout\tw_status_bar_expanded.xml:37:
error: Error parsing XML: mismatched tag
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 16, --target-sdk-version, 16, -F, C:\Users\Josh\AppData\Local\Temp\
APKTOOL13460808814142629.tmp, -0, arsc, -I, C:\Users\Josh\apktool\framework\1.ap
k, -S, C:\Users\Josh\Desktop\apktool\SystemUI\res, -M, C:\Users\Josh\Desktop\apk
tool\SystemUI\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [aapt, p, --min-sdk-version, 16, --target-sdk-version, 16, -F, C:
\Users\Josh\AppData\Local\Temp\APKTOOL13460808814142629.tmp, -0, arsc, -I, C:\Us
ers\Josh\apktool\framework\1.apk, -S, C:\Users\Josh\Desktop\apktool\SystemUI\res
, -M, C:\Users\Josh\Desktop\apktool\SystemUI\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 16, --target-sdk-version, 16, -F, C:\Users\Josh\AppData\Local\Temp\AP
KTOOL13460808814142629.tmp, -0, arsc, -I, C:\Users\Josh\apktool\framework\1.apk,
-S, C:\Users\Josh\Desktop\apktool\SystemUI\res, -M, C:\Users\Josh\Desktop\apkto
ol\SystemUI\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more

C:\Users\Josh\Desktop\apktool>
[Galaxy S III Android Development] DSA:
thats the problem

the way that line is set up is incorrect:

open tw_status_bar_expanded.xml

go to line 37

check the opening and closing parts (</ and />), make sure they match the other lines

or paste that line here for us to have a look at
[Galaxy S III Android Development] joshua5683:
Thank you that makes sense, that's where I was having trouble with the guide.

Line 37 (you just count down 37 lines right?) : </LinearLayout>

Sent from my SCH-I535

---------- Post added at 12:30 PM ---------- Previous post was at 11:53 AM ----------

And that's odd if that is line 37, cause I didn't change anything down there.
[Galaxy S III Android Development] DSA:
Most text editors have a 'goto line' command...but yes

Use edit pad lite, its free and has a lot of good options

Best thing you can do is look at the unmodified file line and compare it to what you changed...they should follow a similar layout but just have slightly different options in there

If its a linear layout, it will have an opening linear layout line and a closing line lower down with a bunch of options/text in between - this needs to be set up correctly
[Galaxy S III Android Development] DSA:
delete all that and paste it inside code tags:

[*CODE*]

put your text here

[/*CODE*]

remove the stars inside the tags (they are there to show you otherwise the tags wouldn't show up)
[Galaxy S III Android Development] joshua5683:
Updated
[Galaxy S III Android Development] Unknownforce:
Your problem is that </LinearLayout> is trying to close something that was never opened. It's the same as if you put an extra closing bracket like below:

Start() { <--- Open Bracket #1
dostuff
} <--- Close Bracket #1
} <--- Close Bracket #2 (Compiler see this and says What? There was no Open Bracket #2, ERROR!)

Did you delete a line that began with <LinearLayout>?

You could fix the error by deleting the </LinearLayout> line.
[Galaxy S III Android Development] joshua5683:
Hmm didn't work, exact same error as before after deleting line 37
[Galaxy S III Android Development] Unknownforce:
Can you post the original unmodified XML please?
[Galaxy S III Android Development] IlBella95:
Hi wanam, why don't u add only this mod without circle battery in the wanamlite's installerb? :)

Inviato dal mio GT-I9300 con Tapatalk 2
[Galaxy S III Android Development] Unknownforce:
You removed the following two lines:

<ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginTop="@dimen/notification_panel_quicksettingbtn_height" android:overScrollMode="ifContentScrolls">
<LinearLayout android:orientation="vertical" android:id="@id/scrollCart" android:layout_width="fill_parent" android:layout_height="wrap_content">

So it's erroring on LinearLayout And on ScrollView

They are closed but the open's are gone.
[Galaxy S III Android Development] joshua5683:
Thank you, I know for sure I didn't delete those, but they were indeed deleted cause I just added them and I was able to recompile. I don't know how they could have been deleted, I know for sure I didn't cause I even did it a second time and only modified the top half, but whatever I'm gonna try it and hope for no force closes. Thanks for the help :)

Also, after I recompile I must copy over the old META-INF and AndroidManifest.xml from the stock SystemUI.apk right? If so can I just copy over with 7zip so that I don't have to decompile?
[Galaxy S III Android Development] Unknownforce:
I never do that. I just compile and throw it into an update.zip file that already has a valid updater-script for copying files from the system folder in the zip into /system partition.

What are you using to compile? apktool?
[Galaxy S III Android Development] Unknownforce:
Oh, and I suggest using Notepad++ for editing XML's (and pretty much any text based editing)

It automatically highlights things when you click into them, like opening/closing things, and the colors help distinguish certain things easier.

-->
[Galaxy S III Android Development] joshua5683:
Yup, just flashed my rom with this mod, removed keyboard icon, and no wifi notification, with some bloat deleted, with GS4 apps, and now it seems like my phone isn't booting up, just hanging on the "4GLTE" boot animation. :(

Thanks I'll use that

---------- Post added at 05:38 PM ---------- Previous post was at 05:01 PM ----------

Yeah let it sit for a half hour and it still hasn't booted up :( :( and dang my phone is really really hot now lol
[Galaxy S III Android Development] Unknownforce:
You might be able to get the logcat with adb to try to see where the problem is... assuming you have USB debugging on already.
[Galaxy S III Android Development] joshua5683:
How does one do that? I've used adb only once I think. Also could it be because I used the VRBMD3 zip as the base?
[Galaxy S III Android Development] Unknownforce:
connect it while it's bootlooping and do adb logcat or adb shell logcat. it will spit out a bunch, you might do adb logcat >> logcat.txt and let it run for a bit so that it captures it all. (Ctrl C to stop it) but there should be some errors in there.
[Galaxy S III Android Development] Unknownforce:
Did you clear Cache/Dalvik after flashing?
[Galaxy S III Android Development] joshua5683:
No, but I wiped data/system/cache/dalvik before flashing. should I try wiping caches after?

Sent from my SCH-I535
[Galaxy S III Android Development] Unknownforce:
If you wiped system/data that would reset the entire ROM... what did you flash, an update zip with the modified apk or the entire ROM?
[Galaxy S III Android Development] joshua5683:
I flashed the entire rom. So I thought wiping data/system would be required.

Sent from my SCH-I535
[Galaxy S III Android Development] Unknownforce:
So you've included this modified apk in the ROM and flashed it as a whole ROM?

For testing things like this, it's always better to get a functional ROM booted, then flash an update zip to test modified system files, that way you can easily revert.

Plus you know that what you modify is the ONLY thing that changed when you flash the update. So they you know that it's truly the cause of the problem, because obviously it worked before you made that one small change.
[Galaxy S III Android Development] joshua5683:
Yes I did. Okay, how do I make a proper update.zip of my updated SystemUI?

Sent from my SCH-I535
[Galaxy S III Android Development] Unknownforce:
See this post. It explains it pretty well.
[Galaxy S III Android Development] joshua5683:
Instead I flashed the entire rom with no changes at all besides replacing SystemUI. It booted up but I got a SystemUI force close :( :( :( I have a really strong respect for developers .. really how do they do this. Adding 23 toggles is insanely difficult I can't believe they are able to theme and do other things
[Galaxy S III Android Development] Unknownforce:
It's just different for every single phone because the code is different for every phone.

The logcat will now tell you why it's force closing though. You were bootlooping before, you've gotten farther.
[Galaxy S III Android Development] joshua5683:
Thanks I'll get another log. What phone is this guide for? International?

---------- Post added at 04:46 PM ---------- Previous post was at 04:10 PM ----------

http://db.tt/pis9PXAy
[Galaxy S III Android Development] Unknownforce:
OK, the main error from all this is here:

D/SystemUIService( 1213): loading: class com.android.systemui.statusbar.phone.PhoneStatusBar

W/dalvikvm( 1213): VFY: register index out of range (14 >= 14)

W/dalvikvm( 1213): VFY: rejecting opcode 0x14 at 0x02a5

W/dalvikvm( 1213): VFY: rejected Lcom/android/systemui/statusbar/phone/PhoneStatusBar;.makeStatusBarView ()Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;

W/dalvikvm( 1213): Verifier rejected class Lcom/android/systemui/statusbar/phone/PhoneStatusBar;

W/dalvikvm( 1213): Class init failed in newInstance call (Lcom/android/systemui/statusbar/phone/PhoneStatusBar;)

W/dalvikvm( 1213): threadid=1: thread exiting with uncaught exception (group=0x40eec438)

E/AndroidRuntime( 1213): FATAL EXCEPTION: main

E/AndroidRuntime( 1213): java.lang.VerifyError: com/android/systemui/statusbar/phone/PhoneStatusBar

I'll teach you how to diagnose this one. The main error is the rejecting opcode message. You can look that up here: http://pallergabor.uw.hu/androidblog/dalvik_opcodes.html

So with that, the opcode 0x14 is a const vx, lit32. So you know the offending line starts with 'const' you also know what that line does now, it's storing a literal 32bit integer to a variable(register) So you now know what you're looking for in the code, it will probably look something like const v14, (some number)

The next couple lines below that tell you where to look for this const, you can of course guess that it's definitely going to be smali code that you've modified, so you should be able to narrow it down a lot.

The line rejected Lcom/android/systemui/statusbar/phone/PhoneStatusBar;.makeStatusBarView ()Lcom/android/systemui/statusbar/phone/PhoneStatusBarView; means that the offending line is inside of PhoneStatusBar.smali most likely and inside the method makeStatusBarView()

Either find the part that you've modified and post it with some of the extra code above and below it, or just post the whole file and highlight what you've modified, and I can tell you what you need to do to fix this error. (this doesn't mean it's going to fix the whole mod, just this one error)
[Galaxy S III Android Development] joshua5683:
Thanks. Here's everything I modified in PhoneStatusBar.smali under the "makeStatusBarView" section of this tutorial, in order of the steps in this tutorial, the bold being what I modified/added:

invoke-virtual {v1, v0, p3, v2}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)V

.line 1157
[B]iget-object v1, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mPowerWidget:Lcom/wanam/systemui/quickpanel/PowerWidget;

invoke-virtual {v1}, Lcom/wanam/systemui/quickpanel/PowerWidget;->updateWidget()V[/B]

return-void

invoke-virtual {v9, v10}, Landroid/widget/ScrollView;->setVerticalScrollBarEnabled(Z)V

[B]move-object/from16 v0, p0

iget-object v13, v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarWindow:Lcom/android/systemui/statusbar/phone/StatusBarWindowView;

const v14, 0x7f0d010e

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

move-result-object v13

check-cast v13, Lcom/wanam/systemui/quickpanel/PowerWidget;

move-object/from16 v0, p0

iput-object v13, v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mPowerWidget:Lcom/wanam/systemui/quickpanel/PowerWidget;[/B]

.line 728
new-instance v9, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$MyTicker;

invoke-virtual {v1, v9, v2}, Landroid/content/Context;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;

[B]move-object/from16 v0, p0

iget-object v13, v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mPowerWidget:Lcom/wanam/systemui/quickpanel/PowerWidget;

invoke-virtual {v13}, Lcom/wanam/systemui/quickpanel/PowerWidget;->setupWidget()V[/B]

.line 862
sget-boolean v9, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->useTouchWizGUI:Z
[Galaxy S III Android Development] Unknownforce:
So the error that's being thrown is because of this line: const v14, 0x7f0d010e

You need to use registers within the range that's provided. So, they most likely need to match the numbers above and/or below.

Post some more of code above and below that part. like a good 10 lines above and below. I'll tell you how to modify them as they should be.

Also, after you compile, take it and decompile it right away, and make sure that 0x7f0d010e matches what it's supposed to (exp_power_stat) inside of public.xml in the res/values folder.
[Galaxy S III Android Development] joshua5683:
Is this what you're looking for? const v14 -x7f0d010e is in bold:

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

move-result-object v9

check-cast v9, Landroid/widget/ScrollView;

iput-object v9, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mScrollView:Landroid/widget/ScrollView;

.line 726
iget-object v9, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mScrollView:Landroid/widget/ScrollView;

const/4 v10, 0x0

invoke-virtual {v9, v10}, Landroid/widget/ScrollView;->setVerticalScrollBarEnabled(Z)V

move-object/from16 v0, p0

iget-object v13, v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarWindow:Lcom/android/systemui/statusbar/phone/StatusBarWindowView;

[B]const v14, 0x7f0d010e[/B]

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

move-result-object v13

check-cast v13, Lcom/wanam/systemui/quickpanel/PowerWidget;

move-object/from16 v0, p0

iput-object v13, v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mPowerWidget:Lcom/wanam/systemui/quickpanel/PowerWidget;

.line 728
new-instance v9, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$MyTicker;

iget-object v10, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarView:Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;

invoke-direct {v9, p0, v1, v10}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$MyTicker;-><init>(Lcom/android/systemui/statusbar/phone/PhoneStatusBar;Landroid/content/Context;Landroid/view/View;)V

iput-object v9, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mTicker:Lcom/android/systemui/statusbar/phone/Ticker;

Not sure how to do that, that part confused me in the tutorial. Inside of public.xml somewhere it should say 0x7f0d010e?
[Galaxy S III Android Development] Unknownforce:
I am not at my computer to look at it in the right view right now I'll take a look at it when I can. It will be tomorrow some time.
[Galaxy S III Android Development] joshua5683:
Thanks. No rush

Sent from my SCH-I535
[Galaxy S III Android Development] Mundo Hackz:
Is there a way to make the toggles work.. and then flash morphology ??? Should I get no problems right

Wolfed out Note Dos