[CLOSED][Question] How to decompile an apk and use it as a template to build another app - Android Q&A, Help & Troubleshooting

Hey XDA
There's this communications app that I like the functionality of. I would like to use the app as a template to make my own. I am more of an artist than a coder though if there was a way to see how the code works in reference to the actual app I think I could do my research and close the gaps in my development knowledge. Can anyone with more experience point me in the direction of a way to import an existing apk and observe how the code works in tandem with the graphics?

honeyxlemon said:
Hey XDA
There's this communications app that I like the functionality of. I would like to use the app as a template to make my own. I am more of an artist than a coder though if there was a way to see how the code works in reference to the actual app I think I could do my research and close the gaps in my development knowledge. Can anyone with more experience point me in the direction of a way to import an existing apk and observe how the code works in tandem with the graphics?
Click to expand...
Click to collapse
Hello and good morning, @honeyxlemon Welcome to XDA! I hope you'll always get the support your require.
I've moved this thread out of Android Apps & Games, for which it didn't qualify, but also closed the thread as duplicate of
Decompiling an app and editing its graphics and functionality.
Hey XDA There's this communications app that I like the functionality of. I would like to use the app as a template to make my own. I am more of an artist than a coder though if there was a way to see how the code works in reference to the actual...
forum.xda-developers.com
I assume you've most likely not yet read the XDA Forum Rules, although you agreed to adhere to them when you registered a few hours ago. Please review the rules currently with special emphasis on rule no. 5 and post only ONCE! Thanks for your cooperation.
Regards
Oswald Boelcke
Senior Moderator

Related

How to get rid of Playstore requirement for some apps?

Some of us do not install G**gle apps (incl Play). We use instead F-Droid and APKPure.
But some apps insist that they require Play... it's not a technical requirement, just one they throw in there, but it's a real problem as I am not going to install Play just for that.
Does anyone know of a Play 'placeholder' or 'simulator' which will satisfy this specious requirement? Or has anyone decompiled an app to remove this requirement?
Recommendations?
delete post
BachuArg said:
This is not related specifically to Havoc.
Shouldn't you make a thread in another place?
Click to expand...
Click to collapse
Apparently you haven't actually tried this. There is very little depth of knowledge about things Android, in general. We are fortunate here to have a competent dev and some competent users. This is rare.
It is unusual to not be at all dependent on G**gle, and I am happy to help with what I know about freeing yourself completely. But there are some catches, and the question I'm asking is the last one for me.
I can probably figure it out for myself, but when forced to do that I am not as inclined to share if sharing (or even trying) is not part of the ethos..
So can we can, or can we can't? :cyclops:
Quantumstate said:
Some of us do not install G**gle apps (incl Play). We use instead F-Droid and APKPure.
But some apps insist that they require Play... it's not a technical requirement, just one they throw in there, but it's a real problem as I am not going to install Play just for that.
Does anyone know of a Play 'placeholder' or 'simulator' which will satisfy this specious requirement? Or has anyone decompiled an app to remove this requirement?
Recommendations?
Click to expand...
Click to collapse
Try MicroG. Your purpose will be solved without installing any GAPPS.
Quantumstate said:
So can we can, or can we can't? :cyclops:
Click to expand...
Click to collapse
Always share helpful info.
I believe the response the person made was a legit argument basically being made to help direct you to find a better place with much higher odds of getting an answer (looks like you got it tho).
But that doesn't mean you can't ask or can't share. It's all up to you. Sharing knowledge is the foundation this forum has thrived in. Personally I hope nothing defers anyone to question that regardless of any responses made or not made.
And yes, this is an excellent dev. But he's here to help primarily with his area of expertise, which according to the thread title is with Havoc issues. He can't be relied upon to answer non ROM questions (yet he probably would if he knew).
@Quantumstate,
I had to move your question and the corresponding answers to a specific thread (your thread now) to "Android Development and Hacking Android Q&A, Help & Troubleshooting" because the thread where you posted initially was not the best place to ask.
I have named the thread "How to get rid of Playstore requirement for some apps?" because I had to fill a subject (is mandatory) but feel free to edit the title yourself if it's not OK for you.
Also, I suggest you to read THIS THREAD by @Oswald Boelcke, you could eventually find some clues there. If not maybe Oswald Boelcke or any other members (developers or not) here should be able to help you in this new Q&A thread
Thanks for understanding
Wood Man
Senior Moderator
@Quantumstate I just realised that @Wood Man pinged me and pointed you to my thread. Feel free to ask me in my thread or certainly here whatever you want to know. But I assume you first have a lot of reading ahead.
Additionally to my thread, I'd like to drag your attention to some more XDA threads in this context. In these threads are also links to Github/Gitlab including excellent tutorials. If you want you'll be able to leave Google services or requirements in many although not all cases behind; however, it also depends of the ROM(s) you use. This means if you commence a discussion please also provide insight into details of your device, system and configuration.
https://forum.xda-developers.com/android/apps-games/app-microg-gmscore-floss-play-services-t3217616
https://forum.xda-developers.com/apps/magisk/module-nanomod-5-0-20170405-microg-t3584928
https://forum.xda-developers.com/android/development/microg-unofficial-installer-t3432360
https://shadow53.com/android/no-gapps/
Last remark: On none of our devices, any Google service or application is installed. But all of our application run fine without and by the use of µG instead. The very few application, from which I expect push notifications, do receive them on time via GCM/FCM.
The one and only Google application, which I've installed, is the Google Play Store modified by Setalphia, the developer of above linked NanoDroid. It allows me easy access and updates of my applications purchased on Google PS respectively to conduct in-app purchases that I mainly do in order to support a good development and developer unless the developer offers different means of donation.
I knew we could count on you Oswald :highfive:

