Debug app - General Questions and Answers

Hi,
I would like to know how I can check the code of an app. I would like to connect my phone to my laptop and play and app on my phone. I would like to see the real time code/debug on my laptop. How can I do it?

How to install ADB on Windows, macOS, and Linux
If you're on Windows, Linux or macOS, you can follow these step by step instructions to install ADB on your desktop or laptop PC.
www.xda-developers.com

Install the Android Studio on your laptop.
Connect your phone to your laptop with an USB cable.
Enable the 'Developer options' as well as the 'USB Debug' option on your phone.
Start your app project in Android Studio and run into debug mode.

Thx for the feedback.
In this case I would like to install an app on my phone from the play store. Play a game on the phone and see on my laptop where the score is stored. Idealy I can place a breakpoint on request. Is this possible with the android studio?

brokmaker said:
Thx for the feedback.
In this case I would like to install an app on my phone from the play store. Play a game on the phone and see on my laptop where the score is stored. Idealy I can place a breakpoint on request. Is this possible with the android studio?
Click to expand...
Click to collapse
Are you going to debug an app without its source code project?

James_Watson said:
Are you going to debug an app without its source code project?
Click to expand...
Click to collapse
Yes I would like to see the code of an app installed on my phone.

brokmaker said:
Yes I would like to see the code of an app installed on my phone.
Click to expand...
Click to collapse
First of all, you need to extract the .apk file for that app from your Android device. Then you will have to decompile source codes from the .apk file.
But as you know, maybe this is illegal because thus reverse engineering violates intellectual property protection.

Related

[ADB Setup] Motorola Backflip

