yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Mini] muwatally:
Hi, I decompiling netflix.apk, then when recompiling I've an error message

"I: Using Apktool 2.3.3

brut.directory.PathNotExist: apktool.yml"

any solution?
[Samsung Galaxy Mini] americo silva:
ownice c500+

soft brick fixer ownice c500+

---------- Post added at 05:35 PM ---------- Previous post was at 05:33 PM ----------

soft brick fixer ownice c500+
[Samsung Galaxy Mini] pragyan52yadav:
Hi

Can anyone edit an APK for me? You have to just change the target SDK version to 28 to support it for Android pie.

APK name : MiPicks(now called GetApps)

When I decompile the APK I get no errors

After when I change the target SDK version from AndroidManifest.xml or apktool.yml file

When I recompile it I get error messages like

Can't find attr for compilesdkversion

Or like brut....can't exec ......

Please help me.
[Samsung Galaxy Mini] sekthesamurai:
Hello. I follow all steps and i signed apk. after that i setup the app in my phone(not rooted) and when i start the app (galaxy wearable - modified for 1.5 gb ram phone) is says “The operating system on your phone has been modified in an unauthorized way, and is not compatible with the Galaxy Wearable app. Check your operating system and try again.” in this situation what can i do. looking forward for your help.thanks.
[Samsung Galaxy Mini] nelsonkim2019:
Device cannot reboot after changing settings.apk

Hi, I follow the exact steps in this guide, using zipsigner-platform to sign the apk, and load it. Everything works fine, until I restart the device. Then it stuck in the logo screen when booting. Initially I thought the change trigger knox or validity check, so I managed to suppress the knox, and load a no-validity-xxxx.zip. But still it stuck. And while it stuck, it use adb shell back into the screen (this is a rooted phone with twrp), and change back the settings.apk (basically put back the original settings), it goes on to reboot fine ...

Finally I find some hint when looking through the logcat logs, the device is stuck when keeps trying on this:

W/Atfwd_Sendcmd: AtCmdFwd service not published, waiting... retryCnt : 1

----and this retry goes on to retryCnt : 5 and then a few other things, and restart.

This is on Samsung GP Pro, SM-J250f, rooted phone, with twrp installed.

Please help, I tried many things (an old mobile developer, way back from blackberry years in 2004, through Nokia, Windows Mobile, iPhone, and Android 2,3,4,5 till Q now), and I am a little out of ideas. Please help!
[Samsung Galaxy Mini] lembo07:
While signing

NoClassDefFoundError
[Samsung Galaxy Mini] raphititi:
gg to the dev
[Samsung Galaxy Mini] osiann:
rhansks

thanks
[Samsung Galaxy Mini] asimrasheed:
Dear

Thanks for your description about editing apk files. I tried this method and everything worked fine except last step of signing modified apk as it gives error:

Exception in thread "main" java.lang.NoClassDefFoundError: sun/misc/BASE64Encoder

at com.android.signapk.SignApk.addDigestsToManifest(SignApk.java:169)

at com.android.signapk.SignApk.main(SignApk.java:325)

Caused by: java.lang.ClassNotFoundException: sun.misc.BASE64Encoder

at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:606)

at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:168)

at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)

... 2 more

I will highly appreciate if you can spare some time and guide me to resolve the issue.

Kind Regards

Asim

signalian@yahoo.com
[Samsung Galaxy Mini] mysterionTM:
excellent guide ;)
[Samsung Galaxy Mini] MihaiA7X:
Thanks exactly what I was looking for:D
[Samsung Galaxy Mini] jayOOMjay:
@ A_U : I ve decompiled systemUI.apk and compiled again without making any changes in the SystemUI folder . Then signed and pushed into system/app

result : statusbar force close.

Running : windows 7

installed : JDK and JRE 7 (64 bit )

signed using : signapk given in the attachments

in my knowledge ADB does not influence the compiling/decompiling , am I right ?

is there anything missing ? When I used apk multitool , it doesnot include newly added smali files to the compiled apk. Thats why i tried apktool
[Samsung Galaxy Mini] A_U:
have u installed framework-res first ? if not do it..

or u can try this instead of signing the app..after compiling the app move the meta-inf, manifest and classes.dex from original systemui to modified one..
[Samsung Galaxy Mini] jayOOMjay:
Thanks man :D:good: , problem solved, It was because of the signing. actually I ve figured that problem after spending many hours. i.e, signing systemUI.apk other than its original signatures will cause some incompatilbility issues (I dont know why, that is my experience, may be bcoz of the speciality of systemUI, whatever ).

