yashsingh1/xdaforums huggingface dataset:
[Android Software Development] llohcyoing:
llo@llo-System:~$ cd ~

llo@llo-System:~$ aapt v

Android Asset Packaging Tool, v0.2

llo@llo-System:~$ apktool

Apktool v1.4.3 - a tool for reengineering Android apk files

Copyright 2010 Ryszard Wiśniewski <brut.alll@gmail.com>

Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)

Usage: apktool [-q|--quiet OR -v|--verbose] COMMAND [...]

COMMANDs are:

d[ecode] [OPTS] <file.apk> [<dir>]

Decode <file.apk> to <dir>.

OPTS:

-s, --no-src

Do not decode sources.

-r, --no-res

Do not decode resources.

-d, --debug

Decode in debug mode. Check project page for more info.

-f, --force

Force delete destination directory.

-t <tag>, --frame-tag <tag>

Try to use framework files tagged by <tag>.

--keep-broken-res

Use if there was an error and some resources were dropped, e.g.:

"Invalid config flags detected. Dropping resources", but you

want to decode them anyway, even with errors. You will have to

fix them manually before building.

b[uild] [OPTS] [<app_path>] [<out_file>]

Build an apk from already decoded application located in <app_path>.

It will automatically detect, whether files was changed and perform

needed steps only.

If you omit <app_path> then current directory will be used.

If you omit <out_file> then <app_path>/dist/<name_of_original.apk>

will be used.

OPTS:

-f, --force-all

Skip changes detection and build all files.

-d, --debug

Build in debug mode. Check project page for more info.

if|install-framework <framework.apk> [<tag>]

Install framework file to your system.

For additional info, see: http://code.google.com/p/android-apktool/

llo@llo-System:~$

---------- Post added at 10:58 PM ---------- Previous post was at 10:58 PM ----------

CM10

---------- Post added at 10:59 PM ---------- Previous post was at 10:58 PM ----------

apktool 1.4.3

WHY?
[Android Software Development] cowsquad:
[/COLOR]apktool 1.4.3

WHY?[/QUOTE]

Probably because your apktool from brut.all
[Android Software Development] iBotPeaches:
As been said my aapt reads version 0.3 and apktool is still not up to date. My help ends here, this is just basic Linux stuff.

Sent from my SGS3 AT&T Variant
[Android Software Development] llohcyoing:
SOLVED

llo@llo-System:~$ cd Scrivania
llo@llo-System:~/Scrivania$ apktool d framework-res.apk
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
llo@llo-System:~/Scrivania$ apktool b framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
I: Building apk file...
llo@llo-System:~/Scrivania$ apktool
Apktool v1.5.0.5a056e3 - a tool for reengineering Android apk files
Copyright 2010 Ryszard Wiśniewski <brut.alll@gmail.com>
with smali v1.3.4-ibot8, and baksmali v1.3.4-ibot8
Updated by iBotPeaches <connor.tumbleson@gmail.com>
Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)

it was another tool that have apktool 1.4.3 and work over the new apktool...

so..thanks iBotPeaches for your hard work and sorry if i waste your time...
[Android Software Development] zozor:
Thanks Ibot .

Your work on apktool is really impressive
[Android Software Development] mehz:
how can I get dummy frameworks for 3-5? everything I try only installs as 1 or 2 and I tried using the same file for 3/4/5 but that didn't work.

my problem is every time I compile framework-miui-res.apk the resources id's always change from 0x06010000 to 0x02010000. I've been searching around but nothing has worked for me.

I'm using Apktool v1.5.0. and aapt 0.3.
[Android Software Development] iBotPeaches:
I've uploaded the 4 MIUI dummy frameworks here: http://miui.connortumbleson.com/other/apktool/frameworks/
[Android Software Development] surdu_petru:
Error recompile SystemUI !

Hi!

...with last apktool & appt I decompiled - recompiled framework-res.apk with success ! ...also decomiled SystemUI.apk

- with no modiffication on SystemUI , when try to recompile I have some issue ( aapt.exe stop working ! ) - and ofcourse I can not recompile SystemUI.apk !

