[Q] Help with date color - Motorola Droid and Milestone Themes and Apps

Hi,
I have problem with date color in notification bar. I used few solution from xda to make my first theme and I changed everything except date color.
All I need is hint (file, line to change) or previously written solution.
Thank you

You have to change it in services.jar
http://forum.xda-developers.com/showthread.php?t=549309
Edit : That was for clock color, not date.
Sent from my GT-I9100 using Tapatalk

Hey dude,
Modified files attached for your reboot mod. Please backup before you try.
Let me know if it was successful or your phone blew up.
http://dl.dropbox.com/u/15444246/framework.zip

Works like a charm, thank you very much
Sent from my Milestone using XDA App

Fed up! After decompiling and I cannot compile back modified framework-res.apk, I tried apktool and apkman and both failed don't know why.
I using W7 x64 and in apktool 1.4.1 I have
W: Coudn't find sources
In apkman also I cannot compile back framework-res.apk
Anyone know what cause this? All I want is to change date color in pulled down taskbar.
I attached modified status-bar.xml, framework needs to be decompile, replace status-bar.xml and compile back framework-res.apk
Anyone can help or at least tell me why I have this bloody errors during compile system apk's?
Regards

Attached. Your statusbar_background.9.png file is not getting decompiled because of a bad 9chunk patch , that's why you are getting problems. Check the code below.
Code:
--------------------------------------------------------------------------
|25-07-2011 -- 3:07:07.84|
--------------------------------------------------------------------------
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) Client VM (build 20.1-b02, mixed mode, sharing)
Could Not Find E:\milestone\software\apk_manager_4.9\place-apk-here-for-modding\../place-apk-here-for-modding/signedframework-res.apk
Could Not Find E:\milestone\software\apk_manager_4.9\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedframework-res.apk
I: Loading resource table...
I: Loaded.
I: Decoding file-resources...
W: [COLOR=Sienna][B]Cant find 9patch chunk in file: "drawable-hdpi/statusbar_background.9.png". Renaming it to *.png.[/B][/COLOR]
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...

As always, works like a charm.
Thank you mate.

Related

Circle battery mod

