unable to recompile - Galaxy Y GT-S5360 and Duos 6102 Q&A, Help & Troubl

i am unable to recompile systemui.apk after changing status bar icon it shows some error please help me what should i do.
Sent from my GT-S5360 using Tapatalk 2

what error? specify please

its saying something like that error massing or changed in the location where i changed icons
Sent from my GT-S5360 using Tapatalk 2

sanchit0403 said:
its saying something like that error massing or changed in the location where i changed icons
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
Make sure the png file names are the same
Do not simply replace .9.png only normal png

marcussmith2626 said:
Make sure the png file names are the same
Do not simply replace .9.png only normal png
Click to expand...
Click to collapse
yup i replaced them
Sent from my GT-S5360 using Tapatalk 2

sanchit0403 said:
yup i replaced them
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
If you are simply replacing a png with a png with the same file name & image size there is no need to decompile the apk
simply change the file name SystemUI.apk to SystemUI. zip
unzip the file
goto res/drawable-ldpi
replace png keeping file names & dimensions the same
zip everything back up
change file extension from zip back to apk (if on pc you will need to enable show file extensions in folder options in the control panel to see the zip extention)
put in flashable zip and flashing with system mounted
if you want to use apktool for anything else follow my guide here
http://forum.xda-developers.com/showthread.php?t=2206938

Related

[Q] is this the right step to modify framework-res.apk ?

hi...
i want to change standard notification bar from my htc desire running sense froyo rom with mod battery percentage, animation icons for data, signal, etc.
what i did is :
1. pull framework-res.apk from /system/framework folder
2. extract framework-res.apk using apktool
3. extract & overwrite with icons colour pack v4 downloaded from http://forum.xda-developers.com/showthread.php?t=722993 into drawable & drawable-hdpi folder from extracted framework apk folder.
4. bundled modified framework-res.apk using apktool
5. sign framework-res.apk
6. in recovery mode, adb push framework-res.apk to /system/framework. before doing that, i mount /system first..
7. reboot
what i found, everytime i choose network setting or wireless setting it crashed with error message process.com.android.settings has stopped unexpectedly.
why this error occured ? any other step that i did is wrong ?
I just pull from adb, my PC has 7zip installed so can see drill into the compressed file, drag replace the altered images, back out of the compressed file to commit, push via adb, reboot.
Sent from my Nexus One using XDA App
Why not use the UOT kitchen?
Sent from my HTC Desire using XDA App
HTCinToronto said:
I just pull from adb, my PC has 7zip installed so can see drill into the compressed file, drag replace the altered images, back out of the compressed file to commit, push via adb, reboot.
Sent from my Nexus One using XDA App
Click to expand...
Click to collapse
This is what I do, basically. I make the battery mod with UOT, and when the flashable zip is ready I extract the framework-res to some folder and just replace couple of images, then I'll put the modified framework-res back to the UOT-file and flash it. Works every time.
EDIT: I don't extract the files within framework-res.zip, only the .zip itself so I can open it via WinRar and replace the files. It isn't probably even needed, you could probably replace the needed files when browsing the UOT file with winrar/whatever etc etc. Haven't tried.
Can this same method be applied to anything that can be found in the framework ?

Which file in a flashable zip

