yashsingh1/xdaforums huggingface dataset:
[Android General] dmagician:
APKSPY - RESURRECTED​

First

:

I want to thank [MENTION=304315]ido[/MENTION] for the original application -- It was his idea (and his code I've hacked :cyclops:) and modified.

Second

:

Since Ido seems not to be active anymore I'll re-publish the application here.

Unless for some reason Ido will specifically ask me to remove it.

The original post

Third

:

Requires Microsoft©® .Net Framework v4

(Kind of since I've done it some time ago and waited for Ido [the orignal developer] to respond and allow or disallow me to re-publish... So, I don't remember all the changes I've already done...)

v1.8.19 CHANGELOG:

Fixed some Date parsing function (zipped file with no time stamp) in ZipStorer (by @Jaime Olivares) maybe causing some of the error reported here...

v1.8 CHANGELOG:

Changed Icon -

CONTRIBUTED BY [MENTION=3857816]Jarmezrocks[/MENTION]

Removed unneeded tabs (System, Batch Rename, Log)

Minimize / Maximized restored back

v1.7 CHANGELOG:

(Actually 4.1.7.870, but the first and the last parts are internally used :fingers-crossed:)

Try to automatically find adb.exe and aapt.exe in ApkSPY directory or in PATH variable: If failed finding any of the executables, the user is asked to manually locate them

(★ Currently the location is not saved... ★).

Check if the ADB server is running and Start or ask if to Restart ADB server

Tidy up the code

Refining the original libraries written by Ido related to ADB and AAPT

Some more minor code updates

Revised most of the "General" tab (other tabs ware not touched) of the UI:

Grouped and ordered controls on form

Added DropDown of devices attached (★ Not automatically updating upon plugging... ★)

Added some control over ADB actions

Added status bar that some other details are shown, e.g. device type (Nexus, I9100...), OS version (4.1.2, 4.4.2...) and OS build (KOT49H, KVT49L...)

Added (nice looking) information panel with

clickable links (for actions on the form)

and coloring

Other changes (I can't recall right now, since I've done it some time ago and waited for a response from Ido for permission to republish)

(★ Maybe I'll add an option for this later, depending on my -- not to much -- free time and requested by users .... ★)

Known bugs

:

Sometimes ADB fails to return build.prop property for the status bar (however it has not caused any critical problem, so (I think) it can be safely ignored) -- haven't been able (yet) to find the exact state it is happening

Please take the time to look at the application ABOUT tab

Any Other ideas are welcome!

If you like it, Don't forget to Thank me ;)

If you enjoy using this application as much as I have enjoyed

re-writing

it

please donate to show your appreciation​
[Android General] dmagician:
RESERVED

:rolleyes:
[Android General] ktetreault14:
Nice
[Android General] cmlx:
Good news

Bug report, every time I open this program, this dialog pops up, after click OK, this program works well.

PS, aapt.exe is in the same dir with ApkSpy
[Android General] CyberianIce:
I got this errors:

1:

2:

Error in property: ro.crypto.fs_real_blkdev@emmc@usrdata
[Android General] dmagician:
Yes, I know of this one (and I've specifically wrote about it in the OP), it is NOT related to AAPT executable but to the way ADB is acting (sorry, out of my hands... :angel:):

Explanation

The error comes from the application when trying to query the "ro.build.id" property via adb ('ADB shell getprop "ro.build.id" ') command.

I've came across this one but cannot determine the exact situation it is happening (as it can occur when first launching of the app, but after the app is loaded, clicking on refresh does not show this error)...

[ I've tried it on with the (only) two devices I own (1st dev. is stock (only the kernel is changed) 4.4.2 Nexus 4, 2nd dev. is S2-i9100 with customized RR ROM)and it seems to happen ONLY on the S2...]

It looks that in times, the getprop is being executed before the whole "build.prop" is being processed by ADB (This one I cannot control since it is happening on the ADB shell side [running on the device] -- unless

MAYBE

doing some [UGLY] delay after first initialization of ADB, which is, by far NOT best practice of process handling according to the literature)...
[Android General] dmagician:
Which came first, the "SpkSpy spy stopped working" or the "Error in property" (if anyways related)?

Was it on the same run or two different runs?

As of the 1st one

:

I do not have enough information from your post to check it up...

I'll post a new version which shows the exception details

As of the 2nd one

:

Can you send me a copy of your

/system/build.prop

(so i'll be able to dig trough it and check it)?

It looks like my name-value splitter character exist as part of a given value in your build.prop .
[Android General] dmagician:
Wooow, Long one! But it is nice to know people are using (trying) it!

Hi

As I've replied to [MENTION=986073]clmx[/MENTION], This error is not related to AAPT (either executable [location or whatever] or results), but to the ADB command being used...

Sorry I did not understand... Check for what?

I do not need the Auto-IT to wrap these files (although I am using it for other automation in windows:)), as I can do it right in the C# code (on one of my early versions these files

was

embedded...)

BTW, I know there are some antiviruses out in the wild that

do not like the embedded executables

-- but it can be done -- and probably will save some time to anyone using this app...

If it will be required / asked, I'll embed the 4 binaries (AAPT.EXE, ADB.EXE, and two DLL's AdbWinApi.dll and AdbWinUsbApi.dll [I'm not sure both are required]) needed by the application.

The application IS searching for AAPT and ADB executables; The order is

Application directory (where ApkSpy.exe resides)

PATH environment variable

Mostly I like it this way, otherwise - No specific reason...

It will be back in the next version...

This Tab was NOT changed by me in any way... To be honest, I've thought of removing it completely -- But -- out of respect to Ido's work -- I've left it in.

I assume it is not wrapping due to Font size changed by me globally...

I'm seriously giving it second thoughts -- if it should stay at all (It was originally meant for batch rename of multiple APK's... I haven't used it even once...)...

I'm Really, REALLY, think of removing it completely (unless someone is / will be using it -- then I'll fix it all)...

The application is NOT taking over anything, Unless you've clicked the asterisk ("*") button on the System Tab...

Was it registered for you without clicking this button?

If so, I'll recheck the code (may be it's some residue from the original code).

BTW

As the previous part of the answer I've wrote -- this one was left in as of respect to [MENTION=304315]ido's[/MENTION] work...

2nd BTW

I'd like to see that explorer extension (and [preferable] the code of it - if you are willing to share it) you ware writing about...

Yep, I've thought of it... But... I was thinking, that (at least) everyone is as geeky :eek: as me dauuh , and the most are setting the path correctly...

It'll be added in next version (I hope... TIME, TIME!!!! :cyclops:)...

I prefer writing my own code (sorry, I'm a developer in heart and soul...) then using automation like Auto-IT...

:D

([MENTION=3857816]Jarmezrocks[/MENTION] please see my PM to you.)

PHEW...

Long Answer, BUT HEY, I'm not the only one writing longies... :angel: (and i like referencing each and every part separately:p)...
[Android General] Jarmezrocks:
Ahh yes. I write long messages sometimes when my medication has kicked in and I am high....not my fault :( I kinda need to get all the info out of my head in one go while I am awake.....or else there would just be zeds on the response zzzzzzzzzzzzzzzzzzzzzz lol :laugh: (ref narcolepsy).

I commend you on your efforts at responding to such gibberish and making good sense of it! :highfive:

I have responded to your PM accordingly, and hopefully covered all you need? I have attached all info and sources etc.....well most of it...actually a fair bit of it you will have to workout your self but that is part the fun. Shoot me any questions if you need to...although I have a feeling that you will have mostly all of it covered as you are streets ahead of my knowledge already. I may have misjudged a little in my previous post (although hopefully not to make you feel any less than you actually are?:eek: please excuse me if I had said anything that may offended - being naive or what ever....you ARE definitely on the right track). As for the middle menu....I think you could easily remove it and not offend the original dev. It wasn't being used as you mention...and I think it could make way for more/better functionality don't you think? (discuss). However I would ensure all the things I mentioned in my PM first before going too deep and releasing on here.

Good move on bringing the buttons back. They were functional. But I DO like the single button close GUI myself on just about everything else....It looks clean. We have similar taste in that regard. It just isn't functional for me to pressing the task notification desktop link everytime I want to minimise the app LOL.

The rest I we can discuss via PM, this is pretty much only posted here as an open area for other forum members to provide input and opinion (or complaint....like how often it usually is, eh?).
[Android General] Shudushi:
I'd got the same error!

For me it helped to copy two files to the install dir

"adb.exe" and "AdbWinApi.dll"

Both are installed with the well known MyPhoneExplorer into "Program Files\MyPhoneExplorer\DLL"

Hope it helps!
[Android General] jmo:
Feature Request

I use this tool for testing new APK builds on a project I am working on it. It allows me to quickly verify the version number and push to the device. However, since I am usually installing another version of an existing installed APK, I must manually uninstall before using APKSPY. Would it be possible to add a check box that would uninstall any previous versions? It would be really helpful.

Nevermind - I didn't fully read the message presented when it fail. It say uninstall/update and it allows the installation. HOWEVER, that brings up a question... Does it uninstall or does it update? There is a difference as you know.

Thanks,

Jonathan
[Android General] Ja_som:
Hi, I try to run this on Mac via Wineskin Winery, but no luck. Do I need something like .Net, or something else to run ApkSpy?

Thank you.
[Android General] dmagician:
The only requirement is the Microsoft .Net 4.

(I'll add this to OP)
[Android General] dmagician:
Yes I know there is difference between the two (update vs uninstall and install again).

It is updating the application (like using "adb install -r apk_file_name.apk"), not doing remove and install
[Android General] wolrik:
The unneeded Batch Rename tab was the only tab I needed really. :laugh: Luckily I found Ido's original version. It's ideal for renaming all those apk's I downloaded and still have the package name when I back them up to my PC.

I have an Asus Memo Pad 10 and an Asus Memo Pad 7 and neither are recognised by APKSpy. Not that it's a problem as I have no problem copying to and from them with Windows Exploder or Total Commander.

Other than that, it's been a handy little app for this tablet/smartphone virgin newbie.

Martin.
[Android General] dmagician:
Hello.

1st:

I can -- if requested - re-add the Batch rename.

2nd:

I don't know why these two devices are not being recognized -- unless not being recognized by ADB itself -- since I'm spawning devices by parsing the resulting text of "ADB devices" command, So unless being unrecognized by ADB, there should be NO PROBLEM detecting ANY android device with ADB on...

if you have any exception messages thrown by the application, please post them here.
[Android General] wolrik:
No need to re-add the tab just for me, but thanks for the offer. As I get to know my way around Android I'll probably need such things less and less.

Sorry, but I know nothing about ADB other than APKSpy needing it. As you can see from the attached pic, the Asus is recognised by Total Commander

Martin.
[Android General] ericgl:
Hi dmagician,

Nice work, and a shout-out to Ido who originally created it.

I have a feature request:

Could you add the option to remove certain permission(s) and save the modified APK file?

There are many apps which I feel allow themselves way too much permissions, and this option could be very useful to tame them apps.

One more thing:

I noticed that APKSpy v1.8.2 doesn't work with the latest version of AAPT.exe (1432KB), from the Android SDK r24.

So I had to use a previous version of AAPT.exe (833KB), which worked.

Thanks,

Eric
[Android General] Punchieo:
Hey does anybody know where the name of the apk is in the XML files inside the apk?
[Android General] crazykiddo:
None of the version work on windows 10?
[Android General] dmagician:
I dont have Windows 10 installed, so i dont know if it is working or not...

As written it requires .Net 4 at least on my own computers it is working and this is the only requirement...
[Android General] crazykiddo:
I have .Net 4 etc.

running it as admin or not...nothing happens...

Tried with 10 different versions of aapt and adb. no luck.

depending on the aapt version sometimes it comes up and wants me to pick aapt (no version works)
[Android General] dmagician:
Does the aapt itself working?

try as:

aapt d badging whatever-apk-name.apk
[Android General] crazykiddo:
yes aapt works as it should.

The exe does just not start anything.
[Android General] Truepeace:
I am on windows 7 x64 and I have the framework required but the .exe is not launching. The loading cursor appears for a bit and nothing happens. I tried download the .Net Framework v4 but the installer told me I already have newer versions (correct).

Tried running as admin same thing, tried disabling Norton because the first time I launched the app it asked me if I am sure I want to run it I said yes always but even when off nothing happened.

The original apkspy ApkSpy06 works fine,
[Android General] lenovo P780 Life 07:
Anyone version from you doesnot working for me, but original version ApkSpy 0.6 work fine. Download it from here : http://xdaforums.com/showthread.php?t=1115021
[Android General] natong:
I use aapt.exe from latest SDK. Some apk doesn't show a label or a valid english label.

(Android Asset Packaging Tool, v0.2-3303571)

Your aapt.exe work great!

(Android Asset Packaging Tool, v0.2)
[Android General] dmagician:
Sorry for late response, I've almost forgot about this little one (plus I have almost no time to get here and replay...).

As of your feature request:

1st

:

If / When I'll dig in actual Android development myself, I'll be able to do these kind of things. (I guess)..

2nd

:

AFAIK, modifying permissions (not by compile from original source OR de-compile & recompile [by hacking] ) causes errors in the application (assuming the permission IS used and required by the app itself).
[Android General] dmagician:
Hello:

Inside AndroidManifest.xml - these are in plain text, but the text is embedded in other encoded stuff (contains binary values).
[Android General] dmagician:
Have you tries copying the files (aapt / adb and their dlls to the same directory where my EXE resides?
[Android General] dmagician:
It is being developed as 32-bit application under Windows 7 64-bit And working fine...

Does it throw any errors (please wait a while before killing the process)?

Can you try looking in windows event logs to see if causing any errors (not being shown...)?
[Android General] dmagician:
Does it show any error?

Does adb / aapt working on your PC on command line (try copying them to the ApkSpy's exe directory?
[Android General] dmagician:
Sorry, I can't blame you for what you do/want with YOUR private data...

Windows XP (Although I Liked it A LOT on it's time, as a bit ... Mmmmm ... outdated. I suppose it can be compiled against .net 2 framework, BUT I'd rather not try and downgrade it... Sorry.

The application IS using some *more* advanced .Net 4 programming options, so, as you wrote, the 'manually patching' -- I assume -- will probably break it...

Probably is [but not fit for everything]...

But I haven't used C[++] for about 20 years and Pascal[!!] over 30 years...

Yep, ME TO and a living human and not MATRIX... ...

Sorry, this programming is done over my spare time (not related to the REAL day-to-day work [I am a programmer] I'm doing

As you've wrote "...but lacks valuable, 'very wanted' options..."

BTW

:

My file is bigger then the original one because some extra source code files (ZipStorer as written in the OT, HTMLRenderer and ModelEditControl by Christopher Wells -- for html content rendering - sources) are all merged directly into my application, the final result was even smaller (e.g. [I'm guessing] 1.0 MB)

Presumably no... As I've wrote, to many things to downgrade, to little time to do them...

It simplt dosen't work Out-of-the-box on downgrade framework...

If you

really want

, I can send you the source, so you'll be able to try downgrading the framework to .net 2 yourself...

Can't ague over this one...
[Android General] Truepeace:
Still the same thing, I run the app, a loading icon appears for 1-2 seconds than nothing happens. No errors, no process in task manager. I didn't know how to find it in Windows event logs (if it exists there).
[Android General] dmagician:
to view Logs:

Windows Orb-> on the search-bar type "Event Viewer"

on the left pane, expand "Windows Logs".

In order to see only recent, you should right-click on the "Application" under the Windows-Logs, then select "Clear Log", and on the popup, you should see 3 buttons, Save And Clear, Save, Cancel, and select one of the first two -- either "Save and Clear" if you want to save before clearing, or "Clear" to just clear.

Then launch the Apk-Spy and after it had been closed (not visible on task manager) return to the Event viewer and check the Application logs for any entries with Red circle (=error) or yellow triangle (=warning) with Exclamation marks in it, these are the ones to check if related to my app.

If there are any, verify those came from ApkSpy, copy them and post them here (make sure no private info -- by any chance -- is linked).
[Android General] TheDrive:
Thank you dmagician for your answer! I'll try to analyse and answer as soon as I would get a free hour.

But just one moment I should point right now. It seems you can't realize WinXP DOES SUPPORT .Net 4.0 crap. It does NOT officially support just a .Net 4.5 crap provided w/Vista/7 out of the box. That's the problem I reported at the beginning of my previous post.

(Please do NOT confuse .Net crap with your app that is definitely NOT the crap.)

M$=Matrix simply 'allowed' some 'omissions' to occure, that's why people who do NOT correctly setup their .Net IDE DO compile their binaries for 4.5 being sure they compile for the .Net 4.

I, myself, have no any experience programming any .Net apps, just some hacking/patching experience. I do not even know how this monster .Net IDE looks at the screen. My hate to the 'fake techs' is too high so I can't overcome the internal resistance and learn enemy's arms. It's my omission, I know. But even this omission didn't prevented me to explore some binaries and successfully patch some apps claimed to support .Net 4 to definitely support .Net 4, not Just .Net 4.5. Sure you'll not believe but some .exe's have just an .exe headers which lead XP to refuse to execute the binaries at all. (at the system level, 'incorrect OS version required in the header, this is not your case).

Matrix propagate the good thing is the simple thing.

In the real world simple means just simple, this doesn't means good, as far as good doesn't means simple. :)

M$ foolish devs,. Devs foolish users. M$ gets the profit. Matrix does its work...
[Android General] bovirus:
[MENTION=489865]dmagician[/MENTION]

Thanks for you app.

Could I help you to translate it in other language (ex. italian)?

Which programming language are you using to develop this application?

Which ius the latest version of appt.exe compatible with you app?

I tested it with appt.exe v. 26.0.0.rc2 but your app didn't recognize it as compatible.
[Android General] Eternal99:
Nice

Works great, Windows 7 Home Premium x64 :good:
[Android General] plapic:
When checking an apk that was created using Apk Manager I get

is not a valid Apk!

Message:Parameter is not valid.

Stack Trace:

at System.Drawing.Image.FromStream(Stream stream, Boolean useEmbeddedColorManagement, Boolean validateImageData) at System.Drawing.Image.FromStream(Stream stream) at ApkSpy.Aapt.get_ApkIcon() at ApkSpy.ApkSpyMainForm.LoadApk(String sApkFileName, Boolean bFromTextBoxChange, Boolean bFromMainFunc, Boolean bFromRefreshButton, Boolean bFromBrowseButton)
[Android General] mooms:
Where is the download link please ?
[General Questions and Answers] GoranTornqvist:
Been looking for this awhile bit havent found any.

Example: weekdays between 06 and 09 for feed X

Suggestions?
[General Questions and Answers] diestarbucks:
Here is a great place to ask about/discuss apps:

[DISCUSSION][REVIEWS] Consolidated App Reviews, Recommendations & Discussions Thread

:good:
[Nexus 5 Q&A, Help & Troubleshooting] Garner:
Nexus 5 wont boot into Paranoid android, i was obviously rooted with CWM installed, i wiped the device installed a fresh copy of paranoid android then decided to do a internal storage wipe the fastboot oem unlock way. I did the wipe and rebooted but its stuck in Paranoid androids bootanimation? Can anyone help here?
[Nexus 5 Q&A, Help & Troubleshooting] gee2012:
Push or sideload a custom rom or flash the stock image i`d say. Or try a data factory reset in recovery first.
[Nexus 5 Q&A, Help & Troubleshooting] Garner:
Thanks, I have done it the above way for some time now with various nexus devices, cant understand why its failed this time?
[Nexus 5 Q&A, Help & Troubleshooting] gee2012:
Maybe the OS got corrupted by the lock/unlock action. I personaly would never recommend that anyway.
[Nexus 5 Q&A, Help & Troubleshooting] Garner:
Possibly, what i did notice was that when it entered recovery after oem unlock CWM threw alot of mount errors up
[Nexus 5 Q&A, Help & Troubleshooting] gee2012:
I would start from scratch and flash the stock image including userdata.img for a full wipe to erase all errors.
[Nexus 5 Q&A, Help & Troubleshooting] Garner:
Gather i need the stock image from here https://developers.google.com/android/nexus/images#hammerhead never had to return to stock like this before
[Nexus 5 Q&A, Help & Troubleshooting] gee2012:
Yup KOT49H, good luck mate. Hope that will fix it.
[Nexus 5 Q&A, Help & Troubleshooting] Garner:
Quick question can i flash paranoid android from adb sideload never used that feature before?
[Nexus 5 Q&A, Help & Troubleshooting] bitdomo:
You have to do a facotry reset in cwm. I dont really know how cwm works but in twrp there are two options to wipe /data. The first ine actually wipes /data and reformats it while the second option just delete every file and folder except the /data/media folder which is the sdcard. You need to find the first option in cwm. Normally after unlock bl you should let the android boot up because the stock recovery does the formation right after the first boot of oem unlock.

Tapatalk-kal küldve az én Nexus 5-el
[Nexus 5 Q&A, Help & Troubleshooting] gee2012:
Sure, but you would also flash the Gapps then in sideload too i guess. I would flash stock first however to restore the phone and partitions back to normal.
[Nexus 5 Q&A, Help & Troubleshooting] Garner:
Did fastboot reboot but it just booted to recovery
[Nexus 5 Q&A, Help & Troubleshooting] gee2012:
Try fastboot reboot bootloader.
[Nexus 5 Q&A, Help & Troubleshooting] bitdomo:
I think that fastboot reboot command overwrote the commands stored in the /misc partition which tells the phone to start recovery and to a factory reset.

Tapatalk-kal küldve az én Nexus 5-el
[Nexus 5 Q&A, Help & Troubleshooting] Garner:
Now when it goes to reboot it says root is missing? root device?
[Nexus 5 Q&A, Help & Troubleshooting] gee2012:
Yes, press install root if you flashed PA.