Lineage Os tester rof nfc variant (angelican)

Hi im building a lineage rom from sources so i need people who can test it and report errors, if anyone wants to help {Mod edit}
zgod22 said:
Hi im building a lineage rom from sources so i need people who can test it and report errors, if anyone wants to help {Mod edit}
Click to expand...
Click to collapse
@zgod22
You correctly expected... I've edited above post and removed the reference to Telegram from it. As an exemption from the last bullet of rule no. 5 of the XDA Forum Rules, we grant only developers the privilege to share references to their social media in their own development threads. These conditions obviously don't apply to this thread. Please refrain from sharing of social media in future. Thanks for your cooperation!
Regards
Oswald Boelcke
Senior Moderator
Oswald Boelcke said:
@zgod22
You correctly expected... I've edited above post and removed the reference to Telegram from it. As an exemption from the last bullet of rule no. 5 of the XDA Forum Rules, we grant only developers the privilege to share references to their social media in their own development threads. These conditions obviously don't apply to this thread. Please refrain from sharing of social media in future. Thanks for your cooperation!
Regards
Oswald Boelcke
Senior Moderator
Click to expand...
Click to collapse
okey, have a good day, i expect to having it stable soon. apart from this, what are the requirements for being recognized as a dev? i will edit the post for remove the dont delete post note i put on brackets
zgod22 said:
what are the requirements for being recognized as a dev?
Click to expand...
Click to collapse
Please find more information here:
XDA Recognized Developer Program
A Recognized Developer is a user on XDA, with a history of producing cutting edge work, and doing so in a mature and respectful manner, co-operating with others, and generally setting a good example with regard to adherence to open source licenses and other legal concerns. Recognized Developers...
www.xda-developers.com
Applications for RD Program are now open.
As mentioned before, the RD onboarding system was retired after Xenforo migration. As a stop-gap measure, we are now accepting applications via a google form. If you wish to apply for the RD Program, first read the minimum requirements and code...
forum.xda-developers.com
zgod22 said:
i will edit the post for remove the dont delete post note i put on brackets
Click to expand...
Click to collapse
Feel free to edit your post accordingly. I always use those brackets to indicate where I edited. I believe it's not fair to the author of a post not to let him know where I did what.
Oswald Boelcke said:
Please find more information here:
XDA Recognized Developer Program
A Recognized Developer is a user on XDA, with a history of producing cutting edge work, and doing so in a mature and respectful manner, co-operating with others, and generally setting a good example with regard to adherence to open source licenses and other legal concerns. Recognized Developers...
www.xda-developers.com
Applications for RD Program are now open.
As mentioned before, the RD onboarding system was retired after Xenforo migration. As a stop-gap measure, we are now accepting applications via a google form. If you wish to apply for the RD Program, first read the minimum requirements and code...
forum.xda-developers.com
Feel free to edit your post accordingly. I always use those brackets to indicate where I edited. I believe it's not fair to the author of a post not to let him know where I did what.
Click to expand...
Click to collapse
I only removed the part of admins dont delete the post, because without link, it doesnt makes sense, at least to me
EDIT: Translator did a strange thing with my reply
zgod22 said:
I only removed the part of admins dont delete the post, because without link, it doesnt makes sense, at least to me
EDIT: Translator did a strange thing with my reply
Click to expand...
Click to collapse
I did the same in post #2 where I quoted you.

