yashsingh1/xdaforums huggingface dataset:
[Galaxy S II General] Vivek_Neel:
Its good mate.

.

you are asking questions and learning..

But questions should live in appropriate thread..
[Galaxy S II General] MyLifeRocks10:
It's OK to ask questions but u are asking without searching and reading guides properly. If u take sometime to read those guides in detail then u will find it alot easy.;)
[Galaxy S II General] Vivek_Neel:
Any fix for recompiling framework-res.apk with apktool?.

Tried to recompile without any changes.

But i got error something written like "plurals "
[Galaxy S II General] BryanChia:
i did look at this post #8 - #9 --> http://xdaforums.com/showthread.php?t=2203166

i dont seem to understand.. plus im really confuse with this, of course you guys know how to do it :o

like i download 9patch app, tried to open it, app doesn't even show up :{ /.\

and also for this SDK, 4.1.2, do i need anything from there ?
[Galaxy S II General] tdunham:
I haven't seen this in a very long time. Going by the errors you are getting, only edit the plurals files that are showing having issues:

http://rootzwiki.com/topic/16728-how-to-random-mods-for-the-do-it-yourself-er/

Edit: Search the page for the keyword 'plural' for the edits.
[Galaxy S II General] Vivek_Neel:
Ha ha..mate..

I just googled plurals error in apktool.

Found the Same rootzwiki website ..meep..

Anyways thanks
[Galaxy S II General] _Sale_:
You have to go the line 79 in each xml that gave an error and change:

<item quantity="other">%d of %d</item>

to

<item quantity="other">d of d</item>

:)

Edit: of course meeped
[Galaxy S II General] engloa:
[MENTION=649767]cfi[/MENTION], what version of apktool are you using. Maybe time to update it, forgot about that plurals error

sasa, i think you're the first meep in this thread. :)

Sent through my Neighbor's Open Wifi.
[Galaxy S II General] Vivek_Neel:
Mate..

An one which salesale provided me ..don't know which version is that?.
[Galaxy S II General] BryanChia:
im so confuse /.\
[Galaxy S II General] tdunham:
If you just type apktool at a command prompt, it will show you the version near the top of the dialogue. I will try to get a screencap and post it.

Edit: For instance, the version I am using is 1.5.1 as shown in the screencap.
[Galaxy S II General] _Sale_:
try apktool 1.5.2

apktool_1.5.2.zip - 4.14 MB
[Galaxy S II General] tdunham:
Also, its not a bad idea to download several versions of apktool.jar.

I rename them so I know which version is which ie. apktool.1.5.1.jar.

This way, if you have issues, you can copy the original and rename it to apktool.jar to troubleshoot compiling/decompiling issues. Old school technique that works for some stubborn apk files (try different versions of apktool). ;)
[Galaxy S II General] _Sale_:
Why?
[Galaxy S II General] bombaybadboy:
Thanks m8 I will take a look as soon as my internet working again :D . Im using my phone to follow this guide because I couldn't wait :D
[Galaxy S II General] Adi Aisiteru Reborn:
Thanks [MENTION=4987653]BOND1987[/MENTION] but is not mine,

that's exactly masterpiece of Recoginzed Themer [MENTION=3989065]serajr[/MENTION],. and that powerwidget.smali is in his Mod 4.2 statusbar V-7 for Xperia ICS ;)

I just ported to CM9 & CM10
[Galaxy S II General] Goldie:
If you guys look in statusbarpullLR or whatever it's called you will see where I added the switch to swap toggle/notification of sides if you are interested :)
[Galaxy S II General] bombaybadboy:
I have started from a fresh UI because im still getting errors from tw_statusbar.xml and tw statusbar_expanded.xml but just wanted to let guys no I followed the guide on this thread for 23 toggles and works fine no errors
[Galaxy S II General] cbucz24:
Think I got looked over :banghead:

I guess I just am not understanding what dip relates to what dpi...ive not found a list anywhere that says...if u edit it to these values it will be blah blah blah. ..sorry to bump my post. Ive always gotten something even a I dunno...

check out our rom website, http://updater.team-nocturnal.com/labrats/
[Galaxy S II General] bombaybadboy:
Sorry im not a fan of changing dpi so my answer is I dunno sorry
[Galaxy S II General] bombaybadboy:
Plus I have been quiet because I have bugs of my own im trying to fix :D
[Galaxy S II General] cbucz24:
Nice.. whats the stuff on the left supposed to be?

You trying to make all of the items up top? Or add extras? I thought of seeing what else I could throw up in there.

As far as changing dpi. I've never done it myself, it was a user request in one of my threads. I think im gonna give it a whirl an see what happens. ..its not like it would be the first time I had to restore my phone cuz I broke something.

