yashsingh1/xdaforums huggingface dataset:
[Galaxy S II General] tdunham:
If this is for the Tabbed Settings mod, please post your questions in that thread as the users/developers here will probably not be able to help since they are not familiar with all the necessary changes required to get this working/ported over. (I may be unavailable to respond the rest of the day. Here in the US its time to go to work ;).)
[Galaxy S II General] BryanChia:
Alrighty.
[Galaxy S II General] engloa:
Stepped away for a few minutes and badly meeped by Spannaa & MLR10. :D:p
[Galaxy S II General] TechVenom:
Thanks,nice guides,i really like it :laugh:
[Galaxy S II General] BryanChia:
You can thank him instead on the first page by pressing the thanks button
[Galaxy S II General] tdunham:
Just to add to this...

If anyone needs help with a mod, it would be best suited to this thread to try posting in the original mod thread first to prevent further cluttering of this one.

(.9.png modding is a perfect example as there are many threads devoted to this :rolleyes:)

Edit: No offense to anyone intended. I know there are many users willing to help. Just an observation.
[Galaxy S II General] Canyon30:
Help with 23 Toggles!

Hey bombaybadboy et al, I've been trying to get this mod to work for a while. I'm using SGH-T989 (T-Mobile variant of the S2). I've followed your instructions as closely as possible. I can make the stock status bar go away, but can't get the new one with all the toggles to appear. In Wanam's guide for the 15 toggle status bar it mentions the code in tw_status_bar_expanded hides the stock status bar and uses the new one...however my file is an exact replica of the example file in this guide and it's not working. The only thing I did not do is sign SystemUI.apk when I compiled it. Correct me if I'm wrong but I didn't think signing that file is necessary, if it is, I'll try it.

Additionally the ROM I'm using is just stock 4.1.2 rooted, and deodexed. Any help, insights, thoughts would greatly be appreciated!

My logcat is attached, but I'm still a noob so I'm not sure how to filter it....so it's not filtered.
[Galaxy S II General] bombaybadboy:
Tomorrow I will go through the whole guide again but that guide it is necessary to sign the app then edit service jar or torch will cause fc. I replaced the lidroid apks earlier today. Possibly I missed something but have no pc to check till tomorrow

Edit original guild I used to build 23 toggle mods came from here

http://xdaforums.com/showpost.php?p=35727721&postcount=72

Just needed to change the apps for i9100 if this helps
[Galaxy S II General] Canyon30:
Thanks for looking at it, I tried signing the systemui and changing the services.jar and it worked! sooo happy!!! :D
[Galaxy S II General] bombaybadboy:
Glad its worked now, there are other ways to not sign apk but till now I havent found them. If I do manage to find a way I will change post :thumbup: also when I added the guide I asked wanam's permission and asked if he would look it over and he gave me the go ahead to use that guide as it was
[Galaxy S II General] Spannaa:
Normally signing isn't necessary but, because AndroidManifest.xml has been edited, it is in this case.

Not sure if services.jar still needs editing as I think Sale's disabled signature checking in Neat 4.8
[Galaxy S II General] bombaybadboy:
Yes m8 sale did disabled signature checking in latest neatrom so not needed there. I kept the edit services for other rom builds tho
[Galaxy S II General] NoRulesForMe:
Good morning Guys :)

Congratulations Mr.Brian :) :thumbup: keep it going. More power ;)

Btw:

