yashsingh1/xdaforums huggingface dataset:
[Android Software Development] Kdio:
Hi organick87

The error message is clear ... It's missing apktool.yml file that should be present at the root of the decompiled folder

When an apk is decompiled, the above file is created. Below there is an example of its contents:

!!brut.androlib.meta.MetaInfo
apkFileName: SecMms_Delight_Note_Open.apk
compressionType: false
doNotCompress:
- arsc
- qmg
isFrameworkApk: false
packageInfo:
forcedPackageId: '127'
renameManifestPackage: null
sdkInfo:
minSdkVersion: '21'
targetSdkVersion: '21'
sharedLibrary: false
unknownFiles: {}
usesFramework:
ids:
- 1
- 2
tag: null
version: 2.1.0
versionInfo:
versionCode: '1510091427'
versionName: 1.0.1

Could you please make detailed description of the steps taken to decompile/recompile ? Something in between may have occurred ...

EDIT: [MENTION=5901127]organick87[/MENTION] I've paid a little more attention to your screenshot .... you are issuing the apktool.bat command from inside C:\Windows ?? !!! ??? Are you sure ???

The source folder you are trying to build is "C:\Windows\fa_Phone" ???

You should issue the command from the folder below the one you wanna build. Lets say the folder is C:\MyProject\fa_Phone ... you should navigate first to C:\MyProjects and issue the command from there ... Got me ?

-=-=-=-=

Color codes:

Color are defined, as you already know, by RGB codes given in a 6 bytes format (RRGGBB). The 2 additional bytes are the transparency you wanna give #TTRRGGBB.

#FF000000 --> Full black

#FFFFFFFF --> Full white

#80FF0000 --> Red 50% transparent

#00000000 --> 100% transparent

#00FFFFFF --> 100% transparent

Have fun.

.
[Android Software Development] Abdoubrn:
Hey guys i've been useing apktool i secceed in every step but when i recompile the apk i fail knowing that this apk is messenger i was thinking to clone it for a double useing because i gave 2 fb acounts eventhough i have secceeded useing there 2 acounts by using an app that clone let me do that but i want an apk cloned not the help of an app " it's called paralell " So if anyone of you know why i cant clone messenger helps me Please !!!!
[Android Software Development] Ticklefish:
How do you know that the recompile failed? What happens? Do you get an error message? If you do, it would be useful if you shared it as that normally says what the issue is.
[Android Software Development] :
There's an app that can clone apps. Try it its named app cloner on play store

By applisto
[Android Software Development] bunnys7679:
Hi guys. The SecContacts_M.apk to decompil and recompil works without error. Even if I change the valus Color. xml posh. Once I then but the apk as zip FLASHE disappear the contacts and phone app. anyone have an idea what I can do? Thank you in advance

Gesendet von meinem SM-G925F mit Tapatalk
[Android Software Development] Thebear j koss:
Need to edit the manifest xml, sign the app and disable signature verification thru some easy edits. Search xda or this thread for getting samsung contacts to work on lollipop or marshmallow.

Thebe?r'$ NeXu$
[Android Software Development] DaOldMan:
Please read my reply (just one page back !):

http://xdaforums.com/showpost.php?p=66819568&postcount=4182
[Android Software Development] bunnys7679:
Thanks guys it works

How do I get the clock Package and twframework recompil?

[MENTION=3026895]DaOldMan[/MENTION] [MENTION=4916750]Thebear j koss[/MENTION]
[Android Software Development] Thebear j koss:
Clock on samsung has always been a pain... It is probably worse now. Did you install tw framework into apktool like you did regular framework?

Thebe?r'$ NeXu$
[Android Software Development] bunnys7679:
Yes I do this

Gesendet von meinem SM-G925F mit Tapatalk
[Android Software Development] Thebear j koss:
I see it in your signature but what device is SM G925F, and what android version are you on? You may want to look into asking in the Samsung forums, not even specifically for your exact device, but most samsung devices are very similar in their set up structures, so you may get better luck in those threads than the general apktool thread since apktool is not perfect with proprietary OS' like samsung, LG, etc.

Thebe?r'$ NeXu$

Start here- http://xdaforums.com/showthread.php?t=2799050

Search and read the thread a bit as stuff may have been covered already. Also the devs in that thread are top devs for Samsung devices and know them in and out, may want to see if they have other threads through their profile that may help you.
[Android Software Development] Ticklefish:
Did you install framework-res.apk first?
[Android Software Development] vel_tins:
Ok, after

"installing"

framework-res.apk (./apktool if framework-res.apk) it seems to work...

