[Q] Questions About virtual buttons - Galaxy S II Q&A, Help & Troubleshooting

Recently i have found a guide to add virtual buttons
Here: http://forum.xda-developers.com/showthread.php?t=1364757&nocache=1
I am willing to use it but before that i have some questions About it
After installing it will i be able to use the phone buttons (the hardware buttons)????
If i will do it.. What is the optimal navigation bar height for Samsung Galaxy Gt-I9100 S2????
What are the odds that it will brick my device???
Please help me to find answers quickly.
Thanks...

Doron12349 said:
Recently i have found a guide to add virtual buttons
Here: http://forum.xda-developers.com/showthread.php?t=1364757&nocache=1
I am willing to use it but before that i have some questions About it
After installing it will i be able to use the phone buttons (the hardware buttons)????
If i will do it.. What is the optimal navigation bar height for Samsung Galaxy Gt-I9100 S2????
What are the odds that it will brick my device???
Please help me to find answers quickly.
Thanks...
Click to expand...
Click to collapse
Yes u will be able to use your hardware buttons
I always use 24px height for nav bar
It will never brick your device...maximum you can get some bootloops..
Sent from my GT-I9100 using xda app-developers app

Thanks.. I guess i will install it then..

A little bit of more help
I have managed to decompile, edit, and recompile the apk
But still few stuff left unanswered
While recompiling i have got thi s line
W: could not find resources
And 8 warnings (something about language en_gb en_us and stuff like that)
Will it affect or brick my device if i use it???
Do i need to sign the app before use it???
Is zipsigner good enough????

Doron12349 said:
I have managed to decompile, edit, and recompile the apk
But still few stuff left unanswered
While recompiling i have got thi s line
W: could not find resources
And 8 warnings (something about language en_gb en_us and stuff like that)
Will it affect or brick my device if i use it???
Do i need to sign the app before use it???
Is zipsigner good enough????
Click to expand...
Click to collapse
If u r getting errors while compiling...
Don't use that apk
U have to sign the apk before using it..
Nd I don't knw about zipsinger
Sent from my GT-I9100 using xda app-developers app

Related

[Q]Change volume bar color and lockscreen clock font.

Hey guys, anyone can show me how change the volume bar color and the lockscreen clock font, so it looks the same as ICS. I'm using CM7. Please tell my exactly what to do (what I use to ''open'' and close'' the needed files, what to change, what possible files to change, etc), because my knowledge isn't good at this.
Thanks in advance.
Sent from my U20i using xda premium
You need to flash the ICS font. I think it was called roboto or something along these lines. Search the forum, you will find it. Its a zip file.
Regarding the volume bar though - think u need to change framework.apk. not sure tho.
Sent from my LG-P500 using xda premium
I don't think I need to flash the font. I use font changer, and it should change everything, even the clock, so I think it's framework related too, but I don't know how change it.
Sent from my U20i using xda premium
Never mind about the clock, I changed the Clockopia.tff for AndroidClock.tff and renamed it. But it still want to change the volume bar color.
Sent from my U20i using xda premium
Bump bump bump
Bump Bump BumpĀ“(sorry, I really want to change it.)
If you are rooted,copy framework-res.apk from your device and upload it hre,and do whatever modifications you want
uot.dakra.lt/kitchen/
MI310user said:
If you are rooted,copy framework-res.apk from your device and upload it hre,and do whatever modifications you want
uot.dakra.lt/kitchen/
Click to expand...
Click to collapse
I know that, but I have 3 MODs on my framework, and I must know what to change in the framework to change the color. There must be a code somewhere that says wich color is used for the bar.
you need to decompile framework. (there are milliond of guides on how) once done go to the res/drawable folder. In it look for the progress_horizontal.xml file. open that file with notepad or notepad++ to edit it. there are 3 sets of 3 colors in there. top group is for the background grey, you need to change the other two groups.
Also, if you know the hex color for ics off hand i will do the change and send you the file so you can drop it straight into the framework.
you need to decompile framework. (there are milliond of guides on how) once done go to the res/drawable folder. In it look for the progress_horizontal.xml file. open that file with notepad or notepad++ to edit it. there are 3 sets of 3 colors in there. top group is for the background grey, you need to change the other two groups.
Also, if you know the hex color for ics off hand i will do the change and send you the file so you can drop it straight into the framework.
Click to expand...
Click to collapse
Thanks for your help. I will try to find the hex color from ICS, and after that I upload my framework. But I won't turn on my PC today. Tomorrow, after I wake up, I will upload it.
EDIT: Found color code. Can make sure is this one (I am on my phone), but here is it: FF33B5E5
EDIT 2: If possible, take some screenshots and send to me, only from the editing part. I was trying to do and I coudn't understand exactly how to change.
Sent from my U20i using xda premium
mate did you managed it to get the change of volume bar color like ics.