Which file ln a flashable zip should i edit to change the name which comes while flashing the zip
For Example:
When flashing ICS icon pack
It come on the screen
"ICS icons by abhirocks
Thanx me"
How edit those line
Sent from my GT-S5360 using xda premium
Go to META-INF/com/google/android.. Open the updater script. There you'll see lines like this :-
Code:
ui_print("Icons by [email protected]");
or something like that. The message in the quotes are displayed on screen.
Sent from my GT-S5360 using Tapatalk 2
It should be edited in the updater-script of the flashable zip and it must be signed after editing
follow the link bro it needs ALL THE SCRIPTS U WANT... + u hav to update the file called updater-script
http://forum.xda-developers.com/showthread.php?t=1669489&highlight=updater+scripts
How to sign the zip and i am unable to open updater script which application should use to open it
I am on win 7 32 bit
Sent from my GT-S5360 using xda premium
tjsgy said:
How to sign the zip and i am unable to open updater script which application should use to open it
I am on win 7 32 bit
Sent from my GT-S5360 using xda premium
Click to expand...
Click to collapse
Use notepad....or if you have notepad++, it's better...
Sent from my GT-S5360 using Tapatalk 2
updater-script actally is a .txt file... try renaming it by adding .txt at the end.... dnt 4get to delete .txt after ur done bro...
just use notepad ++
and save it in meta-inf/com/google/android/
name it updater-script
anyways the code is
Code:
ui_print ("I'm a potatooooooooooooooooooooooooo")
I made a icon pack zip file, but after i edited the updater script it shows installation aborted what should i do to fix it
I work nicely when i tried without editing the script
Sent either from My Nexus S or my Galaxy Y
did you use notepad?
when installation failed it gives error message like "error code 2" or something. what did you get?
kurotsugi said:
did you use notepad?
when installation failed it gives error message like "error code 2" or something. what did you get?
Click to expand...
Click to collapse
I used notepad ++ i got installation aborted
What did i do wrong?
Do I have to sign the zip? How?
Sent either from My Nexus S or my Galaxy Y
I can see the installation aborted. but I need the error code to solve the problem.
kurotsugi said:
I can see the installation aborted. but I need the error code to solve the problem.
Click to expand...
Click to collapse
It didnt showed any code
Sent either from My Nexus S or my Galaxy Y
uSE NOTEPAD++ to edit codes... that prob is comin due to encoding
hell_lock said:
uSE NOTEPAD++ to edit codes... that prob is comin due to encoding
Click to expand...
Click to collapse
Used it should i upload the zip here???
Sent either from My Nexus S or my Galaxy Y
:facepalm;
the error code should be exist.
after the installation failed, take a pic of the screen with a cam then upload it. you can also upload the updater script's content here.
See i am not that Dumb
Sent either from My Nexus S or my Galaxy Y
tjsgy said:
See i am not that Dumb
Sent either from My Nexus S or my Galaxy Y
Click to expand...
Click to collapse
i think you forgot to put something in the edify,
Code:
run_program("/sbin/busybox", "mount", "/system");
I'm not saying that you're dumb. I just want to know the source of the problem and make sure of it,
Code:
code 2 means its not signed
code 6 means something wrong with the script
no error code means the installation file is broken/corrupted.
the last case is very rare. it might comes from these stuff:
1 the file is corrupted when you copy it to sdcard
2 the sdcard is broken and need to be reformated
3 you didnt't zip it correctly.
you can do these several step to check on it:
1 the zip method when you make the zip file should be store, not compress.
2 try to open the zip file with any zip file manager. you should see the folder inside it are
Code:
meta-inf
<another folder names>
<a bunch of files>
if you only see a folder when you opened it, it means you didn't zip it correctly
All the folders are there zipping it againg n i was joking about the dumb thing dont mind
Sent either from My Nexus S or my Galaxy Y

[q] how to create flashable icon packs

can anyone teach me to create a flashable icon pack for our galaxy y ??
Download my s3 icon pack
http://forum.xda-developers.com/showthread.php?t=1699249
Extract it on desktop,you see three folders tmp,meta inf and unpack
open the unpack and you will see folders with names, Browser.apk,myfiles.apk............
Replace the icons with others 48x48 or 32x32
when finish replacing
open 7-zip and compress the folders in zip and deflate metode,fine now flash it
EliTSamsunG said:
Download my s3 icon pack
http://forum.xda-developers.com/showthread.php?t=1699249
Extract it on desktop,you see three folders tmp,meta inf and unpack
open the unpack and you will see folders with names, Browser.apk,myfiles.apk............
Replace the icons with others 48x48 or 32x32
when finish replacing
open 7-zip and compress the folders in zip and deflate metode,fine now flash it
Click to expand...
Click to collapse
wch icons to b replaced n by wch icons dey need to b replaced?
wat is deflate metode?
n wch folder is to b compressed?
Sent from my GT-S5360 using xda premium
EliTSamsunG said:
Download my s3 icon pack
http://forum.xda-developers.com/showthread.php?t=1699249
Extract it on desktop,you see three folders tmp,meta inf and unpack
open the unpack and you will see folders with names, Browser.apk,myfiles.apk............
Replace the icons with others 48x48 or 32x32
when finish replacing
open 7-zip and compress the folders in zip and deflate metode,fine now flash it
Click to expand...
Click to collapse
He explained it.. else see this thread http://forum.xda-developers.com/showthread.php?t=1937544
hit thanks button! If above post helps you..
Sent from my GT-S6102

