[Q]How to change the layout of th UI? - Android Q&A, Help & Troubleshooting

The ui between the ROMs and the ROMs aren't really different. So I'm thinking how to made a big change of the ui
Sent from my XT910 using xda app-developers app

我顶你个肺隔膜 said:
The ui between the ROMs and the ROMs aren't really different. So I'm thinking how to made a big change of the ui
Sent from my XT910 using xda app-developers app
Click to expand...
Click to collapse
well you would need android sdk already installed on your computer
a tool like apkmanager or apktool
and then you'd need to decompile the file you want to edit
once decompiled go into res/layout folder and you'd change layout (assuming you know what it is you are doing)
then just recompile file again.
i would say thats pretty much the jist of it.
(i hope im right assuming your referring to modifying layouts of apps within the ROM? if not please clarify more in detail, ty)

Mobzter said:
well you would need android sdk already installed on your computer
a tool like apkmanager or apktool
and then you'd need to decompile the file you want to edit
once decompiled go into res/layout folder and you'd change layout (assuming you know what it is you are doing)
then just recompile file again.
i would say thats pretty much the jist of it.
(i hope im right assuming your referring to modifying layouts of apps within the ROM? if not please clarify more in detail, ty)
Click to expand...
Click to collapse
Thanks.I'll make more research for this.
Sent from my XT910 using xda app-developers app

Related

[Q] Ninja Morph for framework-res.apk?

Hey
I'd like to change some pictures in the framework, but I don't really understand the signing procedure.
So I found the App Ninja Morph, that can change pictures within an apk. Does this work with the framework-res.apk?
Thank you
FireRider
Yup
And no need to sign if u use the right zip program
Sent from my X10a using XDA App
gavriel18 said:
Yup
And no need to sign if u use the right zip program
Sent from my X10a using XDA App
Click to expand...
Click to collapse
And which is the right zip programm? I use 7zip
That's the one. Right click on the apk. Select open archive and move the modified stuff into it
Sent from my X10a using XDA App
gavriel18 said:
That's the one. Right click on the apk. Select open archive and move the modified stuff into it
Sent from my X10a using XDA App
Click to expand...
Click to collapse
OK thank you very much.
So there are two easy ways to modify the framework-res.apk right?
First one with Ninja Morph an the second with 7Zip (and I think with adb? because with Root Explorer it failed...) Or are there more?
Ninjamorph will only mod pics within an apk whereas u can push an entire apk with adb.
Ive managed to use winrar instead of 7zip to accomplish the same result!
Sent from my rooted 026 x10i using swype via xda!!
i have tried changing my icons with ninjamorph... but after i finish project and reboot my icons are still the same... 7zip?? i don't see this in the market... will AndroZip work?? and what exactly do u mean open archive and move the stuff? i see 'view archive' and then it only lets me check off what i want to extract.. what am i doing wrong?? thanks for anyone's help!!
jdawgyy said:
i have tried changing my icons with ninjamorph... but after i finish project and reboot my icons are still the same... 7zip?? i don't see this in the market... will AndroZip work?? and what exactly do u mean open archive and move the stuff? i see 'view archive' and then it only lets me check off what i want to extract.. what am i doing wrong?? thanks for anyone's help!!
Click to expand...
Click to collapse
There are two basic methods for changing icons. 1) using ninjamorph and only using the device. 2) using 7zip, winrar,etc on your pc to make the changes them moving the modified apk to your phone.
Are you getting any specific errors and what are you trying to change? I assume your phone is rooted, busybox installed and superuser set to allow?
Sent from my SAMSUNG-SGH-I897 using XDA App
i'm not getting an error at all... everything does fine.. but after i reboot there is no change at all... and i'm just confused on how to edit it on the computer... b/c they say open it but don't extract.. so how can i change the files without extracting? and yes i'm rooted.. and have busybox
i'm trying to change icons in the notification bar......
Are the images you are replacing the right file type? Afaik its not a problem...
On the pc if you are using 7zip, right click on the framework and hit open archive.
Check out calums theme sticky for further instruction if you take that route.
Sent from my SAMSUNG-SGH-I897 using XDA App
So, for instance, using Ninja Morph I could change the background of SE dialer?
i've searched for calums theme sticky and can't find it...any help with a link?
thanks
gavriel18 said:
Are the images you are replacing the right file type? Afaik its not a problem...
On the pc if you are using 7zip, right click on the framework and hit open archive.
Check out calums theme sticky for further instruction if you take that route.
Sent from my SAMSUNG-SGH-I897 using XDA App
Click to expand...
Click to collapse
glhelinski said:
i've searched for calums theme sticky and can't find it...any help with a link?
thanks
Click to expand...
Click to collapse
Here:
http://forum.xda-developers.com/showthread.php?t=834806
Mobzter said:
Ive managed to use winrar instead of 7zip to accomplish the same result!
Sent from my rooted 026 x10i using swype via xda!!
Click to expand...
Click to collapse
I used ASTRO to replace some images in my framework-res with success
Ninjamorph issue
Hey everyone,
I've been using Ninjamorph for awhile, changing png's in framework-res.apk ith much success... that is until I tried changing a specific one and now everything is fc'ing (clockwokmod, root explorer, settings... even Ninjamorph!) The png in question is the first on the list: activity_title_bar.9.png
Can anyone help me on how to fix this? I still have the original png but without any use of Ninjamorph or RootExplorer, what can I do?!
Try rebootin if you aint tried that usally wrks for me
Sent from my X10i using XDA App
using x10 didn't work. Why?
im using a xperia x10a and i did the changes in the framework then when ninja morph ask me to reestart i hit ok but the phone didn't start, it stays on the sony ericsson logo...
why this happened? can someone help to do the right things on my x10 and change the icons and status bar colors in my phone
THANKS A LOT!
How to use Ninja Morph
After reading of others success using Ninja Morph I purchased it. I replaced one image in my Framework-res.apk. When I finalize the project, should I select that the project needs to be installed or just copied? How do you move the new apk into the active configuration on the phone? Do I need to use ADB to push it?

