Hy all i know i'm anoying with this but i realy want to edit this apk file (LatinIME.apk) can ayone explane me what is wrong whit this error and how to fix it :/
Oky Step by Step
1. I work on (AutoAPKTool2.0.4)
2. I download the rom cm-10-20121030-bruce2728-pyramid (HTC Sensation)
3. I drag out the file from APP directory (LatinIME.apk) this is keyboard to desktop
4. Then i go to Framework directory in this rom and drag out file Framework-res.apk and drag it to desktop
5. Then i add this 2 files in "AutoAPKTool2.0.4\_INPUT_APK" and run AutoAPKToolMain.bat
6. When open this window i select number 1 (if framework-res.apk) and press enter
7. Then i select number 81 ( Instrall additional framework file ) and add the location of Framework-res.apk witch is in _INPUT_APK and press enter
8. Then i select number 6 and add location of LatinIME.apk and press enter and wait until decompile
9. When decompile end i open the "AutoAPKTool2.0.4\_INPUT_APK\LatinIME\res\valu es" directory and edit Style.xml with notepad++ ( <item name="keyHintLetterColor">#80000000</item> ) to ( <item name="keyHintLetterColor">#80E0E4E5</item> )
10. Then i go back to AutoAPKToolMain.bat and select number 9 and add location of "\_INPUT_APK\LatinIME" and press enter
11. Wait until recompile and then i get this error:
"[*] "C:\Documents and Settings\Anonymous26\Desktop\AutoAPKTool2.0.4\_INP UT_APK\LatinIME"
recompiling "C:\Documents and Settings\Anonymous26\Desktop\AutoAPKTool2.0.4\_INP UT_APK\LatinIME"...
I: Smaling...
I: Building resources...
I: Copying libs...
I: Building apk file...
The system cannot find the drive specified."
12. Ok i close this log and open "AutoAPKTool2.0.4\_INPUT_APK\LatinIME\dist\LatinIM E.apk ( Recompiled File ) and drag out this resources.arsc and drag it to desktop
13. Then i open the original LatinIME.apk and replace Original Resources.arsc with edited Resources.arsc
14. Then i upload this file to SD card and install it then start install and when must type App installed type app not installed :/
i allready try with Virtous ten Studio i Decompile file, edit it, recompile back to apk, sign it, uplolad on sd card, install it... and still crash every time i open the keyboard every time i want to type any message.... Sorry i'm new in this :/
Related
Here how i want to made a change in LatinIME.apk ( Keyboard ) in Bruce2728 Rom
1. I work on (AutoAPKTool2.0.4)
2. I download the rom cm-10-20121030-bruce2728-pyramid (HTC Sensation)
3. I drag out the file from APP directory (LatinIME.apk) this is keyboard to desktop
4. Then i go to Framework directory in this rom and drag out file Framework-res.apk and drag it to desktop
5. Then i add this 2 files in "AutoAPKTool2.0.4\_INPUT_APK" and run AutoAPKToolMain.bat
6. When open this window i select number 1 (if framework-res.apk) and press enter
7. Then i select number 81 ( Instrall additional framework file ) and add the location of Framework-res.apk witch is in _INPUT_APK and press enter
8. Then i select number 6 and add location of LatinIME.apk and press enter and wait until decompile
9. When decompile end i open the "AutoAPKTool2.0.4\_INPUT_APK\LatinIME\res\values" directory and edit Style.xml with notepad++ ( <item name="keyHintLetterColor">#80000000</item> ) to ( <item name="keyHintLetterColor">#80E0E4E5</item> )
10. Then i go back to AutoAPKToolMain.bat and select number 9 and add location of "\_INPUT_APK\LatinIME" and press enter
11. Wait until recompile and then i get this error:
"[*] "C:\Documents and Settings\Anonymous26\Desktop\AutoAPKTool2.0.4\_INPUT_APK\LatinIME"
recompiling "C:\Documents and Settings\Anonymous26\Desktop\AutoAPKTool2.0.4\_INPUT_APK\LatinIME"...
I: Smaling...
I: Building resources...
I: Copying libs...
I: Building apk file...
The system cannot find the drive specified."
12. Ok i close this log and open "AutoAPKTool2.0.4\_INPUT_APK\LatinIME\dist\LatinIME.apk ( Recompiled File ) and drag out this resources.arsc and drag it to desktop
13. Then i open the original LatinIME.apk and replace Original Resources.arsc with edited Resources.arsc
14. Then i upload this file to SD card and install it then start install and when must type App installed type app not installed :/
Does anyone know what is wrong ?
Hi,
You are better off asking where a dev or themer will see this.
Look HERE
XporteR21 said:
Here how i want to made a change in LatinIME.apk ( Keyboard ) in Bruce2728 Rom
1. I work on (AutoAPKTool2.0.4)
2. I download the rom cm-10-20121030-bruce2728-pyramid (HTC Sensation)
3. I drag out the file from APP directory (LatinIME.apk) this is keyboard to desktop
4. Then i go to Framework directory in this rom and drag out file Framework-res.apk and drag it to desktop
5. Then i add this 2 files in "AutoAPKTool2.0.4\_INPUT_APK" and run AutoAPKToolMain.bat
6. When open this window i select number 1 (if framework-res.apk) and press enter
7. Then i select number 81 ( Instrall additional framework file ) and add the location of Framework-res.apk witch is in _INPUT_APK and press enter
8. Then i select number 6 and add location of LatinIME.apk and press enter and wait until decompile
9. When decompile end i open the "AutoAPKTool2.0.4\_INPUT_APK\LatinIME\res\values" directory and edit Style.xml with notepad++ ( <item name="keyHintLetterColor">#80000000</item> ) to ( <item name="keyHintLetterColor">#80E0E4E5</item> )
10. Then i go back to AutoAPKToolMain.bat and select number 9 and add location of "\_INPUT_APK\LatinIME" and press enter
11. Wait until recompile and then i get this error:
"[*] "C:\Documents and Settings\Anonymous26\Desktop\AutoAPKTool2.0.4\_INPUT_APK\LatinIME"
recompiling "C:\Documents and Settings\Anonymous26\Desktop\AutoAPKTool2.0.4\_INPUT_APK\LatinIME"...
I: Smaling...
I: Building resources...
I: Copying libs...
I: Building apk file...
The system cannot find the drive specified."
12. Ok i close this log and open "AutoAPKTool2.0.4\_INPUT_APK\LatinIME\dist\LatinIME.apk ( Recompiled File ) and drag out this resources.arsc and drag it to desktop
13. Then i open the original LatinIME.apk and replace Original Resources.arsc with edited Resources.arsc
14. Then i upload this file to SD card and install it then start install and when must type App installed type app not installed :/
Does anyone know what is wrong ?
Click to expand...
Click to collapse
Whats wrong with just apktool - that on its own has never failed me, its only when you add other utilities in that things **** up (with the exception of VTS which I use for multiple apk like the tweaks but for single apk I use apktool on its own). Also with apktool on its own, its a hell of a lot easier to debug problems
So what tools to use
Sent from my HTC Sensation using xda app-developers app
XporteR21 said:
So what tools to use
Sent from my HTC Sensation using xda app-developers app
Click to expand...
Click to collapse
Virtuous Ten Studio: http://www.virtuousrom.com/p/ten-studio.html
Apktool 1.5.0 by iBotPeaches: http://forum.xda-developers.com/showthread.php?t=1755243
Replace the apktool in the virtuous program files folder with the iBotPeaches one - I have never had any problems decompiling/recompiling apk's or jar's with this combination
Jonny said:
Virtuous Ten Studio: http://www.virtuousrom.com/p/ten-studio.html
Apktool 1.5.0 by iBotPeaches: http://forum.xda-developers.com/showthread.php?t=1755243
Replace the apktool in the virtuous program files folder with the iBotPeaches one - I have never had any problems decompiling/recompiling apk's or jar's with this combination
Click to expand...
Click to collapse
heheheh i try you're metod and it's working i can install the app but app crash every time i open it :/
XporteR21 said:
heheheh i try you're metod and it's working i can install the app but app crash every time i open it :/
Click to expand...
Click to collapse
replied to the PM
still no secsess ;(
Sent from my HTC Sensation using xda app-developers app
How to make CRT OFF
ANIMATION (effects such as tv
off when the screen is locked)
1. first download apktool and notepad
2. take the framework-res.apk in mm via root
explorer (rootex) in folder system-framework
3. apktool extract and place it in one folder for
easy future (eg in the folder d / apktool)
4. enter into framework-res.apk folder d /
apktool
5. in the apktool folder on the keyboard do not
press shift and press off the right click select
open command here
6. type in framework-res.apk apktool enter
and will appear framework-res folder
7. minimize cmd (the last item screen)
8 Open the framework-res folder \ r
es \ values \ bools.xml Open
with notepad find this text:
"<boolname="config_animateScreenLights"> true
</ bool>" text change true to false
so the result is like this
"<boolname="config_animateScreenLights"> false
</ bool>" then
press save and exit
9. Open CMD that was in
then we will minimize
decompile process
apknya type apktool b framework-res wait until
the end. When it is finished later
there are two new folder in the framework-res
folder \ "dist" and "build"
10. move framework-res.apk folder to another
folder eg frames and extract framework-res.apk
in the folder using winrar trsebut
11. Open foder d / apktool / framework-res
\ build \ apk \ (copy) resources.arsc
12. open the folder and then paste
resources.arsc frame if there are warning tap on
aja yes (copy and replace)
13. pack the contents folder with winrar last
frame with name-res.zip framework
14. res.zip so rename framework-res.apk
framework-and enter into the folder system /
framework with permision rw-r - r -
just as it is bentuk'y
v v -
v -
v -
then reboot ...
Sent from my Micromax A110 using xda premium
akashvfx said:
How to make CRT OFF
ANIMATION (effects such as tv
off when the screen is locked)
1. first download apktool and notepad
2. take the framework-res.apk in mm via root
explorer (rootex) in folder system-framework
3. apktool extract and place it in one folder for
easy future (eg in the folder d / apktool)
4. enter into framework-res.apk folder d /
apktool
5. in the apktool folder on the keyboard do not
press shift and press off the right click select
open command here
6. type in framework-res.apk apktool enter
and will appear framework-res folder
7. minimize cmd (the last item screen)
8 Open the framework-res folder \ r
es \ values \ bools.xml Open
with notepad find this text:
"<boolname="config_animateScreenLights"> true
</ bool>" text change true to false
so the result is like this
"<boolname="config_animateScreenLights"> false
</ bool>" then
press save and exit
9. Open CMD that was in
then we will minimize
decompile process
apknya type apktool b framework-res wait until
the end. When it is finished later
there are two new folder in the framework-res
folder \ "dist" and "build"
10. move framework-res.apk folder to another
folder eg frames and extract framework-res.apk
in the folder using winrar trsebut
11. Open foder d / apktool / framework-res
\ build \ apk \ (copy) resources.arsc
12. open the folder and then paste
resources.arsc frame if there are warning tap on
aja yes (copy and replace)
13. pack the contents folder with winrar last
frame with name-res.zip framework
14. res.zip so rename framework-res.apk
framework-and enter into the folder system /
framework with permision rw-r - r -
just as it is bentuk'y
v v -
v -
v -
then reboot ...
Sent from my Micromax A110 using xda premium
Click to expand...
Click to collapse
hello bro this is awesome but i cant understand steps 9 to 14
thanks again
Bro, can you make it if i can povide you the required files of my rom?(i.e., suvi V12)
akashvfx said:
How to make CRT OFF
ANIMATION (effects such as tv
off when the screen is locked)
1. first download apktool and notepad
2. take the framework-res.apk in mm via root
explorer (rootex) in folder system-framework
3. apktool extract and place it in one folder for
easy future (eg in the folder d / apktool)
4. enter into framework-res.apk folder d /
apktool
5. in the apktool folder on the keyboard do not
press shift and press off the right click select
open command here
6. type in framework-res.apk apktool enter
and will appear framework-res folder
7. minimize cmd (the last item screen)
8 Open the framework-res folder \ r
es \ values \ bools.xml Open
with notepad find this text:
"<boolname="config_animateScreenLights"> true
</ bool>" text change true to false
so the result is like this
"<boolname="config_animateScreenLights"> false
</ bool>" then
press save and exit
9. Open CMD that was in
then we will minimize
decompile process
apknya type apktool b framework-res wait until
the end. When it is finished later
there are two new folder in the framework-res
folder \ "dist" and "build"
10. move framework-res.apk folder to another
folder eg frames and extract framework-res.apk
in the folder using winrar trsebut
11. Open foder d / apktool / framework-res
\ build \ apk \ (copy) resources.arsc
12. open the folder and then paste
resources.arsc frame if there are warning tap on
aja yes (copy and replace)
13. pack the contents folder with winrar last
frame with name-res.zip framework
14. res.zip so rename framework-res.apk
framework-and enter into the folder system /
framework with permision rw-r - r -
just as it is bentuk'y
v v -
v -
v -
then reboot ...
Sent from my Micromax A110 using xda premium
Click to expand...
Click to collapse
akashvfx said:
How to make CRT OFF
ANIMATION (effects such as tv
off when the screen is locked)
1. first download apktool and notepad
2. take the framework-res.apk in mm via root
explorer (rootex) in folder system-framework
3. apktool extract and place it in one folder for
easy future (eg in the folder d / apktool)
4. enter into framework-res.apk folder d /
apktool
5. in the apktool folder on the keyboard do not
press shift and press off the right click select
open command here
6. type in framework-res.apk apktool enter
and will appear framework-res folder
7. minimize cmd (the last item screen)
8 Open the framework-res folder \ r
es \ values \ bools.xml Open
with notepad find this text:
"<boolname="config_animateScreenLights"> true
</ bool>" text change true to false
so the result is like this
"<boolname="config_animateScreenLights"> false
</ bool>" then
press save and exit
9. Open CMD that was in
then we will minimize
decompile process
apknya type apktool b framework-res wait until
the end. When it is finished later
there are two new folder in the framework-res
folder \ "dist" and "build"
10. move framework-res.apk folder to another
folder eg frames and extract framework-res.apk
in the folder using winrar trsebut
11. Open foder d / apktool / framework-res
\ build \ apk \ (copy) resources.arsc
12. open the folder and then paste
resources.arsc frame if there are warning tap on
aja yes (copy and replace)
13. pack the contents folder with winrar last
frame with name-res.zip framework
14. res.zip so rename framework-res.apk
framework-and enter into the folder system /
framework with permision rw-r - r -
just as it is bentuk'y
v v -
v -
v -
then reboot ...
Sent from my Micromax A110 using xda premium
Click to expand...
Click to collapse
WHY DON'T @akashvfx MAKE CRT OFF ANIMATION FOR STOCK JB CANVAS 2 // I T WOULD BE WONDERFUL
gaurav247star said:
WHY DON'T @akashvfx MAKE CRT OFF ANIMATION FOR STOCK JB CANVAS 2 // I T WOULD BE WONDERFUL
Click to expand...
Click to collapse
EXACTLY !
just follow this simple steps
Install xposed framework and gravity box and tweak box........
borichamehul5 said:
Install xposed framework and gravity box and tweak box........
Click to expand...
Click to collapse
Brother,its only for mtk6589 running 4.2.1
TroLol
///How to easily edit 9.pngs easily \\\
Lets start ...
Step 1
Decompile the app.
Step 2
Enter into res/drawables
Step 3
open 9.png with paint.net(preffered)not tested others
Get it here (www.getpaint.net)
Step 4
change its color to ur wish (note--dont touch those 4 borders at the ends)
Step 5
Close and save png
Step 6
Now recompile
Step 7
Install
congo it works fine.............
No need of draw9patch...
Notes:
Must knw how to compile- recompile apps.
Must try more coming soon..........
Dont Spoil This Thread Please!!!!
PRESS LIKE BUTTON IF U LIKE MY WORK
Today i will guide you on how to decompile with Apk Tool,so I would post here
Needed files :-
Windows
ApkTool
Java JDK/JRE 32 bit
Cmd/terminal knowledge
Step 1
First you need to extract that zip folder to anywhere you choose, preferably on root of c/drive E.g: C:/android/apktool extracting the files to 'apktool' folder.
Step 2
Now copy the apk you would like to mod into your Apk Tool folder.
Step 3
Command Prompt:
Open up your Command Prompt by going to:
Start -> run -> type : Cmd
Step 4
Your cmd will probly look like this..
C:\users\yourname>
so type in
cd.. (Yes include the '..' and press enter after you type each command.)
this will get you to back directory so now you will see
C:\users>
so type again
cd..
you should now see this:
C:\>
now type in:
cd 'apktoo'l/'directory'
for me it looks like:
cd android/apktool
now you should see:
C:/android/apktool>
and you are in the apktool directory
Step 5
Installing Framework
Now that you are in directory we need to install the device's framework to your system for it to compile correctly so type this:
apktool if framework-res.apk
This will install the devices framework to your system. need to do this.
Step 6
Decompiling
Now to decompile the apk you want to edit, type this:
apktool d framework-res.apk framework1
Step 7
Recompiling...
Now to recompile your new apk type this:
apktool b framework1 framework-res-new.apk
framework1 is the folder with your edited files
framework-res-new.apk is your new apk file
We cannot use the new apk's... we have to take what we did and add it back to the original apk file to keep proper signature
use something like 7zip or winrar, take the 'resources.arcs' file and any other xml files you edited out of the "-new" apk and copy them into Original apk
Your new modded APK is now ready, Congrats!:highfive:
Good Luck ..
must try
Just For Knowledge....
If... we use 7zip.. extract apk on desktop..
then replace modified.png with orignal.png
then aad to orignal apk
or
we just hunt png which we want to replace.
just extract that one with same res. & name
then add that on it right place
Is that working???
i.e. I want to replace icon of Gallary3d (JB4.3) (Gal+Cam)
with icon of samsung s4 icon Gallary2 (Gal+Cam)
[Noob friendly tutorial]
A typical problem when decreasing the DPI of your device is sometimes the lock screen will offset to the right(usually).
This tutorial might help fix this problem.
Requirements:
1. Rooted device
2. File manager for viewing and managing the root directory (e.g. Root Explorer)
3. Software for decompiling and recompiling .apk files
4. Text editor, I recommend Notepad++
Prerequisite:
Backup your current ROM so that I will not be held responsible for problems the may occur on your device
Instructions:
1. Open Play Store and download "ZipSigner" by Ken Ellindwood
2. Go to the root directory which is designated as "/".
3. Open "system" folder
4. Open "framework" folder
5. Look for "framework-res.apk"
6. Copy "framework-res.apk"
7. Navigate back to your SD card directory and paste it to where you want it.
8. Connect your device to your PC.
9. Expand your phone's the notification bar, press "Charging" and change it to "USB mass storage" and press "OK". Your PC will access your phone's storage directories (SD Card and Phone Storage)
10. On your PC, go to your SD Card's directory and navigate to where you put framework-res.apk and move it to your PC's desktop (you can put it to anywhere you like, just make sure you have it in your PC's storage directory).
11. On your PC, transfer framework-res.apk in the directory of your decompiling/recompiling tool with respect to what "tool" you are using.
Main Part:
12. Decompile framework-res.apk
13. Go to its "decompiled" directory
14. Navigate to /res/layout
15. Look for "keyguard_screen_tab_unlock.xml"
16. Open it with a text editor
17. Look for this line:
Code:
<com.android.internal.widget.multiwaveview.GlowPadView
18. Rigt next to this line, look for the lines, "android:gravity" and "android:layout_height".
19. Change their values to "left|top" and "wrap_content" respectively
So "android:gravity" and "android:layout_height" should look like this:
Code:
android:gravity="left|top"
and
Code:
android:layout_height="wrap_content"
20. Recompile framework-res.apk
21. Sign the new, edited framework-res.apk
22. Place it back to your SD Card
23. Disconnect your device from your PC.
24. Go to your SD Card and navigate to where you have put the modified framework-res.apk
25. Using the ZipSigner app, press "Choose In/Out..." and navigate to where you put the edited framework-res.apk
26. Press "Sign The File" and ZipSigner will begin to produce a signed version of the selected apk.
27. Navigate back to where you have created the edited-and-signed framework-res.apk and it will have a "-signed" in it's name.
28. Remove the "-signed" and MAKE SURE the newly-edited-and-signed framework-res.apk is named AS IS, "framework-res.apk".
*If there are others' named "framework-res.apk" in the same directory, rename them into something different before renaming the "newly-edited-and-signed framework-res.apk" so it won't conflict with step 28.
29. After you have successfully renamed the "newly-edited-and-signed framework-res.apk", copy it.
30. Go to the root directory which is designated as "/".
31. Open "system" folder
32. Open "open "framework" folder
33. And paste-and-overwrite/override the "newly-edited-and-signed framework-res.apk" to this "framework" directory.
Note: If in some case you were prevented to paste in the "framework" directory, check to see if your root file manager is mounting the root, if not check for an option to mount the root directory
34. If you have successfully overwritten/overridden the original framework-res.apk, your device should begin to Soft-Reboot automatically. If not then, manually force your device to reboot.
And your lock screen should now be at the center.
35. Done
durancharles27 said:
[Noob friendly tutorial]
A typical problem when decreasing the DPI of your device is sometimes the lock screen will offset to the right(usually).
This tutorial might help fix this problem.
Requirements:
1. Rooted device
2. File manager for viewing and managing the root directory (e.g. Root Explorer)
3. Software for decompiling and recompiling .apk files
4. Text editor, I recommend Notepad++
Prerequisite:
Backup your current ROM so that I will not be held responsible for problems the may occur on your device
Instructions:
1. Open Play Store and download "ZipSigner" by Ken Ellindwood
2. Go to the root directory which is designated as "/".
3. Open "system" folder
4. Open "framework" folder
5. Look for "framework-res.apk"
6. Copy "framework-res.apk"
7. Navigate back to your SD card directory and paste it to where you want it.
8. Connect your device to your PC.
9. Expand your phone's the notification bar, press "Charging" and change it to "USB mass storage" and press "OK". Your PC will access your phone's storage directories (SD Card and Phone Storage)
10. On your PC, go to your SD Card's directory and navigate to where you put framework-res.apk and move it to your PC's desktop (you can put it to anywhere you like, just make sure you have it in your PC's storage directory).
11. On your PC, transfer framework-res.apk in the directory of your decompiling/recompiling tool with respect to what "tool" you are using.
Main Part:
12. Decompile framework-res.apk
13. Go to its "decompiled" directory
14. Navigate to /res/layout
15. Look for "keyguard_screen_tab_unlock.xml"
16. Open it with a text editor
17. Look for this line:
Code:
<com.android.internal.widget.multiwaveview.GlowPadView
18. Rigt next to this line, look for the lines, "android:gravity" and "android:layout_height".
19. Change their values to "left|top" and "wrap_content" respectively
So "android:gravity" and "android:layout_height" should look like this:
Code:
android:gravity="left|top"
and
Code:
android:layout_height="wrap_content"
20. Recompile framework-res.apk
21. Sign the new, edited framework-res.apk
22. Place it back to your SD Card
23. Disconnect your device from your PC.
24. Go to your SD Card and navigate to where you have put the modified framework-res.apk
25. Using the ZipSigner app, press "Choose In/Out..." and navigate to where you put the edited framework-res.apk
26. Press "Sign The File" and ZipSigner will begin to produce a signed version of the selected apk.
27. Navigate back to where you have created the edited-and-signed framework-res.apk and it will have a "-signed" in it's name.
28. Remove the "-signed" and MAKE SURE the newly-edited-and-signed framework-res.apk is named AS IS, "framework-res.apk".
*If there are others' named "framework-res.apk" in the same directory, rename them into something different before renaming the "newly-edited-and-signed framework-res.apk" so it won't conflict with step 28.
29. After you have successfully renamed the "newly-edited-and-signed framework-res.apk", copy it.
30. Go to the root directory which is designated as "/".
31. Open "system" folder
32. Open "open "framework" folder
33. And paste-and-overwrite/override the "newly-edited-and-signed framework-res.apk" to this "framework" directory.
Note: If in some case you were prevented to paste in the "framework" directory, check to see if your root file manager is mounting the root, if not check for an option to mount the root directory
34. If you have successfully overwritten/overridden the original framework-res.apk, your device should begin to Soft-Reboot automatically. If not then, manually force your device to reboot.
And your lock screen should now be at the center.
35. Done
Click to expand...
Click to collapse
This is Q and A thread tutorial should not be here .... Plz post this thread in right place.....
samith.shetty3 said:
This is Q and A thread tutorial should not be here .... Plz post this thread in right place.....
Click to expand...
Click to collapse
Well, can I move this thread in "General"?
durancharles27 said:
Well, can I move this thread in "General"?
Click to expand...
Click to collapse
yup..
samith.shetty3 said:
yup..
Click to expand...
Click to collapse
well I can't I would have to pray that an Admin/Moderator would see this and move it.
I have built a few web sites but now I'm learning how to build apps. Is there a way to look at the code that is running a particular app on my phone so I can get an idea of how it is put together?
Can I open an app from my phone with Android Studio?
Follow the steps given below.
Procedure to open the source code:
Step 1:
Make a new folder and copy over the .apk file that you want to decode.
Now rename the extension of this .apk file to .zip (e.g. rename from filename.apk to filename.zip) and save it. Now you can access the classes.dex files, etc. At this stage you are able to see drawables but not xml and java files, so continue.
Step 2:
Now extract this .zip file in the same folder (or NEW FOLDER).
Download dex2jar and extract it to the same folder (or NEW FOLDER).
Move the classes.dex file into the dex2jar folder.
Now open command prompt and change directory to that folder (or NEW FOLDER). Then write d2j-dex2jar classes.dex (for mac terminal or ubuntu write ./d2j-dex2jar.sh classes.dex) and press enter. You now have the classes.dex.dex2jar file in the same folder.
Download java decompiler, double click on jd-gui, click on open file, and open classes.dex.dex2jar file from that folder: now you get class files.
Save all of these class files (In jd-gui, click File -> Save All Sources) by src name. At this stage you get the java source but the .xml files are still unreadable, so continue.
Step 3:
Now open another new folder
Put in the .apk file which you want to decode
Download the latest version of apktool AND apktool install window (both can be downloaded from the same link) and place them in the same folder
Download framework-res.apk and put it in the same folder (Not all apk file need this file, but it doesn't hurt)
Open a command window
Navigate to the root directory of APKtool and type the following command: apktool if framework-res.apk
apktool d myApp.apk (where myApp.apk denotes the filename that you want to decode)
now you get a file folder in that folder and can easily read the apk's xml files.