( so, I'm on Stock Rom JB Archos Transformer TF300T , - I have not any path on system variables for SDK , and also my environment Win 7 x64 is proper installing ! )

....some help will be greatly appreciated ! Thanks !!! :good:
[Android Software Development] iBotPeaches:
If aapt.exe stopped working, then it makes me think that SystemUI has been modified before. aapt will seg fault on APKs that were modified and recompiled using ApkMulti Tools. That program messed up the structure of the APK to the point that not even aapt can handle it. You have to get a new SystemUI from a pure RUU stock ROM. As its ruined. If your 100% that is a stock APK then send it to me.
[Android Software Development] mehz:
that fixed it, thank you.
[Android Software Development] surdu_petru:
Hi!

Yes , the SystemUI.apk is 100% Stock Android JB 4.1.1 - from my Asus TF300T ! ( strange situation because framework-res.apk work great on decompiling/recompiling !!! ).

Here it is the stock JB framework-res.apk and SystemUI.apk from my Asus TF300T ( SystemUI.apk is not deodexed ! ) , so if you need .odex file let me to know ! Thanks ! :good:
[Android Software Development] iBotPeaches:
Gotta deodex it :)

Then it'll work. Its looking for a classes.dex or a smali folder during build. Apktool doesn't know about odex files.
[Android Software Development] GrimTG:
Hey quick question sir.....I'm attempting to decompile Swiftkey 3 for some themeing but everytime I try it wont compile. And if I decompile with debug mode it keeps saying skipping classes.
[Android Software Development] surdu_petru:
Hi !

Thank's for info ! I'll do right now ! ...normal should be work also without .odex file ! I made ​​this way with other stock Rom and it work without .odex file ! I have the feeling it will not work ...also with deodexed SystemUI.apk ...but I'll try now ! THANKS!:good:
[Android Software Development] iBotPeaches:
Debug mode is for smali (the java side of things). If your just doing resources type, then don't use debug mode.

Your gonna have to send me the APK or post the output log for me to help at all. Try doing apktool b -v Swiftkey

(pastebin it). If you post that massive output here. I will be mad.
[Android Software Development] surdu_petru:
Hi!

Successfully deodexed SystemUI.apk ! but trying to recompile SystemUI without any change ...aapt.exe has stopped working , and when I closed aapt windows error I get :

...also is the same error when I was trying to recompile SystemUI without SystemUI.odex ! ...in my experience, as I told you ....normal we must be able to recompile any .apk without classes.dex file !

I use :

- aapt.exe (6.114.928Kb)

- apktool.jar (v 1.5.0) (5.213.925kb)

- baksmali & smali 1.3.3 for deodexed SystemUI.apk !

Here is all my compile/decompile commands !

Thanks in advance for any help !
[Android Software Development] iBotPeaches:
Re-send me the deodex SystemUI.
[Android Software Development] Phone_Guru:
Look again. Gmail is a separate app themed and recompiled and flashable.
[Android Software Development] djdarkknight96:
Link to thread? I haven't tried in a while though but haven't seen any errors with manifest I couldn't get around. It was resources, anything in values like styles and colors xml. Theming the images and layouts work fine.
[Android Software Development] Thebear j koss:
I think it is here- http://xdaforums.com/showthread.php?t=2544628

Figured it might be worth taking a look. Not sure what was themed or not, but maybe he has found a work around...

Thebe?r'$ NeXu$
[Android Software Development] TONY6669:
Force close for me...

Sent From Gurple Tapatalk
[Android Software Development] Phone_Guru:
Which folder is your Gmail installed to?

---------- Post added at 10:51 AM ---------- Previous post was at 10:51 AM ----------

Try latest version which I just uploaded, 6.9
[Android Software Development] djdarkknight96:
You're flashing it to data? Didn't work for me neither. New link says deleted file...flashing to data? You doing a vr theme?
[Android Software Development] Phone_Guru:
It flashes to data. Your Gmail needs to be installed to gm-1 folder and this flashes a replacement
[Android Software Development] djdarkknight96:
So it's a vr theme?

Flashing to data isn't ideal, why do you need to flash to data?
[Android Software Development] Ticklefish:
Maybe it's not meant to be installed as a system app?
[Android Software Development] djdarkknight96:
I have it now installed on system with my edits to layouts and smali so i can theme it fully with theme chooser. I can't edit anything in values or it will crash...on system or data!
[Android Software Development] _alex74_:
ok fully working here, the guy did it!!! put in data app, i have even modified to mu likings, but maybe we shall talk on private about this?