[Q] How to change the Androidmanifest.xml.file to make it install in sd card?

Hello guys,
I have been trying to change the manifest file to make it installable in sd card.. Everytime i change the file..and recomplile it is giving me parse Error..
This is what i done:---
1.) Extracted the Apk file with es file explorer..
2.) went to Androidmanifest.xml and edited like "" <manifest :androidinstalllocation="prefexternal">
3.Recompiled it..
Then parse error .. what am i doing wrong..please correct me..
Thanks in Advance
Sent from my GT-S5360 using Tapatalk 2
the "E" in preferExternal needs to be a capital letter
its perfer not pref
so it looks like this
android:installLocation="preferExternal"
you can also try changing it to to "auto"
This will install it on internal unless it is full but allows the app to be movable to sd card via system settings
also you will need to resign the app else you wont be able to install it
marcussmith2626 said:
the "E" in preferExternal needs to be a capital letter
its perfer not pref
so it looks like this
android:installLocation="preferExternal"
you can also try changing it to to "auto"
This will install it on internal unless it is full but allows the app to be movable to sd card via system settings
also you will need to resign the app else you wont be able to install it
Click to expand...
Click to collapse
Thanks.But i'm still getting a Parse error..Do i need to Use apktool or I can do it in my phone..?
Sent from my GT-S5360 using Tapatalk 2
shyamSGY said:
Thanks.But i'm still getting a Parse error..Do i need to Use apktool or I can do it in my phone..?
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
to edit any xml file you MUST decompile the apk - this means using a decompiler like apktool (there is apktool for mobile)
you cant simply unzip an apk to edit an xml file
you said you recompiled the apk - what you meant was you rezipped the apk which you cannot do
you can only unzip and rezip and apk if you just change a png image - you cannot edit xmls this way
marcussmith2626 said:
to exit any xml file you MUST decompile the apk - this means using a decompiler like apktool (there is apktool for mobile)
you cant simply unzip an apk to exit apk an xml file
you said you recompiled the apk - what you meant was you rezipped the apk which you cannot do
you can only unzip and rezip and apk if you just change a png image - you cannot edit xmls this way
Click to expand...
Click to collapse
Thanks dude..will try
Sent from my GT-S5360 using Tapatalk 2
marcussmith2626 said:
to edit any xml file you MUST decompile the apk - this means using a decompiler like apktool (there is apktool for mobile)
you cant simply unzip an apk to edit an xml file
you said you recompiled the apk - what you meant was you rezipped the apk which you cannot do
you can only unzip and rezip and apk if you just change a png image - you cannot edit xmls this way
Click to expand...
Click to collapse
Once I was trying to port a Armv7 game to v6..i changed the lib files and reziped..and it worked.. So changing lib files differs from editing xml files..it needs Apktool right?
Sent from my GT-S5360 using Tapatalk 2
shyamSGY said:
Once I was trying to port a Armv7 game to v6..i changed the lib files and reziped..and it worked.. So changing lib files differs from editing xml files..it needs Apktool right?
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
lib files are different - you are not actually editing them - they are precompiled files
xmls need to be decompiled to edit then - you will notice if its not decompiled you might be able to see the first few lines and the rest will be all symbols and unreadable
you MUST decompile an apk to edit xml and smali files
marcussmith2626 said:
lib files are different - you are not actually editing them - they are precompiled files
xmls need to be decompiled to edit then - you will notice if its not decompiled you might be able to see the first few lines and the rest will be all symbols and unreadable
you MUST decompile an apk to edit xml and smali files
Click to expand...
Click to collapse
Thanks again
Sent from my GT-S5360 using Tapatalk 2
marcussmith2626 said:
lib files are different - you are not actually editing them - they are precompiled files
xmls need to be decompiled to edit then - you will notice if its not decompiled you might be able to see the first few lines and the rest will be all symbols and unreadable
you MUST decompile an apk to edit xml and smali files
Click to expand...
Click to collapse
The Apktool is asking For data..,where do i get it..?
Sent from my GT-S5360 using Tapatalk 2
shyamSGY said:
The Apktool is asking For data..,where do i get it..?
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
if its apktool for mobile follow the instructions from the thread
you point the app to folder on your sd card
load the framework-res.apk
see
http://forum.xda-developers.com/showthread.php?t=2488697
or
http://forum.xda-developers.com/showthread.php?t=2388135
marcussmith2626 said:
if its apktool for mobile follow the instructions from the thread
you point the app to folder on your sd card
load the framework-res.apk
see
http://forum.xda-developers.com/showthread.php?t=2488697
or
http://forum.xda-developers.com/showthread.php?t=2388135
Click to expand...
Click to collapse
Thanks it worked..
Sent from my GT-S5360