Mr.Engloa sorry for late reply we have no wifi on our house last night :( ...

I'm outside of our house using wifi of others :D silly me :D Thank you again mate for this. The only missing now is the NeatLogo on the right :) :thumbup: the mods I flash is on my signature. Thanks again :) :) :)

I don't know what color is the MLR10 blue theme v3 using on status bar but I want black :) Thanks :)

[MENTION=356434]Mr.S[/MENTION]pannaa mate sorry I know this thread is not for a request sorry >_< I know I'm not the one your pointing out but just want to say sorry to you and all the professional modders here. I Tottaly respect all of you. Thank you again For all of you and Mr.Engloa :) :) :) :beer: :beer: :beer:

Sent from my GT-I9100 using Xparent BlueTapatalk 2
[Galaxy S II General] engloa:
Maybe in Canyon30's case, services.jar needs to be edited as his device is SGH-T989.
[Galaxy S II General] BryanChia:
i did all steps before this and im quite confuse with this part, can you explain briefly to me about this please?

Like this:

2 apks you need to add Lidroid-res.apk to /system/framework and Lidroid Settings apk to /preload/symlink/system/app

yeah i saw those 2 apk in your 23toggle.zip where/when shall i put it ?

and this too:

Since the systemUI is now signed, we will need to disable signature check on "services.jar

So backsmali services.jar

after signing it, where can i get service.jar ?

im really confuse with this one
[Galaxy S II General] Vivek_Neel:
You dont need to disable signature as sale has already disabled it. .in neat rom

And yeah system/framework/services.jar

Follow the guide patiently. ..and do it perfectly. ..dont be in hurry
[Galaxy S II General] BryanChia:
oh thanks for that :) +1

but what about this, it says

Add the com + wanam folders to smali folder in systemUI.apk

2 apks you need to add Lidroid-res.apk to /system/framework and Lidroid Settings apk to /preload/symlink/system/app

Now we have finished from modifying SystemUI.apk, RecompileAnd Sign SystemUI.apk

i added the 2 folders into smali

then what about the next one, like it says 2 apks need to add to/system/framework & /preload/symlink/system/app, do i put them in first then push the signed systemui to system/app and reboot?
[Galaxy S II General] Vivek_Neel:
Use a template flashable zip.

And put lidroidres.apk to system/framework

Lidroid settings.apk to preload/symlink/system/app

Systemui.apk to preload/....app

Just sign it..using autozipsigner..may be its not needed ...but I do.

Just flash it through recovery. .

How simple is that?.
[Galaxy S II General] BryanChia:
didnt know it was that easy, well i signed everything and flashed, weird, nothing changes :3 nvm, move on to the next one x)
[Galaxy S II General] ab-samy:
Gr8 guide mate :good: :good: :)
[Galaxy S II General] engloa:
Help!!:)
[Galaxy S II General] tdunham:
Did you lose something? LOL
[Galaxy S II General] engloa:
Trying out a no status bar mod toggle.:)
[Galaxy S II General] tdunham:
Ahh, very nice. You ARE going to share it when ready right? ;)
[Galaxy S II General] engloa:
Probably. ;)

But not a lot of free time atm, trying out another mod also but keeps fc'ing, have to take a logcat:banghead:
[Galaxy S II General] _Sale_:
Use nova launcher :D:p

Sent from my NeatRom'ed GT-I9300 wifi hotspoting from my NeatRom'ed GT-I9100
[Galaxy S II General] BryanChia:
I was changing my statusbar pulldown bottom bar jusy now, but then when I try to delete the whole section for the network in res/values/styles like yea just only the network lines and I recompile after that, error was shown so I give it a go and flash it, exactly what I expected, lost my SB so I flash my previous zip (another mod) and reboots..but I thought it suppose to be alright but no, flashing another mod doesn't help and so I flashed spannaa's restorer.zip and im back to the original SB, can anyone tell me which part have I done wrong?
[Galaxy S II General] Vivek_Neel:
http://img.tapatalk.com/d/13/06/20/ejaretut.[QUOTE="engloa, post: 42764313, member: 3973489"]Trying out a no status bar mod toggle.:)[/QUOTE]

I did that already buddy.

This type?

.[IMG]http://img.tapatalk.com/d/13/06/20/ava2amus.jpg