Next step is trying overlay theme, so no more stupid updates bother :)

Sorry [MENTION=3924617]iBotPeaches[/MENTION] we will discuss this in private, please guys let's have a talk contact me on msg :)
[Android Software Development] djdarkknight96:
Until I see inverted screenshots and proof it can be inverted I'm not believing this. Not saying it's not possible but not one screen and on data will it stay after reboot? Normally signature checks on data will break it. System there are no checks...even then it get certificate errors. Just seems fishy.
[Android Software Development] TONY6669:
I use Aqua Mail now love it 100 times better than Gmail

Sent From Gurple Tapatalk
[Android Software Development] Thebear j koss:
Yeah, i know there are a lot of people that have been trying for almost what 2 years now, to theme gmail. I actually was hoping a workaround was found but i haven't seen a working gmail since 4.5.2. I know some had 4.5.6 working, but even that was hit or miss....

Thebe?r'$ NeXu$
[Android Software Development] djdarkknight96:
It's not a fix, still a work around. I guess it works but I have already noticed issues that users will have to face trying it. Flashing it to data has always been a bad idea. One major complaint will be...it needs to be installed originally then must have -1 -2 or whatever on the package. So it's not truly a fix. What we need to figure out is why? I really don't think it's an apk tool issue.
[Android Software Development] piquadrat:
I'm wondering if it is a way to substitute "Archive" with "Mark as Read" in gmail notifications. I saw some suggestions long long time ago that this feature could be in fact implemented but switched off in manifest. If you guys came across or maybe implemented patches which address this feature I'd really appreciate any info.

And yes, there are substitutes to gmail app. But almost none of them support mail label (or filter) based sounds. Essential feature for me. Different sound for different mail classes. ProfiMail Go supports this but but that GUI, uffff.

The second thing is battery life. GCM is much better then any proprietary or IMAP_IDLE based solution i dealt with.
[Android Software Development] Thebear j koss:
What's the difference? If archived does it disappear from list of emails as opposed to just remaining but grayed out signifying that it was read? Just curious...

Thebe?r'$ NeXu$
[Android Software Development] piquadrat:
Personal preferences. I'm old-fashioned, I suppose, and like inbox with read and unread mails not all scattered across different places/folders.

If you like I can try if I'm able to modify gmail look and make it runnable. But what should I change?
[Android Software Development] Thebear j koss:
I didn't mean it like who cares!!???!!! LoL I was curious if that was the difference, I'm not positive on what the difference is and was taking a wild guess.

