Can't debug [INSTALL_FAILED_INVALID_APK] - Sony Xperia P, U, Sola, Go

I have a sola, running the JB port from munjeni.
I'm devlopping an app and I get
Failure [INSTALL_FAILED_INVALID_APK] when trying to debug on the phone. USB debug activated of course.
I see this message as well DeviceMonitor: Adb rejected connection to client '21134': closed
My Nexus 7 when i did that, aksed me to autorize my PC. It seem the sola just deny acces ?
Is that some problem with the JB port ? Common problem with the sola ?? Invalid apk, not really a usefull message.
I'm using intelliJ, and here is the manifest, just in case :
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.MyLauncher"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk android:minSdkVersion="14"/>
<application android:label="@string/app_name" android:icon="@drawable/ic_launcher">
<activity android:name="LauncherScreen" android:theme="@android:style/Theme.Wallpaper.NoTitleBar.Fullscreen">
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.HOME" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
</application>
</manifest>

I did some test, put akp on SD, install, start -> all OK.
So apk is valid for sure, and compatible. Had to be some securitty thing bloking it.

EowynCarter said:
I did some test, put akp on SD, install, start -> all OK.
So apk is valid for sure, and compatible. Had to be some securitty thing bloking it.
Click to expand...
Click to collapse
Did you solve?

Yes, got myself a nexus 4
Joke aside, look around in the developer setting, at adb and all.
And the max / min sdk version.
You might also want to try adb install name.akp see what happens.
What phone and rom are you using exactly?

EowynCarter said:
Yes, got myself a nexus 4
Joke aside, look around in the developer setting, at adb and all.
And the max / min sdk version.
You might also want to try adb install name.akp see what happens.
What phone and rom are you using exactly?
Click to expand...
Click to collapse
No way....same extact error with adb install.
My phone is a Zopo zp998 with rom of 28/3/2014
Before the rom update it was working fine!

Related

Editing AndroidManifest.xml .. formatting / localized to Chinese(?), Go SMS Pro Theme

Hi everyone,
I've created a GO SMS Pro theme using their webtool,
but it appears to have yet to implement various common aspects of functionality. I want to be able to modify the AndroidManifest.xml file myself, primarily to add Airpush (the presence of which I let people know of from the beginning), but the formatting is quite garbled. I'm guessing this may be due to the localization to Chinese that the Google Play developer console reports. Does anyone have a functional, readily editable version in English with all the required information for a GO SMS Pro Theme? I want to be assured I have all the required information, rather than hacking together another xml file with Eclipse. I figured I'd install the Chinese language on my computer, but it appears Microsoft did not include such functionality in Windows 7 Premium (64-bit). I've download other GO SMS Pro themes with Airpush, figuring I could use their AndroidManifest.xml and mail.xml files as templates, but found the same formatting / editability issue. Thank you for your help!
I've since found kantbstopped519's post at the end of page 3 in the following thread: http://forum.xda-developers.com/showthread.php?t=1125626&page=3
and used what was posted:
<?xml version="1.0" encoding="UTF-8"?>
<manifest android:versionCode="5" android:versionName="1.0" android:installLocation="auto" package="com.jb.gosms.theme.kxnt.dark"
xmlns:android="http://schemas.android.com/apk/res/android">
<application android:label="@string/app_name" android:icon="@drawable/jb_smsmms">
<activity android:theme="@android:style/Theme.Dialog" android:label="@string/app_name_desc" android:name=".GoSmsInstallDialog" android:excludeFromRecents="true" android:launchMode="singleInstance">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.INFO" />
</intent-filter>
<intent-filter>
<action android:name="com.jb.mms.theme.others" />
</intent-filter>
</activity>
</application>
<uses-sdk android:minSdkVersion="4" />
</manifest>
Click to expand...
Click to collapse
It appears this functioned for kantbstopped519.
I used this as a template (made no additions of Airpush or anything such) and made the supposedly appropriate changes, also changing anything referencing @string to plain text directly in AndroidManifest.xml. Now I'm getting that informative "The server could not process your apk. Try again."
I've been making various changes, deletions, and resigning after each change, to repeatedly the same message. Only re-adding my original garbled-de-goop AndroidManifest.xml file and resigning has thus far resulted in a successful processing upon upload. Could this have something to do with the resources.arsc and/or classes.dex files in the root of the apk?
If the APK is already compiled then you will need to decompile it with apktool to get the XML readable.

