[Q] APKTool: Recompling APK. No "dist" folder created - Android Q&A, Help & Troubleshooting

I am trying to modify a free app (Snapchat) to add functionality. I decompile with apktool. All good. But when I recompile the dist folder is not created and no apk is created. A classes.dex is created however. No errors at all during recompiling. Any advice?
Output
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...

Bump. Uggg I hate this.

jtl999 said:
Bump. Uggg I hate this.
Click to expand...
Click to collapse
I fixed this problem yesterday by adding garbage files. I lost my source code in a accident I tried this again and it did not work

jtl999 said:
I fixed this problem yesterday by adding garbage files. I lost my source code in a accident I tried this again and it did not work
Click to expand...
Click to collapse
I fixed the problem for good by using a pre release of apktool.:laugh: Back to hacking Snapchat

Related

[Q]Problem after changing AndroidManifest.xml

Hello Guys and Galls,
I want to change the background of Settings.apk from black to white. I use the FroyoMod Rom http://forum.xda-developers.com/showthread.php?t=815595.
If change
Code:
<application android:label="@string/settings_label" android:icon="@drawable/ic_launcher_settings" android:taskAffinity="">
to
Code:
<application android:theme=[COLOR="Red"]"@android:style/Theme.Light.NoTitleBar"[/COLOR] android:label="@string/settings_label" android:icon="@drawable/ic_launcher_settings" android:taskAffinity="">
in AndroidManifest.xml.
I use ApkManger to decompile and compile. The (de)compiling is without any errors.
After compile with ApkManager i do the follow:
- open original Settings.apk and unsignedSettings.apk with 7-zip
- delete AndrodManifest.xml in original Settings.apk
- copy AndroidManifest.xml from unsignedSettings.apk to original Settings.apk
- copy the modified original Settings.apk to the phone in /system/app
- chmod 644 Settings.apk
- chown root:root Settings.apk
So now if I start Settings nothing happens, nothing, not even an fc.
This is was logcat says:
Code:
com.android.settings has no certificates at entry AndroidManifest.xml
What I´m doing wrong?
Try one of the many apk re-packaging tools on this forum. Ive used apktool but there are some front ends built for it
From something awesome
killersnowman said:
Try one of the many apk re-packaging tools on this forum.
Click to expand...
Click to collapse
tigger-gg said:
I use ApkManger to decompile and compile.
Click to expand...
Click to collapse
By the way if I change any other xml file in /res there are no such problems.
tigger-gg said:
I use ApkManger to decompile and compile.
Click to expand...
Click to collapse
dur
i read this on the mobile and did not see that....
solving the problem? because I would be interested
Me too, I'm having a problem recompiling an AndroidManifest.xml with apkmanager 5.0.1., it won't install unless I use an original AndroidManifest.xml file first, then I can flash right over it. At first I thought it was a the change I made in the file, but I just decompiled and compiled an unmodified version, and it did the same thing. So its the compiler.
Settings.apk is a signed system app. It will refuse to run unless signed by the same key as the rest of the system apps. Just replacing a single XML in the APK will cause a signature mismatch.
Best bet? I'd say make your change, then use a kitchen like dsixda's to resign the whole system with the test key (I think this is a menu option).
Yep your whole system has to have the same signature. I did this edit for a rom a while back, but I made the settings transparent instead of white background by using Theme.Wallpaper.NoTitlebar. Just sign your whole rom together with testkeys and all should be good until another system app gets changed/modified and the signatures don't match again.
Sent from my PG06100 using Tapatalk
Thanks to Gene Poole and one_love_420, I will try your instructions.
If your after quickly signing a whole load of apk's, I wrote a command line front end to do all the hard work for you.
You can even generate your own private key.
Questions or Problems Should Not Be Posted in the Development Forum
Please Post in the Correct Forums
Moving to Q&A
BUMP to top
Please big problem been fighting for weeks
any one know anything about this!!
So anybody find a solution yet? Seems to be the binary text conversion.
It is the signitures in manifest.inf fyi

Help modding an Arc running 4.0.A.2.368

