yashsingh1/xdaforums huggingface dataset:
[Galaxy S II General] Many40:
I'm happy about your happiness but unfortunately it doesn't solve my problem ;)

I didn't doubt that you could manage that but could you please lift a little the curtain on that for me please :)

If you don't mind I would have a few questions:

- have you installed JB Reloaded mega mode before as well

- what have you done to remove 4-way reboot (did you adjust only android.policy.jar)?

- are there any extraordinary things/steps (not covered by the "New power menu" guide) which should be considered?

Thanks
[Galaxy S II General] MyLifeRocks10:
1. Yes I have installed mega mod.

2. Changes made in android.policy.jar only to remove 4-way reboot menu. I have attatched my android.policy.jar which includes extended power menu and removes 4-way reboot menu. U can try comparing with my files.

3. Nope, but I hope u replaced ids written in that thread(highlighted by blue) with ur newly generated ids from public.xml. That's the only change u should do.
[Galaxy S II General] bombaybadboy:
Notepad++ or winmerge for editing smali if thats what you mean. Your device it is based on a tw OS isnt it?

[MENTION=2174044]Many40[/MENTION] did you look at other guide posted yesterday and follow guide in reverse. Eg removing global action$99 smali ect (all 3 smali files) then redirecting back to global action$5 if I remember. Or start from a clean unmodded android policy but you will need to add Multiwindows folder ect to android policy as in the guide. Sorry not fully awake yet :)
[Galaxy S II General] :
No Sir Its not based on tw and I am talking about smali code editing and formation not for software to do so.

"Hitting Thanks Don't Cost You Anything, so, Why Don't You Try Hitting It Once. "
[Galaxy S II General] Goldie:
Post the log......saying it fc is no help
[Galaxy S II General] :
Ok sir give me an hour time I will post the logcat.

But any Idea how can I take a logcat of systemUI or any link for this sir.

"Hitting Thanks Don't Cost You Anything, so, Why Don't You Try Hitting It Once. "
[Galaxy S II General] engloa:
Try Catlog from play store.
[Galaxy S II General] Goldie:
No need. After fc just pull dumpstate_app_error.txt.gz from data/log then you are guaranteed to get the right bit
[Galaxy S II General] :
Here it is Sir....

http://d-h.st/bwf

"Hitting Thanks Don't Cost You Anything, so, Why Don't You Try Hitting It Once. "
[Galaxy S II General] Goldie:
You messed up phonstatusbar. But cant see in those logs how. Post the dumpstate
[Galaxy S II General] :
Sir, in my phone in Data Folder, there is no log or log file.

Now How to give a proper log cat.

I am attaching my phone statusbar.smali.

Please have a look with this.
[Galaxy S II General] Goldie:
There should be. Any fc creates a dumpstate. What app are you looking with?
[Galaxy S II General] Vivek_Neel:
Use root explorer.

And navigate to data/log
[Galaxy S II General] Many40:
Thanks, will compare your file with mine and try again.

BTW have you touched only GlobalActions.smali and GlobalActions$SinglePressAction.smali files or something more?

and also does it matter in which section of res/values/strings.xml file of framework-res.apk these strings are placed?:

<string name="download">Bootloader</string>
<string name="recovery">Recovery</string>

Ad.3 Yes I replaced IDs

[MENTION=4608459]bombaybadboy[/MENTION] - thanks, yes I did all what you mentioned.
[Galaxy S II General] engloa:
Doesn't matter where you place the strings, just make sure you compile it and then decompile the new framework-res.apk again to get a new public id for the strings you created (download and recovery in your case).
[Galaxy S II General] MyLifeRocks10:
Only those two files.
[Galaxy S II General] :
Sir,

I am Looking through Root Explorer. But in my data folder there is nothing with name "LOG" not even a file/ folder or any thing.

Screenshot of root explorer and a new logcat from the catlog.apk is attached sir.

EDIT:-

Found these lines in new logcat. These are the line I modified yesterday with wanam sir's guide....

