yashsingh1/xdaforums huggingface dataset:
[Android Software Development] nlnebras:
hello pls help i cant find 1.apk in frameworks!

after i download i open folder frameworks i se is empty it should have 1.apk:confused:

---------- Post added at 10:18 AM ---------- Previous post was at 10:14 AM ----------

after i download i open folder frameworks i se is empty it should have 1.apk

:confused:
[Android Software Development] ANDROIDXFOREVER:
twframework

framework res

2 apk
[Android Software Development] iAlisa:
Trojan horse Generic_c ! Advanced+ApkTool+v4.2.0+By+BDFreak :(
[Android Software Development] cerj:
Just white list it if your AV is alerting you.
[Android Software Development] osa_misuari:
Always got Parse error after recom SystemUI Z2 MM

I just little edit following this guide http://xdaforums.com/showthread.php?t=3377428 after recom SystemUI parse error, im using win10

Any solution??

Edit: I found bug recompile with sign make apk parse error, if step by step its work ?
[Android Software Development] :
What android version?

What apktool version?

Did you load framework files?
[Android Software Development] zfk110:
Thanks for your help I was able to figure it out https://www.youtube.com/watch?v=2QNVXY4wdHk Thanks Again!!
[Android Software Development] :
Glad you got it working

Best of luck with what you're going to do?
[Android Software Development] stueycaster:
Did it work because you switched to version 4.1 rather than 4.2? Neither one will decompile systemui.apk for me. Did you have to set the windows path? I tried that but I don't know if I got it right. I named it Java. Maybe it should be something else?
[Android Software Development] :
What error do you get?
[Android Software Development] stueycaster:
The funny thing is Framework-res.apk decompiled right.

Log For : SystemUI.apk

Log Type : Decompiling

Log Recorded At : Sat 27-08-2016 13:18:10.09

Log Recorded By : Advanced ApkTool v4.1.0 By BDFreak

------------------------------------------------------

Exception in thread "main" brut.androlib.AndrolibException: Could not decode arsc file

at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:52)

at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:606)

at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:75)

at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:67)

at brut.androlib.Androlib.getResTable(Androlib.java:61)

at brut.androlib.ApkDecoder.setTargetSdkVersion(ApkDecoder.java:206)

at brut.androlib.ApkDecoder.decode(ApkDecoder.java:92)

at brut.apktool.Main.cmdDecode(Main.java:165)

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

Caused by: java.io.IOException: Expected: 0x00000008, got: 0x00000000

at brut.util.ExtDataInput.skipCheckShort(ExtDataInput.java:56)

at brut.androlib.res.decoder.ARSCDecoder.readValue(ARSCDecoder.java:206)

at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:169)

at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:157)

at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:125)

at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:100)

at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:78)

at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:47)

... 8 more

------------------------------------------------------
[Android Software Development] :
You need to update your apktool.jar it's outdated are you trying to decompile marshmallow?

Also is it a stock systemui? I've seen some modified apps by users gives similar errors
[Android Software Development] stueycaster:
That systemui comes from Maximum OvrDriVE 6.0.1 MM. It's a modified TW rom. Here's what I get with version 4.2.0.

I've seen it mentioned that you need to include Framework-res. Is that just the apk or does it need all the other stuff in there?

Log For : SystemUI.apk

Log Type : Decompiling

Log Recorded At : Sun 28-08-2016 7:20:36.52

Log Recorded By : Advanced ApkTool v4.2.0 By BDFreak

------------------------------------------------------

Exception in thread "main" brut.androlib.AndrolibException: Could not decode arsc file

at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:52)

at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:544)

at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:63)

at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:55)

at brut.androlib.Androlib.getResTable(Androlib.java:66)

at brut.androlib.ApkDecoder.setTargetSdkVersion(ApkDecoder.java:198)

at brut.androlib.ApkDecoder.decode(ApkDecoder.java:96)

at brut.apktool.Main.cmdDecode(Main.java:165)

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

Caused by: java.io.IOException: Expected: 0x00000008, got: 0x00000000

at brut.util.ExtDataInput.skipCheckShort(ExtDataInput.java:56)

at brut.androlib.res.decoder.ARSCDecoder.readValue(ARSCDecoder.java:282)

at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:224)

at brut.androlib.res.decoder.ARSCDecoder.readTableType(ARSCDecoder.java:212)

