[Galaxy Ace S5830 General] beegeero:
Apk Studio, decompilation - recompilation, How to

I tried several times to work with Apk Studio, but I could not find a guide to understand exactly how it works.

Finally, one day I understood.

That's why I thought that would be a useful guide to understand others, how simple it is.

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

You need:

Java Runtime Environment

Apk Studio, which you can download here

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

Let's start:

Unzip Apk Studio archive

Reserve the archive, do not delete.

Note: Where you unzip the archive on PC, there you will work. If you wont to change the address on your PC for work, then unzip again the archive to new address.

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

- Create a new folder on Desktop named -> Project 1

- Copy in the new folder Project 1 the file framework-res.apk of the ROM you want to mod.

View attachment 3180767

- Open Apk Studio;

- choose File -> Settings in Apk Studio;

- to Binaries you have the path to binaries, do not touch there;

- click the Add button

View attachment 3180773

- to Tag write -> framework

- to Path click and search the path to Project 1\framework-res.apk, then Open and then Install,

- cick Save

View attachment 3180780

View attachment 3180785

Now framework-res.apk it is installed.

You can install more framework from other ROM, but do not forget to change the name Tag, for that you can recognize it.

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

- add file DeskClock.apk in Project 1, the file is attached below;

View attachment 3180787

View attachment 3180793

- In folder Project 1 create another folder DeskClock JB or whatever name you want to call (not strictly necessary);

View attachment 3180795

- in Apk Studio open File -> Apk;

- to Project name -> add a name "1" (for example or how do you want), it will be create a folder with this name;

Note: spaces between words are not allowed to this name;

- to Apk Path choose the path to the file DeskClock.apk;

View attachment 3180800

- to Project Location choose the path to the folder DeskClock JB - just select the folder, and click Select Folder, do not open the folder DeskClock JB;

- to Framework - selects the framework installed;

View attachment 3180801

- click Create and waits;

- in Statusbar, Apk Studio will tell you when finished.

- it was made decompilation

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

1. You can work on Apk Studio or you can put in bar and open files with Notepad++

2. You can close Apk Studio and reopen leter.

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

1.

- the folder "1" has been created, as we called the project;

- plus a new folder was created with the name "original", that contains files that will serve to recompile;

View attachment 3180804

View attachment 3180808

- In Apk Studio looking to change the value to the path 1/res/layout/desk_clock_time_date.xml

View attachment 3180812

- find TextView android: textSize = "106.0sp" that should be changed to 100.0sp

View attachment 3180813

- I changed the value;

View attachment 3180814

Why I changed DeskClock.apk, you can see here

- choose File -> Save, and close the file;

- under View - click Build, the Statusbar tells you what makes Apk Studio and when it is finished;

- in the folder Project 1\DeskClock JB\1 was createed a new folder named "built"

View attachment 3180816

- the folder "built" contains the file rebuilt.apk

View attachment 3180818

- rename file rebuilt.apk to DeskClock.apk

That's all.

Done!

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

2.

If you have close Apk Studio to use another program for changes, like Notepad ++ when open again Apk Studio you will see that the source is not there.

- we do a test

- close Apk Studio

- delete the new folder "built",

only the folder "built" with content

;

- open Apk Studio

- choose File -> Open Directory

- Look for path Project 1\DeskClock JB\1\apktool.yml

- select the file apktool.yml and choose Open;

- source reappears in APK Studio;

- select 1, name folder that contains the source;

View attachment 3180819

- click Built, under View;

- Recompiled folder "built" that you deleted, is recreated and contains rebuilt.apk

- rename the .apk file

That's all.

Done!

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

Thanks to:

vaibhavpandeyvpz for Apk Studio

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

Think Different

"Because the people who are crazy enough to think they can change the world, are the ones who do."

Steve Jobs