1. DOWNLOAD USB DRIVERS
Motorola ADB Driver 32bit
Motorola ADB Driver 64bit​
2. INSTALL THE SDK
-Download latest SDK http://developer.android.com/sdk/index.html
-Extract Archive to C:\SDK\ (or C:\Android, or whatever you want)​
3. Enable debugging on your phone (thanks naplesbill)
-Goto Settings > Applications > Development > and Check the USB debugging option​
4. Optional, but recommended
-Setup Enviroment Variables:
On Windows, right-click on My Computer, and select Properties. Under the Advanced tab, hit the Environment Variables button, and in the dialog that comes up, double-click on Path (under System Variables). Add the full path to the tools/ directory to the path AFTER A SEMICOLON (;C:\SDK\tools\) .​-Setup Droid Explorer:
Goto Droid Explorer Downloads and snatch the latest version, then install. (mine showed an error during install i believe due to the lack of HTC drivers. If you installed motorola's drivers it should still be in your start menu and work fine)​
If for some reason you can't figure it out, install the drivers then try this installation guide: ADB For Dummies Guide
ADB APK Install instructions
j101399j said:
1. Create a folder called adb on your C drive
2. Extract all files to your adb folder
3. Copy the cmd.exe file (copy the file don't make a shortcut to it or move it) from your "C:\Windows\System32" folder to the adb folder
4. Install the downloaded USB driver
4. Once you have the driver installed, on your phone enable debugging mode (Menu --> Settings --> Applications --> Development --> Check USB Debugging)
5. Copy the apk files you want installed to your "C:\adb\tools" folder. The adb.exe and cmd.exe should be in that tools folder.
5. Open the cmd.exe file
6.Type the following command:
Code:
Code:
adb install [B]application.apk[/B]
Where application.apk is the name of the apk to install
Your app should now be installed
Please note that you cannot install apps used on 1.6, 2.x builds
Click to expand...
Click to collapse
BACKFLIP SYSTEM DUMP http://forum.xda-developers.com/showthread.php?t=642684
BACKFLIP SOURCE CODE http://forum.xda-developers.com/showthread.php?t=645369
Don't you still need root?
I fail to see how this can help without rooting the Backflop unless Droid Explorer has some way of overriding that setting.
Charrion said:
I fail to see how this can help without rooting the Backflop unless Droid Explorer has some way of overriding that setting.
Click to expand...
Click to collapse
It doesn't help deleting the protected apps, but it makes it easier to install apks. This is especially helpful since the backflip doesn't allow anything to be installed through phones interface except through the market.
Ok, it works, but only if you turn on the Applications, Development, USB Debugging in the settings menus.
Well, that's kind of a given as ADB won't work without USB Debugging on.
Charrion said:
I fail to see how this can help without rooting the Backflop unless Droid Explorer has some way of overriding that setting.
Click to expand...
Click to collapse
We meet again Charrion! This is like the third time today I've run into you.
Don't need to have root to install APKs via ADB. Even us poor Milestone owners can do it via 'ADB install <app.apk>.'
I am just pointing that out for those that aren't familiar with that. I imagine there will be users who wouldn't normally bother with this, doing it just to be able to install non-market apk files.
naplesbill said:
I am just pointing that out for those that aren't familiar with that. I imagine there will be users who wouldn't normally bother with this, doing it just to be able to install non-market apk files.
Click to expand...
Click to collapse
Ah, fair enough. Sorry about that.
Unimaginative said:
Well, that's kind of a given as ADB won't work without USB Debugging on.
We meet again Charrion! This is like the third time today I've run into you.
Don't need to have root to install APKs via ADB. Even us poor Milestone owners can do it via 'ADB install <app.apk>.'
Click to expand...
Click to collapse
I'm on a crusade
OK, so you can install apks through adb even without unknown sources being enabled.
Has anyone determined if the option to enter debug mode is still available on the backflop? I wouldn't be at all surprised if they disabled that option also.
I'm also curious whether the backflop has a signed mbm like the Milestone to prevent loading custom roms.
Charrion said:
I'm on a crusade
OK, so you can install apks through adb even without unknown sources being enabled.
Has anyone determined if the option to enter debug mode is still available on the backflop? I wouldn't be at all surprised if they disabled that option also.
I'm also curious whether the backflop has a signed mbm like the Milestone to prevent loading custom roms.
Click to expand...
Click to collapse
The use debug mode is indeed available, I just forgot to mention turning it on.
From what I understand, this phone will be rooted like the cliq.... unfortunately for that to happen certain key files need to be leaked.
@moosefist;
Thank you so much for posting this.
I am now able to install non-Market apps
moosefist said:
The use debug mode is indeed available, I just forgot to mention turning it on.
From what I understand, this phone will be rooted like the cliq.... unfortunately for that to happen certain key files need to be leaked.
Click to expand...
Click to collapse
So; I'm new to the whole Android stuff; but what files need to be "leaked" in order to do this?
Squeaky369 said:
So; I'm new to the whole Android stuff; but what files need to be "leaked" in order to do this?
Click to expand...
Click to collapse
According to Skrilax_CZ a modmymoto moderator:
If we are up to root it; we need the shx/sbf flashfile, which must be leaked. Then I can see if the CLIQ RAMDLD exploit is present in here or whether has it been fixed as on the new CLIQ firmwares.
Click to expand...
Click to collapse
It was those files being leaked that allowed the CLIQ to be rooted...
I will be watching this thread closely I'm tired of having edge on my android....I need 3g for once!
Has anyone given this a try under Linux? I read the ADB beginners guide, but it didn't mention anything about drivers or whatnot. I'd really like to get this phone, but if I can't develop for it on my platform of choice, I don't think I need it that badly.
JK_the_Slacker said:
Has anyone given this a try under Linux? I read the ADB beginners guide, but it didn't mention anything about drivers or whatnot. I'd really like to get this phone, but if I can't develop for it on my platform of choice, I don't think I need it that badly.
Click to expand...
Click to collapse
This is from androidforums.com about this spicifically
http://androidforums.com/motorola-b...on-market-apps-via-adb-solved.html#post419647
On MacOS, ADB doesn't need a USB driver for your phone. Just download the SDK, and you can execute ADB from a terminal.
On Linux, all you need to do are to follow the instructions here:
Developing on a Device | Android Developers
Specifically the bit about creating and chmod'ing an /etc/udev/rules.d/51-android.rules file.
Hope AT&T fixes this issue soon, it's ridiculously stupid to attempt to disallow non-market apps given that ADB works.
Click to expand...
Click to collapse
j101399j said:
This is from androidforums.com about this spicifically
(URL deleted for forum reasons)
Click to expand...
Click to collapse
Thanks much, I'm just getting started on navigating all these forums. =)
Would it be possible for someone to create a utility to turn this option on, then load it via ADB? Or would this require root access?
BetterCut or AnyCut?
Charrion said:
I'm on a crusade
OK, so you can install apks through adb even without unknown sources being enabled.
Has anyone determined if the option to enter debug mode is still available on the backflop? I wouldn't be at all surprised if they disabled that option also.
I'm also curious whether the backflop has a signed mbm like the Milestone to prevent loading custom roms.
Click to expand...
Click to collapse
I don't have a Backflip, but it may be possible to find hidden settings / controls by using BetterCut or AnyCut. Both are in the Market.
I'd be interested in knowing. A crippled phone is a tiny electronic soul yearning to breathe free and live free.
I have a backflip, and just installed anycut. Do you know what I would need to fill in as the new shortcut to get to that option? I'm at work now, but will be doing the development method to install apks later under linux (gowalla app, most likely)
This is my first android phone, so I'm pretty excited to get it broken open and crapware free.
I just ordered the Backflip. Yes, I'm a newb at all this andriod, and rooting stuff. But, I'm in the process of learning more. I think it will be easier when I have the phone in hand to play with.
But, do you guys really think that someone will take the time to root the backflip, considering, (what I have read) that it is alittle out dated?
I'm going to attempt the non-market app install, once I get the phone. This forum is great, from what I've seen so far. I'll definatly be staying tuned to this thread.
Thanks guys,
J

Android Screencast (My Mobiler for Android) and Android Screen Monitor

Hey guys, i just wanted to share these applications that i found awhile back. I have them posted in the old vogue forums but they still come in very handy to me.
I DID NOT DEVELOPE ANY OF THIS SOFTWARE. CREDIT GOES TO THE DEVELOPERS
Some of you may already have these.
If you have Android SDK, ADB and JAVA, all you need to do is download the attached files, extract, and run them.
Link To Android SDK
Link To Java
Android Screen Monitor
This is a really nice and easy to use screen monitoring\screenshot program.
ASM is an Android Debug Bridge (adb) client, When it starts monitoring screen,
ASM connects to adb on port 5037 and receives frame buffer continuously on the device or emulator and transfer image to your desktop window.
You can rotate and scaling monitor window and export a image into PNG file as screen shot tool.
ADB Must be installed
If you have sdk installed skip step 1.
If you have Java JRE(JDK) installed skip step 2
Make sure you have your phone plugged in usb.
1. Make sure ADB is functional
2. Download Android SDK for Windows and place the android-sdk-windows folder on the root of your C:\ Drive.
3. Download and install Latest version of Java
4. Download the attached asm.zip and extract asm.jar out.
5. Place the asm.jar in \android-sdk-windows\tools folder.
6. Right click on asm.jar and place a shortcut on your desktop. Run the jar file or shortcut to bring up the monitor
right click on monitor screen to:
get screenshots
change to landscape\portrait
zoom in or out
_____________________________________________________________
ANDROID SCREENCAST(My Mobiler for Android)
Features
- Mouse and keyboard control FOR ROOTED DEVICES ONLY
- Landscape mode (right click)
- Video recording
- Basic file browser
INSTRUCTIONS
SDK, ADB, and Java are required
Download the attached java file, unzip it, and just run it.
If you have trouble, put it in your sdk\Tools folder and make a shortcut to your desktop.
Should go in the Apps forum, not the android development forum.
dude0909 said:
Should go in the Apps forum, not the android development forum.
Click to expand...
Click to collapse
I thought i was in that forum. Dont know how i got here. Weird
anyone tried these yet?
incubus26jc said:
anyone tried these yet?
Click to expand...
Click to collapse
Yes, I just tried out the Android Screencast. It seemed to work well. I am not sure what I would use it for, but it did work.
I didn't try ASM because I use DDMS for screenshots. DDMS is built into the Android SDK and works perfectly without needing anything extra.
Thanks for the contributions though.
greek keyboard
although it is rather slow, it works Ok.
I can use the english keyboard for composing messages, working with contacts, but when I turn the PC-keyboard to the greek language, I cannot use it with the phone.
Any suggestion pls?
g00gl3 said:
Yes, I just tried out the Android Screencast. It seemed to work well. I am not sure what I would use it for, but it did work.
Click to expand...
Click to collapse
Screencast is great for people like me who are physically disabled and can't use their hands. I used to use EveryWan Personal Edition by Sparus Software which only works with Windows mobile devices...hope screencast will become as good as (or better than) EveryWan!
inverted screen
Hello
I tried the 2 apps : they work fine but the screen display is inverted !
Any idea?
Thanks
my device : ZTE Blade + FLB Froyo 2.2 ROM
(update: same result with webkey)
the same problem with zte blade and CyanogenMod-7.0.0-RC4

[Q] This One Will Stump You

When you get a new Android phone, you are the Windows equivalent of a "Standard user".
When you get SU access, you become "Administrator" (The technical term for linux systems is "root").
So, that being said, is it possible to exploit the Windows desktop operating system and gain Administrator-level permissions as a standard user?
In an oversimplified statement:
Can you "root" Windows?
AndrMatr said:
When you get a new Android phone, you are the Windows equivalent of a "Standard user".
When you get SU access, you become "Administrator" (The technical term for linux systems is "root").
So, that being said, is it possible to exploit the Windows desktop operating system and gain Administrator-level permissions as a standard user?
In an oversimplified statement:
Can you "root" Windows?
Click to expand...
Click to collapse
I don't understand why you would need to have administrator privileges on a standard user account when you are free to switch from standard to admin and even to use the admin account as the default account....
Yes it can be done. As stated above. There are also scripts that will make the current user the owner of all folders and files.
alray said:
I don't understand why you would need to have administrator privileges on a standard user account when you are free to switch from standard to admin and even to use the admin account as the default account....
Click to expand...
Click to collapse
I would want to do it because I am currently using library computers and I need to install drivers for my phone and it won't let me because I'm not an admin. I need the drivers to use ADB (use the links in my signature to look at the stuff I need ADB for). I already tried rebooting in Safe Mode (for XP). I also need it for Windows 7.
AndrMatr said:
I would want to do it because I am currently using library computers and I need to install drivers for my phone and it won't let me because I'm not an admin. I need the drivers to use ADB (use the links in my signature to look at the stuff I need ADB for). I already tried rebooting in Safe Mode (for XP). I also need it for Windows 7.
Click to expand...
Click to collapse
You won't find anything to work if their IT was good enough as you would have to download the script to do it.
AndrMatr said:
I would want to do it because I am currently using library computers
Click to expand...
Click to collapse
Oh I see. There are good reasons why public computers doesn't have admin privileges, and you shouldn't try to tamper a computer that you don't own. And like zelendel said above, their IT probably did everything to lock that pc...
alray said:
Oh I see. There are good reasons why public computers doesn't have admin privileges, and you shouldn't try to tamper a computer that you don't own. And like zelendel said above, their IT probably did everything to lock that pc...
Click to expand...
Click to collapse
What is the script called?
AndrMatr said:
What is the script called?
Click to expand...
Click to collapse
Idk, I never had to use a script to gain admin privileges. Never used public computer for this kind of things.

How To install Google TV Launcher on Android 9 TV

first you are going to need to get 2 APK
The first one is com.google.android.apps.tv.launcherX_1.0.40152940
The second one is Google_base.apk
Then you are going to put your Android 9 version into developer mode you need to allow USB debugging and select USB configuration to any protocol such as media transfer protocol
When you did that you can sideload your two APK files when that is done you are going to need an app on your mobile phone called called remote adb shell. Find out the ip address of your box go to network and ethernet and you will find your ip adress. Go to your phone open remote adb shell put in your ip adress and 5555 on the second line click connect . Now you have two possibilities either remove the current launcher or disable it if you want to keep it
issue the following command
pm uninstall –-user 0 com.google.android.tvlauncher
if you want to reinstall the old launcher the command is as follow
cmd package install-existing com.google.android.tvlauncher
Go back to your android TV and you should now have the google tv launcher , as a side note some countries might need to use a VPN to make it work properly although it was launched officially cheers.
Mattc001 said:
first you are going to need to get 2 APK
The first one is com.google.android.apps.tv.launcherX_1.0.40152940
The second one is Google_base.apk
Then you are going to put your Android 9 version into developer mode you need to allow USB debugging and select USB configuration to any protocol such as media transfer protocol
When you did that you can sideload your two APK files when that is done you are going to need an app on your mobile phone called called remote adb shell. Find out the ip address of your box go to network and ethernet and you will find your ip adress. Go to your phone open remote adb shell put in your ip adress and 5555 on the second line click connect . Now you have two possibilities either remove the current launcher or disable it if you want to keep it
issue the following command
pm uninstall –-user 0 com.google.android.tvlauncher
if you want to reinstall the old launcher the command is as follow
cmd package install-existing com.google.android.tvlauncher
Go back to your android TV and you should now have the google tv launcher , as a side note some countries might need to use a VPN to make it work properly although it was launched officially cheers.
Click to expand...
Click to collapse
This is fantastic Mattc! Congratulations! You have done an arduous task! When I have some time, I'll try to install it. Greetings!
rolo2020 said:
This is fantastic Mattc! Congratulations! You have done an arduous task! When I have some time, I'll try to install it. Greetings!
Click to expand...
Click to collapse
Thank you my friend but this is not much; I hope when you try it you let me know how it went; there is also an app that can help with the installation if you are not comfortable with ADB however I don't know if the app permanently applies the launcher changes or if you must choose it each time you logon; in any case here is the link to the app the app is called android tv home
Android TV Home 1.1.11-100-4504100 (nodpi) APK Download by Google LLC - APKMirror
Android TV Home 1.1.11-100-4504100 (nodpi) APK Download by Google LLC - APKMirror Free and safe Android APK downloads
www.apkmirror.com
Mattc001 said:
first you are going to need to get 2 APK
The first one is com.google.android.apps.tv.launcherX_1.0.40152940
The second one is Google_base.apk
Then you are going to put your Android 9 version into developer mode you need to allow USB debugging and select USB configuration to any protocol such as media transfer protocol
When you did that you can sideload your two APK files when that is done you are going to need an app on your mobile phone called called remote adb shell. Find out the ip address of your box go to network and ethernet and you will find your ip adress. Go to your phone open remote adb shell put in your ip adress and 5555 on the second line click connect . Now you have two possibilities either remove the current launcher or disable it if you want to keep it
issue the following command
pm uninstall –-user 0 com.google.android.tvlauncher
if you want to reinstall the old launcher the command is as follow
cmd package install-existing com.google.android.tvlauncher
Go back to your android TV and you should now have the google tv launcher , as a side note some countries might need to use a VPN to make it work properly although it was launched officially cheers.
Click to expand...
Click to collapse
I'm trying to get this on a Nvidia Shield TV 2017 specifically for the purposes of having voice search work in sideloaded apps and browsers. The voice search works on sideloaded apps on the Chromecast with Google TV, so can you voice search sideloaded apps and browsers with this UI on your device(s)?
Mattc001 said:
The first one is com.google.android.apps.tv.launcherX_1.0.40152940
The second one is Google_base.apk
Click to expand...
Click to collapse
Thanks. But is it just me or these files actually not attached here? Could you please also attach these files? Thanks in advance.
You need to highlight the text, right click and copy into your browser or select search. The files are there. Not everything is an easy link in the hacker world. You must do the work and think.
Great , the steps you describe are working fine. I'm successfully able to install.
​​
georgenazar said:
You need to highlight the text, right click and copy into your browser or select search. The files are there. Not everything is an easy link in the hacker world. You must do the work and think.
Click to expand...
Click to collapse
Im having a hard time finding "google_base.apk". Thanks to Mattc001 for attaching the xlauncher 1.1.11, I couldn't find that version, only 1.0.xx so ... yes your right, there should be some homework needed to be applied, it sure helps though when the files or "requirements" are attached. For one, it's trusted that the software used is the trusted one from the OP. Secondly, ... just revert to one.
@Mattc001 Could you please elaborate on the "google_base.apk" ... where to find? Is it under a different title name vs. file name? I'm really interesting in your findings. I just recently acquired a TCL with Android TV or maybe its Google TV and would really like to take advantage of tweaks, mods, and things to better enjoy the experience and boost performance.
Thanks in advance.
BadRx said:
Im having a hard time finding "google_base.apk". Thanks to Mattc001 for attaching the xlauncher 1.1.11, I couldn't find that version, only 1.0.xx so ... yes your right, there should be some homework needed to be applied, it sure helps though when the files or "requirements" are attached. For one, it's trusted that the software used is the trusted one from the OP. Secondly, ... just revert to one.
@Mattc001 Could you please elaborate on the "google_base.apk" ... where to find? Is it under a different title name vs. file name? I'm really interesting in your findings. I just recently acquired a TCL with Android TV or maybe its Google TV and would really like to take advantage of tweaks, mods, and things to better enjoy the experience and boost performance.
Thanks in advance.
Click to expand...
Click to collapse
You can google it and get it from some apk repositories
Mattc001 said:
You can google it and get it from some apk repositories
Click to expand...
Click to collapse
here you go http://www.mediafire.com/file/uve4r5vb4qy087g/Google_base.apk/file
Mattc001 said:
You can google it and get it from some apk repositories
Click to expand...
Click to collapse
Ok.... NO. LOL. Apparently you know not what I am saying. NEVERMIND.
Mattc001 said:
here you go http://www.mediafire.com/file/uve4r5vb4qy087g/Google_base.apk/file
Click to expand...
Click to collapse
Or you do....thank you.
BadRx said:
Or you do....thank you.
Click to expand...
Click to collapse
You welcome I hope it helps!!!
Hey guys, where can I find "Google_Base.apk" for miBox4s. I have found the launcher itself and it was easy to install, but wihtout "google_base" I can't do anything.
Thanks
jarekhunter said:
Hey guys, where can I find "Google_Base.apk" for miBox4s. I have found the launcher itself and it was easy to install, but wihtout "google_base" I can't do anything.
Thanks
Click to expand...
Click to collapse
Hello my friend here is the link I have not tested it lately but I thin it is the same link. Sincerely,
Matt
http://www.mediafire.com/file/uve4r5vb4qy087g/Google_base.apk/file
Thanks, friend.
Unfortunately, it shows me the information that it cannot be installed at the end.
jarekhunter said:
Thanks, friend.
Unfortunately, it shows me the information that it cannot be installed at the end.
Click to expand...
Click to collapse
Why not ? Do you know how to sideload apks ? make sure you are in developer mode and select usb configuration to MTP
Instead of Google_Base I added another version "com.google.android.katniss_6.12.20221010.3-14001602_minAPI24 (armeabi-v7a, x86) (nodpi) _apkmirror.com" Apparently this is it. Everything works but I have to be on VPN USA all the time because otherwise Home or the tab for you - it does not appear at all and I have an error. There is a chance to bypass the need to use vpn from the USA for the home tab to work? Thanks
jarekhunter said:
Instead of Google_Base I added another version "com.google.android.katniss_6.12.20221010.3-14001602_minAPI24 (armeabi-v7a, x86) (nodpi) _apkmirror.com" Apparently this is it. Everything works but I have to be on VPN USA all the time because otherwise Home or the tab for you - it does not appear at all and I have an error. There is a chance to bypass the need to use vpn from the USA for the home tab to work? Thanks
Click to expand...
Click to collapse
x2(???
Hello.
I need help. I install google tv launcher, but when i try to start it, i just have a black screen ob my TV, and I cant get back old android launcher because in adb shell told mi, that conection in terminated. Is there any possibility to get old launcher back?
Thank you

I need help with an apk that comes with a malware

Hi, everyobody. So, I've downloaded an apk for a multiplattform emulator that I used to have installed in my phone but lost when rebooting and happens to have been removed from the PlayStore. The thing is, said apk seems to come with a malware. I've done a couple of test to see if the malware was from somewhere else or if it comes from the phone's system but it seems like it comes in the apk of the emulator.
This malware installs some bloatware apps and even if I uninstall them, the malware just installs them again by itself. It also starts to take control of the phone. The malware, however, disappears if I do a factory reset. I tried opening the apk file with a file explorer and see what's inside the apk file to see if I could identify the malware files or whatever that triggers it and erase them from the apk, but unfortunately I lack the knowledge to tell what belongs to the emulator and is the malware.
I know it's a little bit silly of a help request, but I really like that emulator and I can't find a clean malware-free apk of it. If someone with knowledge on the subject has some spare time and is willing to help me with this silly request I would be really greatful to them.
Here's one of the few links to the apk. CAREFUL: don't install it, the malware seems to install itself in your phone's system and won't gomeven if you uninstall the emulator.
Retrogaming Emulator for Android for Android - APK Download
Download Retrogaming Emulator for Android apk 4.14.0 for Android. PSX Emulator, GBA Emulator, SNES Emulator, NES Emulator, PSP Emulator, TV Box
www.google.com
I have read the rules and I don't think I'm breaking them by asking help with this, but if I'm making something wrong or if this is not the place for asking for this kind of help, please let me know and I'll delete the post. Also, it would be nice if you could tell me what is a proper site for asking help with this.
Thanks in advance, everybody.
I wouldn't even attempt to download a known infected file
Scan it with online Virustotal and see what you got. You should have done this before side loading it... not very clever.
If it's not the cause a factory reset is in your future, and if you're running Android 8 or lower more may be required if its a rootkit.
Find and ID the malware and uninstall/delete it... if you can.
ZIGS318 said:
Hi, everyobody. So, I've downloaded an apk for a multiplattform emulator that I used to have installed in my phone but lost when rebooting and happens to have been removed from the PlayStore. The thing is, said apk seems to come with a malware. I've done a couple of test to see if the malware was from somewhere else or if it comes from the phone's system but it seems like it comes in the apk of the emulator.
This malware installs by itself again if I uninstall it and starts to take control of the phone. I tried opening the apk file with a file explorer and see what's inside the apk file to see if I could identify the malware files or whatever that triggers it and erase them from the apk, but unfortunately I lack the knowledge to tell what belongs to the emulator and what could not.
Click to expand...
Click to collapse
how does this malware manifest itself?
you can always run the apk through an online android-apk decompiler to get the source code and then look into it
ZIGS318 said:
Hi, everyobody. So, I've downloaded an apk for a multiplattform emulator that I used to have installed in my phone but lost when rebooting and happens to have been removed from the PlayStore. The thing is, said apk seems to come with a malware. I've done a couple of test to see if the malware was from somewhere else or if it comes from the phone's system but it seems like it comes in the apk of the emulator.
This malware installs by itself again if I uninstall it and starts to take control of the phone. I tried opening the apk file with a file explorer and see what's inside the apk file to see if I could identify the malware files or whatever that triggers it and erase them from the apk, but unfortunately I lack the knowledge to tell what belongs to the emulator and what could not.
I know it's a little bit silly of a help request, but I really like that emulator and I can't find a clean malware-free apk of it. If someone with knowledge on the subject has some spare time and is willing to help me with this silly request I would be really greatful to them.
Here's one of the few links to the apk. CAREFUL: don't install it, the malware seems to install itself in your phone's system and won't gomeven if you uninstall the emulator.
Retrogaming Emulator for Android for Android - APK Download
Download Retrogaming Emulator for Android apk 4.14.0 for Android. PSX Emulator, GBA Emulator, SNES Emulator, NES Emulator, PSP Emulator, TV Box
www.google.com
I have read the rules and I don't think I'm breaking them by asking help with this, but if I'm making something wrong or if this is not the place for asking for this kind of help, please let me know and I'll delete the post. Also, it would be nice if you could tell me what is a proper site for asking help with this.
Thanks in advance, everybody.
Click to expand...
Click to collapse
Did u just said malware can't be uninstalled even after doing factory reset. The malware is called xhelper that's a malware that can't be uninstalled once u get it.
Austinredstoner said:
Did u just said malware can't be uninstalled even after doing factory reset. The malware is called xhelper that's a malware that can't be uninstalled once u get it.
Click to expand...
Click to collapse
Yeah but that's on Android 8 and lower.
On Pie and above it can't do that.
It's a nasty little critter
blackhawk said:
I wouldn't even attempt to download a known infected file
Scan it with online Virustotal and see what you got. You should have done this before side loading it... not very clever.
If it's not the cause a factory reset is in your future, and if you're running Android 8 or lower more may be required if its a rootkit.
Find and ID the malware and uninstall/delete it... if you can.
Click to expand...
Click to collapse
Thanks for the advice.
xXx yYy said:
how does this malware manifest itself?
you can always run the apk through an online android-apk decompiler to get the source code and then look into it
Click to expand...
Click to collapse
Well, for what I've seen it's a malware that hides in the system files (I don't know where). Once there, it starts installing bloatware and spyware on the phone and starts to take control of things like the browser (mostly to show pages of ads and bets) and calls and messages. I can uninstall the bloatware apps, but the malware installs them again after some time has passed. After a Factory Reset, the malware is gone, that's how I realized the malware comes from the emulator apk. But Iike that emulator so I want to erase the malware from the apk. Also, thanks for the advice, I will try it. :"D
Austinredstoner said:
Did u just said malware can't be uninstalled even after doing factory reset. The malware is called xhelper that's a malware that can't be uninstalled once u get it.
Click to expand...
Click to collapse
No, I expressed myself wrong. The malware disappears after a factory reset. What I can't uninstall is the bloatware apps that the malware installs while it's in the phone. Once the malware is gone, so are the bloatware apps.
ZIGS318 said:
Once the malware is gone, so are the bloatware apps.
Click to expand...
Click to collapse
The hard reset deletes the malware together with the apps, what am I missing here?
Can't help with de-compiling but when I was investigating a malware outbreak, I turned off the system setting apk.
It later turned out to be ES file explorer and the apps were being installed via google play/mobile services.
Of course you can't change any settings but at least I could use the phone and nothing got installed.
Use the terminal/adb commands to turn off and back on when your done:
pm disable com.android.settings / pm enable com.android.settings
mobnoob said:
The hard reset deletes the malware together with the apps, what am I missing here?
Click to expand...
Click to collapse
I want to identify which parts of the app files are the maleare ones so I can delete them and get the app to be malware-free.
xdabookam said:
Can't help with de-compiling but when I was investigating a malware outbreak, I turned of the system setting apk.
It later turned out to be ES file explorer and the apps were being installed via google play/mobile services.
Of course you can't change any settings but at least I could use the phone and nothing got installed.
Use the terminal/adb commands to turn off and back on when your done:
pm disable com.android.settings / pm enable com.android.settings
Click to expand...
Click to collapse
Emmm...I didn't get that well. How do I enter that command? Thabks you for the answer, though.
ZIGS318 said:
Emmm...I didn't get that well. How do I enter that command? Thabks you for the answer, though.
Click to expand...
Click to collapse
ZIGS318 said:
Emmm...I didn't get that well. How do I enter that command? Thabks you for the answer, though.
Click to expand...
Click to collapse
He’s talking about ADB, android debug bridge.
That needs to be installed on ur pc and run while your phone is connected to the PC.
I’ll post a tutorial here.
K3V1991 said:
View attachment 5520451
NFO:
Code:
• Versions: Installer, Portable & ADBKit
• Android Debug Bridge & Fastboot updated to latest v1.0.41 (Version 32.0.0-8006631, January 2022)
Installer Features:
• Installation Folder chooseable
• Creates Desktop & Start Menu Shortcut
• Toolkit & Desktop Shortcut
• Creates Commands Shortcut
• View Commands List
• Add to System Path Environment
• Universal ADB Driver Installation
ADBKit:
• Pure ADB (Android Debug Bridge)
• Open CMD.bat to easily open a CMD
• Only 5.81MB (compressed 2.74MB)
Requirements:
Code:
• Windows OS
• USB Driver for your Device or Universal ADB Driver (Included in the Installer)
• PowerShell for the Toolkit
​Developer Options & USB Debugging:
Code:
01. Install the USB Driver for your Phone or Universal Adb Driver.
02. On your Phone, go to Settings > About Phone. Find the Build Number and tap on it 7 times to enable Developer Options.
03. Now enter System > Developer Options and find "USB debugging" and enable it.
04. Plug your Phone into the Computer and change it from "Charge only" to "File Transfer" Mode.
05. On your Computer, browse to the directory where you extracted the Portable Version or use Tiny ADB & Fastboot Shortcut.
07. Launch a Command Prompt with Open CMD.bat or use Tiny ADB & Fastboot Shortcut.
09. Once you’re in the Command Prompt, enter the following Command: adb devices
10. System is starting the ADB Daemon (If this is your first Time running ADB, you will see a Prompt on your Phone asking you to authorize a Connection with the Computer. Click OK.).
11. Succesful enabled USB Debugging.
Installer:
Code:
1. Download ADB_&_Fastboot++_vXXX.exe
2. Follow the Installers Instructions and select where you would like to install ADB & Fastboot++
3. After the Installation Wizard has completed you can select to start ADB & Fastboot++
4. You should see a Command Window open, now you can use ADB and Fastboot Commands
Portable:
Code:
1. Download ADB_&_Fastboot++_vXXX_Portable.zip
2. Extract the Zip Archive
3. Double click on Open CMD.bat
4. You should see a Command Window open, now you can use ADB and Fastboot Commands
ADBKit:
Code:
1. Download ADBKit_vXXX.zip
2. Extract the Zip Archive
3. Double click on Open CMD.bat
4. You should see a Command Window open, now you can use ADB Commands
Toolkit Features:​
• Uninstall Bloatware without Root Access
(This works because Applications truly aren’t being fully uninstalled from the Device, they are just being uninstalled for the current User
• Re-install uninstalled Apps
• Install Kernel (Popup Menu, reboots automatically to Bootloader)
• Install Recovery (Popup Menu, reboots automatically to Bootloader)
• Install APKs (Popup Menu)
• Push Files (Popup Menu)
• Check Firmware Version
• Check Android Version
• Check Kernel Version
• Check Firmware Build Date
• Check Kernel Build Date
• Check Security Patch Date
• Check IMEI
• Check IP Adresses
• Check App Packages
• Check Process Activity (Real Time)
• Take Screenshots (PNG Format)
• Video recoding - 30 Seconds (Without Device Sound)
• Video recoding - 60 Seconds (Without Device Sound)
• Video recoding - 120 Seconds (Without Device Sound)
• Video recoding - 180 Seconds (Without Device Sound)
• Reboot the Device
• Reboot to Bootloader
• Exit Bootloader to System
• Reboot to Recovery
• Create Logcat
• Exit (adb kill-server & close Toolkit)
Downloads:
• Installer
• Portable
• ADBKit
• Universal Adb Driver
View attachment 5521523
Donate Link​
Click to expand...
Click to collapse
You could try firewall blocking the app or maybe running under VMOS.
Personally I just ditch it...
There are decompiler apps that might enable you to defang it.
blackhawk said:
You could try firewall blocking the app or maybe running under VMOS.
Personally I just ditch it...
There are decompiler apps that might enable you to defang it.
Click to expand...
Click to collapse
Or there are perfectly “virus-free” emulators on the internet.
The malware will be downloaded by a background process. You need to find the link for the website and break it.
The best place to start would be an app that can log dns and ip calls, like Adguard. It will also block any already known links.
If you can break the link to prevent the apps installing its a start.. But as already suggested you are better off using a more up to date app because retroarch may not run correctly on newer tech.
Kenora_I said:
He’s talking about ADB, android debug bridge.
That needs to be installed on ur pc and run while your phone is connected to the PC.
I’ll post a tutorial here.
Click to expand...
Click to collapse
Yes the pm command was entered via adb from a PC via USB. A shell terminal on the device as a standard user never seems to have the right privileges to run the pm command but su - (superuser root) will.
shivadow said:
The malware will be downloaded by a background process. You need to find the link for the website and break it.
The best place to start would be an app that can log dns and ip calls, like Adguard. It will also block any already known links.
If you can break the link to prevent the apps installing its a start.. But as already suggested you are better off using a more up to date app because retroarch may not run correctly on newer tech.
Click to expand...
Click to collapse
Thanks for the advice! I'll see what I can do!
Kenora_I said:
He’s talking about ADB, android debug bridge.
That needs to be installed on ur pc and run while your phone is connected to the PC.
I’ll post a tutorial here.
Click to expand...
Click to collapse
Thank you for putting it more clear for me. I'll see what I can do when I get some free time!

Categories

Resources