How to import & edit an apk in android studio to add admob to my app - Android Studio

I recently developed an app through android online developers and I received the apk. but my problem now is how to import the apk to android studio to be able to insert & implement my google admob for monitization of my app. Please, help me & good contribution needed. Thanks.

Angelica6 said:
I recently developed an app through android online developers and I received the apk. but my problem now is how to import the apk to android studio to be able to insert & implement my google admob for monitization of my app. Please, help me & good contribution needed. Thanks.
Click to expand...
Click to collapse
apk file is already compiled so I don't think you will be able to edit the whole project just by importing it. You can open your file with WinRAR to retrieve a specific file and then edit it.

Dezash said:
apk file is already compiled so I don't think you will be able to edit the whole project just by importing it. You can open your file with WinRAR to retrieve a specific file and then edit it.
Click to expand...
Click to collapse
Thanks Dezach; How do I find and modify a build.gradle file from the extracted file. I need to modify it before modifying manifest file for my admob integration process. Thanks

You need to have the sourse code. This cannot be done by simple open the apk with winrar or similar programs. You need to decompile the apk to have access to source code. There are a lot of tools for this job in Android section("development and hacking" and "software development"), but is better if you can get the source code from online developers.

Angelica6 said:
Thanks Dezach; How do I find and modify a build.gradle file from the extracted file. I need to modify it before modifying manifest file for my admob integration process. Thanks
Click to expand...
Click to collapse
You can not do it. Gradle is a build tool. There are no gradle files in your .apk

Essayer avec Eclipse c la sollution

you can open as debug APK ( by android studio )

Related

[UTILITY][TOOL] 9patchPngSuite [Windows&Linux]

