Who can help? Decompile framework APK and recompile - Sony Xperia 1 Questions & Answers

Since the Xperia 1 forum is dry I thought we can start here.
I've already read on how to do this but my laptop doesn't work when I try to recompile, I move the app to phone with correct permissions and the phone bootloops.
I want to mod the battery icons with ones I found on a thread on xda
Thanks in advance!

mobzw995 said:
Since the Xperia 1 forum is dry I thought we can start here.
I've already read on how to do this but my laptop doesn't work when I try to recompile, I move the app to phone with correct permissions and the phone bootloops.
I want to mod the battery icons with ones I found on a thread on xda
Thanks in advance!
Click to expand...
Click to collapse
Hi, are you still having problems with this? I'm more than happy to help...although changing battery icons could be a challenge. It's not as easy as it used to be..

mobzw995 said:
Since the Xperia 1 forum is dry I thought we can start here.
I've already read on how to do this but my laptop doesn't work when I try to recompile, I move the app to phone with correct permissions and the phone bootloops.
I want to mod the battery icons with ones I found on a thread on xda
Thanks in advance!
Click to expand...
Click to collapse
Which tool are you using to decompile/recompile, and did you try signing the apk after modifying files?
Regards,
acervenky

Related

[Q] widget wont install on my Arc

i have this weather widget from LG, i have the apk but it wont install. The installation ended with 'application not install'. I have the file extracted but i cant figure out whats wrong..i have other weather widget be uninstall for it but its the same...
can somebody help on this matter..
I have attached the file i extracted...please help..
did you install the apk as a regular apk or did you move it to system/apps and rebooted.
In last case, did you set permissions right (rw-/r--/r--)?
If you post the apk i can give it a try (Arc Lt15i) if you want
I install using both method, regular and copy to system/app and set the permission to rw-r-r-...but fail also.
This is the link to the apk file. I hope you can solve this problem of mine..
https://mail.google.com/mail/h/1tr8uts5lcs9l/?view=att&th=1323131bd2fc6645&attid=0.1&disp=attd&realattid=file0&safe=1&zw
martin132014 said:
I install using both method, regular and copy to system/app and set the permission to rw-r-r-...but fail also.
This is the link to the apk file. I hope you can solve this problem of mine..
https://mail.google.com/mail/h/1tr8uts5lcs9l/?view=att&th=1323131bd2fc6645&attid=0.1&disp=attd&realattid=file0&safe=1&zw
Click to expand...
Click to collapse
Upload it to some other site. You're posting the Gmail link which will only work for you.
ShyamSasi said:
Upload it to some other site. You're posting the Gmail link which will only work for you.
Click to expand...
Click to collapse
sorrY bout that...my bad.
heres the file from 4shared.....can you help.
http://www.4shared.com/file/sYQd4G1c/blackWeatherwidget.html
sorry Martin, no luck here either.
I managed to install a widget i found on the www, but indeed it looks slightly different to what you are looking for.
i've attached my homescreen with it.
btw, it's called TodayBriefingwidget, just lemme know if you wanna try, i'll upload it.
Nirak said:
sorry Martin, no luck here either.
I managed to install a widget i found on the www, but indeed it looks slightly different to what you are looking for.
i've attached my homescreen with it.
btw, it's called TodayBriefingwidget, just lemme know if you wanna try, i'll upload it.
Click to expand...
Click to collapse
Never mind...i already got TBwidget....thanks for your help...if you can point to the right people who can help is appreciated...
martin132014 said:
Never mind...i already got TBwidget....thanks for your help...if you can point to the right people who can help is appreciated...
Click to expand...
Click to collapse
I tried to decomplie the widget seems like it need the framework-res.apk file. So I don't think it's easy to port because it's just like our Timescale widget won't work in other devices. Probably some developer need to port it. Try to post under this section. http://forum.xda-developers.com/forumdisplay.php?f=524
ShyamSasi said:
I tried to decomplie the widget seems like it need the framework-res.apk file. So I don't think it's easy to port because it's just like our Timescale widget won't work in other devices. Probably some developer need to port it. Try to post under this section. http://forum.xda-developers.com/forumdisplay.php?f=524
Click to expand...
Click to collapse
Thanks, i will tried that...

Battary icon change like nokia....