Compiling framework-res problem (UPDATED)

Original problem has been fixed, therefor I'm editing this instead of creating a new thread
So just ignore the 3 first comment
Whenever I compile framework-res after decompiling it (Even if I haven't modified anything) it goes from 8 MB to 5 MB!
And when I try to install it on my phone, its just boot-looping.
I have tried both APK Manager and APK Tool without any luck.
It doesn't help to pull the file again either.
Sent from my GT-I9100 using XDA App
I have the same errors. I think that's a problem of apktool. Try some different tool
You need t change ur framework under home/apktool/framework/1.apk
Replace the 1.apk with untouched stock framework-res.apk renamed to 1.apk....u will be out of trouble then
I use baksmali e smali for decomile/compile
Thread updated due to the first problem was fixed, and I don't bother to create a new one
Sent from my GT-I9100 using XDA App
bruflot said:
Thread updated due to the first problem was fixed, and I don't bother to create a new one
Sent from my GT-I9100 using XDA App
Click to expand...
Click to collapse
Nobody? :'(
Sent from my GT-I9100 using XDA App

Want to edit apk, how to begin ?

Hi,
Want to edit the phone.apk, so dialer screen will not rotate (I have a phone.apk which records calls and the dialer screen is rotatable).
Also want to Reduce caller picture size (which was enlarge in this version).
How to begin and when can I see these settings, is it an xml value to change or pure java ? (I know java)
Thanks.
Use phone.apk from stock rom and call recorder app from market, it's much easier solution.
open your .apk with winrar is a start.
Nameless21 said:
open your .apk with winrar is a start.
Click to expand...
Click to collapse
No it's not.
You need to decompile the apk with APKTool or APK Manager
Sent from my GT-I9100 using XDA Premium App
Hi
If you want to learn how to decompile apk here is a helpful link
http://forum.xda-developers.com/showthread.php?t=695701
bruflot said:
No it's not.
You need to decompile the apk with APKTool or APK Manager
Sent from my GT-I9100 using XDA Premium App
Click to expand...
Click to collapse
have you tried it?
once open and extracted with winrar you can edit images and sounds.
bruflot said:
No it's not.
You need to decompile the apk with APKTool or APK Manager
Sent from my GT-I9100 using XDA Premium App
Click to expand...
Click to collapse
apk files don't need decompiling - as Nameless21 said, you can just unzip them. However, when it comes to repackaging them then you should use the correct tools. If you just want to have a look though, it's easy enough to just unzip and browse.

[Q] [HELP][DEVs]Help with framework-res.apk--Some serious, weired problems!!!

Hi Guys! I am trying to modify the framework-res.apk of my bro's Micromax A70 with PNGs from trettet's CosmicExperia ROM. This Q is abt. A70, but related to P-500, so I think you guys can help me out. I've searched & tried everything, but nothing seems to be working. Its been more than 2 weeks here messing up and I've tried almost EVERYTHING possible and useful I came across.
I replaced those btn_check buttons, radio buttons, zoom in-out buttons, not. icons including battery, Wi-Fi, GPS, data and other such. The point is, I've replaced them accurately, deleted the extra PNGs and the no. of PNGs are same in both original and Modded apk. Moreover I've checked each and every PNG with their names and also, each *.9.png is properly 9-patched...!!!
Here's what I tried to change them:-
First tried APK-multitool, the apk got compiled succesfully, but after replacing it with original one, I am getting crash at the boot up.
Again, i searched for the prob., and got that APK-multitool doesn't seem to work correctly with sys apps and has bugs in compiling process. So I tried apktool(apktool.jar), and manually decompiled apk with commands, made changes and again recompiled, but got the same results.
NOTE:-In both the above cases, i tried unsigned as well as signed apks, also I Zipaligned the signed apk.
For replacing APK:-
I tried creating update.zip, but after flashing, I simply get crash at boot up!!
Next, I tried to include the framework-res.apk in ROM itself. Replaced the framework apk with modded one and again built it with kitchen, flashed it, but that didn't work even...........!!!
Finally, I tried a "reframe.sh" script for replacing apk with the terminal, but no luck still......
NOTE:- I didn't/can't try ADB Push, 'cause i don't have phone with me......
What can be the problem?? Am I missing something?? PLZ. guys help me out, I am really fried up with the F*****ing problems and its all getting REALLY WEIRED here!!! HELP REQUIRED ESPECIALLY FROM DEVS AND THEMERS!!!!!!!
Thanks In Advance.....
used 7-zip and copy paste all images from drawable-mdpi
aspee said:
used 7-zip and copy paste all images from drawable-mdpi
Click to expand...
Click to collapse
That I tried first of all....... That's not the solution, the problem is much more complicated........
Sent from my LG-P500 using XDA App
I once port a70 and change framework images didn't got any such error
Sent from my LG-P500 using xda premium
aspee said:
I once port a70 and change framework images didn't got any such error
Sent from my LG-P500 using xda premium
Click to expand...
Click to collapse
Which things you did??? Same as i've described above???????
Sent from my LG-P500 using XDA App
Yeah somewhat
Sent from my LG-P500 using xda premium
aspee said:
Yeah somewhat
Sent from my LG-P500 using xda premium
Click to expand...
Click to collapse
Do you remember which rom's framework you modded???
Sent from my LG-P500 using XDA App
Stock
Sent from my LG-P500 using Tapatalk
aspee said:
Stock
Sent from my LG-P500 using Tapatalk
Click to expand...
Click to collapse
I am too modding framework from a custom rom, based on the stock one.....
It worked for you, but why not for me?? Can't understand!!! What do you think the problem is???
AND, DEVS, PLEASE LOOK AT THIS MATTER!! I REALLY WANT HELP!!!!
Sent from my LG-P500 using XDA App
WTF?? The thread is going down n down!!!!! Plz someone help me with this!!!
Sent from my LG-P500 using XDA App
Guys, please help!! Its delaying!! I cant start any new things bcoz of this!!.
Sent from my LG-P500 using XDA App
D3oDex3D_Ayush717 said:
WTF?? The thread is going down n down!!!!! Plz someone help me with this!!!
Sent from my LG-P500 using XDA App
Click to expand...
Click to collapse
the a70 framework is like that a little change makes it stuck at logo or boot loops ...
follow the below method to make it work ...
In apk manager select this settings..
compression level =0
1.first change the images using any tool like apkmanager and recompile it ...
2.now again select the recompiled unsignedframework-res.apk and extract it ...now again using the apkmanager zip the apk ..
3.now zipalign the unsignedunsignedframework-res.apk manually and flash it ..then it will work...
http://forum.xda-developers.com/showthread.php?t=1195969
samrox144 said:
the a70 framework is like that a little change makes it stuck at logo or boot loops ...
follow the below method to make it work ...
In apk manager select this settings..
compression level =0
1.first change the images using any tool like apkmanager and recompile it ...
2.now again select the recompiled unsignedframework-res.apk and extract it ...now again using the apkmanager zip the apk ..
3.now zipalign the unsignedunsignedframework-res.apk manually and flash it ..then it will work...
http://forum.xda-developers.com/showthread.php?t=1195969
Click to expand...
Click to collapse
You are right! This framework is a SENSITIVE thing!!
Will surely try this!!
Thanx a lot for yor quick reply...!!!!
Sent from my LG-P500 using XDA App
Hi sam, I tried what you said, but when i decompile apk for the first time, and agiain compile it with apk-multitool, the compiled apk contains a "keep" folder in it!! I think it's gone mad!!
This I've seen for the first time! previously, there were always only assets, res, androidmanifest, and metainf files. So i tried apktool.jar manually. It recompiled properly.
Now, i placed the compiled apk in the modding folder of apk-mutitool. first extracted the the apk i.e. option no. 2, and then zip it again, i.e option no.3, right?? but now inside the zipped file, is see this- project\unsignedframewok-res.apk\assets, res, androidmanifest, and metainf , that should be directly in the root of the zip. Also due to this the file doesn't get zipaligned!!!
HELP!!!!!!
D3oDex3D_Ayush717 said:
Hi sam, I tried what you said, but when i decompile apk for the first time, and agiain compile it with apk-multitool, the compiled apk contains a "keep" folder in it!! I think it's gone mad!!
This I've seen for the first time! previously, there were always only assets, res, androidmanifest, and metainf files. So i tried apktool.jar manually. It recompiled properly.
Now, i placed the compiled apk in the modding folder of apk-mutitool. first extracted the the apk i.e. option no. 2, and then zip it again, i.e option no.3, right?? but now inside the zipped file, is see this- project\unsignedframewok-res.apk\assets, res, androidmanifest, and metainf , that should be directly in the root of the zip. Also due to this the file doesn't get zipaligned!!!
HELP!!!!!!
Click to expand...
Click to collapse
use apk manager it is better then apk tool
did you delete the resources.arsc from keep folder
D3oDex3D_Ayush717 said:
Hi sam, I tried what you said, but when i decompile apk for the first time, and agiain compile it with apk-multitool, the compiled apk contains a "keep" folder in it!! I think it's gone mad!!
This I've seen for the first time! previously, there were always only assets, res, androidmanifest, and metainf files. So i tried apktool.jar manually. It recompiled properly.
Now, i placed the compiled apk in the modding folder of apk-mutitool. first extracted the the apk i.e. option no. 2, and then zip it again, i.e option no.3, right?? but now inside the zipped file, is see this- project\unsignedframewok-res.apk\assets, res, androidmanifest, and metainf , that should be directly in the root of the zip. Also due to this the file doesn't get zipaligned!!!
HELP!!!!!!
Click to expand...
Click to collapse
As far as my experience goes ,you will have to delete the files you modified from the keep folder (if you changed any XML also delete resource.arsec) and continue with the batch script(it will tell u to do so after asking you If you want to copy unchanged files)
Sent from my LG-P500 using Tapatalk
APKTOOL IS EASIEST ACCORDING TO ME!
Sent from my LG-P500 using Tapatalk
androidusero1p500 said:
As far as my experience goes ,you will have to delete the files you modified from the keep folder (if you changed any XML also delete resource.arsec) and continue with the batch script(it will tell u to do so after asking you If you want to copy unchanged files)
Sent from my LG-P500 using Tapatalk
Click to expand...
Click to collapse
That's not the problem. I do delete the modified files in keep folder. But that script adds a keep folder inside the apk itself when recompiled!! lol!!!!
Sent from my LG-P500 using XDA App
samrox144 said:
use apk manager it is better then apk tool
did you delete the resources.arsc from keep folder
Click to expand...
Click to collapse
Apk multitool is the updated version of apk manager. Though, i will try with that one to.........And no, i didn't delete resources. Infact nothing except the pngs in drawable-mdpi....
Thanks!!
Sent from my LG-P500 using XDA App
androidusero1p500 said:
APKTOOL IS EASIEST ACCORDING TO ME!
Sent from my LG-P500 using Tapatalk
Click to expand...
Click to collapse
By apk tool, you mean apkmanager or that apktool.jar??
I used that apktool.jar manually with cmd, when apk multitool didn't work for me.....
Sent from my LG-P500 using XDA App

[Q] Editing stock rom on SGY

Hi to all. First i'm new in this forum and at whole in android. Sorry if there is a thread like this or the place is not here and sorry for my bad english
I have a few questions about my Samsung Galaxy Young - 5360.
1. How to edit the status bar icons like battery, 3G , etc.
2. How to make a folders in the menu coz i have 7 pages of apps , and its out of order ( shuffle). This is for now.
P.S.
I'm talking about the stock rom. I don't wanna a custom rom , prefer the original one. And the phone is not rooted, but i will if need.
Thanks to all , and have a nice evening.
Well for the status bar you need to mod the SystemUI.apk which can be found in /system/app you pull it to your computer extract using a program like win rar go to res folder edit the pngs you want then put the res folder with moded files back to the archive and then using root explorer or adb(you need root) replacebthe original one with the moded one.As for the folders in drawer I suggest ylusing a different launcher lile adw or go launcher and make categories.For this you don't need root.
Sent from my Optimus Me using xda premium
Thanks for the info bro. But how to go to system/app and then how to mod this .apk file ?
You can use root explorer and then just long press the apk until a mebu shows up and then select copy after that navigate to the sd card and then click paste.After that just mount the sd card on your computer and you can then copy it on a local hard drive
Sent from my Optimus Me using xda premium
Okay, thanks again! And last question, how to edit .apf file?
maaaxy said:
Okay, thanks again! And last question, how to edit .apf file?
Click to expand...
Click to collapse
I don't know about those files I will look it up tomorrow a tell you if I find anything.
Sent from my Optimus Me using xda premium
My bad. Im talking about SystemUI.apk file.
maaaxy said:
My bad. Im talking about SystemUI.apk file.
Click to expand...
Click to collapse
Ohhh that's easy just open them using win rar
Sent from my Optimus Me using xda premium
Okay i will do it this all. And i will write tommorow. Good evening.

Categories

Resources