Dev host down..can't upload ..
[Galaxy S II General] engloa:
No, sorry, no guides available for what I'm currently doing. Anyyway, good job.:thumbup:
[Galaxy S II General] tdunham:
Lol. I didn't want to burst his bubble. ;)
[Galaxy S II General] Vivek_Neel:
He he..i knew already..it would not be of that type...was just wanted to confirm..

And also I was wondering I did that simple mod successfully being a noob , but y could not engloa.?

Buddy..great.. good luck on what you are doing..:thumbup::thumbup::thumbup:
[Galaxy S II General] Spannaa:
:confused: You weren't talking about the same thing were you?

[MENTION=3973489]engloa[/MENTION] mentioned a toggle - I assumed this was to turn the statusbar on/off?
[Galaxy S II General] MyLifeRocks10:
Why were u deleting lines from styles.xml?:eek: Also if error shows during recompiling then u should know that u have to correct those errors first.
[Galaxy S II General] BryanChia:
Cause I thought the network showing at the bottom bar was from there so I delete it from there, do you knoe where's the exact place? And yeah I know thay but then it still ask for y/n so I thought it wemt well again lol
[Galaxy S II General] MyLifeRocks10:
Search carrier_label in tw_status_bar_expanded.xml file and add red lines as shown below then recompile.

<TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Network" android:gravity="center" android:layout_gravity="bottom" android:id="@id/carrier_label" android:layout_width="fill_parent" android:layout_height="@dimen/tw_close_handle_height" android:layout_marginBottom="18.0dip" [COLOR="Red"]android:textSize="0.0dip" android:maxLength="0"[/COLOR] />
[Galaxy S II General] Vivek_Neel:
Yes..they are different

Mine mod is about hide status bar and still you can expand it..

See the s.s mate..:D:D:D
[Galaxy S II General] Spannaa:
You've not been doing your homework have you!

It's at the bottom of SystemUI.apk\res\layout\tw_status_bar_expanded.xml

<TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Network" android:gravity="center" android:layout_gravity="bottom" android:id="@id/carrier_label" android:layout_width="fill_parent" android:layout_height="@dimen/tw_close_handle_height" android:layout_marginBottom="10.0dip" />

You just need to add

android:visibility="gone"

[EDIT] Meeped [/EDIT]
[Galaxy S II General] MyLifeRocks10:
Should we punish him?:p:D:D
[Galaxy S II General] Spannaa:
That's up to [MENTION=4608459]bombaybadboy[/MENTION] - it's his thread ;)
[Galaxy S II General] glasseffects:
I'm not a developer, but there was something i stumbled upon while tinkering with the resolution of the screen. I particularly did not like the size of the status-bar icons so i reduced the density to 165. Yeah some may find that uncomfortable to work with but seems fine on my end. Two things happened:

Ripple Effects option was now enabled

Smart Stay was now present in the Display options.

I can confirm that the phone is on the official JB 4.1.2 LSD firmware and these options were not present with the default resolution.

So are these options based upon resolution alone?

Im just sharing my experience. This may have been already discovered though.
[Galaxy S II General] darth_mickrig:
You can enable these two things by editing smalis in android.policy.jar and SecSettings.apk for all densities.
[Galaxy S II General] BryanChia:
aww c'mon you two, its just that one question :0

anyways, thanks to both of your answer :)
[Galaxy S II General] Jeetu:
i want to ask.

i succesfully decompile systemui.apk but when i recompile it i am getting this error?

sorry for this nOob ques.
[Galaxy S II General] bombaybadboy:
Do you mean recompile you get errors (sorry can see the ss properly). Can you decompile and recompile systemUI.apk without any changes made. Plus what tool are you using to decompile your apk ?
[Galaxy S II General] Jeetu:
Sorry for my silly mistake.

I edited my post and upload clear ss.

I jus decompile the systemui.apk and then i recompile it but get this error.

I am using apktool provided by salesale.
[Galaxy S II General] Namoi:
Mate, it seems it is only warnings you get (ss a little blurry). No problem with that : it is only the compiler which can't find some translation strings for certain languages. It is normal, don't worry.