06-26 12:29:37.788 E/AndroidRuntime(955): FATAL EXCEPTION: main
06-26 12:29:37.788 E/AndroidRuntime(955): java.lang.VerifyError: com/android/systemui/statusbar/phone/PhoneStatusBar
06-26 12:29:37.788 E/AndroidRuntime(955): at java.lang.Class.newInstanceImpl(Native Method)
06-26 12:29:37.788 E/AndroidRuntime(955): at java.lang.Class.newInstance(Class.java:1319)
06-26 12:29:37.788 E/AndroidRuntime(955): at com.android.systemui.SystemUIService.onCreate(SystemUIService.java:664)
06-26 12:29:37.788 E/AndroidRuntime(955): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2504)
06-26 12:29:37.788 E/AndroidRuntime(955): at android.app.ActivityThread.access$1600(ActivityThread.java:149)
06-26 12:29:37.788 E/AndroidRuntime(955): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1382)
06-26 12:29:37.788 E/AndroidRuntime(955): at android.os.Handler.dispatchMessage(Handler.java:99)
06-26 12:29:37.788 E/AndroidRuntime(955): at android.os.Looper.loop(Looper.java:153)
06-26 12:29:37.788 E/AndroidRuntime(955): at android.app.ActivityThread.main(ActivityThread.java:5086)
06-26 12:29:37.788 E/AndroidRuntime(955): at java.lang.reflect.Method.invokeNative(Native Method)
06-26 12:29:37.788 E/AndroidRuntime(955): at java.lang.reflect.Method.invoke(Method.java:511)
06-26 12:29:37.788 E/AndroidRuntime(955): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:821)
06-26 12:29:37.788 E/AndroidRuntime(955): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:584)
06-26 12:29:37.788 E/AndroidRuntime(955): at dalvik.system.NativeStart.main(Native Method)
[Galaxy S II General] Goldie:
Yes....thats what I saw. Like i said you messed up phonstatusbar. Verify error means it kicked out the whole class. You should look for lines starting VFY. They are not on any of the logs you posted.
[Galaxy S II General] HighlanderZA:
Brightness slider color

Good Morning all!

I see all the boffins are in one place - so what is usually difficult for me, will probably be a simple one for you I hope?

Changing the color of the BS?

I've already found the pngs in framework for scrubber and tw_scrubber and I've looked at the progress ones as well.

Have I missed something obvious again?:confused:

Why the heck won't the slider change color? :eek:
[Galaxy S II General] :
Sir, After Rectifying the mistake with the guide in this thread (#2nd Post).

Again Its giving Error.:crying::crying::crying::crying::crying::crying::crying::crying::crying::crying::crying::crying::crying::crying::crying::crying::crying::crying:

Now Don't know how to do that, May I Provide you my SystemUI and Framework-res.apk

Will you give it a try.

Please Sir.
[Galaxy S II General] engloa:
Can't see the picture you uploaded, but it should be controlled by the tw_progress in framework.

Btw, what's a boffin? :confused::confused:
[Galaxy S II General] BryanChia:
2 questions :o

1.

for the center clock i tried to change it on engloa's mod (the mod i used), i copied the 2nd code in the 2nd for for Center clock in Statusbar, went it tw_status_bar.xml look for the starting and the end and paste it there and when i compile it, it says error, and turns out to be KB lol.. what have i done wrong ?

2.

and the stock clock in the stock status bar (not any mods, comes with the rom), is it changeable ?

like i mean i wanted to change the clock to the middle but then i couldn't use any other mods to and put the systemui in it cause if i do, the systemui will follow whats in the zip.
[Galaxy S II General] bombaybadboy:
I did the guides to work on unmodified systemUI and cant answer for another persons mod but check your work and try again :)

2 im not sure what clock, do you mean with pull down. If so then go to res/layout/tw_expandable_header and you will see lines to change date and clock using hex colours
[Galaxy S II General] MyLifeRocks10:
1. Don't copy/paste it, find the differences using Notepad++ or Winmerge and accordingly make changes. I had made Center clock for u so u can use that as reference to find out differences.