[Q]please I need help with smali/xml for system UI.apk

Im trying to port in the widget controls for the status bar. Ive been able to add the png images and Edit the public/ids/strings but when i edit the status bar extended xml or the status bar service smali thats when it will force close.
any help would be much appreciated!
I have attached my project up till problems occured
phone kyocera echo
m9300
Or maybe a guide from Samsung I used the vibrant code to port over a power menu mod so maybe it would work?? Any links?? I've only seen a detailed guide on nexus
Edit solved...
Sent from my MB855 using XDA App
Mind posting up what you did to fix it and a finished screenshot? Might help others in the future.
its in the smali code i started over from scratch using the nexus guide and for got to edit the id that calls the notification layout into play..
also editing the staus bar expanded doesnt work i copied the i9000 one completely and recompiled but when i decompiled it again it was the original so it doesnt need changing.. any ?'s just ask..

Galaxy S3 Alarm Clock Widget Source Code

I have searched here and googled - but perhaps my google-fu isn't as good as it could be.
I am trying to find the source code for the Alarm Clock Widget on the Galaxy S3. If I could find the source code for the whole alarm clock app as well that would be awesome!
Does anyone know where I could find it and how I could get that source code? A friend of mine who has been tinkering with building his own ROMS told me that I would have to decompile an APK file and get the source code from there.
Reason behind this is that I am learning android development and really like some of the alarm clock features/functionality the stock one has, but wanted to just add a few simple features I find it's lacking. I figure their code should be just fine to look from and pluck things out of to assist me on my way - I just don't know how to get it.
Any thoughts? Anyone know where I may find this source code? And/or how I would go about tearing down an APK to get it if I need to?
You won't find.source code for any manufacturer app or 99% of all apps in the market as most are closed source...
Like your friend said your gonna have to.decompile it...but your also gonna have to decompile the twframeworks as a lot of the "cool" features are there...but called on from the clock app
To decompile just search for "apktool"
apktool d appnamehere.apk
-decompiles app
Apktool b appnamehere
-builds the app again...don't add the .apk...you just need the name of the folder for the decompiled app which by default is the app name
You'll then be looking into a bunch of xmls and smalis which I am not familiar with...good luck
Sent from my HTC PH39100 using Tapatalk 2
mg2195 said:
You won't find.source code for any manufacturer app or 99% of all apps in the market as most are closed source...
Like your friend said your gonna have to.decompile it...but your also gonna have to decompile the twframeworks as a lot of the "cool" features are there...but called on from the clock app
To decompile just search for "apktool"
apktool d appnamehere.apk
-decompiles app
Apktool b appnamehere
-builds the app again...don't add the .apk...you just need the name of the folder for the decompiled app which by default is the app name
You'll then be looking into a bunch of xmls and smalis which I am not familiar with...good luck
Sent from my HTC PH39100 using Tapatalk 2
Click to expand...
Click to collapse
Perfect. That gives me a great jump and a better understanding.
I would just have to find the ROM of the default Galaxy S3 OS right? Or am I misunderstanding something?
hanny137 said:
Perfect. That gives me a great jump and a better understanding.
I would just have to find the ROM of the default Galaxy S3 OS right? Or am I misunderstanding something?
Click to expand...
Click to collapse
You will need the TW framework of the ROM you will be modding the apk for and the actual clock widget apk as well. The TW framework is just required to install certain dependencies. Once you decompile the clock widget, you'll have to poke around the smali code and try to make sense of it. From what I know, even most proficient developers take a bit to actually understand smali since it's kind of a "programming language" in its own right. Good luck though
Sent from my SPH-L710 using xda premium
Ceelos09 said:
You will need the TW framework of the ROM you will be modding the apk for and the actual clock widget apk as well. The TW framework is just required to install certain dependencies. Once you decompile the clock widget, you'll have to poke around the smali code and try to make sense of it. From what I know, even most proficient developers take a bit to actually understand smali since it's kind of a "programming language" in its own right. Good luck though
Sent from my SPH-L710 using xda premium
Click to expand...
Click to collapse
Apparently I have a lot to learn! I thought once it was decompiled it was the source code.
I'm far to new of a programmer to probably be able to make much sense of the 'smali' in that case - and would probably be spinning my wheels to get a TWFramework, find the proper apk for the widget and decompile it - only to not be able to understand it.
Guess I will have to just work from the ground up on this, which is more work - but hopefully I can make it do what I want. I just figured if I could it would be easier to utilize some of the existing code to make it look/feel like the original.