If I was scared of that, I would have stopped years ago :D

check out our rom website, http://updater.team-nocturnal.com/labrats/
[Galaxy S II General] engloa:
have you checked out MyLifeRocks10 thread? might be a good place to start plus you can always ask him

bbb, how did you manage to get that expanded header icons:p:D
[Galaxy S II General] bombaybadboy:
Believe it or not m8 but I think thats progress, first time I had a setting button stretched across the top of the screen :D its slow work without internet but that gets fixed today :thumbup:
[Galaxy S II General] :
Sir,

Add a padding top with Dimens/tw_notification_panel_header_height.

And at the ID/sttings button line make the layout height and width wrap content....

It will be done fairly in this.

"""Hitting Thanks Don't Cost You Anything So Why Don't You Try Hitting It.......;););)"""

Sent From Mind Blowing Canvas Using SUVI-Heart Rom.....<3<3<3
[Galaxy S II General] tdunham:
Not sure if this applies to you guys, but I'm stuck.

When I enable AOSP lockscreen with ripple still enabled, it causes the phone to freeze if the phone is locked when rotated. If ripple is disabled, this is not an issue.

So... anyone know of a method to disable ripple if AOSP lockscreen is turned on? (without having to use the toggle of course) ;)
[Galaxy S II General] bombaybadboy:
Sorry afaik we dont have that problem m8, at least I dont. It automatically disables ripple without freeze for s2
[Galaxy S II General] Goldie:
If you are not bothered about lock rotation you can fix this. Either:

A) copy the portrait layouts and replace the landscape ones with them

Or...like sparky did....

b) replace the landscape layout id in the smali with the portrait one
[Galaxy S II General] ch3mistry2222:
Wow, is it 4.1.2? Or it's 4.2, isnt it?

If it's 4.1.2, how could u do it? Share me?????

Send from My GALAXY SIV I9500 using Tapatalk 4 BETA
[Galaxy S II General] bombaybadboy:
If you install Alliance rom you will have it in what colour you want :)
[Galaxy S II General] ch3mistry2222:
No no, i mean the column and row of toggles

Send from My GALAXY SIV I9500 using Tapatalk 4 BETA
[Galaxy S II General] bombaybadboy:
thats what i mean to, only person afaik has managed this is Goldieking, im trying to do it but always 1 step forward 2 steps back :rolleyes: so if you want that column and row of toggles then my reply still stands

but if you want to try yourself here http://xdaforums.com/showthread.php?t=2387626
[Galaxy S II General] :
[MENTION=535343]all[/MENTION] dev,

Can any of you sir-guide Me on the how to decompile and compile the. 9png and then how to draw a .9.png without getting the image distorted.

Trying it from 3rd December 2012 but still no hope for this. No tool no guide. All guides have a few things here and a few things there. Not the actual steps like we see in all the guides in this thread.

So please help me....!!!!!!!

"""Hitting Thanks Don't Cost You Anything So Why Don't You Try Hitting It.......;););)"""

Sent From Mind Blowing Canvas Using SUVI-Heart Rom.....<3<3<3
[Galaxy S II General] bombaybadboy:
Hi M8 how i worked out what little i no was from this, is this any help to you http://www.youtube.com/watch?v=IfrXE2R2nqM
[Galaxy S II General] ch3mistry2222:
I have try and give up in part 2/ step 4 =))))) couldnt find any code like him said

Send from My GALAXY SIV I9500 using Tapatalk 4 BETA
[Galaxy S II General] :
Once again successful in modding. And it's a historic moment for me from the time I born on XDA.

Today I modded the tricky .9.png and successfully.

Thanks a ton Sir [MENTION=4608459]bombaybadboy[/MENTION] & [MENTION=329777]highlander[/MENTION]

"""Hitting Thanks Don't Cost You Anything So Why Don't You Try Hitting It.......;););)"""

Sent From Mind Blowing Canvas Using SUVI-Heart Rom.....<3<3<3
[Galaxy S II General] bombaybadboy:
Did say it was difficult, im also having lots of trouble from it for a few days now
[Galaxy S II General] Joey2o11:
Why won't this work..

I'm trying to do the 1% battery mod on my JB S3 Mini (yes i know this the s2 forum but it's a lot busier than the s3 mini one so i'm hoping there's more chance someone can point out where i'm going wrong)

I've checked every guide i can find on xda and as far as i can tell i've done everything i need to i.e. copied the new png files to the correct folder and added the logic to the 2 xml files, but when i install the the new apk, nothing has changed, there's still no numbers on the battery. Tried wiping cache and dalvik cache, still no change. I've no idea what the problem is. Here's what i've done