at brut.androlib.res.decoder.ARSCDecoder.readTableTypeSpec(ARSCDecoder.java:154)

at brut.androlib.res.decoder.ARSCDecoder.readTablePackage(ARSCDecoder.java:116)

at brut.androlib.res.decoder.ARSCDecoder.readTableHeader(ARSCDecoder.java:78)

at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:47)

... 8 more

------------------------------------------------------
[Android Software Development] :
You need to load both framework-res.apk and twframework-res.apk

Hope it helps
[Android Software Development] stueycaster:
I put them both in there along with SystemIU. I typed 7 for more menu. Then I chose the Decompile all apks option. The only one that worked is Framework-res. Was that the correct procedure?

The thing is I can get inside them with Winrar. But in order for them to work they need to be compiled right?
[Android Software Development] :
You need to load the framework files first not decompile but import them
[Android Software Development] stueycaster:
Ok I got it to work. I changed the notification header background to something I like. But now, even though it looks like it's working right, I can't change the Brightness Slider color.

I chose the lines in colors.xml that had the colors of the slider. Changed the color codes to the ones I want. When I go back and check my changes are still there. But it still won't change my phone.

Is the brightness slider hard coded into Android or something?
[Android Software Development] :
Not sure about it
[Android Software Development] stueycaster:
Ok that's cool. Thanks.
[Android Software Development] DrKaOt:
Im on note 4, the apktool worked well however the apk doesn't work. Even without changes. Have the latest apktool.jar installed and of course installed framework. For compiling i used option 4 incl. sign & zipalign. I don't get it. What am i missing??? The tool shows no errors. :(
[Android Software Development] stueycaster:
With some help from [MENTION=4835387]OvrDriVE[/MENTION] I got it all straightened out. Thanks for helping me get the Apktool to work.
[Android Software Development] petros3:
Thanks for the application, is really very good.

But I have a problem.

All goes well, but when should I do Recompile files completes the process, but inside the folder 4-Done there is not the app.

What can happens?

Is file Settings.apk from Android MIUI-8 lollipop.

Thanks.
[Android Software Development] stueycaster:
Every time I recompile the S7E Splanner_M app it force closes when I try to open the Time Picker in the Event Edit dialog. It does it even if I make no changes. I've been trying to get a logcat but no matter what I do the logcat.txt comes up empty.
[Android Software Development] stueycaster:
I tried to just decompile the S7E "Splanner_M.apk" then recompile it just to see if the error comes from compiling. It still crashes when I try to use the "Time Picker". It seems obvious that compiling is at fault.

I found I needed a different kernel to get a logcat. In case somebody would like to look at it and help me make it work right, here it is.

https://www.dropbox.com/s/4nkxr46j65yhujr/logfile.txt?dl=0
[Android Software Development] The Sickness:
I didn't look at your log. I'm on my cell. Look for "Fatal error "...
[Android Software Development] stueycaster:
Yeah I did. It says: error inflating class com.sec.android.touchwiz.widget.TwTimePicker

Caused by: android.view.InflateException

14 more

Caused by: java.lang.reflect.InvocationTargetException

At java.lang.reflect.Constructor.newInstance (Native Method)

At android.view.LayoutInflater.createview (LayoutInflater.java:631)

21 more

Caused by: java.lang.NumberFormatException: Invalis int: "spinner"

Force finishing activity.

There was a lot of other stuff, mostly java: numbers.

I just wrote some stuff that looked kinda important to me. You'd probably need to see the whole thing for it to make sense though right?

Of course it's all Greek to me.
[Android Software Development] The Sickness:
There will be a Fatal Error...that is what you need to find. Not just error.
[Android Software Development] The Sickness:
Binary xml file line #21
[Android Software Development] stueycaster:
What do I do about that.
[Android Software Development] Albe96:
Got this error when decompiling android.policy.jar-->>

Log For : android.policy.jar

Log Type : Decompiling

Log Recorded At : 12-09-2016 -- 15:29:47.25

Log Recorded By : Advanced ApkTool v4.2.0 By BDFreak

------------------------------------------------------

Exception in thread "main" brut.androlib.AndrolibException: brut.directory.DirectoryException: java.util.zip.ZipException: zip file is empty

at brut.androlib.ApkDecoder.hasResources(ApkDecoder.java:282)

at brut.androlib.ApkDecoder.decode(ApkDecoder.java:90)

at brut.apktool.Main.cmdDecode(Main.java:165)

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

Caused by: brut.directory.DirectoryException: java.util.zip.ZipException: zip file is empty

at brut.directory.ZipRODirectory.(ZipRODirectory.java:55)

at brut.directory.ZipRODirectory.(ZipRODirectory.java:38)

at brut.androlib.res.util.ExtFile.getDirectory(ExtFile.java:55)

at brut.androlib.ApkDecoder.hasResources(ApkDecoder.java:280)

... 3 more

Caused by: java.util.zip.ZipException: zip file is empty

at java.util.zip.ZipFile.open(Native Method)

at java.util.zip.ZipFile.(Unknown Source)

at java.util.zip.ZipFile.(Unknown Source)

at java.util.zip.ZipFile.(Unknown Source)

at brut.directory.ZipRODirectory.(ZipRODirectory.java:53)

... 6 more

------------------------------------------------------

EDIT:Fixed It.My File Was Wrong!Thanks For This Awesome Advanced Apktool!
[Android Software Development] tanago:
Do you guys have any idea why when I just unpack, re-pack, sign & zip align the stock Sony camera it's crashing on start-up?
[Android Software Development] cuddas:
i have same problem :cowboy:
[Android Software Development] The Sickness:
Don't sign it
[Android Software Development] cahsurip:
update [Tool]Advanced ApkTool v4.2.0[Windows] is detected virus

hi bro..

for new update [Tool]Advanced ApkTool v4.2.0[Windows] is detected virus on my avira. it still safe for used..???
[Android Software Development] Rootk1t:
yep. White list it if your AV is alerting you.
[Android Software Development] anees02:
I used it to decompile some apk files from /system/priv-app from SM-N910P with android 6.0.1.

Any system app like secsettings.apk can't be decompiled, but any general app (not system app) can decompile easily .

What is the problem with system apps although I installed framework-res.apk and twframework.apk but didn't test if they were installed correctly.

added logs

Decompiling : SystemUI.apk

Started : 10-05-2016 17:51:17.45

I: Using Apktool 2.0.3 on SystemUI.apk

I: Loading resource table...

Complete : Yes

Success : No

Ended : 10-05-2016 17:51:17.82

Do You Want To See The Logs? (y/n): y

Then the log

Log For : SystemUI.apk

Log Type : Decompiling

Log Recorded At : Wed 10-05-2016 17:51:17.45

Log Recorded By : Advanced ApkTool v4.2.0 By BDFreak

------------------------------------------------------

Exception in thread "main" brut.androlib.AndrolibException: Could not decode arsc file

at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:52)