So there's a couple of things I'd like to do to/with my Arc that I can't seem to figure out, so I was wondering if anyone might be able to shed some light on it all.
Firstly, I'd love to be able to strip the clock out from my statusbar.
I've found this guide but when I try and decompile SystemUI.apk, I get error messages and even if I ignore those errors and open up the xml file in question, I can't find the but of code I'm supposed to delete
Secondly, whilst the new themes are great and all, I'd much rather have a transparent/translucent background in my system apps to match the app drawer background in VTL (the launcher I use).
Again, there's a guide but even without the previous firmware, I was having trouble with it
And now I'm not sure if the instructions still apply...
So, I'm hoping that one or other of the brilliant XDA-dev geniuses might be able to help
Hi.
I use this for de and recompiling, taken from the link in my sig, "Theme Reference", the whole guide was wrote for the X10 but still a worth read....
_calum_ said:
Setting up:
In the attached zip file (themes.zip) you will find a copy of my theme creation environment. It’s not too complicated, it only contains a couple of folders so I know where everything is, three key batch files (all one-liners) and apktool.
The first thing we need to look at is install_framework.bat. This contains the following line:
Code:
java -jar apktool.jar install-framework stock\framework-res.apk
All this does is tell apktool to install the framework on your system. The resources from stock\framework-res.apk will be extracted to a default location. If you don’t do this then you will not be able to recompile other apk’s that rely on the framework (you will get a ResourceNotFound error).
The other batch files decompile and build the framework, these are the ones that need to be modified if you start working on a different apk:
Code:
[B]decompile.bat[/B)
java -jar apktool.jar d stock\ framework-res.apk working\ framework-res
[B]build.bat[/B]
java -jar apktool.jar b working\framework-res out\framework-res.apk
I have included the stock X10 framework. If you use on of the other frameworks out there you may find that you get a lot of errors when trying to recompile. That’s because someone got lazy with the .9.png’s
As we are modifying the framework directly we do not need to run install_framework.bat, for a different apk (e.g. Phonebook.apk) you may need to run this first to avoid errors when decompiling.
Decompiling and Building:
1. Run decompile.bat. After this you will see that the working folder is filled with the contents of the apk. The images we need to modify are in the subfolders res/drawable-hdpi and res/drawable-land-hdpi. If you look at some of the .9.png’s in there you can see the guides (see the attached image). This makes it really easy to edit them, you can just edit them like any other image (as long as you do not touch/alter the guides).
2. Edit any images that you want. For the .9.pngs I usually make a copy without the 1 pixel border so that I can edit the entire image, then I paste the copy back into the middle of the original .9.png. You don’t have to worry about the guides, they are already set correctly.
I have created a tool that takes the stock x10 status bar icons, removes the background and sets them to a colour of your choice here. This was made to make my life easier by minimizing the time I spend in photoshop.
3. Run build.bat. This compiles the framework, embedding the guide information into the .9.png’s. The output framework is in the out folder. Do not push this to your phone as it is incomplete and the resources.arsc is stored incorrectly. If you do push it to your phone then you get to reflash
Now you can just drag the edited images out of the generated framework onto your hard drive and use steps 4. and 5. of the Drag/Drop method described below to update your framework.
Click to expand...
Click to collapse
Themes.zip
...depending on the errors? either the apk is at fault or your Java. When it comes to theming Android you'll find a lot of the principles apply across all Brands, I could easily theme for a HTC or a Samsung if I bought one if you see what I mean, but can be specific, and being S.E, it is lol, but what I'm trying to say is the firmware may have changed but changing a particular aspect will remain the same, but without trying you won't know, or learn.
Well, this is the error message I get when I try to decompile the SYstemUI.apk
--------------------------------------------------------------------------
|05/08/2011 -- 16:57:14.95|
--------------------------------------------------------------------------
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)
'adb' is not recognized as an internal or external command,
operable program or batch file.
Could Not Find C:\Android\General\APK Manager\place-apk-here-for-modding\../plac
e-apk-here-for-modding/signedSystemUI.apk
Could Not Find C:\Android\General\APK Manager\place-apk-here-for-modding\../plac
e-apk-here-for-modding/unsignedSystemUI.apk
I: Baksmaling...
I: Loading resource table...
I: Decoding resources...
I: Loading resource table from file: C:\Users\Iain\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=
theme, value=0x010300a4
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x01080486
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec:
0x010300a4
at brut.androlib.res.data.ResPackage.getResSpec(Unknown Source)
at brut.androlib.res.data.ResTable.getResSpec(Unknown Source)
at brut.androlib.res.data.ResTable.getResSpec(Unknown Source)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(Unknown Source)
at brut.androlib.res.data.value.ResReferenceValue.toResXmlFormat(Unknown Source)
at brut.androlib.res.data.value.ResAttr.convertToResXmlFormat(Unknown Source)
at brut.androlib.res.decoder.ResAttrDecoder.decode(Unknown Source)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(Unknown Source)
at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValue(Unknown Source)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartTag(Unknown Source)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(Unknown Source)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(Unknown Source)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(Unknown Source)
at brut.androlib.res.decoder.ResFileDecoder.decode(Unknown Source)
at brut.androlib.res.AndrolibResources.decode(Unknown Source)
at brut.androlib.Androlib.decodeResourcesFull(Unknown Source)
at brut.androlib.ApkDecoder.decode(Unknown Source)
at brut.apktool.Main.cmdDecode(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
Click to expand...
Click to collapse
As for the other part, I haven't tried that yet because I'm not sure the instructions still apply in light of the new themes function SE have added.
I'll take a look at what you've posted though, thanks.
Step666 said:
Well, this is the error message I get when I try to decompile the SYstemUI.apk
Click to expand...
Click to collapse
Do you have the SDK installed?
No but a mate of mine who very definitely does have it installed had similar issues.
I'll download the SDK now and try again.
Step666 said:
I'll download the SDK now and try again.
Click to expand...
Click to collapse
This should help with setting up adb- [GUIDE] ADB, Fastboot, and Nandroid for Noobs, and is quite essential.
Thanks but I'm not interested in setting up adb.
Step666 said:
Thanks but I'm not interested in setting up adb.
Click to expand...
Click to collapse
No worries, good luck.
Ok, so I downloaded and installed the entire Android SDK and every optional extra, something like 3GB all told.
Still get exactly the same error messages as before - whether I use APK Manager or the tool you recommended.
My mate who also tried to decompile it for me reckons that the problem is down to dependencies.
APK Manager has an option to decompile with dependencies but I don't know what they are.
Step666 said:
My mate who also tried to decompile it for me reckons that the problem is down to dependencies.
Click to expand...
Click to collapse
..........
Step666 said:
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)
'adb' is not recognized as an internal or external command,
operable program or batch file.
Click to expand...
Click to collapse
EDIT: attach the apk and I'll try.
Step666 said:
Ok, so I downloaded and installed the entire Android SDK and every optional extra, something like 3GB all told.
Still get exactly the same error messages as before - whether I use APK Manager or the tool you recommended.
My mate who also tried to decompile it for me reckons that the problem is down to dependencies.
APK Manager has an option to decompile with dependencies but I don't know what they are.
Click to expand...
Click to collapse
Decompile with dependencies and drag in SemcGenericUxpRes.apk from your phone
also do this to install the framework resources
http://forum.xda-developers.com/showpost.php?p=15496506&postcount=81
Hope it helps you
Regards
Hi,
Sorry to barging in to your thread. I was trying to to decompile the Home.apk it successfully did. After recompiling it back I replace the file. Now the phone is not getting pass the Sony Logo. Now sure why
ShyamSasi said:
Hi,
Sorry to barging in to your thread. I was trying to to decompile the Home.apk it successfully did. After recompiling it back I replace the file. Now the phone is not getting pass the Sony Logo. Now sure why
Click to expand...
Click to collapse
This is the same principle...
3. Run build.bat. This compiles the framework, embedding the guide information into the .9.png’s. The output framework is in the out folder. Do not push this to your phone as it is incomplete and the resources.arsc is stored incorrectly. If you do push it to your phone then you get to reflash
Now you can just drag the edited images out of the generated framework onto your hard drive and use steps 4. and 5. of the Drag/Drop method described below to update your framework.
Click to expand...
Click to collapse
- http://forum.xda-developers.com/showthread.php?t=834806
XperienceD said:
This is the same principle...
- http://forum.xda-developers.com/showthread.php?t=834806
Click to expand...
Click to collapse
Thanks Mate .. It worked
XperienceD said:
EDIT: attach the apk and I'll try.
Click to expand...
Click to collapse
Thank you for the offer.
I've literally just sat down in front of my PC for pretty much the first time today, which is why I hadn't replied until now.
I'm going to try what Adam suggested first but if I run into trouble, I may take you up on your offer...
AdamTt said:
Decompile with dependencies and drag in SemcGenericUxpRes.apk from your phone
also do this to install the framework resources
http://forum.xda-developers.com/showpost.php?p=15496506&postcount=81
Hope it helps you
Regards
Click to expand...
Click to collapse
I decompiled with dependencies and dragged a copy of SemcGenericUxpRes.apk into the APK Manager window and still got errors.
Also, I'm not sure what you mean by installing the framework resources - you are aware I'm not trying to mod the framework-res.apk just now, I'm trying to sort the SystemUI.apk to remove the clock from the notification bar.
Anyway, here's the APK is anyone can work out what I'm doing wrong...
ShyamSasi said:
Thanks Mate .. It worked
Click to expand...
Click to collapse
You're welcome.
Step666 said:
I decompiled with dependencies and dragged a copy of SemcGenericUxpRes.apk into the APK Manager window and still got errors
Click to expand...
Click to collapse
...
Daneshm90 said:
Requirements:
Java
Adb
Click to expand...
Click to collapse
...
Daneshm90 said:
Got problems ?
1. Make sure your path has no spaces
2. Your filename has no wierd characters
3. Java/adb are in your path
4. It's not a proprietary rom's apk (aka Sense,Motorola,Samsung) (If u are, then use option 11 and drag the required framework, eg com.htc.resources, twframework-res...etc)
5. It's not a themed apk (if it is, expect .9 png errors, use as close to stock as possible)
6. Look at the log to know whats happening
7. If all else fails, post as much info as possible and we will try to assist you.
Click to expand...
Click to collapse
XperienceD said:
This should help with setting up adb- [GUIDE] ADB, Fastboot, and Nandroid for Noobs, and is quite essential.
Click to expand...
Click to collapse
- Apk Manager 4.9 - Makes Modifying Ur Apk A Breeze (Windows/Linux)
But I was been able to mod the framework-res apk from the previous version without setting up adb, so the program clearly doesn't need it.
Also, the mate of mine who tried to decompile it for me previously has adb set up on his PC and he still had the same errors.
So I'm just not convinced that's got anything to do with it.
edit: to clarify, I will give it a go when I have some free time but I'm still not convinced it's the root of the problems.