Well, i actually cook the ROM MIUI for the SGS I9000 at miui.es and i was having a little fight with themes a few months ago. I allways stop at the same point, its so esay to compile previously decompiled .9.png, but what happens with compiled ones?
So here it's my solution, based on the grat idea of @tommytomatoe and his tool forMac OS X. It's called 9patchPngSuite and it let's you decompile, compile and launch draw9patch without the need of install android SDK.
How it works?
Easy, for every one in miui.es teamwork its not new its similar to other scripts i made, for the rest:
Windows
unzip 9patchPngSuite.zip in your prefered folder and double click on menu.bat
Linux
Unizip 9patchPngSuite.tar.gz in your prefered folder
give execution permissions (usually chmod 777)
type ./menu
Will show us 4 options
****************************
9patchPngSuite
v1 Windows edition
---------------------------------
by kakomalo...
thx @Xxfoc miui.es
and @tommytomatoe xda.com
****************************
1.Decompile *.9.png in Compiled folder (will clean decompiled folder)
2.Launch draw9patch (drag and drop files)
3.Compile RAW *.9.pnd in Decompiled folder (new created in output folder)
4.Info on draw9patch
x.Exit
Select option:
It's no so hard to understand but...
1.Decompile *.9.png in Compiled folder (will clean decompiled folder)
Decompile all .9.png in compiled folder, don't care if it's other kind of png or file, only works with .9.png.​
2.Launch draw9patch (drag and drop files)
Launch draw9patch, drag & drop files on it to edit. It's no needed to be installed android SDK tools, it's on tools folder​
3.Compile RAW *.9.pnd in Decompiled folder (new created in output folder)
Compile all .9.png in decompiled folder, don't care if it's other kind of png or file, only works with .9.png, and let the new compiled ones in output folder.​4.Info on draw9patch
Open thefault browser and goes to http://code.google.com/p/android-apktool/wiki/9PatchImages​
You have seen it's no difficult to use, i hope you like it.
Special thanks to @Xxfoc from miui.es for give me the idea, @tommytomatoe for his Mac OS X tool and brut.all for the work.
Download - Windows
Download - Linux
Spanish thread on miui.es or htcmania.com
Thanks for this! Can't wait to try it out when I'm back at my laptop
Sent from my Nexus S 4G using Tapatalk
Thank brutha
Excellent! Thanks.
Thanks i get a error on compile system cannot find file or folder.
ngagephone said:
Thanks i get a error on compile system cannot find file or folder.
Click to expand...
Click to collapse
Im not sure what do you try but, if its an error compiling .9.png make sure you have the descompiled & patched files in "decompiled" folder, before use option 3 in the menu.
Big thanks !
Very fast to edit .9.png now
This is a huge help, thank you.
The download links are down.
From where I could download?
Un saludo
Interested in working links aswell, as that tool sounds like the solution to my current problems
Link not work. ;(
Sent from my GT-S5830 using xda premium
Found a working link here if the author doesn't mind.
EddieFAF said:
Found a working link here if the author doesn't mind.
Click to expand...
Click to collapse
Thanks!!!
Enviado desde mi GT-I9100
Just like to say a big thanks for the 9patchPngSuite - it's saving me loads of time.
I had no problem recompiling edited .9.pngs using xUltimate-d9pc but it was a pain to have to decompile an apk just to edit a couple of .9.pngs
Working link please
Someone, please give working link to download this tool. Thanks!

[Q] .Jar Files

i want to install a .jar file on my SGM..how to do??i converted .jar tto apk n installed but it force closes every time..
which app should i use as a third party app?
I don't think it's that easy since Android doesn't support native Java code, and renaming a .Jar to .Apk isn't gonna help.
Try this:
http://www.xda-developers.com/android/jbed-run-java-games-and-apps-on-your-android-device/
Akath19 said:
I don't think it's that easy since Android doesn't support native Java code, and renaming a .Jar to .Apk isn't gonna help.
Try this:
http://www.xda-developers.com/android/jbed-run-java-games-and-apps-on-your-android-device/
Click to expand...
Click to collapse
i havent just renamed it from jar to apk..i saw one thread in general section of android n there some lnik was given ..we have to upload .jar n download .apk of dat..!! btw ThaNks for this!!
changing the extension of the file will not work
use the j2me app runner and it may work
here's the link->
http://www.netmite.com/android/

[Q] Open xap files as projects in VB or Expression Blend

I want a way to open xap files as a project in Visual Build or Expression Blend.
I tried renaming xap to zip and opened the file to get a bunch of Dlls and xaml and xml files.
I want to open them in VB or Expression Blend to be able to make slight changes to the file.
please help.
P.S. i basically want to embed a font which is not included in Windows Phone. all i get while viewing the font is many small rectangles.
At MSDN ( http://social.msdn.microsoft.com/Fo...cts-in-vb-or-expression-blend?forum=wpdevelop ) they told that they don't allow reverse engineering while they themselves don't give the fonts for the 4th most spoken language in the world for WP7 devices.
adeen-s said:
I want a way to open xap files as a project in Visual Build or Expression Blend.
I tried renaming xap to zip and opened the file to get a bunch of Dlls and xaml and xml files.
I want to open them in VB or Expression Blend to be able to make slight changes to the file.
please help.
P.S. i basically want to embed a font which is not included in Windows Phone. all i get while viewing the font is many small rectangles.
At MSDN ( http://social.msdn.microsoft.com/Fo...cts-in-vb-or-expression-blend?forum=wpdevelop ) they told that they don't allow reverse engineering while they themselves don't give the fonts for the 4th most spoken language in the world for WP7 devices.
Click to expand...
Click to collapse
First: which app do you want to reverse engineer? Store apps are encrypted and you cannot open and/or modify them!
If you have a xap compiled from a dev (for local testing and dev-unlocked-phones) you might get also the source code without problems by asking the dev. Otherwise you could use programs as Telerik JustDecompile, which supports xap files.
gipfelgoas said:
First: which app do you want to reverse engineer? Store apps are encrypted and you cannot open and/or modify them!
If you have a xap compiled from a dev (for local testing and dev-unlocked-phones) you might get also the source code without problems by asking the dev. Otherwise you could use programs as Telerik JustDecompile, which supports xap files.
Click to expand...
Click to collapse
i would not call it reverse engineering as i do not want to even view the source code .
all i want is a way to embed a custom font in the application.
if you want i can send you the xap and the font to be added if you want to help me.
I don't think you have any concept what "embed a custom font in the application" entails. This is not a simple thing that you are asking for.

Can Android Studio be used to reverse engineer an app?

When I google [reverse engineer android app], I get pages like
https://www.rsaconference.com/writa...guide-to-reverse-engineering-android-apps.pdf
or
http://www.technotalkative.com/part-9-reverse-engineering-android-applications/.
They recommend downloading several tools, such as apktool, smali, java decompiler, dex2jar.
Why did they not recommend Android Studio? Can't Android Studio be used to reverse engineer or simply inspect an app's code?
----------------
UPDATE: What I want to do is to check out an app's code and see if I can make minor changes for myself (e.g. changing color of background). If "reverse-engineer" can't do this, please let me know what the right term is.
Using android studio you can create project or import projects with source codes but there is no way to extract source code if you have only .apk file. Android studio is not used for Reverse Engineering.
Unity Dev said:
Using android studio you can create project or import projects with source codes but there is no way to extract source code if you have only .apk file. Android studio is not used for Reverse Engineering.
Click to expand...
Click to collapse
thank you for your reply. Could you suggest any software to use for reverse engineering (seeing source code)?
Use apktool, it decompiles an apk and you can use any text editor (like Notepad++ or Sublime Text) to edit the files. Then you can recompile it again using apktool and then just sign it and you're done.

Apk File to Android Studio Project File

hello,
I am a graduate student at Trakya University. I need a project for my courses. I'm thinking of building an Android-based project on mobile. I have an application that I like. How can I get a project file from an application file? How can I convert this? I want to get a project file that I can compile. I use Linux Mint as the operating system. I use Android Studio as an editor. I can see the inside of the Apk file.
Could you please help in this matter? I'm new to this. Thank you in advance.
Good wishes to work.

Categories

Resources