so, copying original meta-inf, manifest and classes.dex worked. ;)

now everything is ready, time for some serious work. :p

By the way you are simply AWESOME :D
[Samsung Galaxy Mini] jayOOMjay:
decompiled systemUI.apk added some additional smali files.> compiled > signed .

then again decompiled the modded systemUI.apk, but the smali files that were added in addition are missing in the decompiled systemUI.apk
[Samsung Galaxy Mini] A_U:
dont sign..just move the signature files
[Samsung Galaxy Mini] likariff:
thank you buddy! so great !
[Samsung Galaxy Mini] :
I got just this file in apk tool 1.5.2 but u have but u have 3 files........any idea?

Staying happy is hell so difficult........But u can make me smile with a bit of cooperation. What cooperation? Guide me like ur friend through each and every step
[Samsung Galaxy Mini] :
K i got it...... Sry

Staying happy is hell so difficult........But u can make me smile with a bit of cooperation. What cooperation? Guide me like ur friend through each and every step
[Samsung Galaxy Mini] rudisans:
Nice guide
[Samsung Galaxy Mini] asmanao:
does anyone know explain why a 5,9 kb file after editing a singol icon becomes 4,3 kb? however works thanks
[Samsung Galaxy Mini] A_U:
its a great feature..apktool developers have included that, which reduces app size thus by reducing system space and increasing performance..
[Samsung Galaxy Mini] asmanao:
thank you great guide :)
[Samsung Galaxy Mini] vlad1999:
great guide:angel:
[Samsung Galaxy Mini] hasanvanismail:
can i do this method to replace system apps from some ROM with another ROM's apps?

for example i try to replace Camera apps from CM10 based ROM with CM7 camera apps?
[Samsung Galaxy Mini] elzafir:
Trying to use this guide by changing WhatsApp+ package name and the com.whatsapp string to com.whatsapp2, so that WhatsApp and WhatsApp+ can run simultaneously. Successfully recompiled, signed and installed the apk, but everytime my new WhatsApp2 always force close. Any idea why?
[Samsung Galaxy Mini] A_U:
did u modify manifest ? if yes, then sign using test keys.

if no, then simply copy-paste the old signature files [meta-inf] into newly compiled one along with classes.dex and old manifest.xml
[Samsung Galaxy Mini] ssalamon:
VERY NICE
[Samsung Galaxy Mini] Eko De Brayenz:
reserved !!
[Samsung Galaxy Mini] trickster2369:
I have an icons apk that I would like to use, but by changing the icons to different ones. I tried to use 7zip, and just replace the icons, but they end up at a much larger size than the originals. Do I need to use apktool to do this properly, or do I just deal with the larger sizes?

Thanks for helping a noob.
[Samsung Galaxy Mini] A_U:
generally icon pack apk's are made with different dpi's ranging from 32dpi [ldpi] to 144dpi [xxhdpi]..so u dont need to resize any stuff.

even if u want to resize, just use some launcher like apex or nova which supports custom dpi's for icon packs.

so even now if u want to resize icons, u need to use apktool, decompile it and do ur resizing, replace or add stuff etc..recompile and use. 7zip wont work.
[Samsung Galaxy Mini] trickster2369:
Thanks for the info, I'll give that a try. As far as the sizes, I didn't mean the icons themselves ended up bigger, it was the .png sizes inside the .apk that ended up as different sizes.

From my S-Off BadSeed DNA
[Samsung Galaxy Mini] lazajnd:
Thanks! These tools are great to take the first steps! :)
[Samsung Galaxy Mini] LukaszEnt:
APK does not start

I have a problem when you change string.xml and code compilation does not start me on the device, but is installed after the signing. Pleace hepl me...

07-17 16:03:45.688: W/ResourceType(1295): Bad XML block: header size 28024 or total size 1702240364 is larger than data size 183

07-17 16:03:45.688: D/AndroidRuntime(1295): Shutting down VM

07-17 16:03:45.698: W/dalvikvm(1295): threadid=1: thread exiting with uncaught exception (group=0x40a71930)

07-17 16:03:45.738: E/AndroidRuntime(1295): FATAL EXCEPTION: main

07-17 16:03:45.738: E/AndroidRuntime(1295): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.droidux.components.demo.abs/com.droidux.components.demo.abs.DroidUXDemos}: android.view.InflateException: Binary XML file line #27: Error inflating class com.android.internal.widget.ActionBarContainer

07-17 16:03:45.738: E/AndroidRuntime(1295):	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2180)

