Eclipse app for Android: run with a real certificate

Is there a way to force the start button to use a real signature certificate instead of a debug? I want not to remove the "common user" applications from the emulator before installing a copy of the development.

I already know that I can export a signed copy, but I would prefer to have the automatic creation of a signed copy / start on the emulator

+6
source share
1 answer

I assume you are using Eclipse.

First add Ant support to your project by running the "android update project -p". inside the dir project.

Then create custom targets in the build.xml file line by line (not verified):

<target name="install-release" depends="release"> <sequential> <echo>Installing ${out.release.file} onto default emulator or device...</echo> <exec executable="${adb}" failonerror="true"> <arg line="${adb.device.arg}" /> <arg value="install" /> <arg value="-r" /> <arg path="${out.release.file}" /> </exec> </sequential> </target> <target name="run-release" depends="install-release"> <!-- not sure what goes here --> </target> 

You can then expand the build.xml file in the Files panel and add the launch target to your toolbar. This will at least result in an installation from the toolbar.

You will need to set the appropriate properties for the signature to work (key.store, key.store.password, key.alias, key.alias.password), as described in Creating and running from the command line

Hope this helps.

0
source

Source: https://habr.com/ru/post/885942/


All Articles