Some themeing questions....

Hey guys, I'm a super noob when it comes to this theming, but I do have a basic understanding of how it all works.
Basically I'm starting work on my first theme and I will be working on Saurom. I had no problem doing the battery stuff, but I cant seem to find the images that correspond to the signal bar and 4g connection. Can anyone tell me what apk has those images?
Also I am always looking to expand my knowledge on theming so if anyone can recommend some good videos or a good write up on the topic I would love to hear from ya.
As always thanks in advance!
sent from my iPhone killers killer, Samsung Galaxy Note.
System/app/systemui.apk
decompile that and look in the res/drawable-hdpi and xhdpi
I have some tutorials but I'll have to link them when I get to a computer
Sent from my SAMSUNG-SGH-I717 using xda premium
Thanks Smitty, I'll pull that out right now and take a look. Also looking forward to your tutorials.
Well, I'm off to a good start, bricked it lol. I don't think I signed the apk correctly or I did something wrong pushing it onto the phone. I think I'll wait for the link to those tutorials before I cause some real damage.
Look into framework and twframework apks too under /system/framework. These too contain icons under res/drawable-hdpi and xhdpi
Yeah there will be signal and battery icons in a few different locations. But in this case you want to look in systemui/res/drawable-xhdpi as smitty stated. If youre having trouble finding certain pngs, feel free to ask, and we can save you some time =)
Alright, I've been furiously editing png files, and I want to see what it looks like on the phone. I think I'm doing something wrong though when I try and put the apks back. I'll run down what I'm doing and maybe someone can tell me where I'm going wrong. I'm using APK Multi-Tool
This is for framework-res.apk
1. Put all the edited png files back in their respective folders.
2. In apk multi tool, press 3 for 'Zip apk'
3. I press 1 for 'System apk (retains signature)'
4. I go rename the unsignedframework-res.apk to framework-res.apk
while phone is booted normally:
5. adb remount
6. adb push framework-res.apk /system/framework
7. adb remount
8. adb reboot
Now the phone will start booting and then screen goes black. I am forced to restore a nandroid.
Try using APKManager for framework-res.apk.I have better luck with that one for framework for some reason.
Yeah I'm doing something wrong. I did the same as above for SystemUI.apk and it booted alright but the notification pulldown and status bar were missing. Does the problem really lie with APK Multi-Tool?
Ok, I seemed to have found the problem. The issue was being being caused by the script in APK Multi Tool. I changed this line
%szip% a -tzip "place-apk-here-for-modding/unsigned%capp%" "projects/%capp%/*" -mx%usrc%​
to this:
%szip% a -tzip "./place-apk-here-for-modding/unsigned%capp%" "./projects/%capp%/*" -mx%usrc%​
for some reason the first line would include the /projects/framework.apk/ directories in the rezipped apk, this would then cause the bootloops and crashes.
Well anyway everything works now! So excited, here is a couple screen grabs of my recoloring so far of Saurom. It's very simple and I will be doing much more work on it, but I am really just going for a very simple blue theme.
nice catch. looks good.
Got a couple more pics and questions, always questions!
Ok first, I'm trying to add some images to the battery animation. On Saurom, I'm not sure if anyone noticed, but while charging it displays a series of battery circle images then it displays the normal battery image then cycles back to the beginning of the circles. Well the normal battery image isnt 36px wide so it is displayed looking stretched out and it drives me nuts.
So I took the normal batterys and made them 36px wide. Originally wanted to just add them in as separate images to only be used in the charging animation, so I modified stat_sys_battery_charge.xml and got a bootloop. Looking further I found public.xml and added 100 new images, but now I get build errors trying to recompile. I've searched all over trying to find info on how to properly modify public.xml but can't seem to find anything.
Anyways, I found a workaround without editing xml, results below! Both images taken while charging, notice on second image the battery isn't stretched. YEAH this is fun!
If you're using APK Manager, it'll tell you if you change any xml, you should delete the resources.arsc file and any other xmls and other files that you've modified from the keep folder before recompiling.
I don't remember if APK Multi tool does the same.
Are you doing that?
lactardjosh said:
If you're using APK Manager, it'll tell you if you change any xml, you should delete the resources.arsc file and any other xmls and other files that you've modified from the keep folder before recompiling.
I don't remember if APK Multi tool does the same.
Are you doing that?
Click to expand...
Click to collapse
Actually I tossed out APK Multi-Tool and tracked down APK Manager 5.0.2. Seeing that mistake in the script from earlier repeated about a hundred times keeps me from wanting to use it.
And I was not removing anything from the decompiled apk, I was recompiling it as it was.
Still can't get the apk to recompile properly. I'm not sure what I'm doing wrong. I decompiled SystemUI.apk, then I did some modification to a .9 image (per detailed instructions I found so I know I'm doing that part right) then I recmpile with 0 errors, but when I push it back to the phone it never loads the status bar.
I also tried removing the resources.arsc file as mentioned above. Here is log from compile:
|Mon 03/26/2012 -- 19:57:27.86|
--------------------------------------------------------------------------
java version "1.7.0_02"
Java(TM) SE Runtime Environment (build 1.7.0_02-b13)
Java HotSpot(TM) 64-Bit Server VM (build 22.0-b10, mixed mode)
Could Not Find F:\apkManager\place-apk-here-for-modding\../place-apk-here-for-mo
dding/signedSystemUI.apk
Could Not Find F:\apkManager\place-apk-here-for-modding\../place-apk-here-for-mo
dding/unsignedSystemUI.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\Justin\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
I: Building apk file...
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building apk file...
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
I: Building apk file...
Press any key to continue . . .​
Any ideas?
Here is a video I put together using apktool. I know does not have a friendly user ui, but I find to be much quicker in the long run. I find I have leads issues using it a well.
https://www.youtube.com/watch?v=oLQynXg8noM&feature=youtube_gdata_player
NunHugger said:
Here is a video I put together using apktool. I know does not have a friendly user ui, but I find to be much quicker in the long run. I find I have leads issues using it a well.
https://www.youtube.com/watch?v=oLQynXg8noM&feature=youtube_gdata_player
Click to expand...
Click to collapse
You're the man! That video was extremely helpful, I really hope you make some more!
And now exclusively be using apktool. Why? Because it actually works!
Glad it helped.
Sent from a phone.
NunHugger said:
I know does not have a friendly user ui, but I find to be much quicker in the long run. I find I have leads issues using it a well.
Click to expand...
Click to collapse
+1. I've given dozens of private tutorials in pms's/chat and I ALWAYS have people just call apktool directly. I like having the terminal output right there, too....in case it doesn't compile I don't have to look for a separate error log.
Another day, another question! I'm looking to change the color of the progress bars that appear on the pulldown. So far, I tracked down all the progress bar .9 images and modified them accordingly, this didn't do it. Next I poked around in the xml's and changed all the relevent hex codes. Still no luck. Can anyone point me to the correct place?
This was all done in twframework-res.apk.

