After 3 days of googling I am at my wits end witho no solution to this.
I have written a System app with System privileges (INSTALL_PACKAGE permission) on android. It is a part of a firmware being developed.
Now I want to test it on my device. I am just not able to do it. I have a rooted device with android 4.2.2.
I tried installing an it by copying it on /system/app But its not showing as installed. I am using eclipse debug keys currently. Do i need to sign it with android signature keys?
I tried doing the same with other market apps and was able to install them as System app this way but not my own app.
Pls suggest.
Thanks
Related
I would like to capture the traffic of the IONOS App (https://play.google.com/store/apps/details?id=com.oneandone.ciso.mobile.app.android&hl=de&gl=US).
The reason is simple: I need the API to configure my server and the support told me that i have to find it out by myself.
So I modified the apk and after the login it crashed, never had this behaviour before...
I tried to install the original apk file and it also crashed. (adb install <name.spk>)
(yes, i turned of signature verification for apps installed via usb.)
Any ideas how I could figure out the reason the this issue?
Other apks I could install this way without any problems.
Thanks for your help
Max
As I have stated in the title I'm struggling with .apk I cannot install application on my phone I'm getting app not installed. But when installing via usb I'm able to install application on the emulator phone. It’s always showing App Not Installed on mobile phone.
When I run application via AndroidStudio to USB the application has been installed. I do not know where I should looking for issues. May be someone had the similat issue.
There are two things you can try:
First of all build your apk by Build/Build Bundles/Build APK and not just by creating apk as a side effect of simply running the app under Android Studio
Make sure no other flavors are installed on your device - sometimes devices offer "Uninstall for all users" - that's what you should be looking for.
I made an Android app using Android studio, deployed and ran it directly by using my mobile running Oreo.
It installed successfully. But later I tired to share the APK from my mobile to other mobiles. But none of them are able to Install it.
However, if I build the APK and share the app-debug.apk to other mobiles. It Installs successfully.
I can't build APK and share app-debug.apk it everyone.
I usually deploy it in my mobile, share APK(which used to work before)
Can anyone please help
Please excuse typos, I have typed from mobile.
There might be a signing issue. Is your app signed? The default signing is the debug signing. When you just build and deploy or run it on a connected device, it is signed by default as a debug sign.
If it is not uniquely signed, then running or installing on other devices might not be possible. Look at the app signing instruction and guide by Google, here, if you wish to distribute your app on other devices.
Another problem might be in the security authorization of other devices. Your device on which you are building has the developer options turned on. To run and install unsigned apps you'll need to activate the developer options in the device you want to run it on. Look at this link about Developer Options and how to turn it on.
by default the Android Studio packages just the needed files and installs the app in your mobile. If you share to other mobiles, the app will not install in few devices due to a few reasons like OS version, files mismatch, SHA keys mismatch, etc.
However, if you build the APK and share, the APK is equipped to be installed in any device starting from the minimum SDK version to the target SDK version.
I recently purchased a Moto Z Play Droid Edition which is incapable of being rooted or the bootloader being unlocked. In an attempt to remove bloatware, I have removed several apps. I managed to "uninstall" apps following this XDA tutorial, however without root, that merely disables them from the user.
I have used an old version of Google Calendar for several years, and I wanted to be able to install the same .apk that I have used, however Google Calendar was installed as a system app on Stock Android, so I would need to downgrade it. When I try the simple commands of adb install -r -d -f calendar.apk I get
[INSTALL_FAILED_VERSION_DOWNGRADE]
Because I was unable to fully uninstall the Google Calendar app that came with the stock ROM, there must be some remnant that prevents me from installing an older version.
Is there any way to progress and install this apk? Do I need to change something in the AndroidManifest.xml in order to proceed? Is that even possible with a Google app, which is most likely encrypted?
Any other suggestions?
You would need the source to be able to modify the manifest and rebuild. You would need to change the package name, that's the only way to do it.
Is there a way to install an application I'm in the middle of development on to my phone without going through all the steps of signing it, releasing it etc.? (Without the phone being connected by USB)
I'm still very much mid-development, but I need to demonstrate the progress I've made so far to other members of my team away from access to my development environment, so I need to install it on my phone.
Inside your project bin folder there is an apk file. If you copy that file to a device you can then install the app from it.
When I am in your situation I throw my apk into dropbox and send out links for people to download it.
You can try adb wireless http://www.helloandroid.com/content/connect-your-android-phone-adb-wireless
But i don't really see why you cannot export and install an unsigned app?
At&t (and possibly other carriers) set up the firmware to prohibit sideloading, so you need USB connection if that is your carrier. Otherwise, just put the apk on a web site and enable installation from unapproved sources.
See for the purpose of debugging you can use the adb-wireless which provides the same functionality as the use of a USB.
Also for installing it on the phone directly you can try this and see if this helps.
Go to Settings -> Applications
Select the Unknown sources option. This allows you to install apps on your phone even if the app is not released into the Android Market.
If you are using Eclipse or any other IDE just click on the project and run as android application. The app shall get installed directly. ( Installation shall not depend upon whether you are using adb-wireless or a USB)