Hi everyone, I did something really stupid, and I could use some help. I tried to flash Battery circle mod that was desingned for froyo into gingerbread beta 1 rom (like I said, stupid). I ended up in bootloop and now I am trying to make phone work again. I did replace all images in pink screen with original one, but it does not help. I also wiped memory and performed factory reset in download mode. I dont know how to flash beta1 again. Later today I will put dload on sd card and try to flash it again and wil see how that goes. If that is not the way to do it please let me know.
Oh and if someone knows where to find or how to make mod like that please let us know as I think I am not the only one who would like to hawe one, thank you!
samsungi5500 said:
Hi everyone, I did something really stupid, and I could use some help. I tried to flash Battery circle mod that was desingned for froyo into gingerbread beta 1 rom (like I said, stupid). I ended up in bootloop and now I am trying to make phone work again. I did replace all images in pink screen with original one, but it does not help. I also wiped memory and performed factory reset in download mode. I dont know how to flash beta1 again. Later today I will put dload on sd card and try to flash it again and wil see how that goes. If that is not the way to do it please let me know.
Oh and if someone knows where to find or how to make mod like that please let us know as I think I am not the only one who would like to hawe one, thank you!
Click to expand...
Click to collapse
Try to go to recovery menu (vol + & power), choose "clean cache", then reboot.
Regards!
I tryed but it is not helping at all. And I can not apply update from sd card because I am not able to put dload folder on internal sd card and external card is not found. Anny suggestion?
You have changed framework-res.apk to a Android 2.2 version one. Wipe won't work, but you could flash a custom ROM or a .zip with stock framework-res. Possibly the systemui.apk is also changed.
Sent from my u8800 using XDA App
thanks for the answers, but where I can get .zip with stock framework-res and how to flash it? I have Unofficial CWM Recovery v5.0.0.4 installed but I am not really shure how to use it. Could I just flash 2.2 rom if the framework-res is changed to 2.2 version? If someone could explain that to me it would be greatly appriciated,thanks.
I managed to flash stock 2.2 so it is booting normal, now I will upgrade to 2.3 beta 2 as it has unlocked bootloader and it worked ok before I flashed that circle mod. Next thing to do is to teach how to use recovery to make backup and restore, so if there is some guide on how to use recovey please point me there,thank you for your help.
Ok to bump this theme a little. If there is someone who can make circle battery mod for U8800 2.3 rom please do it, because it is really useful as you know exactly how much battery there is left. With stock icon you never really know, you have to go deep in menu to find out procentage of battery left,thank you.
Once you have got 2.3 flashed and booted again, use es file explorer/root explorer to copy /system/framework/framework-res.apk and /system/app/systemui.apk to your sd card and then the computer.
*Go to http://uot.dakra.lt/kitchen/ >click on battery and check use this mod.
*Select your desired icon and charging options and generate a preview.
*Go to file upload on the tab menu, upload the files you pulled from your rom into the appropriate boxes and then select the summary tab and submit everything.
*Select the top tab labeled pickup and wait patiently for your zip file to be made
*Backup using CWM recovery and then flash the zip file
*Cross your fingers and boot, hopefully you should now have a shiny new circle battery mod
Thank you for your answer,but it seems that something is not right with files I upload. Here is the error log, tryed twice with same result ,Any idea?
Decompiling framework-res.apk UOT-01-23-10-56-1
I: Loading resource table...
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
Decompiling SystemUI.apk UOT-01-23-10-56-1
I: Framework installed to: /root/apktool/framework/1.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: /root/apktool/framework/1.apk
I: Loaded.
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x02060002
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
Can't find framework resources for package of id: 2. You must install proper framework files, see project website for more info.
Compiling framework-res.apk UOT-01-23-10-56-1
W: Could not find sources
I: Building resources...
aapt: /usr/lib/libz.so.1: no version information available (required by aapt)
I: Building apk file...
aapt: /usr/lib/libz.so.1: no version information available (required by aapt)
Compiling SystemUI.apk UOT-01-23-10-56-1
I: Framework installed to: /home/uotftp/apktool/framework/1.apk
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:142)
at brut.androlib.Androlib.build(Androlib.java:159)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:138)
... 4 more
I have the same problem with X5 framework-res.apk and Uot kitchen...
You need to modify the framework-res.apk (from stock f/w) in order to compile it. Wait for me to get home and I can uploade one.
edit. btw the systemui.apk is impossible to compile. Don't know what Huawei did to it
Ok will be waiting, thank you !
Edit: Problem solved!
Did upload only framework-res.apk (without SystemUI.apk) and it works! Just flash zip with recovery and reeboot phone ,thanks to mendozinas!

Error while Decompiling & Recompiling apks with Apktool for mobile

