Need help - Sprint Samsung Galaxy Note II

Okay so I have been using the androidmenifest of 4.1.1 on my ma7 4.1.2 to make the flashlight and reboot toggles to work but ive been using the MC2 systemUI 4.1.2 got everything right but the flashlight and reboot toogles still doesnt work I gave permission to both of them and it keeps FC'ing my whole systemUI... doesnt any1 know why ???
Any opinion on this, im open to suggestions anything.. the only think I havent tried is only do the 23 toggles and see the outcome but idk what else to do -___-
Sent from my SPH-L900 using xda premium

Mundo Hackz said:
Okay so I have been using the androidmenifest of 4.1.1 on my ma7 4.1.2 to make the flashlight and reboot toggles to work but ive been using the MC2 systemUI 4.1.2 got everything right but the flashlight and reboot toogles still doesnt work I gave permission to both of them and it keeps FC'ing my whole systemUI... doesnt any1 know why ???
Any opinion on this, im open to suggestions anything.. the only think I havent tried is only do the 23 toggles and see the outcome but idk what else to do -___-
Sent from my SPH-L900 using xda premium
Click to expand...
Click to collapse
MA7 did some things with systemui and a few other things that need modding.
The androidmanifest ROM MA7 requires a few line changes concerning CORE apps. After modding that one needs to resign the apk since the manifest has been changed upon recompile. Then one must modify the services.jar to disable a unified Sig check(your sysemui will be signed but not matching others).
If the toggles are written in correctly to systemUI, the manifest is modded, the systemUI is resigned(as a "platform" key), and services.jar modded to disable SIG check, your flashlight and reboot options will work like a charm. I did all of this to my Venum Ice ROM if you want to decompile and look at the manifest etc. If you Google "disable signature check services" you should get those how to's as well

sleshepic said:
MA7 did some things with systemui and a few other things that need modding.
The androidmanifest ROM MA7 requires a few line changes concerning CORE apps. After modding that one needs to resign the apk since the manifest has been changed upon recompile. Then one must modify the android.policy.jar to disable a unified Sig check(your sysemui will be signed but not matching others).
If the toggles are written in correctly to systemUI, the manifest is modded, the systemUI is resigned(as a "platform" key), and android.policy modded to disable SIG check, your flashlight and reboot options will work like a charm. I did all of this to my Venom Ice ROM if you want to decompile and look at the manifest etc. If you Google "disable signature check android.policy" you should get those how to's as well
Click to expand...
Click to collapse
I gave permission to camera and reboot but nothing so I think only way is disable the sig and hopefully it will work
When I compile I just copy the mexa-inf right because the androidmenifest is modded
Sent from my SPH-L900 using xda premium

Mundo Hackz said:
I gave permission to camera and reboot but nothing so I think only way is disable the sig and hopefully it will work
When I compile I just copy the mexa-inf right because the androidmenifest is modded
Sent from my SPH-L900 using xda premium
Click to expand...
Click to collapse
Meant to say services.jar not android.policy the second i hit submit the forums went down and couldn't change it (at work and distracted )
Not sure what you mean by "permission", This is what I would suggest doing, it is too easy to use zip signer to sign an apk than to copy and paste a meta-inf folder not knowing if that's the issue.
1) decompile my venum ice systemui and look at the android manifest, change your first line to look like mine, its a small edit.
2) use zip signer to sign newly compiled systemui(with modded android.manifest) with Platform key
3) mod services.jar using this http://forum.xda-developers.com/showthread.php?t=1698352

sleshepic said:
Meant to say services.jar not android.policy the second i hit submit the forums went down and couldn't change it (at work and distracted )
Not sure what you mean by "permission", This is what I would suggest doing, it is too easy to use zip signer to sign an apk than to copy and paste a meta-inf folder not knowing if that's the issue.
1) decompile my venum ice systemui and look at the android manifest, change your first line to look like mine, its a small edit.
2) use zip signer to sign newly compiled systemui(with modded android.manifest) with Platform key
3) mod services.jar using this http://forum.xda-developers.com/showthread.php?t=1698352
Click to expand...
Click to collapse
uses-permission placed on manifest so that way camera and reboot will function

Mundo Hackz said:
uses-permission placed on manifest so that way camera and reboot will function
Click to expand...
Click to collapse
When I said "I'm not sure what you mean" you should have taken that as "it has nothing to do with making it work" lol. Only way to make it work is do exactly what I said, done it several times now from scratch.

sleshepic said:
When I said "I'm not sure what you mean" you should have taken that as "it has nothing to do with making it work" lol. Only way to make it work is do exactly what I said, done it several times now from scratch.
Click to expand...
Click to collapse
did not work -___-

Mundo Hackz said:
did not work -___-
Click to expand...
Click to collapse
Then it wasnt done right frankly, I couldn't go into great detail but that was the jist of it. It works, like I said done it several times now from scratch each time.
Did you resign the apk yourself? Did you mod the services.jar and it boots? Was the android.manifest properly modified so systemui is a core app?
What did you do? And how

sleshepic said:
Then it wasnt done right frankly, I couldn't go into great detail but that was the jist of it. It works, like I said done it several times now from scratch each time.
Did you resign the apk yourself? Did you mod the services.jar and it boots? Was the android.manifest properly modified so systemui is a core app?
What did you do? And how
Click to expand...
Click to collapse
okay modded the services.jar and it booted..
i decompiled your systemUI and it was the same as mine ..
the zip signer is a tool that i download from google right
??