07-17 16:03:45.738: E/AndroidRuntime(1295):	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)

07-17 16:03:45.738: E/AndroidRuntime(1295):	at android.app.ActivityThread.access$600(ActivityThread.java:141)

07-17 16:03:45.738: E/AndroidRuntime(1295):	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)

07-17 16:03:45.738: E/AndroidRuntime(1295):	at android.os.Handler.dispatchMessage(Handler.java:99)

07-17 16:03:45.738: E/AndroidRuntime(1295):	at android.os.Looper.loop(Looper.java:137)

07-17 16:03:45.738: E/AndroidRuntime(1295):	at android.app.ActivityThread.main(ActivityThread.java:5041)

07-17 16:03:45.738: E/AndroidRuntime(1295):	at java.lang.reflect.Method.invokeNative(Native Method)

07-17 16:03:45.738: E/AndroidRuntime(1295):	at java.lang.reflect.Method.invoke(Method.java:511)

07-17 16:03:45.738: E/AndroidRuntime(1295):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)

07-17 16:03:45.738: E/AndroidRuntime(1295):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)

07-17 16:03:45.738: E/AndroidRuntime(1295):	at dalvik.system.NativeStart.main(Native Method)

07-17 16:03:45.738: E/AndroidRuntime(1295): Caused by: android.view.InflateException: Binary XML file line #27: Error inflating class com.android.internal.widget.ActionBarContainer
[Samsung Galaxy Mini] sTzzz:
Thanks! Everything works. Nice guide.
[Samsung Galaxy Mini] LukaszEnt:
I have a question, were you able to install and run applications?
[Samsung Galaxy Mini] asmanao:
You have an error in line 27 tries to remove the changes you made
[Samsung Galaxy Mini] LukaszEnt:
but I changed only one entry in the string.xml nothing more
[Samsung Galaxy Mini] asmanao:
read carefully op in step 4 you need framework-res in the work folder. then type "apktool if framework-res.apk" .try this
[Samsung Galaxy Mini] LukaszEnt:
rgarrtu Aragon

Any ideas I'm doing everything exactly as described / instruction, in addition to copy the file before building applications, resources later AndroidManifest and META-INF.
[Samsung Galaxy Mini] alexdzeshko:
if u cant access via tar command, i propose you to use next command "cd ../..; cd usr; open ." . This will open "usr" folder so you can create local

and bin folder in it. Next step is to add to "bin" folder files from "apktool" and "apktool-instal-macos" zip files. Thats it. To check if work, type "apktool" in terminal. Good luck)
[Samsung Galaxy Mini] Ali_Bongo:
Command not found

I didn't do this step as I could get the apktool help menu just by running (?) (double clicking) the apktool file from finder. However whenever I try to run a command such as "apktool d filename.apk" I get the error message "-bash: apktool: command not found". I get this even when running the command from within the folder containing apktool.jar, aapt and apktool Unix files, as well as my apk file I'm trying to decompile.

EDIT:

I did then TRY and do this step and got this error

tar: Error opening archive: Failed to open 'apktool1.5.2.tar.bz2'

I tried this in both the directory in the example (usr/local/bin) and my own (tar files were also definitely in both)
[Samsung Galaxy Mini] t0kgrumps:
Hey could someone help me pls? I'm facing this error. Already installed java jdk and I had put the sdk folder in c/ android folder. I did not install jre yet

Sent from a Galaxy containing a Note by Samsung

Sent from a Galaxy containing a Note by Samsung
[Samsung Galaxy Mini] A_U:
1. seems like u dint install framework of the rom u want to use the app with..

2. its a typo if u trying to modify the systemUI.apk....its not system.apk, its systemUI.apk

remember, every character is important while working with apktool..
[Samsung Galaxy Mini] t0kgrumps:
I renamed systemui to system already. Btw Just realised there was an apktool.apk for android which is actually far more easier. Thanks anyways

Sent from a Galaxy containing a Note by Samsung
[Samsung Galaxy Mini] A_U:
no problem..post any more query's if u have..

cheers
[Samsung Galaxy Mini] arpitkh96:
Hey will u tell me what is this apktool.apk
[Samsung Galaxy Mini] t0kgrumps:
Now apktool works on any android phone. No kidding. http://xdaforums.com/showthread.php?t=2359240

