Use Smali code to decide if app starts or not? - Android Q&A, Help & Troubleshooting

Hi i wanted to see if there are any tuts out there i can use to make an app check if a file exist. I will be editing apks that are already complied so i will need a tut on how to do this by editing .smali files. For example . If Key.txt exist in root of storage app starts. If it doesnt app crashes. Can anyone lead me in the right direction?

Related

[Q] Beginner question on simple apk decoding/editing with smali

How do you change where config files and libraries are stored for a particular apk? I want to move some config files to /system but I don't know how to get the app to recognize them once I move them. I already decoded the thing and have access to all the smali files, but don't know what to do with them. If anyone could just point me in the right direction so I could learn more about this, about what file tells the install where to look, that would be fantastic. Like, why does a library work if it is in /system/lib/ OR if it is in /data/data/apkname/lib/?

[Q] Unable to re-compile (using autoapktool / apktool)

** I dont have enough posts yet so cannot start thread in the correct section, so posted it below here in general **
I have all the content ready to add to an app and been searching for the right template and came across an app that has the look and feel I want.
I used autoapktool2.0.0 and it dissasembles the app fine so you can access the xml and other files. I am also able to edit a test apk and recompile and sign it with the above software fine. It creates 2 different folders one build which has a created classes file and one called dist that has the completed recompiled apk
however, when i try one specific apk I am able to decompile it fine, but when it comes to recompiling it after making a tiny test edit it will not do it.
I creates the classes file fine but it does not recompile the whole source files into an apk, so the dist folder is not created.
Why will it not recompile the whole thing?, is there something I am doing wrong or is the thing protected?
can someone test it for me using same methods I done and see what their result is?
(no errors were given when recompiling, it acted as if it was complete but it was not, as no apk created)

[Q] How to edit graphics in a Non-System Android App?

I wanted to change the graphics of a certain app to my liking. But I guess it can't be achieved in the non-system apps at least not by me. I tried the apktool to decompress it and then edit the the files I needed to, but it won't compile back?! Can anyone tell me what is going wrong. I have attached the whole screenshot of what error my apktool is showing me.
Also in the build folder I'm only getting classes.dex file and nothing more.

[Q] Editing apps with apktool

Hello everyone, I have been reading this forum for some time and decided to register. It's a great resource site with amazing info.
I have been playing with apktool to learn how apps are made. Decompiled following the guide from this forum.
However I can't find what I'm looking for in the apps. For example, it's easy to edit the drawable folders of the apps and change the images.
I took some apps that gather feeds from news sites and I tried to find where are the feeds URLs coded or embedded inside the apps files, and could not find any info at all. No URLs at all. I opened the XMLs, and other files inside res, lib or smali folders, opened a lot of the files with Notepad++ and I can't find any information about it, or any place where the app connects to the website.
Is it possible to access that info when we decompile with apktool?
I also watched a lot of videos in YouTube, on how to edit apps with apktool, and all of them explain how to change the images, but nothing else.
Is it only possible to edit the theme/design of an app, when we decompile with apktool? Or can we go further and change something else?
Any help appreciated.
Ok, after further research, and some trial and error, it seems apktool only does a very superficial decompile of the apk. It won't give you the actual source code of the app. So you can only do some very basic changes to the app, like images and such. However it is a very good first step to decompile the app.
I realized we need to use other tools to create and decompile the .jar files. I will keep experimenting.
Apktool can also be used in reverse engineering apps. But not intended for piracy use
Sent From My Samsung Galaxy Y s5360

[HELP] Change app name and package name

My laptop's not working, I had the necessary tools to decompile recompile apk and stuff.
However, I need some help in editing an apk, I have this YoWhatsApp apk, I was wondering if anyone can help me in changing the
android:label name to WhatsApp
I don't like that my app name occupies two lines, since It would take a month to get my laptop repaired, can anyone help me with this ?
The apk file can be found here:
https://expirebox.com/files/96305d6343da779ab72441b64c9eb5da.apk

Categories

Resources