[Q&A] How to debug Android apps loaded on Windows 10 Mobile - Windows Phone 8 Development and Hacking

My local public library uses an app to distribute its eBooks and Audiobook. The app is called Hoopla digital. I have contacted them about their plans to port the app to W10. They said they have no plans to do so.
I downloaded the APK of the app and installed it onto my phone. It launches, initializes, and then immediately crashes.
I'm a pretty decent developer, however, I know next to nothing about android. Is there any way to capture the crash and investigate if it's something Windows related or if it's simply relying on Google Play APIs? Are there any resources available to do some basic troubleshooting of the crash? It would be great to not have to buy a cheap android in order to listen to my Audiobooks in the car.
Thanks for any guidance

Do:
Open Settings enable debug mode, and pairing, then on the computer load wconnect.exe usb in a command prompt (you need the Project Astoria PC zip found in another post.) and then debug like normal: adb logcat

Perfect. I'll take a crack at it. Hopefully it's something easily fixable!
Thanks!

donot install apk to your phone,use the stores app

dugu1248 said:
donot install apk to your phone,use the stores app
Click to expand...
Click to collapse
Stores app does not work with APKs yet

Related

Tasker

I had high hopes (very high!) that I could get tasker to run on the ouya, unfortunately I have not had any luck as of yet.
Maps was installed, as was a few files that needed to be manually installed in /system, but unfortunately neither seemed to work.
Has anybody had any luck? Please let me know if you did, I had big plans for this little system and tasker was a key piece to it.
Thanks.
Well, apparently I'm batting 1000 tonight on threads.
A reboot allowed instillation of the tasker trial version.
It looks like everything works, or as much as you would expect for the ouya. I did two test tasks. First was just a screen popup, which obviously worked great. The other was a reboot to test root access, and this also worked perfect (say hello to automated weekly reboots!).
Now, to see if autoremote can be made to work, and then on to autovoice or utter! and the inherently difficult prospect that will be.
Snoman002 said:
Well, apparently I'm batting 1000 tonight on threads.
A reboot allowed instillation of the tasker trial version.
It looks like everything works, or as much as you would expect for the ouya. I did two test tasks. First was just a screen popup, which obviously worked great. The other was a reboot to test root access, and this also worked perfect (say hello to automated weekly reboots!).
Now, to see if autoremote can be made to work, and then on to autovoice or utter! and the inherently difficult prospect that will be.
Click to expand...
Click to collapse
Please periodically update this thread with your progress? Curious to follow suit, though don't have the time to help in the investigations
A few issues with tasker itself, such as I can't download from Google play, it won't recognize my original order #, i can't find 'my' .apk, basically can't get my purchased version working and am stuck on the 7 day trial version. As for functionality it works great.
Current main task is to start XBMC if Autoremote received a certain message, as well as sending a message when xbmc is open and a different one when it closes.
On my tablet when I fire up the Yatse app, Tasker checks to see if XBMC is running, if not it displays a popup asking if I want to start xbmc. If I say yes it sends a command through autoremote which is what triggers tasker to start xbmc.
OK, a few things I have found.
Originally I could not download Tasker through the Play Store as the Ouya showed up as 'incompatible', however after a Play Store crash that removed it from my system, and subsequent reinstall, I can now download it from Google Play. I don't know why this was, but when I first did the play store mod I didn't have busybox installed, I did for the reinstall. I don't need the play version however as I was able to get the 'Trial' version validated, which is good as the direct download has added functionality (that I will never use). To validate the trial version you need to find the 15 digit order number (not the 16 digit Google provides in the email). This is best accomplished by using the 'Contact Crafty Apps' link in the email, and then finding Tasker, the 15 digit order number should then be visible. This only works if you bought Tasker before March 2013 though, otherwise you will need the Play store version (thanks Google :/)
To get Tasker to run you need to be Rooted and move two Google files to the proper location on the Ouya. Tasker will not run without the Google maps framework and oddly enough installing Google maps doesn't install the full framework. You can get these files by flashing the gapps package with CWM, or just install the two files themselves. To get the files unzip the gapps package, I think in the 'framework' folder. You need to move com.Google.android.maps.XML to /system/etc/permissions, and move com.Google.android.maps.jar to /system/framework. This WILL require you to remount /system as writeable. ES File Explorer worked for me (download an old version, 3.0.4 maybe, as the newest Play store version crashes), it was the only free root access file manager to work for me. Remount /system back to the way it was. BTW, I did all of this without adb, it was all done on the system itself with some help from dropbox (unzipped on my nexus, it was easier).
Tasker itself works great and I currently have it sending messages through autoremote to update variables on my other devices, this triggers a popup that asks if I want to start XBMC when I start my XBMC remote app (only if XBMC isn't running). If I select yes then it sends an Autoremote message that triggers a Tasker profile that starts XBMC. I also have Utter! setup to trigger the 'Start XBMC' Auto remote message on my Nexus
My next two tasks will be for an automatic nightly reboot, and a task that sends the Ouya into sleep mode when I start my alarm clock app on my nexus. I'm still trying to think of good ideas to implement. I hope to get a microphone working to use voice commands directly on the Ouya, and my dream is for an IR blaster to work so the Ouya could turn on my TV with voice commands (old TV)
Snoman002 said:
OK, a few things I have found.
Click to expand...
Click to collapse
Wow! I really commend you for your perseverance and willingness to share your experience and findings...people don't realize how much this helps others.
Scenes Working
Hey Snoman002,
I have my Ouya rooted and found a Tasker that can be used to mount and unmount NFS mounts. I have the two google maps files installed and have version 4.2 of Tasker installed. When i try to open the scene or even create a new one Tasker closes and goes back to the Make Menu. Have you seen a similar thing with the version you have been using ?
Thanks
Techhhead33
Techhead33 said:
Hey Snoman002,
I have my Ouya rooted and found a Tasker that can be used to mount and unmount NFS mounts. I have the two google maps files installed and have version 4.2 of Tasker installed. When i try to open the scene or even create a new one Tasker closes and goes back to the Make Menu. Have you seen a similar thing with the version you have been using ?
Thanks
Techhhead33
Click to expand...
Click to collapse
Sadly, other than getting it running initially I have done nothing more with Tasked on my ouya.
Your trying to make a scene in tasked? Scenes are really only for overlays and custom menus (drastic oversimplification I know). I fail to see the need for the complication of a scene just for mounting and unmounting. Perhaps you could change the tasker task to a simple popup menu (which now that I think about it may be a scene...). Popups worked for me, but that's all I can say about it.
Sorry, I'm not here much anymore as my ouya just runs xbmc now. I will try and check in more often.

Google App engine with android studio

Is there a well written tutorial out there for using these two?
I'm trying to write a simple image sharing program that would use google app engine's data store to pass the images around from
the android devices.
I followed a tutorial in github.
Can't link the tutorial but a google search on 'helloendpoints' will turn it up.
at step 2, where he connects the android app to the back end, the code he supplies is filled with errors, and I don't udnerstand it well enough to
try to debug it. He also doesn't specify where to insert the class, in the back end module? In the cliend module?
No matter where I put it it seems to be missing a whole set of libs, and doesn't offer to import them.
Would any of you guys talk me through this?
So far I got the standard 'template' backend (Mybean etc.) and deployed that locally. I deployed it onto a google app engine project I made. But I can't actually connect it to my app,
Also once deployed I have no idea if it's working.
When I hit "say hello" it doesn't say "hi, <inserted text>" like it does when I deploy it locally. I'm thinking maybe that result is being sent somewhere but I'm not sure where on appengine's dev console to find it.
Please help.

Peloton Spin Bike

I have a peloton Spin Bike, and it can with a screen where your able to stream workouts on through the companies subscription. The screen is operated by Android Jellybean: 4.1.1.
OK, so here's my challenge for anyone that,s willing to accept!
Problem: when you turn on the peloton bike screen your locked into the peloton app, and the you can't get out of the app to do other things... For example, watch YouTube or something else.
Challenge: I'm sure this is an easy hack, but if anyone can figure out how to unlock this. You be compensated for your efforts!
I'd love to be compensated for the effort, but really you can just Google the command sequence as it's pretty popular to install Netflix and watch movies rather than consume the Peloton content.
I successfully extracted the Peloton APK from the bike and installed it on my Galaxy S6. The issue is that it won't go past the login screen. I figure one of two things is happening. Either the app is calling a procedure to validate that hardware on the bike is working before logging in, or two, the Peloton server is validating the login request is coming from a bike instead of another device via a token or validation of operating system version, etc.
pretty simple to do, go to about section of the bike, tap on the lower right corner area of the about screen, which should take you out of the app into a main android area....after that open the browser, download apk installer and then download whatever apps you want to add to the tablet
hey guys, just bought a used peloton and have two really specific questions:
- has anyone reset all the data through settings? If so, what happens?
- I'm not seeing the invisible button that everyone is describing here and in other forums. I also have developer options on so I can see all of the hit areas. Am I missing something?
Thank you!
Hack Peleton
conspawn said:
pretty simple to do, go to about section of the bike, tap on the lower right corner area of the about screen, which should take you out of the app into a main android area....after that open the browser, download apk installer and then download whatever apps you want to add to the tablet
Click to expand...
Click to collapse
But once you are in the about screen, how do you download new software? I dont see an option anywhere to download. I only see the disable ap button.
My Peloton console won't go beyond searching for network if I use Wifi, or download updates if I use ethernet. I don't think it's a hardware failure and had been looking for a ROM to load it. Anyone backup their console? It's a first generation tablet running lollipop.
Any chance someone figured out how to do this with the Peloton Tread? Its running Android 7... I can get to APKmirror.com and click download, just feel like they went to an extra effort to hide / disable downloads... or maybe a way to side load via USB, I can't get a USB device to recognize...
jimmyLS said:
Any chance someone figured out how to do this with the Peloton Tread? Its running Android 7... I can get to APKmirror.com and click download, just feel like they went to an extra effort to hide / disable downloads... or maybe a way to side load via USB, I can't get a USB device to recognize...
Click to expand...
Click to collapse
Did you ever figure this out?
QwertyMC said:
Did you ever figure this out?
Click to expand...
Click to collapse
If you connect via USB you can place the APK on the device. My only issue is that it wont install as its an unknown source and i am unable to allow unknown sources to install.
if youre on a peloton running nougat (android 7.0), from the login screen you can go to:
wifi (icon, top right) --> system settings --> legal (licenses etc.) --> and click any button that says homepage.
it will bring you up in a browser from which point you can download a third party launcher such as Nova and use it to display a stock android UX (homescreen). once you have this you might choose to download an apk for google play, or even just grab apks (app files) via google searches. (for example: google: Netflix android 7.0 apk --> then follow links to download).
This does not work for me. Clicking download does nothing. Any ideas.
New Peloton screen not allowing third party apps
atthedustin said:
if youre on a peloton running nougat (android 7.0), from the login screen you can go to:
wifi (icon, top right) --> system settings --> legal (licenses etc.) --> and click any button that says homepage.
it will bring you up in a browser from which point you can download a third party launcher such as Nova and use it to display a stock android UX (homescreen). once you have this you might choose to download an apk for google play, or even just grab apks (app files) via google searches. (for example: google: Netflix android 7.0 apk --> then follow links to download).
Click to expand...
Click to collapse
I just got the bike the other day and tried through both downloading the app directly onto the peloton tablet (as you recommended) and through ADB, followed the instructions of this :
https://www.reddit.com/r/pelotoncycle/wiki/index/howto/root
but it would just "hang"
I then learnt to add -p when installing through ADB and discovered this error:
Failure [INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION: Failed to parse /data/app/vmdl1690417893.tmp/base.apk: AndroidManifest.xml]
I have tired using ADB to install the app on my android phone and it worked fine - which means it's not the app - I believe!
Please help!!!
Sn4pdragon said:
New Peloton screen not allowing third party apps
I just got the bike the other day and tried through both downloading the app directly onto the peloton tablet (as you recommended) and through ADB, followed the instructions of this :
https://www.reddit.com/r/pelotoncycle/wiki/index/howto/root
but it would just "hang"
I then learnt to add -p when installing through ADB and discovered this error:
Failure [INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION: Failed to parse /data/app/vmdl1690417893.tmp/base.apk: AndroidManifest.xml]
I have tired using ADB to install the app on my android phone and it worked fine - which means it's not the app - I believe!
Please help!!!
Click to expand...
Click to collapse
Did you manage to resolve this? Having the same issue on my console running Android 7. Also tried the adb commands to allow unknown sources as it's not available to be set in UI
DB555555 said:
Did you manage to resolve this? Having the same issue on my console running Android 7. Also tried the adb commands to allow unknown sources as it's not available to be set in UI
Click to expand...
Click to collapse
do you active subscription? if not you need to get it to install apps.
radixsort said:
do you active subscription? if not you need to get it to install apps.
Click to expand...
Click to collapse
Do you need to maintain the subscription to utilize apps? Wondering whether to get a month trial or just pay for a month to get the apps I want on there and then cancel.
coronanlime said:
Do you need to maintain the subscription to utilize apps? Wondering whether to get a month trial or just pay for a month to get the apps I want on there and then cancel.
Click to expand...
Click to collapse
You don't need active subscription to use apps that you have already installed. Sadly, The problem is most of the apps have new versions and old versions are deprecated within few months.
Definitely try Wired XDisplay as DC Rainmaker's post, to doscreen mirror from your laptop.
How to Load Zwift or TrainerRoad on a Peloton Bike: A Geek's Guide
This post started almost 100% for my own reference as a simple notepad file. But enough people asked about my random Instagram stories using it for Zwift and TrainerRoad, that I figured I’d write it up into something semi-cohesive. While
www.dcrainmaker.com

guide : Gadget bridge for smart watches and bands(Mi Band 6)

Gadget Bridge for Mi Band 6 Privacy oriented and Open source build
A free and cloudless replacement for your gadget vendors' closed source Android applications.
i am using it as a daily driver, and they gave recent support for mi band 6, and i am loving it INFO
Gadgetbridge, an open-source app that focuses on removing the manufacturer out of the equation.
Gadgetbridge is an android application that allows users to use various smart bands such as Pebble, Mi Band,
Amazfit Bip, HPlus ZeBand, XWatch, and more, without constantly utilizing the vendor’s closed source application.
It also does away with the need to create an account and transmit your user data to the vendor. What’s more,
the open source nature of this app allows users to be confident about how their data is handled and ensure that it
does not leave their devices. -- XDA
Changelog 0.57.0. Initial limited support for Mi Band 6
Thanks to a PR, we recently merged, Gadgetbridge 0.57.0 is the first release which supports the new Mi Band 6.
We call support limited, since it does not yet support flashing the firmware or watchfaces and not everything is tested yet.
But thanks to your donations we were able to order one, which will (once it arrives) enable us to test and improve device support!
--Gadgetbridge team
Credits for the Mi band 6 support
Jhey: https://codeberg.org/jhey
link for built apk with mi band 6 support
https://drive.google.com/file/d/1gJmleH4-QisotX7GNAsxxSZXZjVU9505/view?usp=sharing
Your Mi band should be Connected to the Mi Fit App with your Mi Account, this is required to get the
Bluetooth Authentication key for our MI Band which will used later in the process, also do not unpair from Mi fit app
Step 1: Building the app from source Application home page
https://gadgetbridge.org
Install Android Studio
https://developer.android.com/studio
From Android Studio open SDK manager, download and install SDK 29(Android 10)
Install python3
https://www.python.org/downloads/
Clone the repo to Downloads folder from this url
https://codeberg.org/Freeyourgadget/Gadgetbridge
Create a local.properties file in the Gadgetbridge folder its contents should contain sdk location
sdk.dir = /Users/vamzi/Library/Android/sdk
Lets start with the APK build process
open Terminal, Change Directory to the gadget bridge folder using
cd ~/Downloads/gadgetbridge
and execute this command
to start the build process
./gradlew assembleDebug
or
./gradlew assembleRelease
Step 2: Obtaining the Authentication key
Clone the following Repo:
https://github.com/argrento/huami-token
Open terminal change directory to the cloned huami-token folder:
cd huami-token
Install the python dependencies using the following command:
pip3 install -r requirements.txt
Start obtaining the auth key :
python huami_token.py --method xiaomi --bt_keys
Copy the link generated under the script to a browser, login to your MI Account which is
bonded to our Mi band, copy the link generated after you login to the python terminal,
and press enter This will generate the Auth_Key copy it and save it. send that authkey
to your android device via mail or message
Step 3: Install the Generated or Downloaded Gadget Bridge apk give all the required
permissions and Notification access too, Before we start the pairing process, disable
or uninstall Mi Fit app, so it doesnt interrupt our GadgetBridge pairing proces.
on Gadget Bridge, start by tapping on the add button, give the location access,
as android needs location access to scan for bluetooth devices. tap on Start discovery
this should display the Mi band 6 tap and hold on it, to start configuring the settings.
paste in the Authentication key and change other settings to your liking.
tap on the back button, this will start the pairing process, and should add your mi band 6 to the application.
this app is a good alternative for the Mi Fit app, and this makes it possible to go thorough your health and activity stats on your device without the need to share it with the device manufacturer. Donate to Gadget bridge Devs for making this awesome app https://liberapay.com/Gadgetbridge/donate and if you are good at coding, Contributions are welcome, be it feedback, bug reports, documentation, translation, research or code. Feel free to work on any of the open issues; just leave a comment that you're working on one to avoid duplicated work. --devs at GadgetBridge
Sorry, but at my opinion it is useless at this time for normal users.
Without the right knowledge, i can't pair with miband 6.
And most of the features are not usable. So notify&fitness seems to be the better choice.
Icetea said:
Sorry, but at my opinion it is useless at this time for normal users.
Without the right knowledge, i can't pair with miband 6.
And most of the features are not usable. So notify&fitness seems to be the better choice.
Click to expand...
Click to collapse
i agree with you icetea, but the option is still there and might be helpful to for people who are looking at it, also as it is an opensource project, if there is enough people ready to contribute for this project, it has a lot of scope
thx but i will stay at stock app.
Icetea said:
thx but i will stay at stock app.
Click to expand...
Click to collapse
That is your wish mate, for people who dont want their data to be mined by companies this is a good alternative
Haha... I think, using a android phone is not the right way to prevent datamining.
Btw. on reddit i have found a page with a miBand 6 ready compiled version of gadgetbridge as a download link. But have not tried it because as i understand, it seems not be able to work without auth.key.
Icetea said:
Haha... I think, using a android phone is not the right way to prevent datamining.
Btw. on reddit i have found a page with a miBand 6 ready compiled version of gadgetbridge as a download link. But have not tried it because as i understand, it seems not be able to work without auth.key.
Click to expand...
Click to collapse
Lol u r right ice tea, some people are using android without gapps, and getting ur data mined by google is much better than getting mined by these chinese companies , reddit thread is most likely mine i guess
I have tried to use this version from f-droid but it does not pair my watch.
Authkey doesn't match. I am out now... I have no time for further experiments.
Icetea said:
I have tried to use this version from f-droid but it does not pair my watch.
Authkey doesn't match. I am out now... I have no time for further experiments.
Click to expand...
Click to collapse
Loll sorry mate, f droid updates take a while to update the latest app from the development repo, also they are planning to add alternate release channel with latest updates on their development page.
Gadgetbridge | F-Droid - Free and Open Source Android App Repository
Use your Pebble/Bip/Miband/Hplus/[more] and keep your data private!
f-droid.org
That seems to be the same version as yours. V0.57.0!
Thank you for the guide!
I hope more people could contribute on gadgetbridge, bc the cloudless idea is great to keep your data save!
Icetea said:
Haha... I think, using a android phone is not the right way to prevent datamining.
Click to expand...
Click to collapse
it depends on how you use it
Will try tomorrow my new Bip u pro to connect with gadgetbridge, my Bip s already works with it without problems. Hopefully they can expand the features.

Android Wear app debugging with mobile application connectivity issue

Hey guys
I've created an android application with a wearos module contained within it. This might be a rookie issue given that I'm new to android development (I'm from a web dev background) but I'm struggling to get my wear and mobile apps to communicate, when they are in debug mode.
Basically, I have written some code in the mobile application to detect if the wearOS app exists on a connected watch, and if it does, allow the user to monitor the sensor activity on the watch.
When I run the mobile application debugger on a physical device through USB, I see it doesn't package the wear application with it and so I cannot install the linked watch application on my watch (which is linked to android studio through ADB over wi-fi). While the mobile device debugger is running, I run the debugger for the watch app too and the app then runs on the watch, but it doesn't look like the code in the app is actually detecting the watch. This functionality does work though when downloading the published app through the play store, and then installing it on the watch through the play store too using the 'apps on your phone' menu on my watch.
How can I achieve the connectivity between the watch and phone apps through the debugger? This is a massive pain point for me and I can't seem to find anything online that addresses this and that describes how best to set up debug environments so that these apps are linked on the 2 devices and can communicate in debug mode. My mobile device app is heavily dependent on detecting watch sensors and interacting with them and so I need an efficient way to test this.
Thanks!

Categories

Resources