Can any one change our galaxy y battary icon like nokia..i mean .bar type ...nokia
Sent from my GT-S5360 using xda premium
I think this wouldn't be difficult. Ask some devs.
Sent from my GT-S5360 Toaster
Do you have a screenie of what it looks so we can get an idea of it?
See this battary icon..its our camara shot.. I want it in my battary icon
Sent from my GT-S5360 using xda premium
See this.. Its our camera battary icon ..i want it in my battary icon in status bar
Sent from my GT-S5360 using xda premium
Decompile framework-res.apk
Its in /system/framework
After decompiling it
Go to res/drawable-ldpi
Replace all the
stat_battery_xx with ur nokia battery images
Note that don't change name and resolution of those images(.png)
Recompile framework-res.apk
Replace it set permission
I think u also have to edit framework-res.jar to make it work
P.s. this is juz for info I am a noob
And above info might be wrong
Copied signature
This is quite fun thing to do yourself! Takes sometime unless your really good, but well worth it in the end!
techno-update said:
This is quite fun thing to do yourself! Takes sometime unless your really good, but well worth it in the end!
Click to expand...
Click to collapse
Hey techno
Three things
1 I am a noob
2 I don't hav a pc
3 I don't knoe anything about roms n kernel
P.s. 1st one really matters
Copied signature
Why do you want to use the old nokia type icons? Make it a bit more stylish!
Check this thread. It got a lot of good looking battery icons, download the zip, extract the icons and replace them in framework-res.apk/res/drawable-ldpi and flash the apk back!
http://forum.xda-developers.com/showthread.php?t=724778
Thread moved to the Themes and Apps section. Please post in the correct sections.
Any ine give me battrary png..camera.apk
..i cant find ..
Sent from my GT-S5360 using xda premium
nirupom said:
Any ine give me battrary png..camera.apk
..i cant find ..
Sent from my GT-S5360 using xda premium
Click to expand...
Click to collapse
Check it
Extract them
https://www.box.com/shared/982472ad40a69514c14d
Copied signature
Ok I was gonna post this 2 hours ago but power went down (damn storms)
So I've extracted the battery icons from the Camera file and have modified the framework file with them, even changed charging one. You can try it out but I cannot ensure that it will work fully and especially look good. I have not tested btw.
Download the attached file below and flash through Recovery mode.
Mitko said:
Ok I was gonna post this 2 hours ago but power went down (damn storms)
So I've extracted the battery icons from the Camera file and have modified the framework file with them, even changed charging one. You can try it out but I cannot ensure that it will work fully and especially look good. I have not tested btw.
Download the attached file below and flash through Recovery mode.
Click to expand...
Click to collapse
Sir u compiled it from pc?????
I tried making it frm mobile I just made one.
Don't whether it will work or not
Copied signature
alkesh95 said:
Sir u compiled it from pc?????
I tried making it frm mobile I just made one.
Don't whether it will work or not
Copied signature
Click to expand...
Click to collapse
To save all the hassle, I went to UOT Kitchen and didn't choose any mods but just uploaded the framework-res.apk and it generated a flashable zip.
Done it loads of times to make backups of my original apk's.
Mitko said:
To save all the hassle, I went to UOT Kitchen and didn't choose any mods but just uploaded the framework-res.apk and it generated a flashable zip.
Done it loads of times to make backups of my original apk's.
Click to expand...
Click to collapse
Actually I don't have a pc
And this was my first modding
So I will check my mod in the morning
Thnx 4 ur rply
Copied signature
Mitko said:
Ok I was gonna post this 2 hours ago but power went down (damn storms)
So I've extracted the battery icons from the Camera file and have modified the framework file with them, even changed charging one. You can try it out but I cannot ensure that it will work fully and especially look good. I have not tested btw.
Download the attached file below and flash through Recovery mode.
Click to expand...
Click to collapse
On my phone with usr v3 rom it makes bootloop.flashing succesfull then it start to homescreen so ive seen the icon and then it starts new into bootloop.
GREEEEEEEEEETZ!!!
CALIBAN666 said:
On my phone with usr v3 rom it makes bootloop.flashing succesfull then it start to homescreen so ive seen the icon and then it starts new into bootloop.
GREEEEEEEEEETZ!!!
Click to expand...
Click to collapse
Hmm guess a better way would be to have the flashable zip replace png's instead of replacing the whole apk. Sorry about causing you a bootloop.
I try the png.. But but bars not clear.. What to do
Sent from my GT-S5360 using xda premium
Mitko said:
Hmm guess a better way would be to have the flashable zip replace png's instead of replacing the whole apk. Sorry about causing you a bootloop.
Click to expand...
Click to collapse
no problem bro,i love to test some things on my phone,dont say sorry to me:good:

ROM not booting!

Hey everyone, i've been making my second custom ROM now, i finished it like 15 mins ago, extracted /system, made a zip, flashed, and it was all ok, but suddenly it bootloops at walkman logo! It happened to me once when i did a factory reset after installing a framework... and this rom has nxt framework! Please help guyss
anerik said:
Hey everyone, i've been making my second custom ROM now, i finished it like 15 mins ago, extracted /system, made a zip, flashed, and it was all ok, but suddenly it bootloops at walkman logo! It happened to me once when i did a factory reset after installing a framework... and this rom has nxt framework! Please help guyss
Click to expand...
Click to collapse
Could be anything. Retrace your steps and try again.
anerik said:
Hey everyone, i've been making my second custom ROM now, i finished it like 15 mins ago, extracted /system, made a zip, flashed, and it was all ok, but suddenly it bootloops at walkman logo! It happened to me once when i did a factory reset after installing a framework... and this rom has nxt framework! Please help guyss
Click to expand...
Click to collapse
Whenever you try to change the framework, it is better if you deodex your rom and then replace it. Check this thread for deodexing - http://forum.xda-developers.com/showthread.php?p=31656960
It should work on other devices too.:victory:
abcdjdj said:
Whenever you try to change the framework, it is better if you deodex your rom and then replace it. Check this thread for deodexing - http://forum.xda-developers.com/showthread.php?p=31656960
It should work on other devices too.:victory:
Click to expand...
Click to collapse
Also it might be caused by Small Spps.
It need some signatures to run on first boot,otherwise it will bootloop.
So you ned to resign the ROM like Pranav Pandey did that in his xNXT.
if your rom has to do with rom control and small apps, then , you MUST remove small apps support.
check sandy7 guide, and invert it
XperienceD said:
Could be anything. Retrace your steps and try again.
Click to expand...
Click to collapse
That's practycally an useless post.
abcdjdj said:
Whenever you try to change the framework, it is better if you deodex your rom and then replace it. Check this thread for deodexing - http://forum.xda-developers.com/showthread.php?p=31656960
It should work on other devices too.:victory:
Click to expand...
Click to collapse
How am i going to install another framework with an odexed rom?
Yarman2000 said:
Also it might be caused by Small Spps.
It need some signatures to run on first boot,otherwise it will bootloop.
So you ned to resign the ROM like Pranav Pandey did that in his xNXT.
Click to expand...
Click to collapse
And how to sign it before making a .zip?? Cause i could just get the files, sign and make a zip.
Nachospeicys said:
if your rom has to do with rom control and small apps, then , you MUST remove small apps support.
check sandy7 guide, and invert it
Click to expand...
Click to collapse
I have no rom control, and no idea how to remove small apps support.
u are building the second rom and u don't know answer for any of these??
RavinduSha said:
u are building the second rom and u don't know answer for any of these??
Click to expand...
Click to collapse
My first ROM was MIUI which had no SystemUI, framework mods. If you gonna come here to critise me then gtfo. With all due respect
anerik said:
My first ROM was MIUI which had no SystemUI, framework mods. If you gonna come here to critise me then gtfo. With all due respect
Click to expand...
Click to collapse
this is not a place to fight. if u just search in xda, u can find answers for all of your questions.
This is a guide for adding small apps to framework. u have to reverse it.
RavinduSha said:
this is not a place to fight. if u just search in xda, u can find answers for all of your questions.
This is a guide for adding small apps to framework. u have to reverse it.
Click to expand...
Click to collapse
I don't have small apps... If it's not a place to fight you should've just sent me the link without cuestioning.
anerik said:
My first ROM was MIUI which had no SystemUI, framework mods. If you gonna come here to critise me then gtfo. With all due respect
Click to expand...
Click to collapse
If u can tell what all did u add in framework folder and what all u did there...
I can really help u out.
Sent from my SK17i using XDA Premium HD app
sandy7 said:
If u can tell what all did u add in framework folder and what all u did there...
I can really help u out.
Sent from my SK17i using XDA Premium HD app
Click to expand...
Click to collapse
I added Nxt framework and serajr's systemui, nothing else to framework or systemui. Maybe i should just sign the zip like Yarman said
anerik said:
I added Nxt framework and serajr's systemui, nothing else to framework or systemui. Maybe i should just sign the zip like Yarman said
Click to expand...
Click to collapse
yes that might be also the cause...bcz some frameworks are not bootable with fresh rom...
try signing it...it might boot
sandy7 said:
yes that might be also the cause...bcz some frameworks are not bootable with fresh rom...
try signing it...it might boot
Click to expand...
Click to collapse
Ok, i used this, maybe i'll use the kitchen i don't know
anerik said:
Ok, i used this, maybe i'll use the kitchen i don't know
Click to expand...
Click to collapse
us this tool to sign the framework http://forum.xda-developers.com/showthread.php?t=2011254
sandy7 said:
us this tool to sign the framework http://forum.xda-developers.com/showthread.php?t=2011254
Click to expand...
Click to collapse
Ok, thanks!
anerik said:
Ok, thanks!
Click to expand...
Click to collapse
btw u asked in my tut thread that u getting some recompiling errors in ur settings.apk ?
sandy7 said:
btw u asked in my tut thread that u getting some recompiling errors in ur settings.apk ?
Click to expand...
Click to collapse
Yes, but fixed them already. Btw i signed using the autoapktool and i also signed putting original META-INF on new framework, will try both of them and let you know