Will now sign and test the apk.

Before, I just renamed "framework-res.apk" to "1.apk" and copied the file into /home/jackie/apktool/framework).

Thanks....
[Android Software Development] bunnys7679:
First of all thanks for your answer and thanks for the link. I will read and see if I'm on there times.

I use a Samsung Galaxy S6 edge. My Andrpoid version is 6.0.1

Greetings Bunny
[Android Software Development] Thebear j koss:
Yeah, there are guys specifically dedicated to touchwiz and can help you better there. I know a few from my s3 days that know everything possible about every samsung since then. They know whatever tricks are needed and what can be touched and what can't.

Thebe?r'$ NeXu$
[Android Software Development] cjstyle:
I recompiled my framework, everything went well, but when I copy the file to your phone in landscape mode, open the menu "More" any application stops Unfortunately has stop.

Model of phone Galaxy J3, SM-J320P. Apktool 2.0.2

If i use apktool 2.1.1, i get error unfortunately (app name) has stopped on start home screen

I do not modify, simply recompiled
[Android Software Development] edzamber:
[MENTION=3924617]iBotPeaches[/MENTION]

Hi Master, any news about SecSettings2 ressources recompilation errors on Samsung devices ?

http://xdaforums.com/showthread.php?p=66750088

Cheers

Ed.
[Android Software Development] ayanroy:
help facing this error---

ERROR: ld.so: object 'libxlog.so' from LD_PRELOAD cannot be preloaded: ignored.

1619+1 records in

1619+1 records out

3189 blocks
[Android Software Development] Ticklefish:
...and when are you facing this error? A bit more information would be handy..
[Android Software Development] ayanroy:
I am facing this error when unpacking boot.img with apktool
[Android Software Development] Spannaa:
apktool is for decompiling/building apks you can't use it to unpack a boot.img
[Android Software Development] ayanroy:
I was using it for past 2 mnths for doing the same, when i switched to a new rom i started to face this problem
[Android Software Development] Thebear j koss:
Are you sure? Apktool has nothing to do with boot.img files. Sure you weren't using android kitchen or some other tool to unpack the IMG?

Thebe?r'$ NeXu$
[Android Software Development] Ticklefish:
I think you may have been using Apktool For Android, not apktool itself.

Apktool decompiles and recompiles APK and JAR files only. But I found a few guides about unpacking boot.img with Apktool For Android.
[Android Software Development] DaOldMan:
Yeah I am sure he is confused and what you wrote makes much more sense. In order to unpack boot.img into the ramdisk and the kernel you need a totaly different utilities. Apktool will not work here. So sorry, wrong thread !
[Android Software Development] tamirda:
[MENTION=3924617]iBotPeaches[/MENTION] Hi mate, i want to tell you something regarding the error we are experiencing on Samsung SecSettings2 and CocktailBarService apks.

You already have the log for the recompiling issue, and i have investigated that a little more. Apktool messes a style in styles.xml called TimePicker that refrences to twframework-res. I have bypassed the fc by rewriting smalis to use old TimePicker but it is only a temp solution. I think that once you fix the installation, compilation and decompilation of twframework-res, it should fix the issue with styles. I hope you understand what i have explained hehe..

Thank you very much
[Android Software Development] edzamber:
[MENTION=3924617]iBotPeaches[/MENTION]

I had open this issue on your github ;)

https://github.com/iBotPeaches/Apktool/issues/1259
[Android Software Development] Carotix:
hi guys,

can someone decompile/recompile samsung IME 6.0.1 ?

I can but also using the resources in the original apk , doesn't work ... no fc but doesn't show the keyboard
[Android Software Development] bunnys7679:
+1

Gesendet von meinem SM-G925F mit Tapatalk
[Android Software Development] thereassaad:
After u modified IME v3 then u need to sign it with new signature , i already try this way to enable subsymbol in s6/s7 ime v3 by default for all language & its working just fine ,,
[Android Software Development] Carotix:
thanks a lot my friend to reply ... i tried but doesn't work

i done:

-decompiled

-recompiled

-with drag and drop i putted the original manifest and meta-inf in the recompiled one

-signed

right?
[Android Software Development] thereassaad:
For the easiest way for recompiling it with new signature i used tma tool its easiest way for this kind of recompiling with new sig ,

U can try ur way & drag & drop but honestly i didn't try this way ,
[Android Software Development] and2:
just

-decompiled

-recompiled

-signed
[Android Software Development] bunnys7679:
Greetings my Friend

I got the new PNG images in a folder drawable-sw360dp-xxxhdpi-v13 packed then with new signature recompile. Keyboard we stopped.