Cheers
[Galaxy S II General] gaosphappy:
What have you tried to do with the date/day/month it doesnt like it???? FFEEEDDD MMEEE some more info. ive been having great time getting a color change in lock screen time with ripple causing bootloop OOOOHHHH the joy of mods :silly: :eek: :laugh:

GOOD GOD MAN MEEPPP :eek: :)
[Galaxy S II General] _Sale_:
Apktool 1.5.2?

+1

Sent from my NeatRom'ed GT-I9300 wifi hotspoting from my NeatRom'ed GT-I9100
[Galaxy S II General] Jeetu:
Yes.

But where's the recompiled apk if this is not an error. :confused:
[Galaxy S II General] Namoi:
We didn't saw all the output log maybe you had other errors.

Paste it here, it will be better then a SS.

Cheers
[Galaxy S II General] bombaybadboy:
Sorry jeetu but have to ask as you have been pm'ing me about odexed systemUI. Your not trying to decompile one are you or are you using deodexed?
[Galaxy S II General] Vivek_Neel:
Did your "building apk " was successful..?
[Galaxy S II General] engloa:
If you use apktool to build with the command

apktool b SystemUI

The recompiled apk will be created inside the SystemUI folder in a folder called build/dist (if you recompiled successfully)

If you use apkmanager to recompile, look inside the folder place-apk-here-for-modding for a new file called unsignedSystemUI.apk
[Galaxy S II General] Vivek_Neel:
That's not a problem..

Even I get that no default translation error..

Building apk is successful.. congrats.

Go ahead
[Galaxy S II General] churapa:
The re compiled apk should be in a folder called dist inside your de compiled SystemUI.

About the translation warnings, don't mind them, if you check at the end of the warnings it says building apk, that means everything went ok; from there, go to look your re compiled apk inside the aforementioned dist folder (it's the same folder for any apk you're working with).
[Galaxy S II General] Jeetu:
A BIG thanks to CFI,BBB,Engloa,Churapa,Namoi for your help. :thumbup:
[Galaxy S II General] tdunham:
New Power Menu Guide with Screenshot

The Power Menu Guide I posted has been updated. Included how to add screenshot to the menu.

This is not an extended power menu mod, it uses the native power menu with Recovery, Bootloader and Screenshot features added.

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

Edit: I see this is linked in Post #4 with other threads I suggested adding. Thank you for that BBB. :)

Credits for the Screenshot feature go to Mirko DDD. A guide was never released for this so finally had time to add it in.
[Galaxy S II General] bombaybadboy:
I had to add to 4th post because I maxed out the 1st +2nd posts so started using my replies :D
[Galaxy S II General] Many40:
Good morning guys,

Recently, as Neatrom thread slowed down a little ;), I've had time to train/practice making some mods for my setup based mostly on guides from this thread (I'm on Neatrom Lite 4.4/XXMS1+JB Reloaded 1.06 with Mega Mod + MLR10 Blue Theme v2).

What I did already is:

1. Edge Zoom mode

2. Toggle's + brightness slider moved to the bottom (thanks to invaluable help from churapa)

3. 4 shortcuts on lockscreen (based on a guide found in s3 thread)

The last mod I tried was "New power menu" from this link:

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

Following the guide I found out that in android.policy.jar > GlobalActions.smali some content was not identical as in the guide (eg line numbers were different - ".line XXX").

My question is:

- did someone try already this mod

- are the differences between my android.policy.jar and the one from the guide related to "4-way reboot mod" (which I've implemented) or a reason would be that the guide was written for a different device?

At the end I managed to successfully make all necessary changes into framework-res.apk and android.policy.jar and phone booted however after pressing power button it immediately restarted and bootlooped. So definitely I messed up something :)