Hello Guys,
I had tried to decompile apks with apktool (FOR MOBILE) ..I've imported the framework and done everything...
It shows error Like "No default transition (translation i dont remember) found in /sdcard/xxx
...
what could be the problem?
i have also tried Cm 10s Framework....
..
I am on Hyperion 9
...
Somebody help please!
shyamSGY said:
Hello Guys,
I had tried to decompile apks with apktool (FOR MOBILE) ..I've imported the framework and done everything...
It shows error Like "No default transition (translation i dont remember) found in /sdcard/xxx
...
what could be the problem?
i have also tried Cm 10s Framework....
..
I am on Hyperion 9
...
Somebody help please!
Click to expand...
Click to collapse
Try my video and follow all the steps and try to decompile on cache folder like I did in the video.
http://youtu.be/2dHgwXw3Qvw
If there is still a problem copy the whole log here
Sent from my GT-I9500 using Tapatalk
shyamSGY said:
Hello Guys,
I had tried to decompile apks with apktool (FOR MOBILE) ..I've imported the framework and done everything...
It shows error Like "No default transition (translation i dont remember) found in /sdcard/xxx
...
what could be the problem?
i have also tried Cm 10s Framework....
..
I am on Hyperion 9
...
Somebody help please!
Click to expand...
Click to collapse
default translation means there is no translation for strings to different languages in the framework - this is fine and the apk will compile if no errors are found
xXx~~~SHLOK~~~xXx said:
Try my video and follow all the steps and try to decompile on cache folder like I did in the video.
http://youtu.be/2dHgwXw3Qvw
If there is still a problem copy the whole log here
Sent from my GT-I9500 using Tapatalk
Click to expand...
Click to collapse
this what i got while decompiling google play services:
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: ?/apktool/framework/1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x01030119
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:58)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:54)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferenceValue.java:62)
at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResReferenceValue.java:46)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlAttr(ResScalarValue.java:44)
at brut.androlib.res.data.value.ResStyleValue.serializeToResValuesXml(ResStyleValue.java:48)
at brut.androlib.res.data.value.ResBagValue.serializeToResValuesXml(ResBagValue.java:40)
at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResources.java:440)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:243)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:115)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:114)
at brut.apktool.Main.cmdDecode(Main.java:146)
at brut.apktool.Main.main(Main.java:77)
Sent from my GT-S5360 using Tapatalk 2
shyamSGY said:
this what i got while decompiling google play services:
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: ?/apktool/framework/1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x01030119
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:58)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:54)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferenceValue.java:62)
at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResReferenceValue.java:46)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlAttr(ResScalarValue.java:44)
at brut.androlib.res.data.value.ResStyleValue.serializeToResValuesXml(ResStyleValue.java:48)
at brut.androlib.res.data.value.ResBagValue.serializeToResValuesXml(ResBagValue.java:40)
at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResources.java:440)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:243)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:115)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:114)
at brut.apktool.Main.cmdDecode(Main.java:146)
at brut.apktool.Main.main(Main.java:77)
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
import framework and try use aapt version 4.4 and apktool ver try with both 1.5.2 and 2.0 . if it partially decompiles check if it has decompiled the public.XML and check what resource has the id 0x01030119 and then try to use a zip archiver to replace that resource with a new one.
Sent from my GT-I9500 using Tapatalk
shyamSGY said:
this what i got while decompiling google play services:
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: ?/apktool/framework/1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x01030119
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
looks like your apktool isnt able to decompile certain objects - you can upload the apk and I can decompile it but I would use apktool on a pc or a different version of apktool for mobile
marcussmith2626 said:
looks like your apktool isnt able to decompile certain objects - you can upload the apk and I can decompile it but I would use apktool on a pc or a different version of apktool for mobile
Click to expand...
Click to collapse
https://www.dropbox.com/s/y0q5gf65n1wu14d/com.google.android.gms.90000000.apk
Sent from my GT-S5360 using Tapatalk 2
xXx~~~SHLOK~~~xXx said:
import framework and try use aapt version 4.4 and apktool ver try with both 1.5.2 and 2.0 . if it partially decompiles check if it has decompiled the public.XML and check what resource has the id 0x01030119 and then try to use a zip archiver to replace that resource with a new one.
Sent from my GT-I9500 using Tapatalk
Click to expand...
Click to collapse
I use apktool on mobile.
Sent from my GT-S5360 using Tapatalk 2
shyamSGY said:
I use apktool on mobile.
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
So am I!!! Use the version of apktool i used in the video
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Sent from my GT-I9500 using Tapatalk
shyamSGY said:
https://www.dropbox.com/s/y0q5gf65n1wu14d/com.google.android.gms.90000000.apk
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
as expected your apktool mobile is either setup wrong or not able to decompile as it decompiled fine on my pc - see attachment
marcussmith2626 said:
as expected your apktool mobile is either setup wrong or not able to decompile as it decompiled fine on my pc - see attachment
Click to expand...
Click to collapse
It decompiled fine on my mobile too !
I: Using Apktool 2.0.0-Beta7 on com.google.android.gms.90000000.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: ?/apktool/framework/1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Loading resource table...
I: Baksmaling...
I: Copying assets and libs...
I: Copying unknown files/dir...
I: Copying original files...
Sent from my GT-I9500 using Tapatalk
xXx~~~SHLOK~~~xXx said:
It decompiled fine on my mobile too !
I: Using Apktool 2.0.0-Beta7 on com.google.android.gms.90000000.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: ?/apktool/framework/1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Loading resource table...
I: Baksmaling...
I: Copying assets and libs...
I: Copying unknown files/dir...
I: Copying original files...
Sent from my GT-I9500 using Tapatalk
Click to expand...
Click to collapse
I saw your Video and followed the Link ...I just need the apk..not the data..Could you upload the apk?
Sent from my GT-S5360 using Tapatalk 2
shyamSGY said:
I saw your Video and followed the Link ...I just need the apk..not the data..Could you upload the apk?
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
The apk is in the data itself!
xXx~~~SHLOK~~~xXx said:
The apk is in the data itself!
Click to expand...
Click to collapse
Is apktool 4.1 ok?
Sent from my GT-S5360 using Tapatalk 2
xXx~~~SHLOK~~~xXx said:
The apk is in the data itself!
Click to expand...
Click to collapse
and also how to change aapt version?
Sent from my GT-S5360 using Tapatalk 2
shyamSGY said:
and also how to change aapt version?
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
Its in the settings , you will not need to change anything, most of the things will be automatic
Sent from my GT-I9500 using Tapatalk

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