Android Custom Permission Issue

Hi I created a test android app that does two simple things, open the browswer and open the calculator
My main problem is that once I put a custom permission inside the mainfest, I can no longer open my own application. The app does appear on the launcher screen but when I launch it, it will say "App isn't installed". However using a second app and giving it the proper uses and making sure it's signed by the same signature it opens fine.
Here is the manifest for my main app:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.dms_test_app2"
android:versionCode="2"
android:versionName="1.1" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="17" />
<permission
android:name="com.example.test"
androidrotectionLevel="signature" android:label="this is my custom permission" />
<uses-permission android:name="com.example.test"/>
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
androidermission="com.example.test"
android:name="com.example.dms_test_app2.MainActivity"
android:label="@string/app_name"
android:launchMode="singleInstance">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
I understand from logcat that the issue is that the LAUNCHER does not have the proper permission:
E/Launcher( 1392): java.lang.SecurityException: Permission Denial: starting Inte
nt { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0
x10200000 cmp=com.example.dms_test_app2/.MainActivity } from ProcessRecord{b5430
118 1392:com.android.launcher/u0a10002} (pid=1392, uid=10002) requires com.examp
le.test
However if you check my manifest, I clearly declared the <uses-permission> tag.
How can I fix this?
Thanks for reading.
BR,
Ken
Doing this i think u should push it uisng adb or root explorer
I should root to
System apps cant install in package installer
It can only in adb or root explorer
Sent from my GT-S5300 using xda app-developers app
i can install fine through "adb install", my problem is executing the main application from the launcher screen

[Q] How to modify an app to run at system start (AndroidManifest.xml )

Could anyone help me with that? I tried to modify it myself but I'm drawing a blank here, it doesn't wanna run on startup.
Code:
<?xml version="1.0" encoding="utf-8"?>
<manifest android:versionCode="1" android:versionName="1.0" package="biosistemika.pcrplate"
xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<application android:label="@string/app_name" android:icon="@drawable/ic_launcher">
<activity android:theme="@*android:style/Theme.NoTitleBar.Fullscreen" android:label="@string/app_name" android:name=".PcrplateActivity" android:screenOrientation="landscape" />
<activity android:theme="@*android:style/Theme.NoTitleBar.Fullscreen" android:label="@string/app_name" android:name=".MainMenuActivity" android:screenOrientation="landscape">
<receiver android:name=".BootReceiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</receiver>
</activity>
</application>
</manifest>
Thanks.
Benzonat0r said:
Could anyone help me with that? I tried to modify it myself but I'm drawing a blank here, it doesn't wanna run on startup.
Code:
<?xml version="1.0" encoding="utf-8"?>
<manifest android:versionCode="1" android:versionName="1.0" package="biosistemika.pcrplate"
xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<application android:label="@string/app_name" android:icon="@drawable/ic_launcher">
<activity android:theme="@*android:style/Theme.NoTitleBar.Fullscreen" android:label="@string/app_name" android:name=".PcrplateActivity" android:screenOrientation="landscape" />
<activity android:theme="@*android:style/Theme.NoTitleBar.Fullscreen" android:label="@string/app_name" android:name=".MainMenuActivity" android:screenOrientation="landscape">
<receiver android:name=".BootReceiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</receiver>
</activity>
</application>
</manifest>
Thanks.
Click to expand...
Click to collapse
Iam not sure but
is it on external storage may be that is causing the delay
sangalaxy said:
Iam not sure but
is it on external storage may be that is causing the delay
Click to expand...
Click to collapse
No it's installed as an app, not a system app tho.
Benzonat0r said:
No it's installed as an app, not a system app tho.
Click to expand...
Click to collapse
yeah
Iam asking is it on external or internel storage as installed on sd or external storage
there is a permission with write on external so at boot if it want to start I think the external media should start up also
am I wrong?? Iam not sure tho
---------- Post added at 06:58 PM ---------- Previous post was at 06:51 PM ----------
one more thing you have set boot permission to the app
I don't know how
and you can try using any start up applications for that
sangalaxy said:
yeah
Iam asking is it on external or internel storage as installed on sd or external storage
there is a permission with write on external so at boot if it want to start I think the external media should start up also
am I wrong?? Iam not sure tho
Click to expand...
Click to collapse
Oh sorry, it's on internal storage didn't catch that at first.
You're right it should and yet it doesn't I don't know why tho.
sangalaxy said:
yeah
Iam asking is it on external or internel storage as installed on sd or external storage
there is a permission with write on external so at boot if it want to start I think the external media should start up also
am I wrong?? Iam not sure tho
---------- Post added at 06:58 PM ---------- Previous post was at 06:51 PM ----------
one more thing you have set boot permission to the app
I don't know how
and you can try using any start up applications for that
Click to expand...
Click to collapse
Yeah I know but I don't want to use any app for that, I'm doing this for for a friend and his company he works at, and I want the tablet to be as clean as possible. So no additional apps or any sort of bloatware.
Benzonat0r said:
Yeah I know but I don't want to use any app for that, I'm doing this for for a friend and his company he works at, and I want the tablet to be as clean as possible. So no additional apps or any sort of bloatware.
Click to expand...
Click to collapse
mm try with the permissions rw-r-r and 0644 I guess or do a search
sangalaxy said:
mm try with the permissions rw-r-r and 0644 I guess or do a search
Click to expand...
Click to collapse
I've pushed it to /system/app and set permissions to 0644 and the app works but still doesn't boot on start.

