[Q] Source code edit : Android Studio, Eclipse, or both ? - Android Studio

Hi guys !
I'm new to Android development, and I would like to edit an app to make a new theme (modifying res and fixing bugs)
I have succesfully decompiled it, but now, how can I open it in Android Studio ?
I've made some searches, but I can't understand if I need to create first a new project in Eclipse, import the sources and then import that project into Android Studio, or if Android can open the source code and generate a project by himself.
Can you help me ?
Thanks

Related

[Q] Reverse process to create Eclipse/ADB or Android Studio project

I run APK Studio 2.03 and can disassemble and re-compile ok on a Windows 7 platform. Great job!
But I would like to re-create a project for the target APK, either in Eclipse/ADB or preferably, in Android Studio. I have tried several associated tutorials, but cannot seem to locate one that matches the tools I use.
Can anyone point me to a more-recent tutorial using APK Studio to create a maintainable project?
I would appreciate any/all assistance with this. Thanks!
APK Studio 2.03
apktool 2.0.0-Beta
jd-gui 0.3.3
Eclipse Juno
Android Studio 1.1.0

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

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 )

[Q] Problems with preview render and override files in android studio for CM12 theme

Hi, i have couple of questions about theming cyanogenmod with android studio, I must say, i am novice and I don't understand some parts. First I install Android studio, Android SDK, JDK, and download all needed tools and packages for Android 5.x, Everything woks good i think, because i sucessful send my theme to mobile and override some parts od systemui. Only what I change was color, dimens, drawables, but i have some problems with layout override, in catlog show me error because I dont have source of some parts, but I dont know why is needed in theme when this sources are already in mobile in systemui, and if these source are not set/override in theme, may use original files. Another problem is with preview render, still show me errors eg..
Code:
Couldn't resolve resource @dimen/qs_detail_item_height
, .. because I think these files are not in res folder but are in folder
Code:
mytheme/assets/overlays/com.android.systemui/res
I am using this gradle template for theme https://github.com/cyngn/android_packages_themes_Template. How can I fix these issues. Thanks.
I am having trouble trying to understand what you mean, you're talking about an error and some sort of preview issues?
Could you split both of these factors into separate paragraphs explaining what you mean, only then I can understand and help you out bud.
Overriding layout won't work with CM12+.. This feature was disabled intentionally because it could possibly be abused for changing strings and tricking people.
And I didn't know that a preview feature for CM themes existed. Always create my themes by trial and error on my phone.
Hi guys, i will try explain deep my problems with my poor english, when I put gradle template for CM12 to android studio and start with some customization I dont see preview, what I change and what effect has my change in files. It is really hard something modify when you dont have preview. Preview doesnt work because my project files are not in res folder as is when you create new project, but this grande template has files in
HTML:
mytheme/assets/overlays/com.android.systemui/res
. I dont know if is some solution for this or jusr create another standart project with standart folder structure and there change my files and after if I am content with these changes, then put in my main gradle template. Another problem is I can only change some basic settings in theme as is color, drawable, but I cant change Layout. As I say before this doesnt work when I send to phone and get error from this, but in layout are some parts what I want change in my theme , as padding, margin, ..
Thnak you.

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