Installed framework.res.apk using apktool

Decompiled SystemUI,apk

Edited xml files and copied new png files to folder

Recompiled

Copied across manifest and meta-inf files from old apk to avoid bootloop

Installed new SystemUI.apk

and nothing :(

Anyone have any pointers as to where i'm going wrong ?
[Galaxy S II General] bombaybadboy:
Log is always more helpful, Never worked on your device but possibly pngs need resizing. Have you decompiled your new apk to see if battery pngs are in there ?
[Galaxy S II General] tdunham:
The file look ok.

How are you installing the systemui file? Maybe it's not really getting replaced.

Or, you could use root explorer and copy the one out of system/app, decompile it and see if it is really the right one. (you see your changes in the one you pulled from the phone)
[Galaxy S II General] engloa:
Done:thumbup:

You recompiled, now try decompiling and recompiling the same apk again so that the new values in the xml are registered before installing the new apk
[Galaxy S II General] bombaybadboy:
Still throwing up errors in tw_status_bar_expanded.xml on adding toggles. I will get it, it will just take me longer :) just need more time on the pc
[Galaxy S II General] engloa:
If a noob like me can do it, you can do it too mate:)
[Galaxy S II General] bombaybadboy:
You have had a lot more practice m8 :) I will just deal with a few errors at a time if I can ever get on the pc today :D
[Galaxy S II General] Joey2o11:
It's definitely getting replaced, the timestamp matches up

---------- Post added at 12:56 PM ---------- Previous post was at 12:55 PM ----------