Sent from a Galaxy containing a Note by Samsung
[Samsung Galaxy Mini] A_U:
updated linux tutorial for setting up apktool..it should be one of the easiest method than the ones found on xda :)
[Samsung Galaxy Mini] arpitkh96:
I am getting this.any idea?
[Samsung Galaxy Mini] A_U:
can u please elaborate wat caused the problem ? and wat u did to cause he problem ?
[Samsung Galaxy Mini] chuyennho184:
I have a error with apktool. Please see below picture.
[Samsung Galaxy Mini] arpitkh96:
Its solved now.I downloaded a wrong file
[Samsung Galaxy Mini] Shaftamle:
Does apktool need to be installed in the Windows path? If so could you add a step by step guide to that. This is awesome!

Sent from a Shaftamle Galaxy S4

"Thanks Button" is always appreciated!

http://mycolorscreen.com/Shaftamle/
[Samsung Galaxy Mini] A_U:
nope..not needed

u can just create a folder anywhere and and in any partition. But, dont forget to make sure that all the 3 files of apktool are in the same folder, along with the framework-res and the apk u r modding. :good:

and u need to enter the right path in cmd prompt where ur apktool folder is, before starting to compile/decompile

thats all..
[Samsung Galaxy Mini] ubiByte:
Hello, first of all thanks so much for the tutorial it's the best I've seen on the internet. I followed your guide and everything goes great, I used apktool to decode the apk file made my changes than rebuilt the apk file. Once I rebuilt the file I went ahead and signed it as well so it all worked out great there.

However, when I take the signed apk file and throw it into my phone, the apk file installs just fine but when I try to run it, it will show the logo and then close the game. Do you have any idea why this might be happening?
[Samsung Galaxy Mini] xperiasblack:
Sorry

W:could not find resurces

In cmd

What i do to fix?

When compiled
[Samsung Galaxy Mini] A_U:
u either forgot to include some png's or deleted a line in a xml.

copy paste the output log.
[Samsung Galaxy Mini] adryanodej:
decompiling problem..