2. Changeable?->Yes. Yes u will loose changes u made, so it's better if u start working on SystemUI.apk u r using or u will be using.
[Galaxy S II General] Vivek_Neel:
Yes ...am following your guide only dude.. not any other..

I did something wrong while making 23 toggle..

After reading your pm..I did one more time.(had put the modified apk in mlr10's zip)thanks MLR

But no changes.. :(

Anyways tomorrow once again a try ..he he.

Very nicely written guide..thanks bbb
[Galaxy S II General] engloa:
Will work, currently using it.

At least mine does, must have done something right somewhere.:rolleyes:

Sent through my Neighbor's Open Wifi.
[Galaxy S II General] bombaybadboy:
I will check it through but did you remember

You should use the newly generated id in public.xml (in res\values folder) for"exp_power_stat"*in place of*0x7fxxxxxx

And also sign the apk?

Also did you replace folders in smali
[Galaxy S II General] BryanChia:
lol sorry, just realise 1st and 2nd question are talking about the same thing..

1. okay unmodified systemui, so how am I gonna put in a zip file and flash it ?

I’ve already decompile the systemui but the changes I made cant seem to work for me, I really don’t know what have I done wrong, I tried twice, once is I copied every sentence and paste it one by one and the other time is I copied the whole and paste it from where you show to the end, tell me if you are confused cause I might not explain it properly :3

2. the clock on the status bar, I want to make it at the center, how am I going to put it in a zip file as well to flash it or just push it to preload or system and rw-r-r and reboot?

1. wow, that’s gonna be so confusing @@ having to notepad++ on a desktop and check every words <:eek:

2. I was thinking of changing the stock one, without any mods.
[Galaxy S II General] Spannaa:
Google the word in red - it'll check for you ;)
[Galaxy S II General] bombaybadboy:
This is giving my eye strain doing this on my device but I have to ask are you following guide and replacing existing lines or are you just adding the lines into tw_status_bar.xml?

To make a flashable zip here is a very easy guide here

http://xdaforums.com/showthread.php?p=40441384#post40441384

Plus notepad++ does have a search :)
[Galaxy S II General] engloa:
Disagree mate. No need to sign apks unless you modify the AndroidManifest.xml

[MENTION=649767]cfi[/MENTION], did you decompile your newly created apk? Decompile it, and the hex values will be automatically generated for exp_power_stat in public.xml

Sent through my Neighbor's Open Wifi.
[Galaxy S II General] Vivek_Neel:
Mate.. there you go..you found the mistake..

Brilliant:thumbup:

Did everything except that public I'd.

How to do it ?. I don't understand it buddy.. what has to be replaced?..

And what's called I'd?

Thanks
[Galaxy S II General] bombaybadboy:
AndroidManifest.xml is modified in guide for torch to work or it will just fc. I no you no another way but I can only show what I no :)
[Galaxy S II General] Vivek_Neel:
Mate.. I edited android manifest.XML ..for torch+reboot to work as per the guide..

So I should sign the apk...right?.

BTW sorry buddy..

am very new in modding..so I don't remember the things.. I did.

I decompiled two to three times..

At what stage you are asking me to decompile?.

Mate I followed the guide perfectly..(decompile and recompile )also gone successfully.. that public new I'd alone I missed it..me bad
[Galaxy S II General] engloa:
Did you decompile the newly created apk each time?

Maybe once is enough....

Now you have to go hunting and make sure the ids inside public.xml matches with the entries in the smali.
[Galaxy S II General] Vivek_Neel:
Dude.."ids inside the public" what does it mean?.

And what are the lines should I look for?

I'd..the first two lines?.
[Galaxy S II General] Spannaa:
Look at \res\values\public.xml and you'll see ;)
[Galaxy S II General] engloa:
Look for exp_power_stat inside systemui\res\values\public.xml