My aim is to get rid of "Restart" sub-menu in Power menu and have all required options, especially Recovery and Download in one place but at the same time to not lose my current mods provided with JB reloaded.

But might be I should start from stock android.policy.jar?

Thanks

Edit: maybe [MENTION=1042140]tdunham[/MENTION] would be able to assist me at finding a culprit of the problem ...

Edit2: I think now that a solution for me would be:

- first: revert back all changes from 4-way reboot mod (Extended power menu)"

- second: implement "New power menu" changes
[Galaxy S II General] bombaybadboy:
Sorry for a late reply m8 but I havent tried tdunham's guide yet. I was planning to go through them today but found a lot of first post had disappeared so I have been rewriting it again.
[Galaxy S II General] Spannaa:
Thanks for the Adding Screenshot to Power Menu guide, it works flawlessly on Neat Lite 4.8 even though my android.policy.jar is already heavily modified ;)
[Galaxy S II General] Many40:
Were the last a few words directed to me? ;):D:p
[Galaxy S II General] Spannaa:
No, in fact I hadn't even seen your post relating to the power menu mods until you asked that and made me wonder why ;)

FYI, I don't think the line numbers in smali matter - different devices and decompiling methods give different line numbers. I just ignore them.
[Galaxy S II General] tdunham:
Extended power menu needs to be completely removed and if it still creates force close, create a logcat to find the error.

---------- Post added at 12:22 PM ---------- Previous post was at 12:21 PM ----------

Correct, line numbers do not matter.
[Galaxy S II General] BoriKing:
Can someone please tell me which .xml and(or) .png is responsible for this colors and where is located?

View attachment 2068423

View attachment 2068425

Thanks in advance... :beer:
[Galaxy S II General] engloa:
[MENTION=2174044]Many40[/MENTION], if the different line numbers bother you, use the -b switch when you decompile the jar or apk.

For instance: apktool d -b android.policy.jar will not show the .line entries in the output smalis.
[Galaxy S II General] MyLifeRocks10:
[MENTION=2174044]Many40[/MENTION] I think u did something wrong. I tried it and works for me with JB Reloaded v1.07.
[Galaxy S II General] Many40:
Thanks mate, gonna do that.

This afternoon gonna have a look again to my android.policy.jar and remove all staff/revert changes which made by "Extended power menu", hopefully it solves my problem.

I don't give up easily :)
[Galaxy S II General] tdunham:
Don't forget systemui tw_status_bar_expanded.
[Galaxy S II General] Many40:
You added recovery and download options to the main menu having them at the same time available from "Extended power menu / 4-way reboot"?

But [MENTION=1042140]tdunham[/MENTION] wrote that "Extended power menu needs to be completely removed" to make a New power menu working?
[Galaxy S II General] engloa:
Like Bryan? :)
[Galaxy S II General] MyLifeRocks10:
It is 4-way reboot menu which came with JB Reloaded, it replaced data toggle with screenshot toggle.
[Galaxy S II General] Many40:
It's better to start modding later than never ;) (I don't like to bother other people to make mods for me - prefer to be more independent :))

---------- Post added at 04:33 PM ---------- Previous post was at 03:57 PM ----------

Could you elaborate something more on that?

(what is "tw_status_bar_expanded" from systemUI.apk to do with power menu?)
[Galaxy S II General] MyLifeRocks10:
For 1st screenshot: I think those images are located in SecContacts.apk, don't know their exact names.

For 2nd screenshot: Those pngs are located framework-res.apk/res/drawable-hdpi folder. Filenames should be like this:

1,3->tw_list_section_divider_holo_dark.9.png

2->ab_stacked_solid_dark_holo.9.png,ab_transparent_dark_holo.9.png

Btw look at this line in GlobalActions.smali file.

iget-object v3, v0, Lcom/android/internal/policy/impl/GlobalActions;->mScreenCapture:Lcom/android/internal/policy/impl/GlobalActions$[COLOR="Red"]Toggle[/COLOR]Action;
[Galaxy S II General] Many40:
Mate, I don't know if you got what is my desired end state.