when i try to decompile SystemUI.apk i got this:
[Samsung Galaxy Mini] vishalthedevil005:
try using Virtuous Ten Studio.......it makes the job simple.....
[Samsung Galaxy Mini] adryanodej:
Thank you.. I`l try right now :P
[Samsung Galaxy Mini] Lamboy:
Need Help

Unfortunately I bought a mac:( when i been using a PC since forever. I'm stuck on step 2 on installing the apktool the terminal keeps giving me errors. I checked youtube but no one has made a tutorial for the mac. can anyone give me some advice.
[Samsung Galaxy Mini] Maurice5813:
So I tried to recompile and got this:

C:\Apktool>apktool b framework-res
[B]W: Could not find sources[/B]
I: Checking whether resources has changed...
I: Building resources...
I: Building apk file...

The new framework-res.apk is in the dist folder, so is it fine or...
[Samsung Galaxy Mini] t4nchan:
dude !! i used this also multitool....framework decompiling and compiling well...but systemui giving errors! what can be the problem??
[Samsung Galaxy Mini] Maurice5813:
I got no clue, but Its not the tool we are using, i've tried multiple apk decompilers. I've also tried different roms, i have no clue:confused:
[Samsung Galaxy Mini] neilnain6:
Pls help me it is extremely important

Please help me i have inter school competition after 2 days and my computer teacher has selected me. THIS TUTORIAL IS HELPING ME A LOT FOR THE PREPARATION. but there is a problem i have downloaded all the files mentioned there. For learning the software i downloaded the framework-res.apk example. when i execute the commands it shows" exception in thread main ". AND A LOTS MORE WHICH CANT BE WRITTEN HERE PLS HELP ME. If u think that u could help me then contact me i will email the whole error. Email Id- neilnain6@gmail.com
[Samsung Galaxy Mini] sam@xda29:
Help me to decompile apk

I've tried So many times to decompile an Apk but I failed..

I got this error..

"

C:\APKTool>apktool if framework-res.apk

'java' is not recognized as an internal or external command,

operable program or batch file.

"

Now what to do ?

I have installed ADT

I have Installed JAVA

I have installed Drivers

And also Notepad ++..but I am stucked here so help me..please/...
[Samsung Galaxy Mini] Shaftamle:
Make sure you have the java jre or jdk installed in the system path. When you go to the command prompt you should be able to type Java anywhere and get a whole big paragraph of instructions. That means its installed right.

https://code.google.com/p/android-apktool/

Sent from a Shaftamle Galaxy S4

"Thanks Button" is always appreciated!

http://mycolorscreen.com/Shaftamle/
[Samsung Galaxy Mini] Z0R:
Did you also signed ready apk? It should be signed otherwise it will always come to error.

Sent with Tapatalk VIP
[Samsung Galaxy Mini] sam@xda29:
Thank you to all for your replies..

I've installed drivers, apktool and also java.

But to use java in win 7 as environment we need to configure it..

And the exact steps for that that I've followed and got it to working are as below.

1. go to start, right click on the computer and choose properties

click on advanced system settings

go to advanced and click on environment Variables button

2. press the first new... button

Varieble name = Path

Variable value = C:\Program Files (x86)\Java\jre6\bin

press ok

(you might need to reboot your computer)

Thank you again..
[Samsung Galaxy Mini] ashiqsayyad:
How to add google play service lib project before recompiling apk

I have decompiled one apk using apktool.

Now i want to add google play service libs to it before recompiling the apk..

Is it possible ??
[Samsung Galaxy Mini] Trahald:
In another thread, I have read that says "you can't sign system apps''. Is that true? Is it ok to sign framework.apk?

Also, when I try to recompile I got this:

C:\Apktool>apktool b framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
I: Building apk file...

After that new file on dist folder though. So, that means everything is ok?

Thank you!
[Samsung Galaxy Mini] guy4jesuschrist:
Install and run apktool on Android!

I'm having the exact same issues. Any help?

EDIT: Nevermind, I came across information about how to run apktool on Android and decided to take that route. It worked very well and was easy to install. Makes it very convenient too, since there's no need to copy files back and forth from PC/Mac to an Android phone.

If anyone is interested in installing apktool on Android, the instructions are located here.
[Samsung Galaxy Mini] The Scientist95:
Why not use Virtuous Ten studio? Easier and beautiful UI. Link: www.virtuous-ten-studio.com/index.php/downloads
[Samsung Galaxy Mini] frarredo:
Mac version?

Hi! Where is the mac version of this tutorial? btw thank you for this!!
[Samsung Galaxy Mini] Z0R:
Deleted

Already sorted this from my side.
[Samsung Galaxy Mini] cyphomatic:
I'm failing to produce a working modded systemUI.apk. I have almost tried everything, expect moving the classes.dex from the original systemui. Where do I find this file? I can't find it anywere..
[Samsung Galaxy Mini] GreatVortex:
Why do i get this error at build?

View attachment apktool.txt
[Samsung Galaxy Mini] TheXorg:
I've got the following error while decompiling a SystemUI.APK. I'm using Ubuntu 13.10 64bit and OpenJDK 7 JRE + JDK.

Here is the error:

xorg@XORG-PC:~/Dev/apktool$ ./apktool d SystemUI.apk
Destination directory (/home/xorg/Dev/apktool/SystemUI) already exists. Use -f switch if you want to overwrite it.
xorg@XORG-PC:~/Dev/apktool$ rm -r SystemUI
xorg@XORG-PC:~/Dev/apktool$ ./apktool d SystemUI.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: /home/xorg/apktool/framework/1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x01080670
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x0108066f
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x0108066f
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x01080670
I: Decoding values */* XMLs...
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x0104054d
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.encodeAsResXmlValueExt(ResScalarValue.java:86)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlValue(ResScalarValue.java:55)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlItemValue(ResScalarValue.java:48)
at brut.androlib.res.data.value.ResArrayValue.getType(ResArrayValue.java:74)
at brut.androlib.res.data.value.ResArrayValue.serializeToResValuesXml(ResArrayValue.java:50)
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)
xorg@XORG-PC:~/Dev/apktool$

Does anyone know how to fix it? Or do i need Oracle Java?

EDIT: Fixed, i've forgotten framework! Maybe you can add it in the main thread, because you only say / write how to decompile framework :)
[Samsung Galaxy Mini] Lezlie:
fine answer:cowboy:
[Samsung Galaxy Mini] hudarsono:
Why should we sign it again using sign_in.jar if we already copy and paste the original META-INF and android manifest to the built apk?

Please enlighten me, thanks!
[Samsung Galaxy Mini] Shamestick:
I am using a mac and I followed the directions in the OP and it looked like both the tar.bz2's went to /usr/local/bin alright (I'm not positive) but the "apktool" command still doesn't work. Below is the console output:
[Samsung Galaxy Mini] force_close:
anyone know why this warning shows up? no error, just warning.

EDIT : nevermind, fix it by reinstall framework
[Samsung Galaxy Mini] kllnn8:
can someone help me

i decompile w/ no errors

ive edit .apk w/ no errors

recompile it w/ no errors

sign it w/ no errors

installed the apk w/ no errors

but when i open the app

it says App has stop..

how to fix this?