Thebe?r'$ NeXu$
[Android Software Development] piquadrat:
Archiving means moving from "Inbox" to "All mail" IMAP folder but the message could be automatically restored in some cases. All in all, not what I like. And there is an app which explore this cleaning inbox concept fully (google's "Inbox" by Gmail) so I don't understand google strategy here.
[Android Software Development] Thebear j koss:
I would like to see a check all/delete option that clears everything out except the emails you uncheck. No idea why there isn't an option, it would take me a week to delete all the junk in gmail. And yeah i have been complaining about google's strategy for years now... How many messaging apps does it need? Why is there a launcher in my search app? Why take away messenger from g+, make it a standalone app then create hangouts, spaces, duo? Why link youtube and google+? Waaay too much nonsense going on over there...

Thebe?r'$ NeXu$
[Android Software Development] piquadrat:
Some of those quirks on mobile can be cured by 3rd party tools if you give them access to gmail's local mail database. For instance Mark All as Read is available in Pure Messenger Widget. IMO the best mail widget out there. But to make it work you have to modify gmail itself. At least in newer revisions. Lack of LED control could be resolved with XNotifications etc. All looks like patching mend holes in the roof. But gmail has some advantages too.
[Android Software Development] graineeg:
Hi its possible to decompile all apks in the dir for example system/app (android 6.0) with one command? Or it must be written one by one?
[Android Software Development] Thebear j koss:
1 by 1. Way too much info to decompile more than 1 app at a time...

Thebe?r'$ NeXu$
[Android Software Development] thereassaad:
If im not wrong , from Linux there is some config that's allow u to decompile all app in 1 click
[Android Software Development] Thebear j koss:
Possibly. I am not a Linux user, but it handles things a lot different than windows does and there has to be a reason why it is so popular with developers. On windows i don't think it is possible, 1 could try in the command prompt apktool d... However many apks they want and see if it works. I have always done 1 at a time. I would think doing say 10+ apks would take a long time to decompile all at once too...

Thebe?r'$ NeXu$
[Android Software Development] Kc_Nirvana:
Its always possible with some coding...

On Windows you can use a bat file.

On Linux you can do a sh file

Enviado do meu MI 4LTE através de Tapatalk
[Android Software Development] Spannaa:
It's possible on Windows too - I modified the batch script from an old version of apk manager to install the required frameworks and then batch decompile all apks and jars in a folder.
[Android Software Development] Ticklefish:
I don't know much about Bash scripting - my PC is all but dead and won't run Linux. But I had a brief look at it a while ago. It should be pretty simple to write a script that decompiles every file in a folder.

It can be done pretty easily in Windows batch so it can't be that hard..
[Android Software Development] Thebear j koss:
True, i was answering more along the lines of just using apktool. There are programs i am sure that use apktool to do batch editing, but that isn't this apktool thread. Apktool itself i don't believe can decompile more than 1 app at a time. I have never tried, so i am not too sure. But sure there are other tools available that handle things differently. I still think it would take a while to decompile say your whole system folder, and there are no guarantees that there won't be errors, stopping the whole process at any given time...

Thebe?r'$ NeXu$
[Android Software Development] Kc_Nirvana:
Yeah...

When I saying it can is doing a loop like:

For each folder in system

Do apktool d xpto.apk

Endfor

Enviado do meu MI 4LTE através de Tapatalk
[Android Software Development] :
Yes if you pretty much make a script that cd in to all directories.

Then decompile. I could try create one but though it'd be for a Huawei system. Lol

Also I wouldn't see the reason to decompile let's say. Google setup. Google framework etc. Package installer might be fun if you try add the android n style to it. But you probably get what I mean. There's no need to basically decompile all components since usually you barely modify half of the files ?
[Android Software Development] smokin901:
in windows from command line you use

for /f %f in (dir *.apk) do (java -jar apktool.jar d %f)
[Android Software Development] djdarkknight96:
Thank you, I was looking all over for that Damn code...lost in my old ass notes. Lol
[Android Software Development] fadedout:
On Linux, this is really easy. If you want to decompile all APKs in the current directory (not including subdirectories):

find -maxdepth 1 -type f -name '*.apk' -exec apktool d {} \;

This is a little sloppier but if you only want to use the shell then you could do something like:

for file in *.apk; do
apktool d "$file"
done

If you have the APKs mixed around in a bunch of subdirectories (e.g. ./system/app/Photos/Photos.apk ./system/app/Videos/Videos.apk) then I'd recommend copying them all into one directory first with

find -type f -name '*.apk' -exec cp -t /path/to/destination/directory {} +
[Android Software Development] Ikk999:
Sorry , guys does anyone facing unsuccess recompliling of cm13 system app (any) ?! The binary file .apk is created but too many missing xml files , all values folder vanished. I have tried on virtuous and on apktool using command line , I was facing the same issue . Need help
[Android Software Development] Thebear j koss:
On recompile? They all get compressed into Resources.arsc file. Check the apk before decompile, smali gets compresse into the dex and values into the arsc file.

Thebe?r'$ NeXu$
[Android Software Development] Ikk999:
Man you're right . I didn't noticec It before xD

Thanks .:victory:
[Android Software Development] AL_IRAQI:
Hi Guys, im trying to decompile nokia z launcher, but they have too many unknown files in the apk, i get error with it

check the apk here

i managed to decompile it by removing all files with 7-zip
[Android Software Development] djdarkknight96:
Post the errors, easier then me downloading and decompiling. Some errors are warnings, Nokia might be using another resource along with framework you'd need to install...like TouchWiz and sense.
[Android Software Development] AL_IRAQI:
Hi, im sorry :D

the problem is with special characters that they used in the app,

Error

Nokia Z launcher is done by chinese devs.
[Android Software Development] djdarkknight96:
Oh my see the difference in posts? Not trying to be hard on you just education. Come with all you got right away...much better results. Yeah that looks like a apktool issue. Good catch.
[Android Software Development] Thebear j koss:
Did you try an updated apktool? Just curious as i see you are using 2.0.0 and not 2.2.0, but as DJ said it looks like apktool is having issues with the Chinese characters in the app.

Thebe?r'$ NeXu$
[Android Software Development] AL_IRAQI:
it's okay :p, i usually post errors but this time i was in hurry :D

Im using 2.2.0, too lazy to change folder name :D
[Android Software Development] Thebear j koss:
Hahaha. Got ya. Worth asking though, as it might have been addressed in the newer version, but I figured it didn't. Those damn proprietary apks...

Thebe?r'$ NeXu$
[Android Software Development] :
Oh gosh what a totall mess :o you can just copy them manually though.
[Android Software Development] AL_IRAQI:
it doesn't decompile the apk propely without it :D
[Android Software Development] :
Just a question what do you want to do?

Oh i see they also obfuscated the classes.dex file. Which makes the app broken when recompile since one file will be missing and it's most likely a mandatory file. If it isn't. You could just remove all strings related to the file in classes.dex and see if it still work

But to be honest. It won't be easy. Also this apk is a totall mess. The files lying in / of the apk. Just not really necessary and looks badly done. Seems like they just threw everything in there.

For being a "professional" corporation. This looks really bad. No structure at all.
[Android Software Development] AL_IRAQI:
It has normal apk files, classes and others, but there is those extra Chinese files, even after removing all of them then decompiling the apk most files will be missing, they clearly moved most stuff to their files
[Android Software Development] :
Thus are xml files and png. Thus can be added back later I doubt they will kill the decompiling. But you can't really edit anything since the classes dex isn't decompiling fully either it skips one file as I saw. If it's mandatory or not I can't tell.
[Android Software Development] AL_IRAQI:
Yeah i know about those files, i opened some of them, if you download older version like 1.2.*, it can be decompiled fully
[Android Software Development] :
Yeah it's because it's been working before. Titanium backup dev had same structure of code. Not the xml part but the smali files had
[Android Software Development] Rom:
Hello all :)