Have now the qmg by png replaced stops the keyboard
[Android Software Development] Carotix:
i tried using tma recompiling with:

option 3 : Recompile App With Signature

i get fc :(
[Android Software Development] thereassaad:
Ummmm i already try it with no fc , here try clean install & see my friend ,,

Look try to drop the lib inside the ime v3 & recompile it again without the libs inside it ok , after that push the ime v3 & lib folder that extracted from the apk to ur system ime folder , then see ,

Edit :: make sure when its recompiling without lib & the size about 12 mb ok ,,
[Android Software Development] Carotix:
i noticed that the name of my app is SamsungIMEv3_SYSTEMUID_SWIFTKEY_VO instead your SamsungIMEv3

can you send me your app in pm if you want

then in my root folder there isn't the lib folder ... only the apk , with original installation

(the libs are already included)
[Android Software Development] thereassaad:
Sure will up now & my friend yes that's lib what i mean try to move the folder from decompiled IME v3 to any folder u want then recompile ur ime with new sig & try it by pushing the recompiled ime apk with folder to ur system & see , ok

Yes my IME its S7 kb ..
[Android Software Development] bunnys7679:
My friend

Have there already hinbekommen? Have now tried everything but always get the keyboard FC
[Android Software Development] dechronic:
I havn't used apktool in a while so I downloaded the latest, 2.1.1, and tried running the following commands both in Windows 10 64bit with Java 8 and Ubuntu 14.04LTS with java 7.

java -jar apktool.jar if framework-res.apk

I get the following error

Error: Invalid or corrupt jarfile apktool.jar

I tried the same command with apktool 2.1.0 and the framework installed successfully.

Is it a bug or am I doing something wrong?

Thanks for any help.
[Android Software Development] Ram121:
apktool if framework-res.apk is sufficient

Only thing is you should have setup apktool properly to indentify apktool command (adding in environment variable)
[Android Software Development] dechronic:
Thanks.

Any idea why 2.1.1 wouldn't run but 2.1.0 would?
[Android Software Development] Ram121:
Can't predict exactly but for me running good on java 9 on Ubuntu LTS 16.04. In fact it solved some problems of previous version
[Android Software Development] lxhlzyh:
thanks
[Android Software Development] Ticklefish:
Getting past that 10 post restriction is fun, isn't it? ;)
[Android Software Development] romulocarlos:
Hello.

I need some help here... I'm trying to modify my SettingsProvider.apk to set default values for some phone settings, so, if I reset the phone, it comes with the values I want.

I read about the frameworks, and installed framework-res.apk from my phone. I decoded the apk, change the settings in the XMLs and coded it again. But the phone freeze at Lenovo logo, showing a little green bar above the screen. That bar never appeared before. Then, take a more detailed look at framework folder on my phone, I found a subfolder named lenovo-res, and inside it, a file named lenovo-res.apk.

The file sizes are very different. framework-res has about 15,5Mb, and lenovo-res has only about 800k. Should I install it, too? And, if I must install, wich framework I have to use?

Thanks in advice for any help.

[EDIT]

I'm feeling like a child now. I forgot I must have to SIGN the apk... I'll do this, and return here.
[Android Software Development] romulocarlos:
So, I signed the APK, but still the same: Lenovo logo only.

So, I made all process with another APK, and it install and runs fine. But this APK is NOT a system APK, so, is not a complete test. I think I'm missing something when decoding or building. Here are the process I did:

C:\Users\romulo\Downloads\ApkTool>java -jar apktool_2.1.0.jar if -p frameworks framework-res.apk
I: Framework installed to: frameworks\1.apk

A file 1.apk was generated in frameworks folder, but this file have about 2Mb in size, the original framework-res have about 15Mb. Then, I continue:

C:\Users\romulo\Downloads\ApkTool>java -jar apktool_2.1.0.jar if -p frameworks lenovo-res.apk
I: Framework installed to: frameworks\9.apk

A file 9.apk was generated in frameworks. Like above, the file have about 250kb, against about 800kb from lenovo-res. Then, I continue:

C:\Users\romulo\Downloads\ApkTool>java -jar apktool_2.1.0.jar d -p frameworks SettingsProvider.apk
I: Using Apktool 2.1.0 on SettingsProvider.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: frameworks\1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Baksmaling classes.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...

At this point, I replace the originals XMLs in 'value' folder with my modified XMLs. Then:

C:\Users\romulo\Downloads\ApkTool>java -jar apktool_2.1.0.jar b -p frameworks -o SettingsProvider_new.apk -p frameworks SettingsProvider
I: Using Apktool 2.1.0
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether resources has changed...
I: Building resources...
I: Building apk file...
I: Copying unknown files/dir...

Then, I sign the APK with APKSigner 1.8.5 (I have Java SDK installed, and generate a new key, as well). Then, I copy the new file to phone, hard reset it, and enter recovery. I enter on recovery's terminal, delete the original file, copy the new file to the folder, and run chmod 644 to give the APK the right permissions (the same as old file). Then reboot the phone, and it freeze at Lenovo logo, just after the boot animation, with the small green bar which never appeared before.

What I'm missing? The file sizes above are corrects?
[Android Software Development] zelendel:
Never sign a system apk. It has to have the same sig as the rest of the system and when you resign it that will cause issues. Just put the old one back.
[Android Software Development] romulocarlos:
Thanks. I don't know that. In past, about year 2010, when I managed my jurassic Xperia X2 (android 2.x), I signed various system APKs without problem, to test it with Cyanogen. From that time until today, I never made a custom ROM again.

But, I already tried use the non signed APK, and the phone still at Lenovo logo, as I say two posts above. If the signing is not the problem, what more I'm missing?

Maybe the framework? As I say, I have two files, and installed both, but no success...
[Android Software Development] zelendel:
The thing is with this tool (there are others that will do it automatically) you have to move the old sig manually from the old apk to the new one. Then you have to flash it. Due to the new way the system is done just pushing files and what not can cause huge issues.
[Android Software Development] romulocarlos:
Thanks, too.

I'll try to 'extract' the signature, and report here.

About the frameworks file sizes, they are correct?
[Android Software Development] Crussader:
I'm having the same issue but with Samsung... if I flash a ROM with a modified SecSettingProvider it bootloops... but if I flash a ROM with the stock SecSettingProvider everything goes smoothly.:eek:
[Android Software Development] romulocarlos:
How you are installing the framework, and how about the original and installed file sizes?

I'm suspecting something with these framework files I have!
[Android Software Development] Crussader:
everything by flashing them... and not signing unless I modify the AndroidManifest.xml
[Android Software Development] romulocarlos:
I was meaning the apktool's framework files! :silly:
[Android Software Development] Crussader:
oh... by setting the attribute "-p" and the path to the framework renamed as 1.apk

look here: http://ibotpeaches.github.io/Apktool/documentation/ (Frameworks)
[Android Software Development] romulocarlos:
I already read this... thanks. But the article don't tell about file size.

Can you tell me the size of original framework from your phone, and the 1.apk installed?
[Android Software Development] zelendel:
Samsung devices are known to have issues with apktool. They change things in art that makes this hard to mod. Something people are coming to accept. "Samsung devices are gonna be non modable soon"

Don't sweat the file size. It's just a compression thing. It has been that way for atleast 5 years that I have been doing this.
[Android Software Development] romulocarlos:
Thanks. I achieved what I want, but not with apktools itself, was using "Android Multi Tool". Basicly, is a GUI for apktool. And I don't sign the APK.

Also, as I read, we MUST copy the androidmanifest file and metainf folder from old apk to new apk.

Thanks, people. Let's modding!
[Android Software Development] zelendel:
Yeah I used that for a while myself. Now I use a different one that copies the sig over to the new apk when it builds it.
[Android Software Development] romulocarlos:
Can you tell the name tool?
[Android Software Development] zelendel:
Here you go. This is one of the best I have used and the dev is a themer so he knows his stuff.

http://xdaforums.com/android/software/toolkit-february-22-2015-t3037853
[Android Software Development] Dethfull:
This sounds like 9patches on images used exclusively from Motorola. We are able to recompile frameworks ignoring these errors, but the framework.jar will recuse to boot corrupted 9patched images. I edited images from my framework-res.apk unpacking and repacking like a zip. Try find some image in your frameworkres named as "imagename".9.png. if you found, you have to reedit image by image again with 9patcher editor for recompile your edited xmls . That is all.
[Android Software Development] romulocarlos:
Thanks. I'll give it a try!
[Android Software Development] [] AL []:
edit self-censured useless post...

hopefully he got the notification email anyway

..
[Android Software Development] Ticklefish:
You don't have to move the META-INF folder manually anymore. This was changed for apktool v2.

To quote the official instructions:

Samsung change everything. I understand why and I suppose it makes sense from a business point of view, but they are quickly becoming a nightmare to mod.
[Android Software Development] Spannaa:
When you install frameworks, the installed frameworks only contain resources.arsc & AndroidManifest.xml from the originals - that's why they're smaller in size.
[Android Software Development] romulocarlos:
Thanks. I simply didn't see that option!
[Android Software Development] raimondomartire:
Every chinese roms on Huawei have kangvip tool. I can't decompile to add other languages. Anyone can try?

https://mega.nz/#!p00gHC6Y!IvL--h-TkknuP2TioQMFUUd2xHbl9NhxfmpYGvbTGSc
[Android Software Development] Ticklefish:
Huawei APKs don't work with apktool very well.
[Android Software Development] raimondomartire:
First of all thanks for reply. But this isn't original Huawei apk but an apk that chinese modder use to mom Huawei systemui.apk. Work like our xposed
[Android Software Development] Ticklefish:
Oh, okay. So what's the error message you get?
[Android Software Development] raimondomartire:
Thanks for your help. Line 43 of androidmanifest is this

<application android:icon="@drawable/icon" android:label="@string/app_name" android:name="com.qihoo.util.StubApplication" android:persistent="true" android:qihoo="activity">

error is this

java version "1.8.0_66"

Java(TM) SE Runtime Environment (build 1.8.0_66-b18)

Java HotSpot(TM) 64-Bit Server VM (build 25.66-b18, mixed mode)

W: D:\projects\P9_kvip.apk\AndroidManifest.xml:43: error: No resource identifier found for attribute 'qihoo' in package 'android'

W:

Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\AppData\Local\Temp\brut_util_Jar_4991749235457332723.tmp, p, --forced-package-id, 127, --min-sdk-version, 16, --target-sdk-version, 23, --version-code, 23, --version-name, P9_KVIP, -F, C:\Users\AppData\Local\Temp\APKTOOL2321287376519071232.tmp, -0, PNG, -0, JPG, -0, appkey, -0, so, -0, arsc, -I, C:\Users\apktool\framework\1.apk, -S, D:\p9_Plus\decompila\ApkEditor_V_2.1.1\platform-tools\..\projects\P9_kvip.apk\res, -M, D:\p9_Plus\decompila\ApkEditor_V_2.1.1\platform-tools\..\projects\P9_kvip.apk\AndroidManifest.xml]