at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:544)

at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:63)

at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:55)

at brut.androlib.Androlib.getResTable(Androlib.java:66)

at brut.androlib.ApkDecoder.setTargetSdkVersion(ApkDecoder.java:198)

at brut.androlib.ApkDecoder.decode(ApkDecoder.java:96)

at brut.apktool.Main.cmdDecode(Main.java:165)

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

Caused by: java.io.IOException: Expected: 0x00000008, got: 0x00000000

at brut.util.ExtDataInput.skipCheckShort(ExtDataInput.java:56)

at brut.androlib.res.decoder.ARSCDecoder.readValue(ARSCDecoder.java:282)

at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:224)

at brut.androlib.res.decoder.ARSCDecoder.readTableType(ARSCDecoder.java:212)

at brut.androlib.res.decoder.ARSCDecoder.readTableTypeSpec(ARSCDecoder.java:154)

at brut.androlib.res.decoder.ARSCDecoder.readTablePackage(ARSCDecoder.java:116)

at brut.androlib.res.decoder.ARSCDecoder.readTableHeader(ARSCDecoder.java:78)

at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:47)

... 8 more

------------------------------------------------------
[Android Software Development] ROBERT CM:
I think that the problem here is apktool

Try change default apktool with last apktool v2.2.0

http://xdaforums.com/showthread.php?t=1755243

Regards!
[Android Software Development] anees02:
Thank you very much Robert.

You saved me.

Now it works.
[Android Software Development] Rootk1t:
http://xdaforums.com/showpost.php?p=68083490&postcount=631
[Android Software Development] math.teach:
how can i replace my signing .jks file? i want singn with my file
[Android Software Development] anees02:
Anybody could decompile or recombile many apk's at once?

I tried to decompile or recombile all apk's at once but couldn't do that, either couldn't decompile or my PC freeze and hang with a lot of decompile.exe windows.