If its not there, you didn't declare it in systemui\res\values\ids.xml or you decompiled the wrong apk
[Galaxy S II General] BryanChia:
okay, downloaded and compared

it showed me this, what should i do now ?

quite confuse here @@
[Galaxy S II General] Vivek_Neel:
Thanks mate

If " exp_power_stat" is there.. implies new id is generated huh?..

Thanks spannaa
[Galaxy S II General] engloa:
Yes

If its there, copy/memorize it (something like0x7fXXXXX)

That has to match the smali entry of phonestatusbar.smali
[Galaxy S II General] HighlanderZA:
Thanks [MENTION=3973489]engloa[/MENTION] - will widen my exploration a bit further.

It's is just a pic of the notification pulldown with BS - the dot is white but the slider track stays blue!!!:confused:
[Galaxy S II General] Goldie:
Just get a log from when you boot to after the fc and post the whole thing not just little bits. Although why you have no data/log I have no idea.
[Galaxy S II General] HighlanderZA:
boffin [ˈbɒfɪn]

n

1. Brit informal a scientist, esp one carrying out military research

2. a person who has extensive skill or knowledge in a particular field - an Android boffin (this one here applies to you lot):good::good::D

3. Informal someone who is considered to be very clever, often to the exclusion of all non-academic interests

[of uncertain origin]

[MENTION=3973489]engloa[/MENTION] - And Boffin is correct - you were spot on again - thanks bud - it is now white as it should be!!!!:good::good::highfive::D
[Galaxy S II General] :
Sir, Here is the new Log....

Please see this.....

http://d-h.st/Xv8
[Galaxy S II General] engloa:
Glad I could help. :thumbup:
[Galaxy S II General] Goldie:
AndroidRuntime(11565): Caused by: java.lang.ClassNotFoundException: com.wanamlite.systemui.quickpanel.PowerWidget

Did you add the files to SysUI? And in the right place with right folder names?

I.e you have PowerWidget.smali in SystemUI/smali/com/wanamlite/systemui/quickpanel like its looking for?
[Galaxy S II General] Goldie:
Progress....now it cant find the resources. You put lidroid-res in system/framework?
[Galaxy S II General] :
Yes Sir its there....

Then also why it cant find that. Is this launcher dependent????

"Hitting Thanks Don't Cost You Anything, so, Why Don't You Try Hitting It Once. "
[Galaxy S II General] :
[MENTION=3065070]Goldieking[/MENTION], [MENTION=4608459]bombaybadboy[/MENTION]

& All Other Dev,

Will I have to get back and leave this as Sour Grapes after coming so close.

Please All Seniors help me, seriously saying I want to introduce something new to my device community and earlier I have done that successfully with other Devs help. Then why not this. I don't want to give it up.

Please !!!!! Please !!!!! Please !!!!!

Help Me everyone.

"Hitting Thanks Don't Cost You Anything, so, Why Don't You Try Hitting It Once. "
[Galaxy S II General] Goldie:
Well either a) lidroid res is missing from system/framework or b) its been edited and the ids are now different or not 0x5 or maybe a permissions issue
[Galaxy S II General] :
Sir,

The zip provided by Sir BBB is used by me and I haven't changed anything there now what kind of permission will be required and from where i can fix that.

And what IDs do I have to look for.....????

"Hitting Thanks Don't Cost You Anything, so, Why Don't You Try Hitting It Once. "
[Galaxy S II General] bombaybadboy:
http://www.mediafire.com/?0x6b1d6668f0mrb

Try lidroid apks from this link, well I think this is the link but my device is struggling to open up without wifi
[Galaxy S II General] Jeetu:
i follow the guide for making centre clock but got status bar increased.

any help>??