[Soved] [Q] problem compiling SystemUI

i tried so many things, so many guides,
It doesn't work.... even if I dont change anything
Simple question, de/compiling does not show any errors but the apks wont run properly...
Edit: Tutorial from danist make it work...
Have a look on my tutorial.
http://forum.xda-developers.com/showthread.php?t=1772113
Sent from my ST25i using xda premium
indra05 said:
i tried so many things, so many guides,
It doesn't work.... even if I dont change anything
Simple question, de/compiling does not show any errors but the apks wont run properly...
Click to expand...
Click to collapse
Hey man i have the same problem! my logs compile & decompile doesn't show any errors, but my builds apks don't wotk in my device u.u, if i mod apk or not, don't matter, the problem is still here! D: these are my logs
Log Decompile
[*] C:\Users\Axel\Documents\Android\AutoAPKTool2.0.4\_INPUT_APK\SystemUI.apk
decompiling C:\Users\Axel\Documents\Android\AutoAPKTool2.0.4\_INPUT_APK\SystemUI.apk...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\Axel\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
Click to expand...
Click to collapse
Log compile (without changes in apk, only decompile & compile for test)
[*] C:\Users\Axel\Documents\Android\AutoAPKTool2.0.4\_INPUT_APK\SystemUI
recompiling C:\Users\Axel\Documents\Android\AutoAPKTool2.0.4\_INPUT_APK\SystemUI...
I: Smaling...
I: Building resources...
I: Building apk file...
Click to expand...
Click to collapse
The result is a apk more less than original (two apks are in attachment files)
SystemUI_1.apk ---> This apk was decompiled
SystemUI_2.apk ---> This is the result after compile
please help people!
P.S. The systemui is a file from mod of MARTER SERAJR... OP http://forum.xda-developers.com/showthread.php?t=1762162
and @danist727 i check your tutorial but my problem isn't solved
danist727 said:
Have a look on my tutorial.
http://forum.xda-developers.com/showthread.php?t=1772113
Sent from my ST25i using xda premium
Click to expand...
Click to collapse
i've tried your tutorial,, but still got the same problem....
which version of jdk did u use?? maybe its the problem...