[Q] How to change the list on press action or bg in Xperia U devices?

Hi guys, I'm fairly new to this but I wanted to know how I can change the list pressed animation style in Xperia U? I mean the white background glow on pressing and holding any list button in menus or tabs or buttons, for example see the following photo (attachments), how the background of the notification has turn to white (fading).
I thought there might be a. 9.png file for that, but when I started searching for in the drawable folder of framework-res.apk, I wasn't able to find it?
So I wanna know that am I searching wrongly or there is no such file and just a xml code which I'm not able to get my hands on because of lack of my knowledge of decompiling the apks. I tried decompiling it by apktool but it won't budge. Also to edit pngs I am using a simple technique (posted by a xda user, sorry for not recalling your name but thanks) that is to just open or extract the roms through 7zip and then just copy them back to the respective apk file. This seems to be working as I was able to create my own lockscreen. So please help me in finding where I'm going wrong.
Thanks in advanced...
You must decompile the framework-res.apk and then, search in /drawable-hdpi folder the image. Its name is notification-normal-bg.9.png or something like that. Edit it with photoshop, and, when you have all that you want, compile the framework-res.apk and change it in your phone. Do a backup before do anything.
Enviado desde mi ST25i usando XDA Premium HD app
Slash137 said:
You must decompile the framework-res.apk and then, search in /drawable-hdpi folder the image. Its name is notification-normal-bg.9.png or something like that. Edit it with photoshop, and, when you have all that you want, compile the framework-res.apk and change it in your phone. Do a backup before do anything.
Enviado desde mi ST25i usando XDA Premium HD app
Click to expand...
Click to collapse
First of all thanks for your advice, but as it turns out the Sony isn't using that file?? And also I just did it with my normal method (described before), so I guess it might be a problem that I'm not decompiling it, but as it turns out I don't know exactly how to. So can you suggest me a Guide or something like that through which I can learn to do it without any problems...?? Because last I time tried it, I got a failed app! Please help, thanks in advance...
divinemamgai said:
First of all thanks for your advice, but as it turns out the Sony isn't using that file?? And also I just did it with my normal method (described before), so I guess it might be a problem that I'm not decompiling it, but as it turns out I don't know exactly how to. So can you suggest me a Guide or something like that through which I can learn to do it without any problems...?? Because last I time tried it, I got a failed app! Please help, thanks in advance...
Click to expand...
Click to collapse
I have successfully figured out the first part of the problem, the sony uses the .png starting with semc... So I just searched for semc_list_.... And found what I was looking for. But still how to decompile system apps in Xperia based devices succesfully..? Please someone..?
divinemamgai said:
I have successfully figured out the first part of the problem, the sony uses the .png starting with semc... So I just searched for semc_list_.... And found what I was looking for. But still how to decompile system apps in Xperia based devices succesfully..? Please someone..?
Click to expand...
Click to collapse
You must use APKTool for decompile. When you got it it's so easy to use.
Slash137 said:
You must use APKTool for decompile. When you got it it's so easy to use.
Click to expand...
Click to collapse
Yeah buddy, it was pretty easy. And I figured out what I was doing wrong before, I wasn't including framework-res.apk and SemcGenericUxp.apk in the tool to help it compile the resources! Thanks.
divinemamgai said:
Yeah buddy, it was pretty easy. And I figured out what I was doing wrong before, I wasn't including framework-res.apk and SemcGenericUxp.apk in the tool to help it compile the resources! Thanks.
Click to expand...
Click to collapse
Can you suggest me a method of porting roms perfectly...?
divinemamgai said:
Can you suggest me a method of porting roms perfectly...?
Click to expand...
Click to collapse
Don't worry GOT.. IT....