Can't modify systemUI.apk on SM-G900F Lollipop 5.0

I been having serious problems trying to replace a few statusbar images from my recently rooted Samsung Galaxy S5 SM-G900F International Version. Rooting is already done (with CF Auto root). Evertyhing is ok and functional.
The problem is that I want to replace some signal images (only two PNG files) and I've tried 2 times and I always end up with black screen and statusbar gone. The only thing that fix it is restoring original systemUI.apk.
This is what I've done so far:
Copy the systemUI.apk to computer.
Extract it with WinRAR
Replace all the images
Create new systemUI.apk from WinRAR with no compression.
Put systemUI.apk back to original location /system/priv-apps/systemUI folder.
Reboot
But always I get black background and no statusbar e.g. systemUI is GONE.
I've noticed that now apps are no longer individual, they are stored in folders and, for example systemUI, it shows:
Ignore the apk4, it's mine I was just testing.
Any idea how to modify it?
See this thread.....
http://forum.xda-developers.com/showthread.php?p=54852717
The OP takes stock SystemUI apks and modifies them to produce '3D' toggles.
If anybody can help, it'll be him.
http://i.imgur.com/rVnFwJM.jpg
keithross39 said:
See this thread.....
http://forum.xda-developers.com/showthread.php?p=54852717
The OP takes stock SystemUI apks and modifies them to produce '3D' toggles.
If anybody can help, it'll be him.
http://i.imgur.com/rVnFwJM.jpg
Click to expand...
Click to collapse
I've read that thread but it seems too old and 4.4 oriented.
I tried also APKTool but nothing, I just break the whole system and need to do factory reset.
Yeah there is a lot of mention of kitkat in that thread, but the OP does help other members with lollipop. It wouldn't hurt to leave a comment in that thread and see where it gets you.....
Sent from my SM-G900F using XDA Labs
keithross39 said:
Yeah there is a lot of mention of kitkat in that thread, but the OP does help other members with lollipop. It wouldn't hurt to leave a comment in that thread and see where it gets you.....
Sent from my SM-G900F using XDA Labs
Click to expand...
Click to collapse
I will do that! Thank you.
One thing.
I was messing around and testing other system APK.
I edited one small APK (VoiceNote.APK) then did a wipe cache from stock factory and now I only enter to "Process system isn't responding" and nothing else. Do you believe a system wipe data/factoryreset would fix this? I replaced the APK with mine and left the original one inside with different name. Could I use ADB to rename it back? Or nothing and reinstall the whole ROM? I'm kinda soft bricked now.
Manimecker said:
I will do that! Thank you.
One thing.
I was messing around and testing other system APK.
I edited one small APK (VoiceNote.APK) then did a wipe cache from stock factory and now I only enter to "Process system isn't responding" and nothing else. Do you believe a system wipe data/factoryreset would fix this? I replaced the APK with mine and left the original one inside with different name. Could I use ADB to rename it back? Or nothing and reinstall the whole ROM? I'm kinda soft bricked now.
Click to expand...
Click to collapse
Update:
I made a factory reset. Up and running. Just fine. But the app I replaced "VoiceNote" is gone. Any ideas how to recover it? I still have original backup on both S5 and computer.
If you can't get into Android, your choices are fairly limited......even more limited if you have stock recovery.......
With those conditions all you can do is
1) cache wipe
2) data wipe/factory reset
3) start again with a firmware flash
but I have a feeling that you need to replace that app with a working version before you get a successful boot.....which means option 3.
Edit...ah Ok, your comment was posted before I finished my reply.....
If you go to my profile and look for threads I've started, you'll see one which deals with system apps and systen-priv apps. Basically I ripped copies of these from my 4.4.2 firmware. I'm not sure if there will be compatibility issues between apks ripped from 4.4.2 when pushed to a 5.0 firmware, but they're available if you want to try it....
If you *do* try it, remember to change permissions and reboot.....
Edit 2.....
If you still have the original, it's a simple case of copying it to it's original location, deleting the modified version and it's associated odex file (in the same folder as the apk) then setting the permissions of the 'freshly copied apk to rw- r-- r-- and rebooting....
Sent from my SM-G900F using XDA Labs
keithross39 said:
If you can't get into Android, your choices are fairly limited......even more limited if you have stock recovery.......
With those conditions all you can do is
1) cache wipe
2) data wipe/factory reset
3) start again with a firmware flash
but I have a feeling that you need to replace that app with a working version before you get a successful boot.....which means option 3.
Edit...ah Ok, your comment was posted before I finished my reply.....
If you go to my profile and look for threads I've started, you'll see one which deals with system apps and systen-priv apps. Basically I ripped copies of these from my 4.4.2 firmware. I'm not sure if there will be compatibility issues between apks ripped from 4.4.2 when pushed to a 5.0 firmware, but they're available if you want to try it....
If you *do* try it, remember to change permissions and reboot.....
Edit 2.....
If you still have the original, it's a simple case of copying it to it's original location, deleting the modified version and it's associated odex file (in the same folder as the apk) then setting the permissions of the 'freshly copied apk to rw- r-- r-- and rebooting....
Sent from my SM-G900F using XDA Labs
Click to expand...
Click to collapse
Basically I did the replacing, same file, permissions and everything, but still have no app. Voice Note is gone. I'll try a factory wipe reset if that works but I don't think so. What can I do now? Android is still running up and good.
Update:
Did factory reset and everything is good and running. App is back. So I guess I'm same as I started. I won't mess up with system files again until I know a good way to edit the SystemUI.apk. Is there any App I can use? Like Xposed or something? I really just want to replace my data connected icons (3G, H+, 4G, LTE).
Is this the sort of thing you mean?......
If it is, then Android Theme Engine module with xposed.......
That is assuming you can get it working on LP.....
Sent from my SM-G900F using XDA Labs
keithross39 said:
Is this the sort of thing you mean?......
If it is, then Android Theme Engine module with xposed.......
That is assuming you can get it working on LP.....
Sent from my SM-G900F using XDA Labs
Click to expand...
Click to collapse
Basically something like that, but I want to replace the PNG with ones I've created. For example you have your 4G icon there, I want to change it with another PNG I created.
Manimecker said:
Basically something like that, but I want to replace the PNG with ones I've created. For example you have your 4G icon there, I want to change it with another PNG I created.
Click to expand...
Click to collapse
Well, that Android Theme Engine module can change the 'theme' of those icons too. Might it be possible to decompile that, insert your images, recompile it and flash.....that way, if it goes wrong, it should be easier to recover than when you changed that system apk.....
Sent from my SM-G900F using XDA Labs
You can just use apktool, just make sure to get your framework-res and then when done open original systemui in 7zip and drag the META-INF folder and drag it to the new systemui apk you made with apktool, works every time for me.
Sent from my Galaxy S5 using XDA Labs
@Rakuu OP says he's already tried using apktool and it didn't work.....
You obviously know more about this than me, so I guess you're gonna have to take over here fella......
http://i.imgur.com/rVnFwJM.jpg
keithross39 said:
@Rakuu OP says he's already tried using apktool and it didn't work.....
You obviously know more about this than me, so I guess you're gonna have to take over here fella......
http://i.imgur.com/rVnFwJM.jpg
Click to expand...
Click to collapse
Sound like he didn't do last part would be my guess.
keithross39 said:
@Rakuu OP says he's already tried using apktool and it didn't work.....
You obviously know more about this than me, so I guess you're gonna have to take over here fella......
http://i.imgur.com/rVnFwJM.jpg
Click to expand...
Click to collapse
where did he said that he used apktool? he used winrar to extract the systemui.
you have to use apktool in order to replace/modify anything within the apk.
i guess you have to read something about decompiling and recompiling (and signing) apps before you can do your changes. just replacing anything inside the .apk's is not the right way my friend
keithross39 said:
@Rakuu OP says he's already tried using apktool and it didn't work.....
You obviously know more about this than me, so I guess you're gonna have to take over here fella......
http://i.imgur.com/rVnFwJM.jpg
Click to expand...
Click to collapse
Yes, I did use APKTool BUT I didn't do all the other steps here mentioned.
Rakuu said:
Sound like he didn't do last part would be my guess.
Click to expand...
Click to collapse
You are right, I didn't do anything about framework-res or META-INF files. I just unpacked, replaced PNG inside and repack.
mcdachpappe said:
where did he said that he used apktool? he used winrar to extract the systemui.
you have to use apktool in order to replace/modify anything within the apk.
i guess you have to read something about decompiling and recompiling (and signing) apps before you can do your changes. just replacing anything inside the .apk's is not the right way my friend
Click to expand...
Click to collapse
I guess I'm starting to learn how things work inside an 5.0 Android Device. Any more ideas (manual, PDF, guide or something) I can follow from here?
Rakuu said:
You can just use apktool, just make sure to get your framework-res and then when done open original systemui in 7zip and drag the META-INF folder and drag it to the new systemui apk you made with apktool, works every time for me.
Sent from my Galaxy S5 using XDA Labs
Click to expand...
Click to collapse
I don't understand what to do with the framework-res apk file, I do however know where to find it but nothing else. I already have APKTool on Windows up and running, but I can't tell what to do next.
Manimecker said:
I don't understand what to do with the framework-res apk file, I do however know where to find it but nothing else. I already have APKTool on Windows up and running, but I can't tell what to do next.
Click to expand...
Click to collapse
Extract the framework-res and twframework-res apks and put them in the folder with the SystemUI.apk
Open a command prompt in the folder and type apktool if framework-res.apk and hit return, then do the same for the twframework-res.apk file, this will generate the resource files needed.
To unpack an apk type apktool d SystemUI..apk for example hit the return key, to repack type apktool b SystemUI (usually the decompiled apk folder doesn't have the .apk after it), this will generate a new apk
Copy the Meta.inf, Android Manifest.xml and resources.arsc files from the original apk to the new apk , make sure the apk is titled exactly the same as the original apk so SystemUI.apk not systemui.apk and the new apk should work.
One thing you can do if you are just changing the png files is extract the png files from the folders direct from the apk to a working folder, create your new png files so they are the same size and exactly the same name as the originals, drag and drop them from the folder directly back into the folder location in the apk then reinstall the apk on the phone, this just replaces the png's, you only really need to decompile the apk if you are making changes to the xml files.
Use 7zip its better for these than winrar (personal opinion), if you want to male changes to the xml files then use Notepad++
Always keep a copy of your original apk's as a backup unless you want to install the firmware again should something go wrong.
EDIT:-
Thought you should have a bit more info about apktool, the red text is the apktool commands you would type in the CMD window from your working folder
Decompiling should look similar to this
C:\Samsung S7\APKs>apktool d SystemUI.apk
I: Using Apktool 2.1.1 on SystemUI.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\apktool\framework\1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
C:\Samsung S7\APKs>
When you recompile an APK it will be located in apk folder your compiling from so you decompile the SystemUI.apk which will become a folder called SystemUI when you re-compile the SystemUI folder to make a new apk then the new apk will be located in your SystemUi folder in a folder called dist.
When you recompile an apk it should look similar to this you can see here also a warning message you can ignore these they wont affect how the apk works provided you copy across the original files from the old to the new apk as mentioned below
C:\Samsung S7\APKs>apktool b SystemUI
I: Using Apktool 2.1.1
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
W: warning: string 'tw_screen_pinning_negative' has no default translation.
I: Building apk file...
I: Copying unknown files/dir...
C:\Samsung S7\APKs>
Using 7zip open this apk and open the original apk and simply drag the META.INF, respources.arsc and Android Manifest.xml from the original apk to your new apk close both apk's, put the new apk on your phone.
If you ever make any changes in the decompiled values folder then when you recompile your apk and copy across the above files from the old apk don't replace the resources.arsc file as thats where the values folders are just replace the Android Manifest and META.INF files.
ag4751 said:
Extract the framework-res and twframework-res apks and put them in the folder with the SystemUI.apk
Open a command prompt in the folder and type apktool if framework-res.apk and hit return, then do the same for the twframework-res.apk file, this will generate the resource files needed.
To unpack an apk type apktool d SystemUI..apk for example hit the return key, to repack type apktool b SystemUI (usually the decompiled apk folder doesn't have the .apk after it), this will generate a new apk
Copy the Meta.inf, Android Manifest.xml and resources.arsc files from the original apk to the new apk , make sure the apk is titled exactly the same as the original apk so SystemUI.apk not systemui.apk and the new apk should work.
One thing you can do if you are just changing the png files is extract the png files from the folders direct from the apk to a working folder, create your new png files so they are the same size and exactly the same name as the originals, drag and drop them from the folder directly back into the folder location in the apk then reinstall the apk on the phone, this just replaces the png's, you only really need to decompile the apk if you are making changes to the xml files.
Use 7zip its better for these than winrar (personal opinion), if you want to male changes to the xml files then use Notepad++
Always keep a copy of your original apk's as a backup unless you want to install the firmware again should something go wrong.
EDIT:-
Thought you should have a bit more info about apktool, the red text is the apktool commands you would type in the CMD window from your working folder
Decompiling should look similar to this
C:\Samsung S7\APKs>apktool d SystemUI.apk
I: Using Apktool 2.1.1 on SystemUI.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\apktool\framework\1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
C:\Samsung S7\APKs>
When you recompile an APK it will be located in apk folder your compiling from so you decompile the SystemUI.apk which will become a folder called SystemUI when you re-compile the SystemUI folder to make a new apk then the new apk will be located in your SystemUi folder in a folder called dist.
When you recompile an apk it should look similar to this you can see here also a warning message you can ignore these they wont affect how the apk works provided you copy across the original files from the old to the new apk as mentioned below
C:\Samsung S7\APKs>apktool b SystemUI
I: Using Apktool 2.1.1
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
W: warning: string 'tw_screen_pinning_negative' has no default translation.
I: Building apk file...
I: Copying unknown files/dir...
C:\Samsung S7\APKs>
Using 7zip open this apk and open the original apk and simply drag the META.INF, respources.arsc and Android Manifest.xml from the original apk to your new apk close both apk's, put the new apk on your phone.
If you ever make any changes in the decompiled values folder then when you recompile your apk and copy across the above files from the old apk don't replace the resources.arsc file as thats where the values folders are just replace the Android Manifest and META.INF files.
Click to expand...
Click to collapse
I will try that! I'm gonna get back with update.
Just one question. Do I need to odex or deodex my APK? Should I edit the SystemUI.odex.xz and SystemUI.odex.art.xz, both inside the ARM folder?
Manimecker said:
I will try that! I'm gonna get back with update.
Just one question. Do I need to odex or deodex my APK? Should I edit the SystemUI.odex.xz and SystemUI.odex.art.xz, both inside the ARM folder?
Click to expand...
Click to collapse
No clue on that, always used deodexed roms cause messing with odexed stuff is a pain in the rear, if you deodexed your rom this will be about 5x easier.
Sent from my Galaxy S5 using XDA Labs
Manimecker said:
I will try that! I'm gonna get back with update.
Just one question. Do I need to odex or deodex my APK? Should I edit the SystemUI.odex.xz and SystemUI.odex.art.xz, both inside the ARM folder?
Click to expand...
Click to collapse
As @Rakuu says themeing with deodexed roms is preferred by most people although I never themed with deodexed roms myself, when I used to theme stock roms I just removed the apk made the changes to the png and xml files and replaced the apk, never changed anything with the odex.apk just the apk itself, as you want to do the systemui then just pull that from the rom make a copy of the apk, make the changes in your copy and push that back to the phone., keep an original unchanged version of the apk as a backup.
Do you have a custom recovery like TWRP on your phone and Android SDK installed on your computer as it makes pulling and pushing the apk's much safer than what you appear to be doing as it looks like your just doing copy and paste, although it works its not the ideal or safest way to do it.
The apk should be in the system/priv-app/SystemUI folder

Categories

Resources