Now I have on main power menu (power off, data network mode, Flight mode and restart) + "4-way reboot" extended power menu with i.a. download and recovery options in it).

Finally I would like to get rid of 4-way reboot sub-menu and add recovery and download to the main menu in addition. (not necessarily having Screen capture option)
[Galaxy S II General] Vivek_Neel:
[MENTION=374441]many[/MENTION] [MENTION=5067299]Jeetu[/MENTION]

This thread might be useful. .for editing smali...I learnt. .At last.

Hope this helps u guys

http://xdaforums.com/showthread.php?t=2251719
[Galaxy S II General] MyLifeRocks10:
Ah...I get it now. I thought u were trying to add screenshot toggle to power menu. But what u r trying to achieve may require a lot of work especially when android.policy.jar file is heavily modified.
[Galaxy S II General] Many40:
Would it work when I find out what changes were done for 4-way reboot (from one of the guides) then revert them, then implement changes for "New power menu" with two new options: "recovery" and "download"?

From your words it sounds it's rather currently too difficult form me, as being not much experinced in modding.
[Galaxy S II General] MyLifeRocks10:
It should work if u find out all the differences and correctly revert them. Maybe look here for 4 way reboot code. It should give u an idea where to start with.;)
[Galaxy S II General] Many40:
Have just done this but seems it was not enough - this time phone even didn't boot. And what interesting, after replacing framework-res.apk and android.policy.jar to previous/working ones still had bootloop. :confused:

At last I recovered from it by restoring data partition.

As next step I will try to apply the mod on pure/clean android.policy.jar, just to check if it works for me.
[Galaxy S II General] :
[MENTION=225651]op[/MENTION] -BBB

And all other Devs And Mates,

Can anyone guide me that how can I port the lidroid toggle for other devices. I have MTK 6577 devices. Any help on this will be appreciated.

I have tried Wanam Sir's guide but SystemUI fc everytime.

I changed the id of ex power-stat.

Please can any dev guide me on this.
[Galaxy S II General] bombaybadboy:
I have to be honest and say I really dont have a clue. I have read a little about MTK 6577 and just thought of it as a cousin to the i9300. How close is the smali code and have you tried guide in second post yet?
[Galaxy S II General] :
The smali coding as according to yours 2nd post is almost same.

Just a few difference after lines. Other than this no major difference.

I you want to have look on this....

Then I can give you my phonestatusbar.smali and statusbar expanded.xml

"Hitting Thanks Don't Cost You Anything, so, Why Don't You Try Hitting It Once. "
[Galaxy S II General] bombaybadboy:
I dont always have access to pc and most of the time im only on my device (like now). I struggle to manage a 2 hours a day. So have you tried modding your systemUI using that guide. Im not sure if the lidroid apks from the guide would be compatible for your device. I havent even tried building mods for i9300. My guess tw_status_bar_expanded will simular but unsure about your statusbar.smali.
[Galaxy S II General] BryanChia:
:P
[Galaxy S II General] engloa:
Sorry, but what's the mtk 6577, can't check from phone. I assume you're using JB?
[Galaxy S II General] MyLifeRocks10:
Although I prefer 4-way reboot menu, I did this just to test it for u.;)
[Galaxy S II General] :
Sir,

The interesting thing is that our status bar expanded is different and smali files are almost same. Like all your V9 is my V9 and V10 as V10. But still i need some help in editing the smali.

I am from management stream so technically I am almost like blind crossing the road.

Yes Sir,

We have JB 4.1.1 and MTK is MediaTek Devices, the chipset we have in our phone like exynos in S2.

Now will some one guide me to smali editing. How to replace the lines. Or how to change it.

"Hitting Thanks Don't Cost You Anything, so, Why Don't You Try Hitting It Once. "