Tried it, no difference :(
[Galaxy S II General] Stryke_the_Orc:
You can set dpi via your build.prop, the problem with this is it changes the entire roms dpi, meaning you'd have to theme everything for the lower dpi. If it's a single app, honestly I'd just use the xposed module. I'm not sure about an xml edit for dpi, but I'd imagine it works the same way.

Slithering from the nether regions of a twisted mind and tarnished soul
[Galaxy S II General] CarlM34:
Help if possible

Hi all,

I need some help if possible?

I am updating one of my themes with a few extra .9.png changes (this has been a learning curve in itself :eek:) and adding a couple of extras that I have done via how to's and help from you guys in here. I have added Sense mod, bottom toggles to my theme but also want to add edgezoom which requires the framework.jar to be replaced.

How would I add this to the updater-script so it replaces the existing framework.jar but also then goes to VRT the rest of what I have themed......is this possible?

Can I just add this before everything else in the updater-script or will it cause issues as I am theming the frameworks also?

run_program("/sbin/busybox", "mount", "/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p12", "/preload");
package_extract_dir("preload", "/preload");
set_perm_recursive(0, 0, 0755, 0644, "/preload/symlink/system/app");
ui_print("Installing files");
package_extract_dir("system", "/system");
run_program("/sbin/busybox", "umount", "/system");
ui_print("");
[Galaxy S II General] Stryke_the_Orc:
:confused:

Not sure what you're getting at here, you're themeing framework and changing framework files, that part I understand.

So in your device the changes for edge zoom go to framework.jar, correct?

and your theme goes to framework-res, also correct?

These are two separate entities if the above is right, so you'd just install them over the current files in the directories.

I apologize if I've gotten this wrong and misunderstood you.

Slithering from the nether regions of a twisted mind and tarnished soul
[Galaxy S II General] CarlM34:
Yep..............Theming framework-res/twframework-res/lidroid-res.....all of which (as you know) reside in system/framework/*******.apk

Also as you know framework.jar also resides in system/framework/******.jar

My VRT script currently deals with theming the .apk's only....I just need to know what to add to this for it to replace the framework.jar file also?

I am not sure if I have explained this enough or not but I hope so...........:cyclops::eek:....or am I just being dim:laugh:

EDIT - Penny just dropped....me being dim (I think)....Will report back shortly!
[Galaxy S II General] Stryke_the_Orc:
Gotcha, all you'd need to do is add the jar to the frameworks folder of your zip and have the updater script write it to system/framework/

Slithering from the nether regions of a twisted mind and tarnished soul
[Galaxy S II General] bombaybadboy:
Hey guys is there a way to get a better log on not a error just a stutter in statusbar notification draw. I cant see a problem
[Galaxy S II General] Stryke_the_Orc:
You can try to filter the log

Slithering from the nether regions of a twisted mind and tarnished soul
[Galaxy S II General] cbucz24:
im not positive, but i believe the user is trying to do two things at once if im understanding him correctly.

your

one: trying to theme the framework-res.apk

two: replacing android.policy.jar with a new one

is this correct?

if so, I dont believe that vtheme zips have the capability to do two things at once. my team got me using. it works great. you may want to look into this one. not everything will work. some items just need to be flashed separately so dont force it.

UNIVERSAL FLASHER TOOL v.3.5"
by JRsoft & Intronauta"
based in <VillainTheme System>
[Galaxy S II General] Goldie:
Looks like you have a bit of a loop. It keeps setting up the powerwidget over and over again
[Galaxy S II General] bombaybadboy:
I was pulling down and up notification draw m8 and my toggles appear and dissappear as I do that. I never seen this mod before is it not suppose to do that?

Toggles all seem to work apart from the ones not really for our device like usb. I was going to try the lidroid smali from wanam folder with a few edits to add more toggles
[Galaxy S II General] Goldie:
Hmm not sure. I used an existing systemui with lidroid so im not using these files
[Galaxy S II General] bombaybadboy:
Hey m8 can I ask another question, im trying to add new toggles and connecting buttons and text to the smali but where would I look to connect eg multiwindowsbutton smali to :confused: im looking through the powerwidget. Smali's but havent seen anything yet
[Galaxy S II General] Goldie:
Why not use your existing lidroid files from the normal lidroid toggle mod to get all the usual buttons? You just need to use powerwidget from these to load the buttons in grid. The rest will work as is :)
[Galaxy S II General] bombaybadboy:
I didnt think that would work but I will try that next, thankyou m8
[Galaxy S II General] CarlM34:
:good::D:good::highfive:

Yep.....been playing with UFT all day today:eek:.....took a little patience and time to set it up how I needed and what I wanted to do(helps if you delete the correct .jar file in the first place - deleted services.jar and not framework.jar:silly::silly: first off and ended in boot-loop obviously..............but victory......managed to implement everything (so far) I wanted to. I think I have been converted to UFT now........Thank-you very much for the pointer.

Cheers :good:;)
[Galaxy S II General] Many40:
Hi,

Recently I implented Clock mod from this thread:

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

and everything is working well but one issue: when the clock is set as "Center clock" it doesn't disappear (as it should) while notification text pops up on status bar. When the clock is set as "Right clock" everything works well.

Is it a known issue? Does anybody know what code is responsible for that?

Thanks
[Galaxy S II General] bombaybadboy:
Hi mate does this help you http://xdaforums.com/showthread.php?p=43834801
[Galaxy S II General] Jeetu:
Mate try this method. http://xdaforums.com/showthread.php?t=2233204

This has fix text overlapping on centre clock which you are facing and new mods with ability to change clock and status bar color.

Cheers.. ;)
[Galaxy S II General] avirk:
Can anyone link me to modify the power menu? I want to change power options and look of it.
[Galaxy S II General] Jeetu:
See this - http://xdaforums.com/showthread.php?t=2262302
[Galaxy S II General] Many40:
Thanks mate for reminding me these hints. :good: Honestly I read every post on your thread but somehow must have forgotten some of them :)

Didn't know about this expansion. Thanks a lot, will give it a try.
[Galaxy S II General] Jeetu:
Yes this has fix for pulldown clock. When we change the real clock position. ;)
[Galaxy S II General] remuntada78:
Hi to all

i tried to follow this guide http://xdaforums.com/showthread.php?t=2141193and after the help of Jeetu now SecSettings work but now after follow the guide i have a issue with SystemUI because i've a fc with it

please help me
[Galaxy S II General] engloa:
logs would be useful. just saying you have fc's wont be much of a clue as to what went wrong
[Galaxy S II General] remuntada78:
ok i will try again and take log
[Galaxy S II General] Many40:
But (just checked it) doesn't fix text overlaping (notification and center clock which doesn't hide while notificationn pops up).

Will try Clock Statusbar Mod 3.0 by @ loserskater later.
[Galaxy S II General] Jeetu:
No mate this will not fix the text overlapping of centre clock.

The goldie guide is for like when we choose centre clock the pull down clock dissapper or if we choose big am/pm it also changes in pulldown clock. The goldi guide will fix this.

For text overlapping you have to use loserskater guide.;)
[Galaxy S II General] remuntada78:
i tried to take log

here's the file

View attachment log1.txt

View attachment log2.txt
[Galaxy S II General] remuntada78:
Any suggestion?
[Galaxy S II General] Goldie:
No fc in there
[Galaxy S II General] Goldie:
Just post the dumpstate from data/log after the fc
[Galaxy S II General] remuntada78:
Now i can't i'll try later but another thing is :when i flash the mod i lost the status bar
[Galaxy S II General] bombaybadboy:
On the first page there is a link to guide for making a log and the basics to understanding that log. Just saying statusbar dissappeared isnt a lot to go on
[Galaxy S II General] Goldie:
Well yeah...of course if systemui fc there is no statusbar
[Galaxy S II General] remuntada78:
try whit this:

View attachment logcat.zip
[Galaxy S II General] Goldie:
E/AndroidRuntime( 2285): java.lang.RuntimeException: Unable to create service com.android.systemui.SystemUIService: android.view.InflateException: Binary XML file line #6: Error inflating class com.android.systemui.statusbar.policy.ClockCenter

E/AndroidRuntime( 2285): Caused by: java.lang.ClassNotFoundException: com.android.systemui.statusbar.policy.ClockCenter

You are calling a class that you dont have by looks of it. Did you use someone elses phonestatusbar smali?
[Galaxy S II General] remuntada78:
I looked in my statusbar/policy and effectively i don't have ClockCenter.smali

Can i solve taking it from another SystemUI that has this mod?

or can i delete this line:

<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/center_clock_layout" android:layout_width="fill_parent" android:layout_height="fill_parent">

<com.android.systemui.statusbar.policy.ClockCenter android:textSize="@dimen/status_bar_clock_text_size" android:textColor="#ff959595" android:ellipsize="none" android:gravity="center" android:id="@id/center_clock" android:paddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />

</LinearLayout>

from my tw_status_bar.xml?
[Galaxy S II General] remuntada78:
ok i solved it by deleting those lines in my tw_status_bar.xml

thanks to all
[Galaxy S II General] Many40:
Finally (after some workaround/adjustments needed) I managed to implement Clock Statusbar Mod ver 3.0 to my phone by loserskater. It was worth it indeed.

Now I realize how much work devs have to put to make such mods :good:

So I have clock mod with fully customizable color+transparency for clock and status bar by ColorPicker. Status bar text overlaping is fixed as well. :)
[Galaxy S II General] engloa:
:thumbup:

Now this? :)
[Galaxy S II General] Many40:
You mean battery icon styles in display settings?
[Galaxy S II General] engloa:
Yep
[Galaxy S II General] Many40:
Why not :good: :)
[Galaxy S II General] Jeetu:
then here you go- http://xdaforums.com/showthread.php?t=2141193 ;)
[Galaxy S II General] Many40:
Too late, I know that already :p;) Thanks anyway for help :)
[Galaxy S II General] shockwaverider:
Could someone smarter than me give me a push in the right direction on this? I simply want to change the format of the statusbar clock. I know it's a smali edit in SystemUi, beyond that I don't know what I'm doing. I just want that leading zero gone. I guess I should also mention that I'm still on 4.0.4. Thanks guys!

Bonus points for doing the same thing with the lockscreen clock and date. :)
[Galaxy S II General] gaosphappy:
In 4.1.2 systemui I think what your looking for is in res/values/strings.xml couldn't guide you on 4.0.4 but at a guess these things stay similar through updates? Good luck
[Galaxy S II General] bombaybadboy:
thats enough for me today with a whole pile of errors trying to change gridview of wanam folders here is a log cat of errors that i have to deal with :( but still wont give up on this mod :good: tommorrow is another day :)
[Galaxy S II General] Many40:
So yesterday I started implementing battery mod:

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

to my phone but unfortunately I was stuck on the first part - SecSettings.apk :(

Unfortunately the code provided in the guide doesn't fit 100% to our phone (I should've expected this)

I struggled with this for a few hours - could compile without any errors but anytime I tried to enter display settings - it FC.

Fortunately, finaly solved this - problem was in DisplaySettings.smali :)

Now it's time for SystemUI.apk (believe it will be easier).
[Galaxy S II General] engloa:
I dont have an ICS rom anymore, but i guess you'll need to edit the clock smali inside sysui to get your desired status bar results

for lockscreen date and time, look in framework-res/res/values/strings.xml for numeric_date_format and change the entry
[Galaxy S II General] bombaybadboy:
tonights errors because i cant get PowerWidget.smali right, well start again tomorrow, this is my white whale now :D logs as always

dumpstate_app_error.txt
[Galaxy S II General] shockwaverider:
Thanks a lot, both of you. So far I'm 1 for 3 on these, I got the lockscreen date format to change (exactly what you said, engloa), but oddly enough the strings for the clock in framework-res are formatted without a leading zero (ie either h or H for the hour), but nevertheless the zero is there on the lockscreen. And yeah, I assume the statusbar clock is an edit in the SystemUi clock.smali (I didn't find any strings that would dictate clock formatting), but unfortunately I'm smali-illiterate and I have no idea what I would need to change in there.