So im wondering, when I edit a system apk this is the process I use:
Open apk with 7zip, I dont extract.
Replace all png's I want to and exit.
Simple yes? Heres the problem. How do I edit AndroidManifest.xml and add it back in? I can get the xml un-encyrpted and edit it but do I need to make the file encypted again before I put it back?
Any comments/suggestions welcomed
Thanks!
Sent from my U20i using XDA App
Possibly the best way I can answer that is by pointing you in this direction: http://forum.xda-developers.com/showthread.php?t=849223
This is a very handy guide to fiddling with your system apps and will not only answer your question but may answer questions you didn't even know you had..
Wow thanks, just what I needed, I had a feeling I had to decompile/recompile it then move the files into the existing one. You'd think they made these things simple huh? XD
Sent from my U20i using XDA App
Oh, but this is simple. Relatively, at least. You just wait until you start having to write smali..
I just had a look, its pretty overwhelming. I code php though so its not that bad. I know the challenges ahead
Sent from my U20i using XDA App
jimcantfixit said:
I just had a look, its pretty overwhelming. I code php though so its not that bad. I know the challenges ahead
Sent from my U20i using XDA App
Click to expand...
Click to collapse
Oh really?? I used to do a lot of C++ back in the day so I'm okay with java but then it starts going over my head a bit. When I'm next in the mood to hack into the code of our little machine, I may end up stalking you mercilessly..
Hi,
I can decompile/compile/sign/zipalign fine using apktool, but when i have decompiled framework/systemui all the xml files come out with huge gaps between the coding. im using notepad++ to view/edit xml.
It doesn't affect the compiling but its hard to find code to change.
example: a normal xml with 5 lines of code will come out with about 20-30 lines.
Am i doing something wrong or is it apktool?
thanks.
stealo said:
Hi,
I can decompile/compile/sign/zipalign fine using apktool, but when i have decompiled framework/systemui all the xml files come out with huge gaps between the coding. im using notepad++ to view/edit xml.
It doesn't affect the compiling but its hard to find code to change.
example: a normal xml with 5 lines of code will come out with about 20-30 lines.
Am i doing something wrong or is it apktool?
thanks.
Click to expand...
Click to collapse
Its an APKtool issue, emmm I got alot of errors using apk manager and apktool, I dont know whats the problem and still didnt find a solution. Everytime I use it I have to have errors... and its annoying
I could do many stuff if it would work !!
do you want my apktool folder? i can try and help if its the same as my setup. its a bit messy but works.
Sent from my GT-I9100 using xda app-developers app
stealo said:
do you want my apktool folder? i can try and help if its the same as my setup. its a bit messy but works.
Sent from my GT-I9100 using xda app-developers app
Click to expand...
Click to collapse
check the link below ma8, even though its a mod tutorial thread, u have some usefull info regarding APK tool and also about decompile/recompile subject's over there, which might help u with ur issue
http://forum.xda-developers.com/showthread.php?p=29020343&posted=1#post29020343
Sun90 said:
check the link below ma8, even though its a mod tutorial thread, u have some usefull info regarding APK tool and also about decompile/recompile subject's over there, which might help u with ur issue
http://forum.xda-developers.com/showthread.php?p=29020343&posted=1#post29020343
Click to expand...
Click to collapse
cheers.
i saw that this mornong. i got sweet [email protected]#k all done at work today. playin around with all that stuff. ive switched back to cm9 stable. still got issues with the xml's, a door knob probably knows more than me though.
Sent from my GT-I9100 using xda app-developers app
I'm using apk multi tools can anyone tell me what should happen when I chose apk then decompile.
Sent from my SAMSUNG-SGH-I747 using Tapatalk 2
You will get decompiled sources or resources or both. Sources may be difficult to compile into working APK but resources are useful to change some images or text.
How do you start to theme a ROM? I want to theme Padawan v5 with permission ofc. Can you do it with windows?
Sent from my SAMSUNG-SGH-I717 using xda app-developers app
Yup, in fact you might prefer it because of the existence of a tiny little photo editing program perhaps you've heard of it, photo shop.
You'll need a hex editor program I suggest notepad++
You need java runtime environment installed and in your environmental variables path.
Then you can install the android sdk for adb.
Now, you'll need an apk compilation tool.
Once you're able to decompile and recompile an apk without any changes and there's no errors you're ready to begin the fun.
The main 2 files used in a system theme are
/sytem/app/systemui.apk
/system/framework/framework-res.apk
The images are located /res/drawable-xhdpi of each apk....for stock dpi anyhow
Other things will be hex values in xmls
I think I'll keep buying them from the market. . .
studacris said:
Yup, in fact y might prefer it because of the existence of a tiny little photo editing program perhaps you've heard of it, photo shop.
You'll need a hex editor program I suggest notepad++
You need java runtime environment installed and in your environmental variables path.
Then you can install the android sdk for adb.
Now, you'll need an apk compilation tool.
Once you're able to decompile and recompile an apk without any changes and there's no errors you're ready to begin the fun.
The main 2 files used in a system theme are
/sytem/app/systemui.apk
/system/framework/framework-res.apk
The images are located /res/drawable-xhdpi of each apk....for stock dpi anyhow
Other things will be hex values in xmls
Click to expand...
Click to collapse
Thanks very much!
Sent from my SAMSUNG-SGH-I717 using xda app-developers app
rangercaptain said:
I think I'll keep buying them from the market. . .
Click to expand...
Click to collapse
Aha in not to long I'll be pretty good at it
Sent from my SAMSUNG-SGH-I717 using xda app-developers app
studacris said:
Yup, in fact y might prefer it because of the existence of a tiny little photo editing program perhaps you've heard of it, photo shop.
You'll need a hex editor program I suggest notepad++
You need java runtime environment installed and in your environmental variables path.
Then you can install the android sdk for adb.
Now, you'll need an apk compilation tool.
Once you're able to decompile and recompile an apk without any changes and there's no errors you're ready to begin the fun.
The main 2 files used in a system theme are
/sytem/app/systemui.apk
/system/framework/framework-res.apk
The images are located /res/drawable-xhdpi of each apk....for stock dpi anyhow
Other things will be hex values in xmls
Click to expand...
Click to collapse
What tool do I use to compile apks and recompile them?
Sent from my SAMSUNG-SGH-I717 using xda app-developers app
There's a few to choose from
Apktool
Apkmanager
Apk multi tool
Up to you
studacris said:
There's a few to choose from
Apktool
Apkmanager
Apk multi tool
Up to you
Click to expand...
Click to collapse
Thank you soo much you do not even know how much this helps me!
Sent from my SAMSUNG-SGH-I717 using xda app-developers app
studacris said:
Yup, in fact y might prefer it because of the existence of a tiny little photo editing program perhaps you've heard of it, photo shop.
You'll need a hex editor program I suggest notepad++
You need java runtime environment installed and in your environmental variables path.
Then you can install the android sdk for adb.
Now, you'll need an apk compilation tool.
Once you're able to decompile and recompile an apk without any changes and there's no errors you're ready to begin the fun.
The main 2 files used in a system theme are
/sytem/app/systemui.apk
/system/framework/framework-res.apk
The images are located /res/drawable-xhdpi of each apk....for stock dpi anyhow
Other things will be hex values in xmls
Click to expand...
Click to collapse
What is the android adb for? Also what is XML ?
Sent from my SAMSUNG-SGH-I717 using xda app-developers app
Once all of the theming is done how do I make it installable via apk?
Sent from my SAMSUNG-SGH-I717 using xda app-developers app
Adb is the android debugging bridge
Xml is a file extension type containing plain text entries and hex color codes, then compiled into the resource.arsc within an apk, you'll need to decompile the apk to edit with notepad++
studacris said:
Adb is the android debugging bridge
Xml is a file extension type containing plain text entries and hex color codes, then compiled into the resource.arsc within an apk, you'll need to decompile the apk to edit with notepad++
Click to expand...
Click to collapse
How to decompile the apk? Can't seem to fiqure it out...
Sent from my SAMSUNG-SGH-I717 using xda app-developers app
Never mind went with apkmanager and now seeing all the pngs. Let the fun begin!
Sent from my SAMSUNG-SGH-I717 using xda app-developers app
GIMP always gives me this error and it says *colorize only works in RGB layers*. I don't know what to do :s
Sent from my SAMSUNG-SGH-I717 using xda app-developers app
ZacksBuilds said:
GIMP always gives me this error and it says *colorize only works in RGB layers*. I don't know what to do :s
Sent from my SAMSUNG-SGH-I717 using xda app-developers app
Click to expand...
Click to collapse
select image on the top row. You will see the selections in the pop up. Select mode. Change the mode to RGB. Then you can edit the image. No need to change it back. Just save.
Sent from my Big Ass Outlaw Phone
---------- Post added at 09:22 PM ---------- Previous post was at 09:08 PM ----------
Helpful hint .... Anything that is a .9 image ...leave alone for now.
Sent from my Big Ass Outlaw Phone
Bubbajoe40356 said:
select image on the top row. You will see the selections in the pop up. Select mode. Change the mode to RGB. Then you can edit the image. No need to change it back. Just save.
Sent from my Big Ass Outlaw Phone
---------- Post added at 09:22 PM ---------- Previous post was at 09:08 PM ----------
Helpful hint .... Anything that is a .9 image ...leave alone for now.
Sent from my Big Ass Outlaw Phone
Click to expand...
Click to collapse
Sorry for me being so annoying but what is a .9 image? How can you tell?
Sent from my SAMSUNG-SGH-I717 using xda app-developers app
The image will have a .9 on the end of the name. They at harder to theme. You have to take care to not alter the black edges or you will break the image and the theme will not compile.
Sent from my Big Ass Outlaw Phone
Bubbajoe40356 said:
The image will have a .9 on the end of the name. They at harder to theme. You have to take care to not alter the black edges or you will break the image and the theme will not compile.
Sent from my Big Ass Outlaw Phone
Click to expand...
Click to collapse
So the .9 pngs have a black edge that you can't go over or else it will break? I just use colorize>then I make it red
Sent from my SAMSUNG-SGH-I717 using xda app-developers app
The black edges in A .9.png tell the os how to stretch the image properly in landscape mode.
If those single pixel wide lines are not exactly the same when you compile it will error and break the apk.
At first DON'T DO A HUGE BATCH OF .9.pngs, cause if you do like 50 images and you messed up 1 it's really hard to pin down which one it was.
Do a few, compile, do a few more, compile, and so on until you're done.
I would suggest leaving the .9 images for last.
Try some of the other images. Compile and install your theme. That way you can see what your doing and if you like it. The .9 images ... You will want to use the square selector tool in gimp to surround only the image ...never the black lines. Then edit the image.
I always do a few images and test ..you may think something looks good on pc ..then find it looks different on the phone.
Ooh, and if your married...be prepared for "the look" from her .. That will let you know when you've worked long enough.
Sent from my Big Ass Outlaw Phone
I have a lenovo a690 that I would like to add Vietnamese to. I have tried morelocale2 but it doesn't really translate much. If anything could show me how to decompile the framework res and the settings and then somehow add the language module into the apk and make a zip file for it, I would sincerely appreciate it. Thanks for your time.
I know basic adb commands and have android SDK set up...but that's as far as my knowledge goes.
No one wants to help me
Sent from my GT-N8000 using xda premium
Bump it
Sent from my GT-N8000 using xda premium