i also follow the guide for wallpaper scrolling mod and make a flashable zip file and flashed succesfully but no wp scrolling. but know what i am doing wrong. :(
[Galaxy S II General] MyLifeRocks10:
Status bar increased??:confused: Screenshot??
[Galaxy S II General] Goldie:
Lol. Your statusbar didnt increase....your wallpaper is too small! Hence the bar at the bottom too. Its blank space not statusbar! Looks like your clock mod didnt install but the launcher one did but something wasnt done right.
[Galaxy S II General] Jeetu:
hehe..:p you are right that is blank space.

but not getting what's wrong i follow the guide perfectly. but still not getting centre clock.

then i change battery and clock colour flashed the mod succesfully but still no change.. :(
[Galaxy S II General] Namoi:
Will post my xml tomorrow if you want :)
[Galaxy S II General] engloa:
Did you take a look at this?
[Galaxy S II General] :
Brother

Follow my signature link themeing guide may be it can help you.

Our toolbar is your power widget.

So follow properly.

"Hitting Thanks Don't Cost You Anything, so, Why Don't You Try Hitting It Once. "
[Galaxy S II General] bombaybadboy:
With your center clock edits you did replace lines not just added them?
[Galaxy S II General] Jeetu:
Hehe.. i caught my mistake.. :p

thanks guys for your help.. :thumbup:
[Galaxy S II General] Many40:
[MENTION=4534385]MyLifeRocks10[/MENTION], I've just compared your android.policy.jar with mine and checked again all changes which I should apply to get rid of 4-way reboot mod and extend my main power menu. Results are as follows:

1. GlobalActions&SinglePressAction.smali are identical

2. GlobalActions.smali had following differences:

- lines related to Screen Capture in you file - I skipped them

- line numbers: yours .line 399, mine: .line 389.:confused: The other numbers and all the rest was the same.

Also I rechecked again framework-res.apk (IDs, strings etc) - eveything was ok.

So only things which I changed were: the the line number (just in case even not necessary) in GlobalActions.smali and replaced two pngs (provided in the guide but different in size with original ones) in framework-res.apk /drawable-hdpi

After recompiling, finally (surprisingly) it worked :)

Seems I got scrollable power menu now ;) (will have to resign of one or to options).

Also two icons (recovery and download) don't look too good.

[MENTION=4534385]MyLifeRocks10[/MENTION], [MENTION=3973489]engloa[/MENTION], [MENTION=4608459]bombaybadboy[/MENTION] - thanks guys for your help.
[Galaxy S II General] Spannaa:
Yep, it turns scrollable once you have 5 or 6 items in the array (depending on the size of your icons).

Don't forget that accessibility can also be added to the menu via settings > accessibility so you might want to look at changing that icon too.
[Galaxy S II General] MyLifeRocks10:
That's why I prefer 4-way reboot menu.;) It looks like ur icons are low resolution or u didn't edit them properly.
[Galaxy S II General] Jeetu:
I want to ask as i am using JB reloaded theme 1.07 and i dnt want that messaging apk i want to replace it with stock one . how to do this???:confused::confused:

Thanks. :)
[Galaxy S II General] engloa:
Copy/push the stock mms.apk to preload/symlink/system/app, change permissions and reboot.
[Galaxy S II General] Jeetu:
Thank you so much.. Done :good:

did you find parag?? :p

---------- Post added at 01:00 PM ---------- Previous post was at 12:47 PM ----------

hello guys.

i follow this guide correctly what it said but after recompiling i'm getting error that device_info_settings.xml is not correct.

here is the link - http://xdaforums.com/showthread.php?t=2053789
[Galaxy S II General] Vivek_Neel:
[MENTION=224389]BBB[/MENTION]

Just wanted to tell you that I was using wrong flashable zip..for 23 toggle..

At last got it to work ...I used salesale flashable zip..

Success..

Thanks salesale for his flashable zip
[Galaxy S II General] engloa:
Yes, sent him a pm, he's fine, just taking a break from all the jumping he did.:p
[Galaxy S II General] Namoi:
Hum, I was totally unaware of it and I also missed the icon.