Redesign apps without complex programming?

This question is to all the developers out there!
I am more of a graphics designer than a programmer.
I have very basic knowledge as far as programming and API's are concerned.
I know there are tools out there which can help you Compile and Recompile APKs, and I can do that without help,
but I was wondering if its possible to edit just the graphical elements of the app (say, change the app icon,or modify the typography, or color accents) without the need for changing a whole lot of the code?
If not, is it possible to learn how to do it in a short while?
I would love to modify to redesign a few open source apps and post it here for everyone else. ( Inspired by Android Design in Action )
shubhamsizzles said:
This question is to all the developers out there!
I am more of a graphics designer than a programmer.
I have very basic knowledge as far as programming and API's are concerned.
I know there are tools out there which can help you Compile and Recompile APKs, and I can do that without help,
but I was wondering if its possible to edit just the graphical elements of the app (say, change the app icon,or modify the typography, or color accents) without the need for changing a whole lot of the code?
If not, is it possible to learn how to do it in a short while?
I would love to modify to redesign a few open source apps and post it here for everyone else. ( Inspired by Android Design in Action )
Click to expand...
Click to collapse
Yes it is possible all you need this:
1 the app you wish to modify
2 an app called ninjamorph
A computer optional
And enough space on your phone to decompile on APK which isn't much
A way to save the app as an Apk on your phone ( ie titanium backup or the like)
Run ninjamorph I believe it has a tutorial with in and app if you need it very simple to use
It will decompile the APk of the app and then you can go into the product work space within ninjamorph and goto resources drawable depending on the app maybe drawable HPI just look through the folders then select the PNG you wish to modify and ninjamorph has ui to change right there on your phone or you can connect your phone to a computer and transfer the PNG file you wish to modify to the computer and modify it there then replace it and in the exact location you found it (with the same name names are I believe case sensitive) and use ninjamorph to recompile the apk, uninstall the old apk (if installed before hand) and install the new Apk and there you go should work
Sent from my SGH-I997 using xda premium
moving to q&a
if u only need to modify image files open apk from winrar, edit it and save.
Can I also change stuff like screen margins, fonts etc. this way? I'm guessing no. Right?
Sent from my One V using xda premium
Is it really that tough? Any suggestions?
shubhamsizzles said:
Is it really that tough? Any suggestions?
Click to expand...
Click to collapse
No you cant change the margins and fonts that way. You will have to edit the layout of the app by decompiling it and changing the XMLs and maybe some smali coding changes.

[Q] Help changing how an app works?

Hello
would it be hard to change the app Manga rock so that whenever you tap on the left or right side of the screen that it doesn't change the page?
wj0t said:
Hello
would it be hard to change the app Manga rock so that whenever you tap on the left or right side of the screen that it doesn't change the page?
Click to expand...
Click to collapse
The best way I can think of doing this would be an Xposed module. You need to decompile the APK with apktool and/or dex2jar and then find out what code changes the pages and then disable via (most likely) a method hook. Obviously you'll need to know how to develop with the Android SDK for this.

Categories

Resources