[TOOL] [WINDOWS] Stratos/Pace APK Watchfaces converter for Stratos 3 (2020/07/02)

​
Stratos/Pace APK Watchfaces converter for Stratos 3
This is a Windows tool which will make most (hopefully) of Stratos/Pace APK watchfaces compatible with Stratos 3
You can convert more than one APK each time
Use this tool just for personal usage otherwise you will have to ask for permission to watchfaces devs
Click to expand...
Click to collapse
Requirements
Windows OS (Tested on Widows 10 x64)
Phone running on Android (For AmazMod)
Java Development Kit and Java SE Runtime Engine if you don't have them already installed
If you face java errors, set java as environment variable. Video tutorial link in java_installer folder​
AmazMod and Openweather API Key for weather data
{
"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"
}
Some watchfaces may not work if this is not correctly set​
Click to expand...
Click to collapse
Supported firmwares/ROMs
A1929 running latest US firmware
A1928 running latest CN firmware
Click to expand...
Click to collapse
Tool Scripts
Stratos3_WFs_Converter.bat = Run this to convert the watchfaces
Clean.bat = This will delete ALL files and folders of the tool. So be aware of this as you will lose ALL your APKs
Click to expand...
Click to collapse
How to use the tool
Download the tool
Unzip it
Put all APK watchfaces you want to convert in wfs folder
Run Stratos3_WFs_Converter.bat to start conversion
When conversion is done, conv folder will pop-up with all converted APKs and "-S3" string in APK name
Click to expand...
Click to collapse
Some notes
Note that the tool will convert all the APKs in wfs folder each time you run conversion script
Conversion time will be different depending on the amount of APKs to be converted, your CPU and your HDD speed
Before installing the new APKs I recommend you to set up AmazMod and Openweather data
Click to expand...
Click to collapse
Downloads
Stratos3 WFs Converter
Click to expand...
Click to collapse
Credits
@iBotPeaches for apktool
@evildog1 for APK Easy Tool
To all watchfaces devs
Maybe others I forget
Click to expand...
Click to collapse
Donate
If you like my work, you can buy me a beer here
Click to expand...
Click to collapse
Mio1
Mio1
Mio2
Mio2
It works!
My GreatFit makeover.
Saratoga79 said:
Mio2
Click to expand...
Click to collapse
Great job as usual...
Thank you very much for your work.
Is something like doable for Verge?
Great work!
Its amaizing!! But...
Many Stratos / Pace dials on Stratos3 have a black chin (on white dials)
bravo thats a really good tool thanks
Empty folder
I installed the Java files as described, started the bat file. with whatfaces in the respective folder, bat starts normally doing the whole process and at the end it opens the conv folder, so the folder is empty, what can it be?
Cleberson_ps said:
I installed the Java files as described, started the bat file. with whatfaces in the respective folder, bat starts normally doing the whole process and at the end it opens the conv folder, so the folder is empty, what can it be?
Click to expand...
Click to collapse
Post here the output/log of the batch script when trying to convert an APK.
Converter update to v0.2
Converter update to v0.2
Converter updated to support older APK watchfaces.
Great work!
I've converted 3 Watchfaces. All were converted sucessfully, but they all have the same issue after setting in the watch. The normal Watchface works fine, but the lowres face is missing.
Any idea what is causing this problem?
Rummelmugge said:
Great work!
I've converted 3 Watchfaces. All were converted sucessfully, but they all have the same issue after setting in the watch. The normal Watchface works fine, but the lowres face is missing.
Any idea what is causing this problem?
Click to expand...
Click to collapse
Setup AmazMod and OpenWeather integration as stated in OP.
Saratoga79 said:
Setup AmazMod and OpenWeather integration as stated in OP.
Click to expand...
Click to collapse
On my first try I skipped the openweather map integration.
Now I've setted all up as descriped, deinstalled the apks, run you batch again, reinstalled and rebooted the clock after every step, but I still have the issue with the missing lowres watchface. A few seconds ater the light turns of, the screen will be just black.
Rummelmugge said:
On my first try I skipped the openweather map integration.
Now I've setted all up as descriped, deinstalled the apks, run you batch again, reinstalled and rebooted the clock after every step, but I still have the issue with the missing lowres watchface. A few seconds ater the light turns of, the screen will be just black.
Click to expand...
Click to collapse
What watchface/APK?
Maybe it needs some other files/edits or is not supported at all.
Saratoga79 said:
What watchface/APK?
Maybe it needs some other files/edits or is not supported at all.
Click to expand...
Click to collapse
I tried two of these digital Faces: http://amazfit.szabadi.info/en/page/show/lcd-sport-v2-black
and first of all the Greatfit Apk.
Rummelmugge said:
I tried two of these digital Faces: http://amazfit.szabadi.info/en/page/show/lcd-sport-v2-black
and first of all the Greatfit Apk.
Click to expand...
Click to collapse
They work just fine for me on latest CN ROM.
I updated to v0.2 in order support older watchface APKs like those from Exac and others.
Maybe support files are not being copied correctly? Log?
Saratoga79 said:
They work just fine for me on latest CN ROM.
I updated to v0.2 in order support older watchface APKs like those from Exac and others.
Maybe support files are not being copied correctly? Log?
Click to expand...
Click to collapse
Im Running the OS 4.2.0.1 , I don't know if its cn or eu rom, on firt setup I was able to choose language chinese or englisch.
I bought this Watch last Saturday in a Store in Germany.
Here are Output of your Batchfile during converting.
And so far, Thanks for your help
***************************************************
* WATCHFACES CONVERTER v0.2 by Saratoga *
***************************************************
Creating working folders if needed...
Done
***************************************************
* Java *
***************************************************
Java path if exists...
C:\Program Files (x86)\Common Files\Oracle\Java\javapath\java.exe
Java version if exists...
java version "1.8.0_251"
Java(TM) SE Runtime Environment (build 1.8.0_251-b08)
Java HotSpot(TM) Client VM (build 25.251-b08, mixed mode)
***************************************************
* Check *
***************************************************
Reading WFs in wfs folder...
GreatFit_2020.02.03.apk
***************************************************
* Decompile *
***************************************************
Cleaning folder. It may take some time...
Deleting framework...
Decompiling WFs...
Decompiling GreatFit_2020.02.03...
I: Using Apktool 2.4.1 on GreatFit_2020.02.03.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\***\apktool\framework\1.apk
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Baksmaling classes.dex...
I: Baksmaling classes2.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
Adding Stratos 3 support to GreatFit_2020.02.03...
***************************************************
* Compile *
***************************************************
Cleaning folder. It may take some time...
Compiling GreatFit_2020.02.03...
I: Using Apktool 2.4.1
I: Smaling smali folder into classes.dex...
I: Smaling smali_classes2 folder into classes2.dex...
I: Building resources...
I: Building apk file...
I: Copying unknown files/dir...
I: Built apk...
***************************************************
* Signing *
***************************************************
Signing GreatFit_2020.02.03...
Finish
Rummelmugge said:
Im Running the OS 4.2.0.1 , I don't know if its cn or eu rom, on firt setup I was able to choose language chinese or englisch.
I bought this Watch last Saturday in a Store in Germany.
Here are Output of your Batchfile during converting.
And so far, Thanks for your help
***************************************************
* WATCHFACES CONVERTER v0.2 by Saratoga *
***************************************************
Creating working folders if needed...
Done
***************************************************
* Java *
***************************************************
Java path if exists...
C:\Program Files (x86)\Common Files\Oracle\Java\javapath\java.exe
Java version if exists...
java version "1.8.0_251"
Java(TM) SE Runtime Environment (build 1.8.0_251-b08)
Java HotSpot(TM) Client VM (build 25.251-b08, mixed mode)
***************************************************
* Check *
***************************************************
Reading WFs in wfs folder...
GreatFit_2020.02.03.apk
***************************************************
* Decompile *
***************************************************
Cleaning folder. It may take some time...
Deleting framework...
Decompiling WFs...
Decompiling GreatFit_2020.02.03...
I: Using Apktool 2.4.1 on GreatFit_2020.02.03.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\***\apktool\framework\1.apk
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Baksmaling classes.dex...
I: Baksmaling classes2.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
Adding Stratos 3 support to GreatFit_2020.02.03...
***************************************************
* Compile *
***************************************************
Cleaning folder. It may take some time...
Compiling GreatFit_2020.02.03...
I: Using Apktool 2.4.1
I: Smaling smali folder into classes.dex...
I: Smaling smali_classes2 folder into classes2.dex...
I: Building resources...
I: Building apk file...
I: Copying unknown files/dir...
I: Built apk...
***************************************************
* Signing *
***************************************************
Signing GreatFit_2020.02.03...
Finish
Click to expand...
Click to collapse
4.2.0.1 is Global/US/International firmware version which is quite old. You must be at least in 4.2.5.0 firmware version if I'm not wrong.

Categories

Resources