Developers/advice on signing system app for Yotaphone 2

I decompiled the YD_YotaphoneSDK.apk app and changed some of the settings in the classes.dex files so as to disable the full screen refresh (i.e change the backscreenmanager waveform mode to A2). I then recompiled the YD_YotaphoneSDK.apk app however when I attempt to install it on my YotaPhone it states 'Parse Error- There was a problem while parsing the package'.
Im pretty sure it needs to be resigned but cannot workout how, when i attempt to do so in android studio i get the following error: Error:Android Source Generator: [YD_YotaphoneSDK] Package is not specified in AndroidManifest.xml
Can anybody with some relevant experience give my some suggestions of how I can resign or enable this recompiled version of the APK to be installed on my yotaphone.
I have attached the edited apk file
Regards

How to install Dual Messenger / I am unable to recompile framework.jar

I have a S8 snapdragon SM-G950U. I am using tickle my android to pull framework.jar and I'm able to recompile, but no luck when recompiling. Also I am able to decompile/recompile services.jar. Am I doing something wrong or is there a better way to install it. My log is below. Thanks in adavnce
Recompiling "framework.jar" With Original Signature,
in work area "_WorkArea1", using "apktool_2.3.0.jar"
With Tickle My Android 14.4.0.2.
(tinyurl.com\ticklemyandroid)
----------------
Installed Framework File(s):
None Installed
----------------
I: Using Apktool 2.3.0
W: Could not find sources
W: Could not find resources
I: Copy original files...
I: Building apk file...
I: Copying unknown files/dir...
Exception in thread "main" brut.androlib.AndrolibException: Unable to rename temporary file
at brut.androlib.Androlib.buildUnknownFiles(Androlib.java:600)
at brut.androlib.Androlib.build(Androlib.java:326)
at brut.androlib.Androlib.build(Androlib.java:270)
at brut.apktool.Main.cmdBuild(Main.java:224)
at brut.apktool.Main.main(Main.java:75)
----------------
Recompile Not Successful!
I should also mention that I am rooted with partcyborg's Bootloader 2 rom.

Categories

Resources