APK extracted cannot run properly

Hi Everyone,
Am new here, nice to meet you.
I got a weird / silly question that dont have any clue everywhere.
I downloaded a game (with Unity 3d engine) from Play, extracted it to APK, removed the game and reinstalled using that APK. The game loaded up at the beginning but then froze.
I tried different APK extractors, my device was rooted, the game size in the app setting was 400MB when it was running good the first time, but reduced to 140MB after installed with the 90MB APK.
I suspect something was missing in the APK extraction but just cannot figure out what was causing that.
I can find the same app in a APK website and the 4XXMB XAPK downloaded from there worked without issue. Hence I believe it was sth about the reduced size.
Appreciate if anyone could shed some light. Once I can get rid of that, I will start my modding practice soon as I have already knew some approaches and practical steps.
Thanks
When modding you need to have the data for the app you installed prior also and the modded data has to be put in the same name file etc before opening modded apk
Don't really think you know what you are doing since it's been this was since android 5
toolhas4degrees said:
When modding you need to have the data for the app you installed prior also and the modded data has to be put in the same name file etc before opening modded apk
Don't really think you know what you are doing since it's been this was since android 5
Click to expand...
Click to collapse
Hi toolhas4degrees, tks for your reply. My problem is I can't even get the exported apk working properly just by installing it right after exported, despite of modding anything...The game does start but then hung after passing the google game play service. The game data is also apparently smaller than the actual one installed from Play directly.
I googled a lot but could not see similar cases reported, would that be some sort of "protection" implemented by Unity to restrict the app being extracted completely?
jame507 said:
Hi toolhas4degrees, tks for your reply. My problem is I can't even get the exported apk working properly just by installing it right after exported, despite of modding anything...The game does start but then hung after passing the google game play service. The game data is also apparently smaller than the actual one installed from Play directly.
I googled a lot but could not see similar cases reported, would that be some sort of "protection" implemented by Unity to restrict the app being extracted completely?
Click to expand...
Click to collapse
You have to pull the data from the stock install to your sd then mod then replace the data back into the phone.......
jame507 said:
Appreciate if anyone could shed some light. Once I can get rid of that, I will start my modding practice soon as I have already knew some approaches and practical steps.
Click to expand...
Click to collapse
@jame507
Welcome to XDA. I hope you'll always get the support you require.
However, prior to your next posting please read the guidances that are stuck on top of every forum like
Note: Questions go in Q&A Forum
If you are posting a Question Thread post it in the Q&A forum. Technical discussion of Android development and hacking. No noobs, please. Device-specific releases should go under the appropriate device forum...
forum.xda-developers.com
and the others. I've moved the thread to Android Q&A as it didn't qualify for development.
Thanks for your cooperation.
Regards
Oswald Boelcke
Senior Moderator