How can I do batch decompiling with this tool?
[Android Software Development] methoddon1:
yes, absolutely works... did 7 apk's recently and all went fine... decompiled/recompiled.

Edited : took some time though and pc was under pressure))) but all went fine and did the job in 10-15 seconds .

Sent from Galaxy Beast S7E (aka Zeus) Powered by SuperM v1.13.1 Rom
[Android Software Development] anees02:
I tried 18 apks with no success.

I will try with 7 apps.
[Android Software Development] zooperaj:
Thanks for this tool!

I am using this tool for Samsung Galaxy Quattro GT-i8552. I am trying to build a custom rom by using android kitchen. Wanted to decompile settings.apk to change rom name, etc. But could not find settings.apk. Do you have any idea by which name I can find that and where it could be located?
[Android Software Development] anees02:
twframework-res.apk

Almost all apps decompiled successfully but some of them couldn't recompiled,the most important app is twframework-res.apk although it installed correctly but I couldn't recompile it even if I didn't any change to it(just decompile and recompile).

So where is the problem with twframework-res.apk recompilation ?

This attachment displays the log:
[Android Software Development] Rootk1t:
[MENTION=1556859]anees02[/MENTION]

Use latest version.

Try installing all frameworks. I donno about Samsung, but for Sony we have two of them: framework-res.apk and SemcGenericUxpRes.apk
[Android Software Development] anees02:
I already use the latest version apktool2.2.0.jar.

In Samsung you have to install 2 frameworks

1)framework-res.apk

2)twframework-res.apk

And the tool states that they installed correctly.
[Android Software Development] dacorsa:
thanks great software!
[Android Software Development] Rootk1t:
Updated with latest Apktool version 2.2.1.
[Android Software Development] ANDROIDXFOREVER:
tnx great
[Android Software Development] zooperaj:
Have been using 2.2.0, will use 2.2.1 now, thanks!
[Android Software Development] dacorsa:
i have note4 , last 5.1 samsung rom , with the last .smali files in smali/com/android/systemui/statusbar/policy folder.

i have try to use APKTool to mod systemUI.apk but when i try new file i see only the original icon of the battery and the app of 3minit doesn't works...

someone can help me? i have modded the system_icons.xml and add the 3 file smali...what else??

this is how i edited the file xml:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center_vertical" android:id="@id/system_icons" android:layout_width="wrap_content" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<com.android.keyguard.AlphaOptimizedLinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" android:alpha="@dimen/status_bar_icon_alpha" />
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingStart="@dimen/signal_cluster_gap">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="@dimen/signal_cluster_gap" android:layout_marginEnd="@dimen/rssi_battery_gap" layout="@layout/signal_cluster_view" />
<TextView android:textSize="@dimen/battery_text_size" android:textColor="@color/battery_text_color" android:layout_gravity="center" android:id="@id/battery_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="@dimen/battery_text_margin_top" android:alpha="@dimen/status_bar_icon_alpha" android:importantForAccessibility="no" android:fontFamily="sec-roboto-light" android:layout_marginStart="@dimen/battery_text_marginStart" />
<com.android.systemui.BatteryMeterView android:id="@id/battery" android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_marginBottom="@dimen/battery_icon_bottom_margin" android:alpha="@dimen/status_bar_icon_alpha" android:layout_marginStart="@dimen/battery_icon_start_margin" />
<com.android.systemui.statusbar.policy.MinitBattery android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
</LinearLayout>

thanks
[Android Software Development] dragon459:
I received a notice found malware of window defender.

I I use Advanced ApkTool v4.2.0 on windows 10 1067
[Android Software Development] ANDROIDXFOREVER:
Disable defender o use another antivirus ..i use nod 32 no problem for apk tool windows 10 64 bit v.1671
[Android Software Development] eradhossain:
I have Problem With Advanced ApkTool

HI BDFreak. Im also from bangladesh. i have problem with ur software, when i try to use it its always saying me like that..

Decompiling : BitMaker.apk

Started : 15-11-2016 12:40:45.92

Complete : Yes

Success : No

Ended : 15-11-2016 12:40:46.30

Do You Want To See The Logs? (y/n):

i have watching many videos but i can't fix it. plz help me i want to modify apk..