at brut.androlib.Androlib.buildResourcesFull(Androlib.java:437)

at brut.androlib.Androlib.buildResources(Androlib.java:371)

at brut.androlib.Androlib.build(Androlib.java:281)

at brut.androlib.Androlib.build(Androlib.java:254)

at brut.apktool.Main.cmdBuild(Main.java:224)

at brut.apktool.Main.main(Main.java:84)

Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\AppData\Local\Temp\brut_util_Jar_4991749235457332723.tmp, p, --forced-package-id, 127, --min-sdk-version, 16, --target-sdk-version, 23, --version-code, 23, --version-name, P9_KVIP, -F, C:\Users\AppData\Local\Temp\APKTOOL2321287376519071232.tmp, -0, PNG, -0, JPG, -0, appkey, -0, so, -0, arsc, -I, C:\Users\apktool\framework\1.apk, -S, D:\p9_Plus\decompila\ApkEditor_V_2.1.1\platform-tools\..\projects\P9_kvip.apk\res, -M, D:\p9_Plus\decompila\ApkEditor_V_2.1.1\platform-tools\..\projects\P9_kvip.apk\AndroidManifest.xml]

at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:436)

at brut.androlib.Androlib.buildResourcesFull(Androlib.java:423)

... 5 more

Caused by: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\AppData\Local\Temp\brut_util_Jar_4991749235457332723.tmp, p, --forced-package-id, 127, --min-sdk-version, 16, --target-sdk-version, 23, --version-code, 23, --version-name, P9_KVIP, -F, C:\Users\AppData\Local\Temp\APKTOOL2321287376519071232.tmp, -0, PNG, -0, JPG, -0, appkey, -0, so, -0, arsc, -I, C:\Users\apktool\framework\1.apk, -S, D:\p9_Plus\decompila\ApkEditor_V_2.1.1\platform-tools\..\projects\P9_kvip.apk\res, -M, D:\p9_Plus\decompila\ApkEditor_V_2.1.1\platform-tools\..\projects\P9_kvip.apk\AndroidManifest.xml]

at brut.util.OS.exec(OS.java:95)

at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:430)

... 6 more
[Android Software Development] Ticklefish:
Qihoo is a Chinese security company, who make an antivirus app for Android. Stock android doesn't have a "qihoo" attribute, which is why you're having this problem.

Either try installing the framework files from the rom before decompiling the APK, or try deleting that attribute from the Manifest.