Help with writing Xposed module to bypass audio recording limits.

Hello all,
I am interested in writing an Xposed module to enable all Android audio recording apps to have the ability to record all types of audio regardless of if a given app tries to block it, and including phone calls. Is this the appropriate way to handle the goal here? I believe I have tracked down the function calls in the Android API that need to be spoofed to achieve this, but I am still struggling. If I share what I have so far, would it be appropriate to ask here? I am not even sure if Xposed is the right way to go about this. Perhaps it should be done using Zygisk?
Thank you.
David B. said:
Hello all,
I am interested in writing an Xposed module to enable all Android audio recording apps to have the ability to record all types of audio regardless of if a given app tries to block it, and including phone calls. Is this the appropriate way to handle the goal here? I believe I have tracked down the function calls in the Android API that need to be spoofed to achieve this, but I am still struggling. If I share what I have so far, would it be appropriate to ask here? I am not even sure if Xposed is the right way to go about this. Perhaps it should be done using Zygisk?
Thank you.
Click to expand...
Click to collapse
@David B.
Prior to your next posting please read the guidances that are stuck on top of every forum like
Note: Questions go in Q&A Forum
If you are posting a Question Thread post it in the Q&A forum. Technical discussion of Android development and hacking. No noobs, please. Device-specific releases should go under the appropriate device forum...
forum.xda-developers.com
I've moved the thread to Android Q&A.
Thanks for your cooperation.
Regards
Oswald Boelcke
Senior Moderator
Hello.
I would like this!
Why just audio? What about video too?
What automated recording? I like it for VoIP and videoconferencing.
Oswald Boelcke said:
@David B.
Prior to your next posting please read the guidances that are stuck on top of every forum like
Note: Questions go in Q&A Forum
If you are posting a Question Thread post it in the Q&A forum. Technical discussion of Android development and hacking. No noobs, please. Device-specific releases should go under the appropriate device forum...
forum.xda-developers.com
I've moved the thread to Android Q&A.
Thanks for your cooperation.
Regards
Oswald Boelcke
Senior Moderator
Click to expand...
Click to collapse
I apologize for the error. Even though I have been an XDA member for a while, I'm not one of the most active members, and therefore sometimes still struggle with navigating to the proper forum when asking questions. Thank you for pointing this out and correcting it.
timofonic said:
Hello.
I would like this!
Why just audio? What about video too?
What automated recording? I like it for VoIP and videoconferencing.
Click to expand...
Click to collapse
Well, for video, there's really nothing that needs done that isn't already available in other Xposed modules. The only reason video recording would be blocked by an app is if it sets FLAG_SECURE, and there are already several Xposed modules that override it. Here is the one that I use on my phone: https://github.com/VarunS2002/Xposed-Disable-FLAG_SECURE
As for automated recording for VoIP and videoconferencing, that is outside the scope of what I would like to achieve with this module. Ideally, what I want this module to do nothing more than allows audio recording apps to access audio streams that they would not normally have access to. I am not sure if this is feasible though. Currently, all apps that have the ability to intercept audio streams that are not accessible through the Android API are closed source. The community needs an open source solution, and I would like to provide that, but I need help.
So, does anyone have an interest in this? Unfortunately I am kind of at a dead end until this is sorted out.
I'm very interested in this, but I'm not a developer unfortunately.
timofonic said:
I'm very interested in this, but I'm not a developer unfortunately.
Click to expand...
Click to collapse
Thanks for your interest! If you know of anyone that is experienced with Xposed module development and would be willing to help me out, please pass this along to them.
Hello all! Is there still nobody with an interest in doing this?
I'm interested in this project as well, for change of that outdated VoIP recorder, but don't have any knowledge about it unfortunately, we have to somehow make more people know about this thread
Zoki88 said:
I'm interested in this project as well, for change of that outdated VoIP recorder, but don't have any knowledge about it unfortunately, we have to somehow make more people know about this thread
Click to expand...
Click to collapse
Agreed! I have no idea how to get exposure for this thread though. If you have any ideas, please share!
David B. said:
Agreed! I have no idea how to get exposure for this thread though. If you have any ideas, please share!
Click to expand...
Click to collapse
I can only try mentioning this thread with link in my posts i'll put in other threads as will asking people for something else, and also if i make my own thread for asking something, will mention this thread, i don't have other better idea than that
Zoki88 said:
I can only try mentioning this thread with link in my posts i'll put in other threads as will asking people for something else, and also if i make my own thread for asking something, will mention this thread, i don't have other better idea than that
Click to expand...
Click to collapse
I think that would be very useful!
Is there any way to make this thread alive and bring some developers? With new android versions upcoming and new devices, we won't be able to use boldbeast voip recorder anymore, and there's literally not a single alternative app to it, even cube acr isn't that good, can't record discord, skype, zoom etc..
Zoki88 said:
Is there any way to make this thread alive and bring some developers? With new android versions upcoming and new devices, we won't be able to use boldbeast voip recorder anymore, and there's literally not a single alternative app to it, even cube acr isn't that good, can't record discord, skype, zoom etc..
Click to expand...
Click to collapse
I'd love to invest time in this again, but unfortunately, my personal life is packed with other things that are limiting my free time to further investigate this at the moment.