Mundo Hackz said:
okay modded the services.jar and it booted..
i decompiled your systemUI and it was the same as mine ..
the zip signer is a tool that i download from google right
??
Click to expand...
Click to collapse
Use a diff program to look at the android.manifest if you don't see the diff, its not the same. Its an addition to one of the first lines
If you didn't change your manifest and it was left stock that is your issue. None of the steps can be skipped

sleshepic said:
Use a diff program to look at the android.manifest if you don't see the diff, its not the same. Its an addition to one of the first lines
If you didn't change your manifest and it was left stock that is your issue. None of the steps can be skipped
Click to expand...
Click to collapse
i added this android:sharedUserId="android.uid.system" androidrocess="system

Mundo Hackz said:
i added this android:sharedUserId="android.uid.system" androidrocess="system
Click to expand...
Click to collapse
That looks right but then again I'm at work dealing with annoying customers so I can't really double check.
It should be the only diff between your MA7 manifest from systemui and mine, so honestly there's not much more I can say than copy the one line that's diff up toward the beginning. Then resign, and mod services.

sleshepic said:
That looks right but then again I'm at work dealing with annoying customers so I can't really double check.
It should be the only diff between your MA7 manifest from systemui and mine, so honestly there's not much more I can say than copy the one line that's diff. Then resign, and mod services.
Click to expand...
Click to collapse
I got it working well the thing I did was get a zip signer from the app store than I just singed it thru my phone and just tried and it worked even the brightness works now without any problems
Sent from my SPH-L900 using xda premium

Good, glad you got it. Everything will work now :thumbup:

Ok...I guess I'll throw a question in here since it sounds like were playing with the same things. Lol
I just got the 15 toggles working fine. I was porting a theme over from the s3.
Only after testing did we notice its using a 4bar signal. I edited the integers.xml to increase the max higher and its refusing to do it?
Ive looked all over. Only thing I had was that it was also using the stat signal as opposed to the tw signal pngs
Any thoughts on where else I can look?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

cbucz24 said:
Ok...I guess I'll throw a question in here since it sounds like were playing with the same things. Lol
I just got the 15 toggles working fine. I was porting a theme over from the s3.
Only after testing did we notice its using a 4bar signal. I edited the integers.xml to increase the max higher and its refusing to do it?
Ive looked all over. Only thing I had was that it was also using the stat signal as opposed to the tw signal pngs
Any thoughts on where else I can look?
Click to expand...
Click to collapse
To me it work my guess is to get the ones and xml files the same . So no conflict you know
Wolfed out Note Dos

Related

[Utility] HnyTool - apktool updated for Honeycomb (Updated 5/13)