[Q&A] [APP][2.2+][ROOT][WiFi] Reaver-GUI for Android

Q&A for [APP][2.2+][ROOT][WiFi] Reaver-GUI for Android
Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer.
Before posting, please use the forum search and read through the discussion thread for [APP][2.2+][ROOT][WiFi] Reaver-GUI for Android. If you can't find an answer, post it here, being sure to give as much information as possible (firmware version, steps to reproduce, logcat if available) so that you can get help.
Thanks for understanding and for helping to keep XDA neat and tidy!
bcmon not insalled
Good day sir(s)
i cant install bcmon it says app not installed
my phone is asus zenfone 4 A400CG
help :crying: :crying: :crying:
It is compatible with galaxy s5?
Sent from my SM-G900F using XDA Free mobile app
please help me
i am open this and start rfa and enable monitor mode,
one error is syntax for scipt send me scipt use android device is 4.2.2 xolo q700
bcmon problame
i have same problame for bcmon
firmware model :not detected
installed tools verion :0
installed fw version :0
i m using xperia l
with lolipop 5.0.2 cyanogen 12
i9100 CM12 RFA BCMON
Hello,
I have installed today Cyanogen Mod 12.1-20150423 to my Samsung Galaxy S2 phone. I would like to try RFA, so I installed bcmon. Mostly it crashes on start up. When not it says "monitor mode enable - Failed" when tapped on Enable monitor mode. RFA won't start an attack. It says "Enabled monitor-mode succesfully on", but that's all ... Nothing else happens ...
Any advice will be appriciated. Thanks
RFA on CM12
Hi there, yesterday I was trying to get it running whole day .. Without result ...
Well, so I rolled back to CM10.1.3 (i am on SGS2 i9100) and it goes without any problem. (Technically) Even the system is stable and running withou any problem.
I am just stuck on "Detected AP rate limiting, waiting 60 secs..." after starting an attack. Do you guys have any solution for this ? I already tried to increase timeouts, but that did not help.
Thanks in advance for any advice
I get a libpcap .so.1 error, dont have a bcmon device
Why I got this message?
gusky651 said:
I get a libpcap .so.1 error, dont have a bcmon device
Click to expand...
Click to collapse
can u upload libpcap.so library file here..
Hey , i downloaded rfa and bcmon , but it shows :
firmware model is not detected, install tools version:0; installed fw version:0
Nothing works , settings doesnt open and if i click on status , it crashes
Sent from my Micromax AQ4501 using XDA Free mobile app
--------------
kyzinet said:
Hi there, yesterday I was trying to get it running whole day .. Without result ...
Well, so I rolled back to CM10.1.3 (i am on SGS2 i9100) and it goes without any problem. (Technically) Even the system is stable and running withou any problem.
I am just stuck on "Detected AP rate limiting, waiting 60 secs..." after starting an attack. Do you guys have any solution for this ? I already tried to increase timeouts, but that did not help.
Thanks in advance for any advice
Click to expand...
Click to collapse
You did everything right, it’s just the AP which is protected against this kind of attack. Just find another one to test.
start up script for reaver
I been having a problem with the start script I put it in my com.bcom.bcom/files folder but every time I try to use the activation script it says no such file exist and I can't open monitor mode I have a galaxy s5 any help would be great thank you
I use script, my phone htc one e8 chipset snapdragon 801
There is an error
Firmware model not detected
Installed tools version 0
Installed fw version 0
I am using xiaomi redmi 1s help me
Bro agr mera wifi kisi se connect h to mai uska password dekh skta hu bt usne change kr diya to kya koi trick h pta krne ki?????
Plz telll
Does it really work on lollipop...?
If not any other tools that can replace it..i mean for bcmon
Does Xperia Z3 has this bcm4329/4330 wifi chipset?
Wysłane z mojego D6603 przy użyciu Tapatalka
[quote name="SOEDI" post=45882817]
<br />
<b>Reaver for Android v1.30</b><br />
<i>Reaver-WPS GUI for rooted devices with bcm4329/4330 wifi chipset or working external wifi card.</i><br />
<br />
<br />
<br />
<b>INFO:</b><br />
Reaver for Android, short RfA, is a simple-to-use Reaver-GUI for Android devices with monitor-mode support.<br />
It has some very cool features:<br />
<br />
<b><br />
* Detects automatically WPS-enabled routers.<br />
* All Reaver-Settings are accessible from a simple-to-use GUI.<br />
* Activates and deactivates Monitor-Mode automatically when needed.<br />
* Provides a simple way to connect when Reaver finds the WPA-Key.<br />
* External script support<br />
</b><br />
<br />
<b>Project status: PRE-FINAL</b><blockquote><i>What does this mean?</i><br />
There are some features which are not implemented yet.<br />
Developement will continue very soon.</blockquote><br />
<b>Installation</b><br />
<br />
1. Download/install bcmon.apk from HERE and RfA.apk from the bottom of this post. RfA may also download bcmon automatically.<br />
2. Run bcmon, if it crashes try a second time.<br />
3. If all runs fine, start RfA. If not, your device may be not bcmon compatible. Please see second post.<br />
4. After selecting an WPS-enabled router, click on "Test Monitor-Mode".<br />
5. Now you can use RfA, don't uninstall bcmon.<br />
<br />
Steps 1 - 4 are only for the installation, they don't have to be repeated once done.<br />
<br />
<br />
<b>FAQ:</b><br />
<blockquote><b><i>What is this awesome app actually usefull for?</i></b><br />
Well, RfA is able to unveil the actual WPA(2)-Key of many routers within 2 - 10 hours.<br />
<br />
<b><i>WHAT?! I though WPA(2) is safe?</i></b><br />
It used to be, but then many router models got WiFi Protected Setup, short WPS, implemeted, which is pretty vulnerable. (Details)<br />
Basically it's a Brute-Force attack with Reaver against a 8 digit pin with 10^4 + 10^3 possibilities.<br />
<br />
<b><i>What is Reaver?</i></b><br />
Reaver-WPS is a pentesting tool developed by Tactical Network Solutions.<br />
It attacks WPS-enabled routers and after the WPS-Pin is cracked, it retrieves the actual WPA-key.<br />
Reaver provides only a terminal interface, which is ok for notebooks etc., however it's a pain on Android devices.<br />
Because of this I developed RfA.<br />
<br />
<b><i>Doesn't Reaver requires monitor-mode and so can't work on Android?</i></b><br />
Yes, Reaver needs monitor-mode, but thanks to bcmon (or external wifi cards) some Android devices are now monitor-mode capable.</blockquote><br />
<b>bcmon compatibility</b><blockquote><b>Developed and tested on:</b> Nexus 7 2012 (Stock 4.3)<br />
RfA *should* work on all devices with bcmon support (Broadcom bcm4329/bcm4330 chipsets)<br />
Simply try by installing bcmon. Don't worry, if something goes wrong a simple reboot should fix everything.<br />
For external wifi cards please see second post.<br />
<br />
<b>Tested & works on:</b><br />
Nexus 7 2012 (Stock 4.3, Cyanogen 9)<br />
Huawei Honour (Cyanogen Mod based ROM)<br />
<br />
<b>bcmon does NOT work on:</b><br />
Samsung Galaxy S3/4/5<br />
HTC One<br />
LG G2<br />
Nexus 4/5<br />
Nexus 7 (2013)<br />
</blockquote><b>Credits & used tools:</b><br />
<blockquote><b>Monitor-Mode over bcmon.apk:</b><br />
Omri Ildis, Ruby Feinstein & Yuval Ofir<br />
See: bcmon.blogspot.com<br />
<br />
<b>Reaver-WPS:</b><br />
Tactical Network Solutions<br />
See: code.google.com/p/reaver-wps/</blockquote><b>Disclaimer</b><br />
<blockquote><b><font color="Red">Attention: Hacking of networks is illegal without having the permission of the owner! The developer is not responsible for any damage etc. this app could cause.<br />
This software is only intended to show a big security hole, not to be able to surf in the neighbours Wifi</font></b></blockquote><b><u>XDAevDB Information</u></b><br />
<b>Reaver-GUI for Android, App for all devices (see above for details)</b><br />
<br />
<b><u>Contributors</u></b><br />
SOEDI, bcmon team & Tactical Network Solutions<br />
<br />
<b><u>Version Information</u></b><br />
<b>Status:</b> Stable<br />
<b>Current Stable Version:</b> 1.30<br />
<b>Stable Release Date:</b> 2014-07-01<br />
<b>Beta Release Date:</b> 2013-11-04<br />
<br />
<b>Created</b> 2013-09-24<br />
<b>Last Updated</b> 2014-09-27[/QUOTE]<br />
Good News<br />
Guys I have found pixiwps Good binary for android . You have to copy the binary and past in data/data/com.bcmom.bcmon/files/tools the link is<br />
http://wpspin.blogspot.in/?m=1<br />
I was unable to download cuz of ads if some one could dowanload and put the file it will be really a great help for me from you tnx in advance<br />
<br />
Sent from my GT-I9070 using XDA-Developers mobile app<br />
---------------<br />
<b>Admin Note: this thread has a dedicated questions and answers section which you can access here -->.</b>
Sent from my GT-I9070 using XDA-Developers mobile app
Installed tools through bcmon.
(Succeed)
ENABLE MONITOR MODE
(FAILED)
WENT TO REAVER AND UNCHECKED USE BCMON
Made scripts /selected and saved them
(Start monitor mode from reaver)
Sorry activate.sh [start script] not found.
Checked use bcmon again..
ENABLE MONITOR MODE FROM REAVER.
SUCCEEDED
MONITOR MODE ENABLED
START ATTACK
STARTING...
SWITCHING WILAN0 TO CHANNEL 1
STUCK 4 TWO HOURS
 @SOEDI
Any solution, sir?

Deep linking with hash and key

Hello there!
I have a problem with my app. I am working on a website and it's associated android app.
If the system sends an email with a link within, I want the app to open to this specific content. The app opens but not where it's supposed to be. It stays on the main page of the app.
The links are supposed to auto connect the user, so he can access the app as he wishes automatically, so my links have this form:
https://www.mysite.com/autoconnect/stringHASH/stringKEY
I don't know in advance what will be put in the hash and key parts. So I don't know what to put in the manifest to make this work.
Here is what I currently have in my manifest file:
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="https" />
<data android:host="mysite.com" />
<data android:pathPrefix="/autoconnect/" />
</intent-filter>
Did I miss something? I need to add I have generated the well-known file and it is on my server.
Thank you for your help!

Categories

Resources