if u can then give me ur fb or email. thank you :)
[Android Software Development] Hacker432:
Is it possible to use it on linux with wine?
[Android Software Development] wiking76:
can i use it to decompiler/recompile an apk like a thirdy part launcher for my mini pc android?
[Android Software Development] The Sickness:
Why not just use terminal for apktool?
[Android Software Development] zfk110:
Copy your framework files to the "2-In" folder & also the apk files you want to decompile

Install Framework first (Install OEM specfic framework also)
[Android Software Development] cdanthien:
i wonder When next version will be released for Android Nougat 7.0
[Android Software Development] Rootk1t:
It's better ask apktool devs when.

But as far as i remember it is updated 3-4 times a year.
[Android Software Development] o__:
Advanced ApkTool v4.2.0 By BDFreak not found

404 not found

Can't find it!

Seems like that URL doesn't exist. Or at least we can't seem to find it. We've even looked under the seat cushions and zip, nada, nothing.
[Android Software Development] Rootk1t:
look better next time -> http://xdaforums.com/showpost.php?p=69215130&postcount=682
[Android Software Development] bovirus:
[MENTION=5292989]Rootk1t[/MENTION]

The user claims that the link in the first post https://www.androidfilehost.com/?fid=24411628330025361 is bad (error 404). And it's true.

[MENTION=5078388]BDFreak[/MENTION]

Please fix error 404 about download link.

Please update your link with laetst package with apktool 2.2.1. Thanks.
[Android Software Development] Swapnil Soni:
Link is not working ... fix it asap please.. or the thread is dead?
[Android Software Development] Rootk1t:
working link is located two posts above yours.
[Android Software Development] tyo.kolondjono:
thanks man:D
[Android Software Development] bovirus:
[MENTION=6021742]busayaphol[/MENTION]

It's important (for all) I believe when you talk about an app, that you post the reference link for the app, or the link where the user can download and test the apk file.

Is it your app

https://play.google.com/store/apps/details?id=com.prohiro.macro&hl=it

Why do you want change app name?
[Android Software Development] busayaphol:
https://play.google.com/store/apps/details?id=com.prohiro.macro&hl=it

yes that it!

sorry for my manner sir

And the reason i try to change name because i want to use it on some game but it detected that i have this app and wont let me use it so I try to prevent from detected but if it illegal i will quit it sir

thank a lot for reply

or did it has another way to edit AndroidManifest.xml to hide name from app list?
[Android Software Development] bovirus:
[MENTION=6021742]busayaphol[/MENTION]

I believe that is not enough to change app name to avoid that the game recognize the app.

I believe that it's illegal to change name the app without the approval of the app author.
[Android Software Development] busayaphol:
so I will find another way then thanks in advance ^-^
[Android Software Development] fluffi444:
Here you go: http://xdaforums.com/showthread.php?t=2760965

Read also my last post in this thread. There are some changes to OP - But nothing special....

I dont think that this is illegal as long the app itself is open source....
[Android Software Development] :
Even though I decompiled the apk file, I can't find the .smali folder. Any help?

I'm trying to decompile the Xperia Camera app for Z3C MM. I installed both frameworks and got the latest version of apktool and advanced.
[Android Software Development] fluffi444:
hey doriandiaconu - I answer here (and not PM) because maybe helpfull for others as well...

1.) Use latest APKTool 2.2.1 - Download it and remane it to apktool.jar - Place it in 1-BDFreak (overwriting the old one)

2.) Maybe your main mistake: Install BOTH Sony Frameworks:

framework-res.apk

(get it from phone in folder system/framework) AND

SemcGenericUxpRes.apk

(get it from phone in folder system\framework\SemcGenericUxpRes) - Put them both in 2-In

3.) Install both frameworks via tool...

4.) Run decompile...

Works here... see screenshots...

Note: Sometimes its needed to delte 1.apk (Sonys framework-res.apk) in folder 1-BDFreak\Frameworks if you want to decompile common apps which are not Sony system related... The tool will install an generic framework automaticly if 1.apk is deleted... For any sony system app both framework-res.apk and SemcGenericUxpRes.apk are mandatory... But sometimes also common apps can be decompiled with Sony framework setup... Just keep it in mind if you ran into error during decompiling common apps.... I decompile everything with sonys framework as long as no error will occur...
[Android Software Development] Dzepar:
Is your rom deodexed? Usually this happens with stock rom you'll have camera.odex beside camera.apk so you need to deodex rom/apk so to have classes.dex in apk which is smali when decompiled. :)

All the Best!