BTW do you know where the string for this option is located as on JB Reloaded at least it shows "Sync" which obviously is wrong (should be "Accessibility").

I tried to look for >Sync< troughout Secsettings, Systemui and Framework-res but there are plenty of entries and to be honest I am a little lazy to try them all ;) .

Thanks
[Galaxy S II General] MyLifeRocks10:
In GlobalActions.smali search for 0x10405b5 and replace it by 0x10405b6 then recompile.

0x010405b5 id for sync_binding_label

0x010405b6 id for accessibility_binding_label
[Galaxy S II General] bombaybadboy:
So guide is correct then :thumbup: I was starting to think I missed something :)
[Galaxy S II General] Namoi:
Thanks mate, but just replacing the sync_binding_label string would'nt do the trick or is this string used somewhere else ?
[Galaxy S II General] Vivek_Neel:
Yes buddy..

Perfect guide:D:D:thumbup::thumbup:
[Galaxy S II General] MyLifeRocks10:
Just change those ids in GlobalActions.smali. Accessibility was taking id of Sync in GlobalActions.smali so instead of Accessibility there was Sync written.
[Galaxy S II General] Spannaa:
I know that works but I was wondering if maybe their ids had somehow been swapped in public.xml like they were for the "Show help text on lock screen" issue where it actually shows "ºF" instead of "Swipe to unlock"...
[Galaxy S II General] Namoi:
It could be this indeed ... Sammy coder very tired after a long day.

But, well as i use XthemeEngine (no access to Smalis), I just replaced the sync_binding_label string and the tw_ic_settings_accessibility.png.

It doesn't seems to "break" anything :fingers-crossed: ... yet
[Galaxy S II General] Spannaa:
I went with [MENTION=4534385]MyLifeRocks10[/MENTION]'s solution as I already had android.policy.jar open in VTS.
[Galaxy S II General] CaptainGoSlow:
Much appreciated on this guide, I have recently been trying to amend the battery icons on a SystemUI, I have decompiled it, changed the icons and recompiled it. But then when I try to install the zip from recovery, it just says aborted. I know it's a long shot, but anyone have any idea what might cause it? I've tried Googling and following guides for the decompiling and compiling, but think I must be missing something.

Thanks:o
[Galaxy S II General] HighlanderZA:
Bottom Toggles and Notification scrolling

Good day everyone! Hope it's a good one for you all.

Need some more help please.

Been messing with the tw_statusbar_expanded file from [MENTION=1028003]churapa[/MENTION] 's bottom toggles and got things nicely lined up to my liking.

BUT - not sure if it's something I've done or an inherent 'bug', but the notifications don't scroll 'correctly' on the NP.:confused:

Pic 1 shows a few notifications in the status bar. SS, Gemini and Playstore

Pic2 shows the NP, but only the Gemini and SS notifications (sort of) - the Playstore one is missing:confused:

Pic 3 just shows the bottom drag handle, toggles and BS all nicely 'tied' together as you close NP - how I wanted it.

So its almost there, just I can't see all my notifications by scrolling.

Any ideas guys?
[Galaxy S II General] HighlanderZA:
This might be a basic question, but what zip installation file are you using?

R U sure it's working ok? - if the installer script is ### then it will abort.

Edit:

Attached is one of [MENTION=3973489]engloa[/MENTION] 's install zips.

Edit: just a thought - if you are only changing the battery icons, you shouldn't need to decom\recom.
[Galaxy S II General] Jeetu:
Anyone know how to add these S4 icons in messaging app for s2??

Screenshot from my S4.
[Galaxy S II General] Many40:
I'm using also bottom toggles guided by churapa and even didn't notice this issue before but you are right - I'm facing the same.

I think that notifications didn't disappear but they are hidden under toggles and brightness slider because notification's area boundary is the same as the edge of notification panel. Seems that a solution would be (if it's possible) to shorten the active notification area (scrollable area) to be ended just above brightness slider...

Edit: [MENTION=4296852]Namoi[/MENTION] reads my minds :)