Fixing a Broken Android App

Hello Everyone,
Let me start out by saying if this is the wrong forum please feel free to relocate this post.
I have a general question about fixing a broken Android App. SkyWatcher USA makes an app for Android for the Astronomy buffs. Many of the telescope manufacturers use a controller called SynScan that allows "Go-To" operation of the telescope mount. Many also have either built-in WiFi or sell an adapter that allows you to "tether" your scope to your Android device. This allows many 3rd party planetarium apps to control the scope's computerized mount. SkyWatcher's app is called SynScan Pro.
One of the app's features is getting GPS location data from the device. Since the introduction of Android 12 that feature is broken. I was thinking I've been waiting for months for an update that will restore the ability to use the location sensor in my device but it isn't available yet. Currently if you enable use of the location sensor the app crashes.
My question is how does one with little app building experience find good info on how to fix this broken function and bring the app up to Android 12.
Thanks
FernBch said:
Hello Everyone,
Let me start out by saying if this is the wrong forum please feel free to relocate this post.
I have a general question about fixing a broken Android App. SkyWatcher USA makes an app for Android for the Astronomy buffs. Many of the telescope manufacturers use a controller called SynScan that allows "Go-To" operation of the telescope mount. Many also have either built-in WiFi or sell an adapter that allows you to "tether" your scope to your Android device. This allows many 3rd party planetarium apps to control the scope's computerized mount. SkyWatcher's app is called SynScan Pro.
One of the app's features is getting GPS location data from the device. Since the introduction of Android 12 that feature is broken. I was thinking I've been waiting for months for an update that will restore the ability to use the location sensor in my device but it isn't available yet. Currently if you enable use of the location sensor the app crashes.
My question is how does one with little app building experience find good info on how to fix this broken function and bring the app up to Android 12.
Thanks
Click to expand...
Click to collapse
@FernBch
It's indeed the wrong forum. Therefore I suggest prior to your next posting to please read the guidances that are stuck on top of every forum like
[ATTN] : Read before posting - Any questions posted here will be MOVED or CLOSED
Please read the below before posting. Any questions not development related will be moved or closed. Forum Searching | Posting | The Basics: (Make sure you've read them before starting a new thread) Forum Rules Forum Search Google Forum...
forum.xda-developers.com
and the others. I've moved the thread to Android Q&A as it didn't qualify for development.
Thanks for your cooperation.
Regards
Oswald Boelcke
Senior Moderator

Categories

Resources