I've been slowly working on fixing a number of issues with apktool which will hopefully help some of you guys out with your theming/etc. As a first release, this is unlikely to be perfect and I have not really tested this latest build so please post any issues you have.
This is based on apktool 1.3.2 since that is the version with the source released (thanks Brut.all) which means there are some issues that weren't present in apktool 1.3.1. I'm far from an expert in reverse engineering and I haven't worked on any OSS projects before so this is really only meant to be a holdover until Brut.all picks the project back up. I believe he is waiting for the honeycomb source, but don't quote me on that. The name for this release is a bit of a misnomer since most of the issues were introduced with the Gingerbread SDK.
Anyways, onto the issues (hopefully) resolved:
- X-Large screen support (thanks fboldog)
- Multiple substitution strings
- Multiple substitution plurals
- Escape character issues introduced in apktool 1.3.2
This is meant for people already familiar with using apktool. See the apktool site for installation instructions
Update 5/13 - v1.1
-Renamed
-Fixed empty string error
-Included aapt from 3.1 sdk
This is great. Thank you!
Awesome! Not sure version I've been using, bignadad hooked me up a while ago for honeycomb. I'll be testing this one tomorrow when I get back to my comp.great work Sangreal!
Bazar617 said:
Awesome! Not sure version I've been using, bignadad hooked me up a while ago for honeycomb. I'll be testing this one tomorrow when I get back to my comp.great work Sangreal!
Click to expand...
Click to collapse
I've worked with bignadad on testing some earlier builds so it could be that. I also know bigrushdog has been working on his own fixes so it could be that too . Not sure about the status on that front
If it is the one I sent bignadad you should definitely upgrade to this one, as I've fixed a number of issues
I definitely will upgrade... the one I have works great for decompiling, couldn't use a recomiled apk tho. I'll report back tomorrow with how it works for me.
Xooming with Tapatalk
Getting verrrry near 100%. Decompiled perfectly (it was weird typing honeytool instead of apktool in cmd lol), compiled fine, I can now see the /xml folders in the recompiled apk, but still can't see the /values folders. One step closer tho.
I say that because there's some .xml's in the Values folders I want to edit and have to recompile. If theres anything I can do to help let me know (I'm not much of a programmer tho)
Thanks again!
the /values folder gets compiled into resources.arsc so you won't see it in the recompiled apk
As for the name, that would probably drive me nuts. I keep it as apktool locally, I just renamed it for distribution due to license
That does remind me though -- it should work with tools like APK Manager if you rename the jar to apktool.jar and replace the one that comes with the tool.
Sweet. The last build you shot me was real smooth. I'm gonna try this one out today. I've been sidetracked with a few other projects, so I haven't had much opportunity to focus here. Besides more and more HC source keeps dropping all the time. Soon we will have a solid smali which opens countless doors. Awesome job bro!
sangreal06 said:
the /values folder gets compiled into resources.arsc so you won't see it in the recompiled apk
As for the name, that would probably drive me nuts. I keep it as apktool locally, I just renamed it for distribution due to license
That does remind me though -- it should work with tools like APK Manager if you rename the jar to apktool.jar and replace the one that comes with the tool.
Click to expand...
Click to collapse
I was not aware of that. I'd say it's right at 100% then! But being in this business, you're probably thinking there's always room for improvement, I know I do lol.
So in theory I'd be able to edit something in the Values folder and use the .arsc file in the flashed apk and it'd show those changes? Just weary of taking steps no one else has (or is that how you did the UAstring mod?)
Yes, that is the theory. I did not use this tool though. I used fboldog's tool and manually fixed all of the compilation errors.
jim_panse was able to get it working using this tool though. See his thread here: http://forum.xda-developers.com/showthread.php?t=1064818
Didn't think of renaming the .jar, understandable about the licenses tho.
Looks like I've got a bit of trial and error in my path, thanks for the heads up! And thanks for the work on all this, we all appreciate it!
Wonderful work here!
Thank you very much for that
Sent from my Nexus S using XDA App
I have a problem, I edited the Stat_Sys_batt XML, recompiled, and pushed the framework back to my xoom but all it does is boot loop. Any suggestions?
Sent from my Xoom using XDA Premium App
That is probably a signature issue. Try copying the compiled xml into your original framework-res.apk and push that.
sangreal06 said:
That is probably a signature issue. Try copying the compiled xml into your original framework-res.apk and push that.
Click to expand...
Click to collapse
I tried that. The battery completely disappears when I do that. When I recompile the apk the first step says 'W: Could not find sources' could that be the issue?
Sent from my Nexus S using XDA App
What are you editing?
I just did a little bit in the framework, thanks for the heads up Sangreal!
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
*Shutting Down
Bazar617 said:
What are you editing?
I just did a little bit in the framework, thanks for the heads up Sangreal!
*Shutting Down
Click to expand...
Click to collapse
I'm editing the battery and charging animations. I'm trying to add the honeycomb looking circle battery with 1 percent increments
Sent from my Xoom using XDA Premium App
I tried this a while ago and it didn't bootloop, it just didn't display the battery (I tried doing tenths just to test, because they have it set up to do like 15, 28, 43, 57, etc, don't know what they were smoking then...)
Are you in drawable/stat_sys_battery.xml? I'm not sure if editing just that file will enable it to work in values other than the ones in there (ie, going to your 1% increments), because I'm pretty sure it's being told to only look for those battery increments and those images.
And Sangreal, not sure if this is completely ready for APKmanager yet. If you edit in the Values/ folder, when compiling you have to delete the specific edited xmls + .arsc files mid way thru, which it doesn't show you in the keep folder.
however, I was able to make xml edits inside the Values/ folder in APKtool using CMD, compiled correctly (after a few tries of wanting to add an apostrophe, I think now needs to be \' ), and just copied the resources.arsc file in to my themed framework or systemui and Viola! I think I tried using the "unsigned" version straight out of being compiled and the Xoom definitely doesn't like it.

[GUIDE] Font size in touchwiz ICS roms

So I've had some requests to recreate the edit to re-enable user selection of font size in the touchwiz Ice Cream Sandwich builds. I am not on touchwiz that much so I thought I would share it with the rest of the community in hopes that those who do put more time into touchwiz could incorporate it into their roms for everyone to use.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
The edit is actually quite easy, as the preference is simply being hidden in java. With that said, you need Settings.apk, smali/baksmali, adb knowledge, and some text editor
Instructions:
Pull Settings.apk from your phone. If you're cooking this into a ROM then obviously just grab Settings.apk from /system/app
Code:
adb pull /system/app/Settings.apk
Note: This assumes you are editing from a deodexed build. If you have an odexed ROM you can deodex your apk, make your changes, and then reodex.
Next you'll want to open the apk and pull out classes.dex. You can ultimately use apktool as well if it will work for you. I've been having some problems with classes and apktool on occasion and find baksmali to be a sure way to get it right. One you have classes.dex decompile it.
Code:
java -jar baksmali-x.xx.jar -o <[B]output directory[/B]> classes.dex
This will give you a decompiled smali output in the directory you used in bold above.
Navigate without the out folder to /com/android/settings/DisplaySettings.smali and open it with a text editor.
Look for the following, and remove the line in red from DisplaySettings.smali:
Code:
iget-object v0, v0, Lcom/android/settings/DisplaySettings;->mFontSizePref:Landroid/preference/ListPreference;
move-object/from16 v21, v0
[COLOR="Red"]invoke-virtual/range {v20 .. v21}, Landroid/preference/PreferenceScreen;->removePreference(Landroid/preference/Preference;)Z[/COLOR]
And that's the hard part. =P Now recompile the classes for your Settings.apk.
Code:
java -Xmx512M -jar smali-x.xx.jar <output from above> -o newclasses.dex
Rename newclasses.dex to classes.dex,you'll have to delete your original if you're in the same folder, and move the new compiled classes.dex back into Settings.apk.
Push Settings.apk back to your phone.
Code:
adb push Settings.apk /system/app
Change your font size in menu>settings>display
Hope this helps some of you and I look forward to seeing more ROMs with font sizes! =P
Great find and thanks for posting the guide! Did you ever find the edit to remove the AM/PM from the status bar?
dtm_stretch said:
Great find and thanks for posting the guide! Did you ever find the edit to remove the AM/PM from the status bar?
Click to expand...
Click to collapse
Haven't looked much on ICS TouchWiz yet.
whenever i try to use your method or apktool i get error when decompling. I'm able to decompile other apks like SystemUI.apk just fine. Any ideas?
graphic1982 said:
whenever i try to use your method or apktool i get error when decompling. I'm able to decompile other apks like SystemUI.apk just fine. Any ideas?
Click to expand...
Click to collapse
Yeah, some samsung apps don't recompile correctly with apktool. This is why I used baksmali to decompile instead.
still getting error when using baksmali
graphic1982 said:
still getting error when using baksmali
Click to expand...
Click to collapse
Have you tried the newest baksmali?
Sent from my SPH-D710 using xda premium
newest baksmali solved the issue. Also you may want to edit instructions to say delete every instance of the line in Displaysettings.smali. I only deleted it one time the first time i tried and the font size option didn't show up in settings>display. After I went back and deleted every instance of that line from the file it worked. Awesome job on showing how to do this mod and thanks for the help with my troubleshooting.
graphic1982 said:
newest baksmali solved the issue. Also you may want to edit instructions to say delete every instance of the line in Displaysettings.smali. I only deleted it one time the first time i tried and the font size option didn't show up in settings>display. After I went back and deleted every instance of that line from the file it worked. Awesome job on showing how to do this mod and thanks for the help with my troubleshooting.
Click to expand...
Click to collapse
Interesting. I'll look into it, thanks. All the ones I've posted for people here I've just re enabled the first list preference. Worked for me too when I tested it on fe16 and haven't heard otherwise for the few people that have downloaded the apk. But I'll double check just to be sure.
Sent from my SPH-D710 using xda premium
Anyone willing to provide a modified Settings.apk for download?
Dint even realize it was missing.
Thanks for showing everybody and creating a how to.
I will do this later this week.
i717 running Seraphim Stratosphere Collective ICS with tapatalk2
Default ICS Launcher ?
Does this work with the Default ICS Launcher ? Or can someone tell me where to find the settings in the ICS Launcher
Thank you
Curtisp said:
Does this work with the Default ICS Launcher ? Or can someone tell me where to find the settings in the ICS Launcher
Thank you
Click to expand...
Click to collapse
It should. However it doesn't seem to resize touchwiz launcher font. Never tried the ics launcher though.
Sent from my SPH-D710 using xda premium
Works as advertised. Excellent how-to, excellent post. For anyone not wanting to mess around with smali/baksmali, here's a modded Settings.apk from Calkulin's most recent FE22 ROM.
Will it work on sfhub's fe22 stock
Sent from my SPH-D710 using xda premium
Kchitown1977 said:
Will it work on sfhub's fe22 stock
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
It should, I don's see why not. There's only one way to find out. Copy this file to the /system/app directory using Root Explorer or something similar. Back up your own Settings.apk prior to that. If it doesn't work, replace it with the original file.
Kchitown1977 said:
Will it work on sfhub's fe22 stock
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
If you use a deodexed apk on an odex rom, it will work, however, youll want to remove the odex file as well.
S2 OK
Also work on Galaxy S2. Thk.

Remove Recent Apps

I use the RCMixS rom (with Htc Sense 2.1 + 3.0) and I'm trying to remove the Recent Apps' bar from the SystemUI menu.
I have been following 3 or 4 different guides, but no one worked for me...
Can anyone please help me removing the Recent Apps?
This is my SystemUI.apk
I hope that someone can help me
Thank you in advance,
Sbarabau
Sbarabau said:
I use the RCMixS rom (with Htc Sense 2.1 + 3.0) and I'm trying to remove the Recent Apps' bar from the SystemUI menu.
I have been following 3 or 4 different guides, but no one worked for me...
Can anyone please help me removing the Recent Apps?
This is my SystemUI.apk
I hope that someone can help me
Thank you in advance,
Sbarabau
Click to expand...
Click to collapse
Do u have the RCMix tweaks in settings? Coz u can disable the recent app in notifications there.
(requires reboot)
Sent from my HTC Desire
jmcclue said:
Do u have the RCMix tweaks in settings? Coz u can disable the recent app in notifications there.
(requires reboot)
Sent from my HTC Desire
Click to expand...
Click to collapse
No, I don't have RCMix Tweaks... In my case the only way to remove the recent apps is to modify the SystemUI.apk
I've followed several guides, but unfortunately no one worked for me...
Up....
Up...
Post a screen shot of what u have, then clearly state what u want to remove? Draw on the screen shot if u need to
Sent from my Galaxy Nexus using Tapatalk 2
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Yeah same problem .. but I found some nice step by step tutorial to remove it using apktool, i did exactly what it said but i could'nt edit some framework files and now i lost the link to the tutorial ...
Sbarabau said:
Click to expand...
Click to collapse
O I thought you were talking about something else, is your from deodex that your running? And what android version are you one?
Also upload your framework-res.apk
And com.htc.resources.apk
Sent from my Galaxy Nexus using Tapatalk 2
The way to do it,
Deconpile the syatemui.apk
At SystemUI\smali\com\android\systemui\statusbar - open the file StatusBarFlag.smali with
Find
Code:
sput-boolean v0, Lcom/android/systemui/statusbar/StatusBarFlag;->HTC_RECENT_APP:Z
Change to
Code:
sput-boolean v2, Lcom/android/systemui/statusbar/StatusBarFlag;->HTC_RECENT_APP:Z
runandhide05 said:
The way to do it,
Deconpile the syatemui.apk
At SystemUI\smali\com\android\systemui\statusbar - open the file StatusBarFlag.smali with
Find
Code:
sput-boolean v0, Lcom/android/systemui/statusbar/StatusBarFlag;->HTC_RECENT_APP:Z
Change to
Code:
sput-boolean v2, Lcom/android/systemui/statusbar/StatusBarFlag;->HTC_RECENT_APP:Z
Click to expand...
Click to collapse
I've already tried this but it force closes. Now i upload the framework and the com.htc.resources apks
SystemUI.apk is deodexed and I'm running Gingerbread 2.3.3
This is the link to download framework-res.apk and com.htc.resources.apk
com.htc.resources.apk: https://rapidshare.com/files/4035992333/com.htc.resources.apk
framework-res.apk: https://rapidshare.com/files/646835451/framework-res.apk
Thank you for the help you're giving to me
Let me ask u this, you say it causes force close,
Have you tried to decompule the systemui and DO NOT make any changes and simply recompile the apk, then push to your phone? Try this and see if the systemui still force closes, I have seen APKTOOL mess up a LOT of HTC apks when recompiling , try that and report back
Sent from my Galaxy Nexus using Tapatalk 2
runandhide05 said:
Let me ask u this, you say it causes force close,
Have you tried to decompule the systemui and DO NOT make any changes and simply recompile the apk, then push to your phone? Try this and see if the systemui still force closes, I have seen APKTOOL mess up a LOT of HTC apks when recompiling , try that and report back
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
I've tried as you said, and it doesn't work
First I tried to decompile, recompile and pushing the file... I rebooted and SystemUI didn't start...
Then I tried to recompile with his META-INF datas... the result is the same...
Can you please try to edit the SystemUI.apk and give me it back, to see if I am doing something wrong or not?
Thank you in advance
Sbarabau said:
I've tried as you said, and it doesn't work
First I tried to decompile, recompile and pushing the file... I rebooted and SystemUI didn't start...
Then I tried to recompile with his META-INF datas... the result is the same...
Can you please try to edit the SystemUI.apk and give me it back, to see if I am doing something wrong or not?
Thank you in advance
Click to expand...
Click to collapse
Okay,
in this zip is four SystemUI.apk
each one is in its own folder, there are two sets, one set i made NO changes to the smalis, just decompiled and then rebuilt, one is a distro, and one is a little bit of a different way to use apk (but i have noticed it to work best when dealing with HTC)
try both, remember to set your permissions correctly on the apk after you move it to /system/app then reboot.
if one of the ones that i did not change the smalis on works, use the corresponding files in the remove recent apps folder
for example
if the no changes distro build works and does not casue force close, go straight to the removed recent apps folder labels disrto and use that one.
hope this helps you out,
by the way, what part of Italy are you from?
zip
https://www.box.com/s/80233766e0e29235614f
runandhide05 said:
Okay,
in this zip is four SystemUI.apk
each one is in its own folder, there are two sets, one set i made NO changes to the smalis, just decompiled and then rebuilt, one is a distro, and one is a little bit of a different way to use apk (but i have noticed it to work best when dealing with HTC)
try both, remember to set your permissions correctly on the apk after you move it to /system/app then reboot.
if one of the ones that i did not change the smalis on works, use the corresponding files in the remove recent apps folder
for example
if the no changes distro build works and does not casue force close, go straight to the removed recent apps folder labels disrto and use that one.
hope this helps you out,
by the way, what part of Italy are you from?
zip
https://www.box.com/s/80233766e0e29235614f
Click to expand...
Click to collapse
I've tried them all and the only one who worked for me is the one under "/decomp then rebuilt/no changes build/SystemUI.apk"
P.s: I'm from northern Italy
Sbarabau said:
I've tried them all and the only one who worked for me is the one under "/decomp then rebuilt/no changes build/SystemUI.apk"
P.s: I'm from northern Italy
Click to expand...
Click to collapse
did all the others cause force close?
PS i ask cause my family is from Bari
edit:
try this one
runandhide05 said:
did all the others cause force close?
PS i ask cause my family is from Bari
edit:
try this one
Click to expand...
Click to collapse
Force close again...
-------------------------------------------------------
Build not modified: worked xD
Distro not modified: no force close, but it didn't start
Build modified: force close
Distro modified: force close
-------------------------------------------------------
P.S: I'm from Mantova
Sbarabau said:
Force close again...
-------------------------------------------------------
Build not modified: worked xD
Distro not modified: no force close, but it didn't start
Build modified: force close
Distro modified: force close
-------------------------------------------------------
P.S: I'm from Mantova
Click to expand...
Click to collapse
ok, then clearly the same mod does not work as it use to.
but atleast the recompile works(kinda)
once u build the apk, open the original apk in 7zip and open the file directory in apktool /systemui/build/apk and copy everything but the AndroidManifest into the archive of the orginal apk.
see pic
runandhide05 said:
ok, then clearly the same mod does not work as it use to.
but atleast the recompile works(kinda)
once u build the apk, open the original apk in 7zip and open the file directory in apktool /systemui/build/apk and copy everything but the AndroidManifest into the archive of the orginal apk.
see pic
Click to expand...
Click to collapse
Still force close

[Guide] Transparent background - framework-res.apk Contacts.apk [ICS-JB]

This is a simply method to set a transparent background on framework-dependent apks and Contacts.apk.
1. Using Photoshop or similar create a trasparent image (% as you wish) and save it as .png. If you insert a texture or image, use your device resolution for better results. Make two copies and rename its as "background_holo_dark.png" and "background_dial_holo_dark.png"
2. Decompile framework-res.apk. You can follow this great guide
3. Browse to res/values and open styles.xml. Search code for "<style name="Theme.Holo" parent="@style/Theme">"
4. On it, search this line "<item name="windowShowWallpaper">false</item>" (using Komodo is line 1006) and replace values with true. Save and close.
5. Browse to res/drawable-nodpi and replace existing background_holo_dark.png with your image
6. Recompile framework-res. You may refer to guide posted above
7. Using winrar or similar browse into Contacs.apk to res/drawable-nodpi and replace existing background_dial_holo_dark.png with your image (simply drag&drop, be careful to set compression to Store)
8. Replace framework-res and Contacts.apk on your device (Root explorer, adb, flash through recovery). Personally I also clear cache and dalvik cache
9. Enjoy your modded apks!
After the editing of framework-res.apk you may visit this thread to download also my transparent calendar and mms apks!
Remeber: always perform backup before replace any system file! Also, I'm no responsible for any problems that may occure on your phone
Attached you can find two transparent background 480x800
Here some screenshots (second one from esk02k)
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
-----------------------------------------------------------------------------
P.S. Of course, this method allows you to change backgroung also with any non transparent image. You simply have to rename your two image copies as reported in point 1. Then replace the original file using winrar or similar as in point 7. You don't need to decompile framework-res.apk in this case!
Thanks but can I use 7zip
I don't like to Decompile and decompile process I think it's hard
You can use 7zip to replace image on Contacts.apk, but you need to decompile framework-res.apk to modify styles.xml.
If you follow the linked guide you will see that compile/decompile apks is not so difficult!
Sorry
What link do you mean ?
nice, thanx.
But one question, do you know how to change the color of font in contacts? ie. from black to white? like how it is in dial...
Kadhim7 said:
Sorry
What link do you mean ?
Click to expand...
Click to collapse
This one
Sorry, I've forgotten to add link on first post, fixed.
Thanks it came out real nice. I settled on 60% transparency. Heres a screenshot for the op if you want it :
(using galaxy pack livewallpaper)
esk02k said:
Thanks it came out real nice. I settled on 60% transparency. Heres a screenshot for the op if you want it :
Click to expand...
Click to collapse
Taken!
Hi is it possible for you to make the stock calendar background transparent??? I hate the stock look!!.
can we use VRT universal theme flasher for CM9 Roms?
replacing framework-res usually deletes every account registered on the device. I used vrt zips on stock-based Roms easilly. but when I was trying to use it on a CM9 Rom iit just crashed everything.
sam5154 said:
can we use VRT universal theme flasher for CM9 Roms?
replacing framework-res usually deletes every account registered on the device. I used vrt zips on stock-based Roms easilly. but when I was trying to use it on a CM9 Rom iit just crashed everything.
Click to expand...
Click to collapse
During last days I've replaced framework-res about one hundred of times I think, and I never lost any account. Don't know what VRT is, I usually flash new framework-res with recovery.
sam5154 said:
can we use VRT universal theme flasher for CM9 Roms?
replacing framework-res usually deletes every account registered on the device. I used vrt zips on stock-based Roms easilly. but when I was trying to use it on a CM9 Rom iit just crashed everything.
Click to expand...
Click to collapse
Yea you can. Im using a zip I posted here. Its by Villain team and JRsoft. I haven't had any problems with it. This ones set up to replace the whole framework though so dont flash it on anything other than paranoid 1.6.
Hi,
This material is gold, my friend, thank very much.
But, i followed every single step on this, but i can't get transparency in contacts, only in phone application, and all the rom...very cool.
But my contacts background it's completely dark.
I also changed framework, inside res/drawable-nodpi, background_holo_light.png to a transparent png file with the same name....but didn't worked also...
So, what to do?
ruicc said:
Hi,
This material is gold, my friend, thank very much.
But, i followed every single step on this, but i can't get transparency in contacts, only in phone application, and all the rom...very cool.
But my contacts background it's completely dark.
I also changed framework, inside res/drawable-nodpi, background_holo_light.png to a transparent png file with the same name....but didn't worked also...
So, what to do?
Click to expand...
Click to collapse
use the contacts.apk I posted in the zip above. Backup yours first of course, it can be found in the extras/system/app folder of the zip.
Many thanks, esk02k, it worked like a charm...
But, what's the difference between this one and the one i used? (F1 rom, from faryaab) Did you change anything else on this?
Cheers
esk02k said:
use the contacts.apk I posted in the zip above. Backup yours first of course, it can be found in the extras/system/app folder of the zip.
Click to expand...
Click to collapse
Hi,
Here' the good MOD : ww.phonandroid.com/forum/rom-andyx-4-0-4-v5-t16615-1490.html#p297978
It's is normal you've only phone.apk transparent.
Having contacts.apk too, you need edit xml and compile it.
ocenis64 said:
Hi,
Here' the good MOD : ww.phonandroid.com/forum/rom-andyx-4-0-4-v5-t16615-1490.html#p297978
It's is normal you've only phone.apk transparent.
Having contacts.apk too, you need edit xml and compile it.
Click to expand...
Click to collapse
I didn't find any "how to" about transparency on that thread...just a guy who post some pics of transparency and said it was very easy.....
So, everyone is telling "need to edit xml on contacts.apk and compile"...i'm tired of know that...it would be more useful say which files, where and what to do.
Cheers
esk02k said:
use the contacts.apk I posted in the zip above. Backup yours first of course, it can be found in the extras/system/app folder of the zip.
Click to expand...
Click to collapse
The easiest way is taking my files.
Compiling AOKP contacts.apk gives a lot of problem. It's a know bug and any tools can compile it correctly.
(excuse me for my bad english, I'm french)
ocenis64 said:
The easiest way is taking my files.
Compiling AOKP contacts.apk gives a lot of problem. It's a know bug and any tools can compile it correctly.
(excuse me for my bad english, I'm french)
Click to expand...
Click to collapse
But, what about the rest of the rom? I saw that mms.apk and the rest are transparent...
ruicc said:
But, what about the rest of the rom? I saw that mms.apk and the rest are transparent...
Click to expand...
Click to collapse
The rest is the framework See the title, you're in the right thred !
Yes, MMS.apk is transparent too.
If you don't want it, remove it from the zip.

[GUIDE] Changing status bar icons by editing framework-res.apk and lots more

So friends, here is a quick and easy guide for changing the status bar icons of your Gingerbread(Actually any phone )
For those who don't know how to do it(for anyone actually :highfive
Theory
Android is the awesome platform which is easily configurable and is able of being edited very easily
The icons used in every app and Android framework are located as png images in apk of those respective apps in location:-
*.apk/res/drawable-mdpi (in my case, as our phone is mdpi)
So, we can change any icon of our status bar like battery, signal, (not clock[clock is to be configures in SystemUI.apk{will post how to change it shortly}]), etc by editing png's in framework-res.apk
Not even that, you can edit images of any app as I told you
There are several ways to decompile and compile apk in which we have made change
If we want full access of apk and want to change every thing like the xml's in it and smali content in jar files, then we would have to do it on computer by apktool or apkmanager
But, we are here to only change image, so we would not go in detail of apktool or apkmanager. For changing images, that can be very easily done even on the phone by an app NinjaMorph that is made for developers by our senior head and DEVELOPING LEGEND Stephen(Stericson)
But be careful as backing up the original file if you do something wrong
And as you all know any developer or even a newbie posting something interesting that you want to try WILL NOT BE RESPONSIBLE for your mobile blowing up, resting in peace, sleeping like a dead, behaving like a non-living BRICK, or anything whatsoever that may or may not happen to phone in this universe or any other universe known or unknown
What to do if anything happened to my mobile
We have had a backup of your original file so we can restore it
But if while editing the system files like framework-res.apk
If you deleted some un-backed up apk's
Well you can always have backup of your ROM and that is why Koushik Datta has made clockworkmod Recovery
You can restore your ROM from there
Pre-Requisites
Patience
Mind
A Android (A spare one if you brick your phone, just kidding)
Root access(to change the apk)
NinjaMorph(http://bit.ly/ninjamorph)
Root Explorer(Optional)(http://bit.ly/stericson)
GUIDE
So Let's Start
Download NinjaMorph. Install it and give it root access. It will prompt for starting checks. Click on start checks.
Now you would have three options, namely, New Project, Finish Project, Existing Project
Click on new project. Go to system/framework/ and click on framework-res.apk. It will start extracting files
Once it has extracted all the files, it will open to show you what is inside framework-res.apk.
Exit it and go to your file explorer.
Go to /sdcard/AndroidThemes/workspace/framework-resapk
This is what is inside apk. Go to res/drawable-mdpi folder
There you will see hundreds of icons of your menu, lockscreen, battery, signal, and everything
You can edit them and replace them as you want. But the name of the file you are replacing and size and dimension must be equal to the file you are replacing with(I recommend Googling and finding icons of battery, signal, and other things)[I have even used hdpi icons, there was no problem]
If you download a theme file which is to be flashed in recovery that is not for your phone, no problem, extract the zip and place its framework-res.apk in your sdcard and extract the apk with Ninjamorph. Replace your icons with its icons and TADA
After you have done replacing the icons and you are satisfied(I am never)
Go to NinjaMorph. Click on Fininsh Projects. Click on framework-resapk. It will recompile and ask to replace the original apk with modded one. Click OK
Then it will ask if you want to remove the completed project, Say No(As you would need it if something gets wrong)
Reboot your phone
Maximum chances are that your icons will be replaced. Rare cases have their status bar gone or no change, if so:-
Download(Buy) Root Explorer. Go to /sdcard/AndroidThemes/workspace,
There you will see framework-res.apk. Copy it and go to /system/framework
Mount as R/W
Paste the apk. If it asks that file already exists, overwrite it.
SET PERMISSIONS
Long click on framework-res.apk and click on permissions
You will see three columns
Read Write Execute
You have to set them in the following way
x means you have to tick it
blank means uncheck
Read Write Execute
.....x........x.................
.....x...........................
.....x...........................
Click OK
You will see it as rw-r--r--
Reboot
Do it over again if nothing happens
Enjoy
This way you can edit not only framework-res.apk but any apk
Treat
This section is different from the thread topic
I: Faking Up
Want to make your device show Jelly Bean in About Phone
Go to Root Explorer
Go to /system
Long click on build.prop
Click on Open in a Text Editor
Change the files as
ro.build.display.id=Jelly Bean
ro.build.version.release=4.1.4
Save Changes
Reboot
II: Easter Egg
You all must know that an image of GingerBread Zombie comes up when you repeatedly click on Android Version in Setting>About Phone
Wanna change it to look like Jelly Bean?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Extract framework-res.apk
Go to res/drawable-nodpi
You will see platlogo.jpg
Replace it with the file in attachment
Recompile
Reboot
Troubleshooting
Will find and update it
Tell me what problems are you having
Nice guide. How to change color of clock in gingerbread because white is ugly? Maybe you can add that in future.
Verstuurd van mijn GT-S5660
FlemishDroid said:
Nice guide. How to change color of clock in gingerbread because white is ugly? Maybe you can add that in future.
Verstuurd van mijn GT-S5660
Click to expand...
Click to collapse
Yes
It is a tedious process
By editing smali files of classes.dex of SystemUI.apk
BUMP
which file do you you need for notificationbar background???
jkoetsier said:
which file do you you need for notificationbar background???
Click to expand...
Click to collapse
Add @amdroid:background @ frawable/statbarbg
In statusbar tracking.xml
Then add statbarbg.png in drawable-mdpi
For gb clock u need to do smali
Devilsking has made good guide
Sent from my ST25i using xda app-developers app
Thanks man, its working!!
Sent from my GT-S5660 using xda premium
SpaceCaker said:
Add @amdroid:background @ frawable/statbarbg
In statusbar tracking.xml
Then add statbarbg.png in drawable-mdpi
For gb clock u need to do smali
Devilsking has made good guide
Sent from my ST25i using xda app-developers app
Click to expand...
Click to collapse
*android
BUMP
BUMP
BUMPS are unneeded, if theres nothing to say, dont do it.
Sent from my GT-S5660 using xda app-developers app
Bigger PNG's
Quick question, I know this is an old topic, but upon googling I found this and I feel that my question sort of belongs here. Not even sure if OP is still around to look at this thread, but here goes:
I swapped out a png image for the statusbar icon of an app called CoolSymbols (not using this guide, but using APK Multi tool, but I imagine that the png sizes will have to be the same). Now, this app had a quite ugly statusbar icon, with jagged edges. I replaced it by a circle icon. This circle is pretty much the same size as the previous icon, so the icon looks jagged as well.
Here is the question: Do I simply make a bigger png image, so it will get cropped <---- doubt this
or do I create another folder like res/drawable-hdpi, but for xxhdpi (drawable-xxhdpi???), and if so will that fix the problem, or will I also have to point to that folder somewhere in another file <--- probably the way to go
I hope someone can help me out here!
(PS: I hope my issue is clear from the text above, I don't have a possibility to post proper screenshots until tomorrow, but they will be provided if needed)
(Also I'm sorry if there may have been a more recent topic about this, then I totally missed this!)
JaySilverMusiq said:
Quick question, I know this is an old topic, but upon googling I found this and I feel that my question sort of belongs here. Not even sure if OP is still around to look at this thread, but here goes:
I swapped out a png image for the statusbar icon of an app called CoolSymbols (not using this guide, but using APK Multi tool, but I imagine that the png sizes will have to be the same). Now, this app had a quite ugly statusbar icon, with jagged edges. I replaced it by a circle icon. This circle is pretty much the same size as the previous icon, so the icon looks jagged as well.
Here is the question: Do I simply make a bigger png image, so it will get cropped <---- doubt this
or do I create another folder like res/drawable-hdpi, but for xxhdpi (drawable-xxhdpi???), and if so will that fix the problem, or will I also have to point to that folder somewhere in another file <--- probably the way to go
I hope someone can help me out here!
(PS: I hope my issue is clear from the text above, I don't have a possibility to post proper screenshots until tomorrow, but they will be provided if needed)
(Also I'm sorry if there may have been a more recent topic about this, then I totally missed this!)
Click to expand...
Click to collapse
You need to create an image of correct pixels according to your phone's dpi
Have a look here - http://developer.android.com/design/style/iconography.html

Categories

Resources