I have difficulties to make run apktool on my debian x64 VM jessie

I have follow ALL steps that indicate on this page:

https://ibotpeaches.github.io/Apktool/install/

So on my debian, i have java and his JDK installed but i don't arrive to make run apktool command in cli :(

I have search on the web, find potential solution, the debian path but the directory of apktool is in it:

I have ask the dev of this app, and for him, this problem can coming from PATH variable..

Anyone arrived to make running apktool on unix system (in a debian for preference) ?

Edit: I am arrive to make it run on windows OS so i will arrive to make same result on debian..

Thanks.
[Android Software Development] supercowz:
i need help this drive me crazy, i try to add more lang to my LeTV phone with 6.0.1 rom (and mostly learn !)

so i decompiled with apktools my framework-res.apk, Setting.apk then add more lang on them, compile them (no problem) and add orignal AndroidManifest.xml and META-INF

then i create flashable zip with new apk, flash them, great no problem all good

now if i factory reset my rom, the setupwizard.apk fail ! (LetvSetupWizard.apk)

i did fix framework-res.apk, so setupwizard.apk is not freezing by using :

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

java -jar apktool.jar if LetvSetupWizard.apk

before compile it

but im not able to made my dam modified setting.apk to not freeze setupwizard at first boot

but if i setup the rom (pass this setupwizard) and flash modified apk, all work fine and translated

thanks for helping me...
[Android Software Development] djdarkknight96:
Need logs to help.
[Android Software Development] supercowz:
how to get thoses logs ?

really thanks for you help ... and your time
[Android Software Development] djdarkknight96:
???? Seriously? :o I have a link in my web signature to "how to get a log" but use matlog app in playstore instead of catlog.
[Android Software Development] supercowz:
oups sorry sometime when is in front of you, u dont see it , oki i will try

but how to get thoses logs at booting ? since my bugs are when setup the rom with setupwizard.apk fail, with my modified apk

when the rom is setup, and modified framework-res and settings.apk working great ... no bugs found and all new languages showing
[Android Software Development] djdarkknight96:
If anything crashes it produces a log of why, you need to crash it and record it. On boot you won't see a crash but you can get a log of it too but I don't think you need that. Bootlooping isn't happening.