[Q][Help] Recompile/Decompile apk's

Hi guys !
I'm having a problem recompiling the systemui.apk, i'm modding some .xml files and everything goes fine, it recompiles ok but when i push it to my phone there's no change i decompile the modified apk and the xml files aren't change either it's like i didn't change anything from them.
Every single time a recompile an apk it goes back to normal
Does anyone else has that problem or is just me , and does someone knows how can i fix that problem?
INFO :
Windows 8 pro
Using : Apktool , Auto apktool and tickle my android (in all of them i get that same problem)
Thanks in advance, regards
Give the Command Prompt Editing section a read, might clear it up. - [Advice/Reference/Guide] The Definitive APK Modding & Theming Thread...
XperienceD said:
Give the Command Prompt Editing section a read, might clear it up. - [Advice/Reference/Guide] The Definitive APK Modding & Theming Thread...
Click to expand...
Click to collapse
Already read it and that's what i've been doing, and like i said the changes aren't saved. Every time i delete o put some codes in the xml file with notepad++ i save them but after i recompile the apk i decompile it again to check if everything's alright but the files look like the original ones.
monster30 said:
i decompile it again to check if everything's alright but the files look like the original ones.
Click to expand...
Click to collapse
Is this apk in the dist folder?
XperienceD said:
Is this apk in the dist folder?
Click to expand...
Click to collapse
Yep. I really don't know why i can't make it work a week ago i didn't have this problem. (i didn't change anything in my laptop etc)
Sent from my WT19i using xda premium
..
monster30 said:
Yep. I really don't know why i can't make it work a week ago i didn't have this problem. (i didn't change anything in my laptop etc)
Sent from my WT19i using xda premium
Click to expand...
Click to collapse
here, pls try this to de-/recompile using his TuT; BUT recompile TuT has a bug:
''apktool b -f -d semcmusic.apk ( can be whatever name you give to your apk )'' <-- justtype in without ''.apk'' --> will work
i use this mostly bcuz for me, it dont maked any problem's (like some other tools), also allways work
bejunk said:
here, pls try this to de-/recompile using his TuT; BUT recompile TuT has a bug:
''apktool b -f -d semcmusic.apk ( can be whatever name you give to your apk )'' <-- justtype in without ''.apk'' --> will work
i use this mostly bcuz for me, it dont maked any problem's (like some other tools), also allways work
Click to expand...
Click to collapse
i tried that one a couple of times and it didn't worked ,right now i try it again and the changes were saved but when i push it to my phone the status bar was gone (i did copy the META.INF folder to the new apk)
monster30 said:
i tried that one a couple of times and it didn't worked ,right now i try it again and the changes were saved but when i push it to my phone the status bar was gone (i did copy the META.INF folder to the new apk)
Click to expand...
Click to collapse
and this apktool says recopiling was fine??
also: which rom is this systemUI from; what for a mod u will do?? (will try it on my pc, maybe the problem is win8 ?)
bejunk said:
and this apktool says recopiling was fine??
also: which rom is this systemUI from; what for a mod u will do?? (will try it on my pc, maybe the problem is win8 ?)
Click to expand...
Click to collapse
Yep, the recompile goes ok. I wanna change the toggle icons and wanna move the icons in the status bar.
And actually ticklefish already help me with that and when i push it nothing happen either, so i don't think it's a prob with win8 cuz before i didn't had that problem, it started this week
The systemUi is from honami i1 rom from aneel, i already install the framework from the rom.
Sent from my WT19i using xda premium

Categories

Resources