[FIX] Exchange Sync on Froyo FRF91 - Desire Android Development

Firstly I take no responsibility for issues caused by this "fix". A nandroid backup is always recommended. It has been tested with MCR r4 WIP and Exchange 2010, no other roms have been tested.
Since FRF91 2.2 has been released a number of people have had difficulty connecting HTC Mail/Stock Email to Exchange Active-Sync. Like a number of organisations using Exchange we have the security options set to "accept client certificates". It seems since FRF91 has been released this setting stops phones without certificates from connecting with a username & password.
The fix is a new libnativehelper.so installed in /system/lib I personally have no idea what the file does or doesn't do, it appears that its been built from source in order to fix this problem!
All credits to grennis. If you wish to read further into the fixes technical details, see here.
How to install attached zip (this is not an update zip):
1. Extract the zip someplace handy
2. Boot your phone into your preferred recovery
3. Run 'adb shell' (this gives you a shell on the phone)
4. Run 'mount /system' (allows writes to the system volume)
5. Run 'cd /system/lib' (enter the system lib directory)
6. Run 'cp libnativehelper.so libnativehelper.so.orig' (make a backup of the original file)
7. Close the ADB shell
8. On your PC, run 'adb push libnativehelper.so /system/lib' (copies the patched file to the phone). This should return a message similar to '1138 KB/s (202976 bytes in 0.174s)'.
9. Reboot the phone
Finally if someone wishes to provide an update zip I will be more than happy to add it to the original post. I however don't have the tools here right now.

Great job! Does this fix also sorts the "This server requires security features your phone does not have" issue? (that enables the pin code for exchange policy)

masi0 said:
Great job! Does this fix also sorts the "This server requires security features your phone does not have" issue? (that enables the pin code for exchange policy)
Click to expand...
Click to collapse
I would like to know this as well.
I only get it to work with HTC Sence ROMs, but they are not stable enough. DJ Droid has performance hickups. I want to go with OpenDesire1.6b and test this fix.
When I do, I'll let you know.

xf0rz said:
I would like to know this as well.
I only get it to work with HTC Sence ROMs, but they are not stable enough. DJ Droid has performance hickups. I want to go with OpenDesire1.6b and test this fix.
When I do, I'll let you know.
Click to expand...
Click to collapse
Thanks mate!

Well I hope this helps in some way, it was just research on my part not the actual fix. I was specifically looking for a fix for my above issue.

xf0rz said:
I would like to know this as well.
I only get it to work with HTC Sence ROMs, but they are not stable enough. DJ Droid has performance hickups. I want to go with OpenDesire1.6b and test this fix.
When I do, I'll let you know.
Click to expand...
Click to collapse
Tested it with OpenDesire 2.0, didn't change it.
Too bad....have to go HTC Sence ROM.

This fix only disables part of the SSL code so it can connect to servers with optional client certificates. It won't effect any of the policy options.

ritdaw said:
This fix only disables part of the SSL code so it can connect to servers with optional client certificates. It won't effect any of the policy options.
Click to expand...
Click to collapse
So this does not enable the pin?
I hate the interface of touchdown (and having to pay for exchange functionality )

tested this fix with a few roms and none of them works.. been not able to connect to my company exchange since hero and legend with htc stock mail..
im using moxier mail now .. and thats the only app i can use to connect to my company exchange mail..

Related

APK to Bypass Exchange Security Policy

Okay, so I found this on the EVO forums, and thought it would be helpful on the Hero CM6 nightlies because (a) currently, Email.apk FCs constantly on the nightlies, and (b) the new PIN/password security policy for Exchange setup is pretty damn annoying. Pushing this apk to /system/app will overwrite the previous Email setup with one that performs all of the same functions, but does not require a PIN or password for Exchange Autosync.
All credit goes to afflaq ... like I said, grabbed it from the EVO forums, and just posting it here. I have been running it on the last few nightlies, and works just as promised. Just push through adb as such ...
adb remount
adb push Email.apk /system/app
Hope this helps!
tquetano said:
Okay, so I found this on the EVO forums, and thought it would be helpful on the Hero CM6 nightlies because (a) currently, Email.apk FCs constantly on the nightlies, and (b) the new PIN/password security policy for Exchange setup is pretty damn annoying. Pushing this apk to /system/app will overwrite the previous Email setup with one that performs all of the same functions, but does not require a PIN or password for Exchange Autosync.
All credit goes to afflaq ... like I said, grabbed it from the EVO forums, and just posting it here. I have been running it on the last few nightlies, and works just as promised. Just push through adb as such ...
adb remount
adb push Email.apk /system/app
Hope this helps!
Click to expand...
Click to collapse
Just used it and it works great! Thanks!
This worked perfectly. Thanks. Just a heads up, it'll wipe your activesync account. Not a big deal though.
Unable to perform this
Hi,
I am a complete newb to Android so just wanted to ask this:
a) where do I get this adb command from?
b) I did have a command from superboot called adb-windows. when i try to connect my streak to my laptop and run adb-windows remount it says device not found!
please help!!!
- Harris
does this work with Samsung galaxy S -2 ?
I will check this on HTC diamond

Gingerbread email.apk?

Can someone with the technical know-how post a link to some of the gingerbread apps.
In particular, I am interested in the email app.
thanks,
bob
At least the 2.3 email.apk is (ALSO) missing the > Next and < Previous buttons!
like many other email.apk 's.
If you install the Android SDK you can install Gingerbread (2.3) yourself very easy and start an Android Virtual Device, a full graphical emulation of an Android device running the latest software. Very nice to see and test, and functionality is excellent.
Bump
Sent from my PC36100 using XDA App
I also would like the new email.apk but for a more specific reason... it includes EAS (exchange activesync) functionalities that allow 2.3 gingerbread to connect to an exchange 2010 server that has applied the SP1 service pack.
as of yet, the email.apk included up to 2.2 has not worked with the new EAS features. I loaded up an emulator and have verified that gingerbread email.apk DOES in fact work with our exchange server, but I don't know how to pull this specific email.apk
I used to use ES file explorer to pull apks but on gingerbread ES file explorer FC's.
someone link it and you'll be my hee-row
infotechsailor said:
I also would like the new email.apk but for a more specific reason... it includes EAS (exchange activesync) functionalities that allow 2.3 gingerbread to connect to an exchange 2010 server that has applied the SP1 service pack.
as of yet, the email.apk included up to 2.2 has not worked with the new EAS features. I loaded up an emulator and have verified that gingerbread email.apk DOES in fact work with our exchange server, but I don't know how to pull this specific email.apk
I used to use ES file explorer to pull apks but on gingerbread ES file explorer FC's.
someone link it and you'll be my hee-row
Click to expand...
Click to collapse
I haven't had a chance to test this in any other Exchange environments, but I did manage to get my Droid on 2.2 (no, not 2.2.1, so the Exchange fixes had not yet gone into place) our Exchange 2010 (SP1) without having to modify or replace my email.apk. I simply had to go to Settings > Location & Security > Set up screen lock > PIN and enforce a 7-digit pin to unlock my Droid. I was then able to setup my mail profile. Once it was setup, I disabled the PIN requirement, and everything still worked fine.
I work in IT, and I know our sysadmins pretty well. They were actively working on getting Android devices on Exchange 2010 at the time, so they may have put in a fix that made my own fix a pure coincidence. Still, the problem with older email.apk apps not working seems to be directly related to policy requirements on Exchange 2010 that didn't exist in previous versions of Exchange. My theory is that the new policy checks for certain security settings and that enforcing a PIN to unlock the phone somehow satisfies this policy requirement.
As I said, this may not work for you, and it may be a coincidence on my part. I'm quite curious if this fix works for you so I can advertise this to our end users when we migrate the rest of our faculty and staff (I work at a university) to Exchange 2010.
pekka91166 said:
At least the 2.3 email.apk is (ALSO) missing the > Next and < Previous buttons!
like many other email.apk 's.
If you install the Android SDK you can install Gingerbread (2.3) yourself very easy and start an Android Virtual Device, a full graphical emulation of an Android device running the latest software. Very nice to see and test, and functionality is excellent.
Click to expand...
Click to collapse
I have also noticed that Email 2.3 also breaks my ability to use the camera as a video recorder... can anyone else confirm this?

Working Simple Exchange Security Policy Workaround

There is a simple workaround on rooted phones for the Exchange security policy without having to replace the original mail app. I also posted this in the Android 2.2 Email.apk - Bypassing Exchange security policy - APK Attached thread in the Evo forum and am making a new thread here in case people have missed this very simple workaround. I am using it on an account on a Exchange 2007 server and I believe Exchange 2003 works as well. I heard from one person who did not have good results with Exchange 2010. All exchange functions work fine without any issues. I am using the stock email app so this only applies to the stock email app that forces a password security policy.
I am using an app called Autostarts found in the market (less than a dollar - I am not the developer) that allows disabling the exchange policy on restart. The setting can be found under Device Admin Enabled. Make sure you are in USB Debugging Mode before disabling the policy.
If you already have an Exchange account set up yet:
Install Autostarts from the Android Market and run. Find and click the Device Admin Enabled entry and press Mail (Exchange security policies) and select Disable (acknowledge the warning about disabling a system component). Close Autostarts and reboot the phone. After restart, change your screen lock under security to whatever you want (None, Pattern, or PIN).
If you don't have an Exchange account set up yet:
Install Autostarts from the Android Market then set up your Exchange account and let Exchange force the password policy. After the exchange setup is completed, run Autostarts and find and click the Device Admin Enabled entry and press Mail (Exchange security policies) and select Disable (acknowledge the warning about disabling a system component). Close Autostarts and reboot the phone. After restart, change your screen lock under security to whatever you want (None, Pattern, or PIN).
Is there any freeware tools?
Hi,
Thanks for posting. Is there any freeware tools available for this purpose??
Thanks
I just installed the program and then realized you need to have your phone rooted. How would I do that and what are the effects of rooting the phone? This is the easiest option I have seen so far depending on what has to be done to the phone to make it work.
It would also be nice to shut down all those horrible programs that keep restarting that I never use.
Thanks
Works on 3.70 kernel Fresh ROM 3.5.0.1
I am running fresh 3.5.0.1 on my HTC Evo and this method worked for removing the Exchange security pin requirement. My company uses Exchange 2007.
UPDATE:
My phone started prompting me that my server requires the security profile. It won't refresh the email account unless I turn it back on.
thanks for the awesome work!!
forceOnature said:
I am running fresh 3.5.0.1 on my HTC Evo and this method worked for removing the Exchange security pin requirement. My company uses Exchange 2007.
UPDATE:
My phone started prompting me that my server requires the security profile. It won't refresh the email account unless I turn it back on.
Click to expand...
Click to collapse
I also started getting the warning after upgrading to roms based on 3.70. The workaround still works for those on the earlier roms. I'll see if there is any other graceful way around it.
Sent from my EVO using XDA App
I don't see the Device Admin Enabled entry in AutoStarts. Am I missing something? I've enabled the USB debugging and I'm running a rooted Captivate/Galaxy S.
Thanks,
Landon
I don't know if it's part of the HTC sense or android framework.
Sent from my Evo using XDA App
This isn't a good solution...although you can disable the remote admin, the corporate exchange account alerts you that "security policy needs to be updated"...thus you can't check emails...
So after posting I got off the stock ATT rom and installed the Cognition 2.3 rom. Everything was great after that and worked like a champ. I just tried upgrading to Cognition 3.0 and the fix here broke again. I'd rather stay archaic and not have that dang password than run the latest and greatest and have to deal with it. When you guys are saying your running 3.5 and 3.7 what are you referring to?
Thanks,
Landon.
I knew I should have waited before posting...
I reinstalled Cognition 3.0 on my Captivate and tried the email.apk here.
http://forum.xda-developers.com/showthread.php?t=729753
Worked great again and didn't need autostarts. Woohoo!
Landon.
Loophole closed?
It would *appear* that Google closed this loophole, perhaps in Gingerbread? I just tried the latest MIUI and WarmZ ROMs (both of which are GB based, AFAIK). While this still enables the option to change from PIN to pattern or none under security, as soon as the next sync I am re-prompted about the policy, and if I accept it re-enables the setting in autostarts. I switched back to IncROM which is 2.2 and this procedure still works. If this loophole was indeed closed I am so bummed. I'd rather forgo using Exchange entirely than put up with a freaking 8-digit PIN every 15 minutes. And I can't seem to find a Mail.apk for Sense that has been modded to bypass this stringent policy. Blackberry users on the same Exchange server don't have to unlock their phone all day long, so why does Android's default behavior require this?
(I'm on an HTC Incredible)
+1. Agree with Stretch2m.
Really annoying have to enter pin code every 5 minutes or so. Especially when I'm in a hurry to access e-mail or other stuff...
Anyone out there who can assist with GB 2.3.3
Please help!
I am on an Epic with Syndicate frozen 1.1.0.... i enabled corporate exchange sync and it made me install the pin lock - which i want to disable...
Please can you post - NOOB version of the directions and also if anyone knows if this works on Epic with this custom ROM.
THANKS!

Feature Request PPTP

Would one of the Dev's be willing to tackle getting VPN PPTP with encryption (mppe 128 or 256) working on the G-Tab? Right now it is either not working or working as unsecured PPTP (depending on the ROM). If anyone knows of a ROM where this is functional please let me know.
What little I have found on the history of VPN in android indicates that the last version with encrypted PPTP was version 1.6. Google was having problems keeping a connection to the VPN server.
Reference: http://code.google.com/p/android/issues/detail?id=4706
For myself and my coworkers this has become an important need. If we can't get the feature we may be forced to get iPads (*cringe*). I for one am willing to make donations to Dev(s) who can add this. Some ROMs have the option but seem to be lacking the module (unconfirmed) to handle encryption through the included PPPD.
It is possible this may come back in Android 3.0 since it is geared toward tablets but I haven't been able to find any information either way.
Thank you for your time.
Newanzer said:
Would one of the Dev's be willing to tackle getting VPN PPTP with encryption (mppe 128 or 256) working on the G-Tab? Right now it is either not working or working as unsecured PPTP (depending on the ROM). If anyone knows of a ROM where this is functional please let me know.
What little I have found on the history of VPN in android indicates that the last version with encrypted PPTP was version 1.6. Google was having problems keeping a connection to the VPN server.
Reference: http://code.google.com/p/android/issues/detail?id=4706
For myself and my coworkers this has become an important need. If we can't get the feature we may be forced to get iPads (*cringe*). I for one am willing to make donations to Dev(s) who can add this. Some ROMs have the option but seem to be lacking the module (unconfirmed) to handle encryption through the included PPPD.
It is possible this may come back in Android 3.0 since it is geared toward tablets but I haven't been able to find any information either way.
Thank you for your time.
Click to expand...
Click to collapse
Did you try one of clemsyn's latest kernels - they have the tun support. Also on market place there is an OpenVPN app that attempts to install an openvpn binary - that same dev also has an OpenVPN settings app that you can use to create your tunnel. Perhaps that will work for you.
prscott1 said:
Did you try one of clemsyn's latest kernels - they have the tun support. Also on market place there is an OpenVPN app that attempts to install an openvpn binary - that same dev also has an OpenVPN settings app that you can use to create your tunnel. Perhaps that will work for you.
Click to expand...
Click to collapse
I can currently get a VPN connection, but the server refuses it because it isn't encrypted - even with the encryption option on. I'll try clemsyn's kernel. I noticed he posted one specific to the ZTab ROM recently.
Newanzer said:
I can currently get a VPN connection, but the server refuses it because it isn't encrypted - even with the encryption option on. I'll try clemsyn's kernel. I noticed he posted one specific to the ZTab ROM recently.
Click to expand...
Click to collapse
PLEASE keep us updated. This is also essential to my job and I want to use android! GTab in particular.
jmdearras said:
PLEASE keep us updated. This is also essential to my job and I want to use android! GTab in particular.
Click to expand...
Click to collapse
No luck. Tried the new kernel and still get the same error. G-Tab shows connection lost. Server log shows same error (port 47 blocked or unable to negotiate encryption). Since our laptops all work I'm going to assume port 47 isn't blocked on our network. Maybe not enabled on G-Tab?
Which ROM are you using?
EDIT: nevermind - I see zpad rom. Did you try the vegan rom or tnt rom?
I am setting up a server with two cards and windows server 8 and an accesible ip just as test lab for this. If any dev wants access pm me.
Sent from my DROIDX using XDA App
Newanzer said:
Would one of the Dev's be willing to tackle getting VPN PPTP with encryption (mppe 128 or 256) working on the G-Tab? Right now it is either not working or working as unsecured PPTP (depending on the ROM). If anyone knows of a ROM where this is functional please let me know.
What little I have found on the history of VPN in android indicates that the last version with encrypted PPTP was version 1.6. Google was having problems keeping a connection to the VPN server.
Reference: http://code.google.com/p/android/issues/detail?id=4706
For myself and my coworkers this has become an important need. If we can't get the feature we may be forced to get iPads (*cringe*). I for one am willing to make donations to Dev(s) who can add this. Some ROMs have the option but seem to be lacking the module (unconfirmed) to handle encryption through the included PPPD.
It is possible this may come back in Android 3.0 since it is geared toward tablets but I haven't been able to find any information either way.
Thank you for your time.
Click to expand...
Click to collapse
Try this, I enabled everything re: PPP in this kernel including PPTP and also enable MPPE (Microsoft PPP Encryption). I hope this helps. BTW, this MPPE is experimental in the kernel but I hope it works for you.
clemsyn said:
Try this, I enabled everything re: PPP in this kernel including PPTP and also enable MPPE (Microsoft PPP Encryption). I hope this helps. BTW, this MPPE is experimental in the kernel but I hope it works for you.
Click to expand...
Click to collapse
Brillant! I have a connection! From home even. Many Thanks! (but I can only hit the button once...)
I'll keep an eye on it and see how long the connection lasts. That seemed to be the bug that killed Google's interest in this. With luck it wont show because someone tweaked over it.
I'll spread the word. Thanks again!!
Update: Unfortunately the data traffic stops within a minute. The connection stays up and reports a server connection just no data passes. This is the same issue as Google has in it's bug report. I"ll look at the server logs in the morning to see if anything is reported, but it is at least a step in the right direction.
BTW: The GUI seems a bit faster. Were there any other tweaks in that kernel?
Newanzer said:
Brillant! I have a connection! From home even. Many Thanks! (but I can only hit the button once...)
I'll keep an eye on it and see how long the connection lasts. That seemed to be the bug that killed Google's interest in this. With luck it wont show because someone tweaked over it.
I'll spread the word. Thanks again!!
Update: Unfortunately the data traffic stops within a minute. The connection stays up and reports a server connection just no data passes. This is the same issue as Google has in it's bug report. I"ll look at the server logs in the morning to see if anything is reported, but it is at least a step in the right direction.
BTW: The GUI seems a bit faster. Were there any other tweaks in that kernel?
Click to expand...
Click to collapse
There is a cryto sha 256 or 512. Lmk which to enable
clemsyn said:
Try this, I enabled everything re: PPP in this kernel including PPTP and also enable MPPE (Microsoft PPP Encryption). I hope this helps. BTW, this MPPE is experimental in the kernel but I hope it works for you.
Click to expand...
Click to collapse
This is awesome - and just what I was looking for! Any chance you could post the Vegan version as well? Thanks so much!
Hi Clemsy,
Thanks again for all the great work you're doing. If you could also do this for vegantab it would be greatly appreciated.
Cheers
Jonesie
How do I install this file?
Jonesie18 said:
Hi Clemsy,
Thanks again for all the great work you're doing. If you could also do this for vegantab it would be greatly appreciated.
Cheers
Jonesie
Click to expand...
Click to collapse
I might have to take a pause on this since I'm having issues with my Gtab at the moment. My screen turned white and I can't see a thing. I was playing angry birds and noticed that my screen sensitivity turned bad and a few seconds later it turned all white. I might have to get a replacement for my Gtab
I can build the kernel for Vegan tab but there is no way for me to test it but it should work fine
I read a post that doing this might fix it:
Add the following to /etc/pptpd.conf
mru 1280
mtu 1280
Please try and see how it goes.
More Info
I had our network admin look at the VPN server logs for my connection. No errors or warning from the server.
One interesting thing to note, it seems that when the data transfer between the tab and the VPN server stops it's only one way. I was able to send mail out from the tab, but not receive mail or view web pages. I'm wondering if the decryption side (incoming to tab) of MPPe is broken. That could explain why the server keeps a connection, but the data flow seems to stop.
Could we steel code from a linux kernel that works?
clemsyn said:
I read a post that doing this might fix it:
Add the following to /etc/pptpd.conf
mru 1280
mtu 1280
Please try and see how it goes.
Click to expand...
Click to collapse
I don't have a pptpd.conf in /etc. What is the file syntax? I'll make one and copy it in. I'm assuming this is ./etc and not ./system/etc.
Edit: Never mind found info here: http://www.linux.org.au/~quozl/pptp/pptpd.conf.5.html
Edit Edit: Ok I think I have reached the level of my ignorance. How do you get a file copied to /etc? I have tried a file manager with SU permissions, and a terminal with SU permissions. In both cases I am getting a permission denied error. What's the secret?
Newanzer said:
I don't have a pptpd.conf in /etc. What is the file syntax? I'll make one and copy it in. I'm assuming this is ./etc and not ./system/etc.
Edit: Never mind found info here: http://www.linux.org.au/~quozl/pptp/pptpd.conf.5.html
Edit Edit: Ok I think I have reached the level of my ignorance. How do you get a file copied to /etc? I have tried a file manager with SU permissions, and a terminal with SU permissions. In both cases I am getting a permission denied error. What's the secret?
Click to expand...
Click to collapse
Upload the file and ill make a zip file for you to flash it.
So close ... I think Google may need to work out a few of their bugs first.
First off a big thanks to clemsyn for the hard work. (I used Root Explorer to copy the file pptp.conf)
Using the latest kernel posted here for VeganTab I was able to connect to a MS PPTP VPN and ping for a long while however just like my Samsung Vibrant the VPN appears to die once a burst of traffic is shot through the tunnel. The tunnel I have discovered is not disconnected but unusable through the Android system. If I disconnect the VPN session remotely the log files indicate that the remote server killed the connection. Not sure much can be done as now I feel I am hampered by Google's inability to care for VPN access. I am sure the developers here can figure this out but why should they have to figure this out when it seems to be a fundamental issue with Google's code. Maybe this disconnection does not happen with OpenVPN? Anybody use it? I am tempted to setup a test OpenVPN server just to see how long I can keep my connection.
BTW ... After remotely killing the VPN connection the VPN services crashes and throws up an exception in the back ground when terminating the service.
Not working. I might try without the encryption in the server side to check if that works. It actually connects (pings) a couple of seconds with the LAN computers... then it nevers connects again... even with reboots. Does the pptpd.conf only need those two lines?
I found this site which may help
http://code.google.com/p/android/issues/detail?id=6402
A user stated this:
"Hey! Saw another post elswhere in the forum. For Microsoft VPN using PPTP, I think it helps to disable Software Compression in Routing and Remote Access Manager on the Windows server hosting VPN. After I did that, I was able to connect to VPN.
In Routing and Remote Access Manager, right click on the server in the tree and select Properties. Then, under the PPP tab, uncheck Software Compression. I am the Sys Admin at my Co, so I was able to do this myself. Others may have to submit a request to your respective Sys Admins. Besides, who uses compression on VPN's since the death of Dial-up?
Good Luck!"

[App][Part-Root][4.0+] Sms Tasks!

This app is Currently on-Hold Due to Personal Health-Concerns, i Pulled from Google-Play due to it being Reverted to a unstable-build due to a False-Report of some kind.
Hello This is my first app ive made so please be kind about it.
but first in regards to the bad-apk upload to google-play prior to 7/03/2014
for all those who dont know, the update was in regards to a settings not applying glitch causing the app to fail completely if it wasnt my set device id so i had no clue untill i saw a review then tested on mine then on my friends phone:
i feel bad i uploaded a bad apk and got around 30 people disapointed and 3 who baught pro disapointed so i have refunded all for pro version, removed it, then removed all ads from the free version and republished on 7/03/2014 and work a straight 6 hours to get it up+running fully from scratch with minimal code reusing to make sure it works, same android restrictions apply so gps toggling and a few others still apply, but i tried many methods to get it working, but only tested on 4.4.2 but some codes should work for 4.0+ but i feel really bad about it so i did all i could to remake it as well as i could so please try to give it another shot as i worked hard to get it up+running to work again =)
**For GoSMS+Other SMS/MMS App Users that are not receiving commands:
Abraheem said:
I haven't used this program yet. I use Cerberus which has the same problem with GOSMS.
Here is a solution that works for cerberus and should work in similar situations:
Open Go SMS Pro, tap 'Menu', 'Settings', 'Advanced', 'Other setting' then uncheck 'Disable other message notifications'.
Then back to 'Advanced', then 'Notification settings', check 'Notification bar privacy mode' and that so it will not display the recieved sms commend!
Then open the stock SMS App, tap 'Menu', 'Settings' then uncheck 'Notifications'.
The idea can be used with Handcent sms and other sms programs. Hope it works
Click to expand...
Click to collapse
otherwise: THIS APP WILL NOT WORK IF YOU HAVE GOSMS INSTALLED, GOSMS must be frozen or uninstalled**
Intro:
This is a SMS Broadcast Receiver app that will listen to incoming Text messages and do a Pre-Made task set to them
This app was partially inspired by the Remote Terminal, Remote ShutOff, and Remote Unlock apps from the xda-announcements
(not sure of developer names at the moment, but i did like those apps myself and thought "why dont i make one just like that?"
So i did. and it doesn't need to be a system app or fully rooted to do so!
**note** i'm a single person developer so i cannot make every function compatible for every phone because i only have a Samsung Galaxy S4 (jfltevzw, Partly Broken-Yet-?Unlocked? bootloader, Rooted Stock 4.4.2), so if a feature doesn't work for you, i cannot help much because i only can test it on mine at the moment, and this works perfectly on mine as far as i test, so sorry in advanced if anything doesnt work, send me a logcat of reproduction, your phones model, android version, if you are rooted, and try to follow this format enough
Example Based on my personal phone:.
Code:
-Phone Model: Samsung Galaxy S4
-Phone Code Name(if-Known, otherwise skip this): jflte-vzw
-Phone Android Version: 4.4.2
-App Version: 999999-DEV (My Personal Version Tag, i only have it, gets changed on releases)
-Are Rooted?: Yes
-Root Was Granted?: Yes
-Have a LogCat?: This is just an example; but say "yes" or "no"
or their respective simaliers your comfortable with like "yea","yeah","nah"
-Is Device Administrator Enabled?: Yes.
-Issue (all details): this is an example of the issue Area.
Features include: [R] = root required [~R] = root may be required for newer phones [D] = Disabled in Disable Dangerous On Wildcards
-customizable passphrase used for all commands except both echo's (cannot be blank, but unlimited length (as long as you can fit commands after it), there is no old passphrase, so on your first run(or after data wipe), leave the old Passphrase alone, and type your new one in the two other text fields)
-turning on/off the service when changing passcodes(or typing in the same passcode in old, new, and confirm)
-[R]Shutting off phone
-[R]Rebooting phone
-[R]Rebooting into recovery
-[R][D]Sending terminal commands
-[R][D]Uninstalling apps remotely (By package name, eg. com.rovio.angrybirds, **reboot afterwards required**, system apps uninstallable also)
-Sending Echo's (toast messages, multi-lined acceptable)
-Sending multiple Echos (multi-line Echo's, separated into different toast messages one-after-another)
-[R]Bypassing the security lock of your phone, with reboot (beta feature, picks and chooses when to work when screen off) (supports: regular patterns, cyanogenmod 4x4-6x6 patterns, passwords, digit pins)
-[D]SDcard Wiping (Cannot be undone, see notes and warnings below command)
-[D]Remote Factory Reset (device admin needs to be enabled, android 2.2+)
-[~R]Toggle wifi, wifi hotspot, gps, bluetooth, ADB (on newer android firmware, some toggles need to be on a rooted phone for toggles to work; GPS requires to be a system app)
-Text-to-Speech (Makes your phone talk and say what you put after the command, some censors are put)
-One-Time Alarm sound (makes your phone set off the alarm sound, if failed (or media/sdcard unmounted) does System Alarm sound, if failed notification sound, if that fails does ringtone)
-Looping Alarm sound (shuts off with snooze command)
-Custom Alarm ( place "Alarm.mp3" in (external sdcard path)/KittleApps/Smstasks/Alarms/Alarm.mp3)
-Snooze alarm
-[R]Toggle ADB
-Rechecks Superuser (just basic rechecks superuser request, if already allowed does the toast message)
-Reading all your incoming text messages with the announcement "Text from (number or email) saying... (message)" (can be disabled/enabled in commands, or in the more settings menu.)
-Disabling/enabling almost any command (does not disable command to check superuser or the command to enable/disable commands)
-White-listing 2 numbers, and one email (no special characters use only numbers 0 through 9, no Country codes, Can allow all numbers (not email), by setting only the wildcard * )
-GPS Tracking (only as good as the gps on your phone, gives overall accuracy in metres, this will turn on gps on start) (separate command to stop tracking)
-Testing if app is installed and running correctly.
-Requiring Confirmation of pass phrase to disable/enable change whitelists
Commands (and format) to use these are, (where (pass)= your passphrase) (options for a few select commands are: true,false,enabled,disabled,t,f)
**Note: when it says "1234", or (option), do not include the ( ) or " Symbol(s) in the command. only your pass phrase and/or the option with spaces only to separate the [email protected], the passphrase, and options, with no spaces afterwards unless it is the speak, echo, multi-echo, cmd commands so far**:
Sending terminal commands:
[email protected] (terminal commands, seperate commands by new line)
[email protected] reboot
[email protected] echo "hi" >> sdcard/test.log
and such
Shutting off phone:
[email protected]
[email protected] reboot -p
[email protected] poweroff
Rebooting phone:
[email protected]
[email protected] reboot
Reboot into recovery:
[email protected]
[email protected] reboot recovery
Uninstalling apps:
[email protected] (package name of app, and include /system/app file name without .apk also if a system app)
echos:
echo (what to put in a single toast, can also be separated by new lines for multi-lined toasts)
echo hi!
echo hi
how are you today?
im doing good!
multiple echos
multi-echo (what to put in the first/single toast, new seperated-echos are separated by new lines)
multi-echo hi
how are you today?
im doing good!
Bypassing android LockScreen security:
[email protected]
SDcard Wiping:
[email protected]
[email protected] rm -rfv (path you wish to delete)
**note SDcard Wiping cannot be undone when started it will erase all sdcard contents (fixed to only use external mount points V1.4+ on the [email protected] not [email protected])
Wiping Data:
[email protected]
**note Wipe Data command cannot be undone**
toggles:
(options are: wifi, gps, bluetooth, adb, hotspot) (hotspot is the wifi hotspot)
[email protected] (option) (Value)
[email protected] wifi off
[email protected] adb on
Text-to-Speech:
[email protected] (what to say)
[email protected] Hi, how are you today?
Alarm (No-Loop):
[email protected]
Alarm (Looped version):
[email protected]
Snooze Alarm:
[email protected](pass)
Remotely Lock Device:
// sends a text back with new password to get into phone
[email protected]
[email protected] (optional Custom password can be added here)
Check superuser request:
// just type only one of the following to get the prompt Alternitivly use the "SU?" button on the settings to initiate the Initial Superuser prompts
[email protected]
[email protected]
[email protected]
Testing if app is installed and running correctly;
[email protected]
**you will get a text back to the phone that sent the command if its working)
GPS Location Tracking:
[email protected]
Stop Tracking:
[email protected]
End OF Commands:
in regards to convert this (or any app) to a system app via commands?
type these in seperate texts in new messages (as it will be long...) make #### your currently set pass phrase
Code:
[email protected]#### cp /data/app/com.kittleapps.app.smstask.apk > /system/app/smstasks.apk
[email protected]#### chmod 644 /system/app/smstasks.apk
[email protected]#### rm /data/app/com.kittleapps.app.smstasks.apk
then reboot the phone =) its how i debug it on-the-fly just do not remove from data/app before you chmod 644 the system app as you will no longer see the app as installed; so if you need to use the [email protected] command to test if it is still reading the commands =)
**do not use this method maliciously! i'm just showing for some users to convert to system app easily using my app for gps toggling issues! **
In Regards to the [email protected] Command "Being Malicious" as some argue to me it is, heres an explaination why its not
This command now uses an overlay to keep the Activity ALWAYS on-top, it will be fullscreen, and may seem the home button, back button, and others do not work;
this is intentional, but not maliciously, i have been given rants+complaints about it "Hacking the home button", but this is not the case;
the command loads an overlay on top of all apps like Facebook's ChatHeads, only it will not read back keys like their app, or home keys like their app to close it due to it being a security feature for this app (as its a remote controlling app, based on security) so it wouldnt be wise to allow the tracking to be shut off with a simple back press right? and i dont want to do a background one, as thats a battery hog
but.. to close the app you MUST use the [email protected] command, or wait untill it does its default Max Location Texts to be sent (3): after that the [email protected] will stop the location tracking, and close the dialog by shutting down the activity; but i will let you know it is not malicious and i will provide the code used for the overlay as-is on-request in a private message, email, or simply in a reply and ill add it in a CODE tag, or attach the file as-is in the reply i make so you can see =P i DO NOT EVER intend to be malicious, as it is bad practices for online communities, let alone developers and their work, thus why i add warnings to do not use it maliciously, or what could be dangerous if misused not as intended =)
Download:
Google Play Link (Pulled for Now.)
nice app, mate, sure looks promising
would be great to be able to send a command to fully wipe phone / sd card, this should be a great feature to have in case you loose or get your phone stolen
Thanks for the app. Full wipe phone/sdcard via sms would be great function.
P.S. Sorry for my bad English.
tested on samsung galaxy SL i9003 GB Stock rooted 2.3.6 And it's not work !!!
abderrezak said:
tested on samsung galaxy SL i9003 GB Stock rooted 2.3.6 And it's not work !!!
Click to expand...
Click to collapse
weird because it works on my phone, i cant really test on other phones, but ill tweak it around a bit and check every command again, but the wakelock picks and chooses when to work when the screen is locked or shut off with patterns/pin/password, ill try to find a better way to use one, but make sure you accept/grant the superuser request But there is also a glitch when sending non-commands making the app crash, but ill try to fix that soon also, might i ask what command you tried to use (not with your pass code just the function would do)
i will also try to add the wipe functions soon, ill have to find a reliable way to wipe data with shell commands, as thats how these commands (with the exception of the echo's) work, but for sdcard wipe, that will be easier ill start working on it soon.
I had very similar ideas after the first shutdown app came out. One idea i got to tweak that a little bit more was why don't listen to other msg services like whatsapp, instead of SMS, cause it's a little bit old school. Might be a next version of your app come up with other msg systems?
Another thing I have regonized are for Samsung branded Devices: Samsung offers a protect services to shut your phone down or locate it wheb it's stolen etc. . So because you do this through a website Samsung needs to create a SU Access to the phone. Ain't it possible to access this services over an API and build a program around it? ...or I am completely wrong?
SunShiner said:
I had very similar ideas after the first shutdown app came out. One idea i got to tweak that a little bit more was why don't listen to other msg services like whatsapp, instead of SMS, cause it's a little bit old school. Might be a next version of your app come up with other msg systems?
Another thing I have regonized are for Samsung branded Devices: Samsung offers a protect services to shut your phone down or locate it wheb it's stolen etc. . So because you do this through a website Samsung needs to create a SU Access to the phone. Ain't it possible to access this services over an API and build a program around it? ...or I am completely wrong?
Click to expand...
Click to collapse
im not sure tbh, ive only been able to do this over the broadcast receiver for receiving sms, idk if i can get this to work with other sms apps, but if i find a way to add the other message systems that would be a good alternative.
And idk about that samsung phone thing, i thought that could only be done for the stock roms, this app here ive only really tested on Unjustified dev''s domination and PAC roms cause those are my daily drivers, but that would be a good thing to try if i knew how to do it lol
jkok said:
Download:
Resuable Download Link Click Here
Click to expand...
Click to collapse
Is it "Suable" or "Resumable"?
Thanks by the way, awesome app
getdead69 said:
Is it "Suable" or "Resumable"?
Thanks by the way, awesome app
Click to expand...
Click to collapse
opps i meant reusable ill fix that once i finish the wipe options lol
Nice idea dude, gonna try it on my rooted stock ROM GT-I9500 and give you feedback.
LucidSwag said:
Nice idea dude, gonna try it on my rooted stock ROM GT-I9500 and give you feedback.
Click to expand...
Click to collapse
if you wait a bit im about to post the version with the sdcard-wipe command ill let you know when its posted
New Version 1.1.7 now uploaded Now supports sdcard wipe via command (where (pass) = your passphrase)
[email protected](pass)
**not this cannot be undone when started it will erase all sdcard contents, and possibly internal sdcard as well since internal sdcard and external sdcard use some of the mount points deleted with this command (eg. /sdcard/)
the mount points deleted with this command are the following.. (as all i could find for android sdcard mount points were these)
/mnt/sdcard/*
/mnt/storage/sdcard0/*
/storage/sdcard0/*
/sdcard/*
/sdcard/ext-sd/*
Now uploaded Version 1.1.8 with experimental wipe Data command, it wipes data,cache,and dalvik-cache while online, then does some other things that a regular wipe would do like remove the lockscreen (by using the void of the bypass lockscreen), and does the wipe and reboots, The only bad part about it it doesnt start googles one-time init on boot that a regular wipe does, so you have to reconfigure your accounts and settings+restore your apps manually sorry,,
The command is (where (pass)= your passphrase)
[email protected](pass)
Enjoy!
Hi, this app is really awesome but what do you think about the possibility to add comand for switch on/off Data and WiFi Connection? It could be very useful, if you need to find the location of your smartphone.
LosLakers said:
Hi, this app is really awesome but what do you think about the possibility to add comand for switch on/off Data and WiFi Connection? It could be very useful, if you need to find the location of your smartphone.
Click to expand...
Click to collapse
ive been trying to find a good way to find the location, but so far im outta luck for that, but as of the toggles ill find a way to try and do that just give me some time and a way to do it (if possible by the methods im using).
jkok said:
ive been trying to find a good way to find the location, but so far im outta luck for that, but as of the toggles ill find a way to try and do that just give me some time and a way to do it (if possible by the methods im using).
Click to expand...
Click to collapse
Sorry, I have no idea how to implement it, I'm not yet starting to learn android programming. But I recommend the Data/WiFi on/off because can be a useful tool with anti-thief app.
LosLakers said:
Sorry, I have no idea how to implement it, I'm not yet starting to learn android programming. But I recommend the Data/WiFi on/off because can be a useful tool with anti-thief app.
Click to expand...
Click to collapse
oh dont worry, i already have code for the wifi, and experimanting with gps toggles right now,then working on the gps tracking, im trying a no-root method, ad most methods used by this app use the terminal (thus needing the root), thats why this app uses soo many root features, im making the toggles as non-root needed as i could get at the moment
I dont know if this works but how when it doesnt ask for root access? Im using MIUIv5 anyway.
deedii said:
I dont know if this works but how when it doesnt ask for root access? Im using MIUIv5 anyway.
Click to expand...
Click to collapse
That might just be a superuser request problem with miui, i cannot test on miui because my phone doesnt have that rom that im aware of, but check in the superuser app/settings and see if its there under deny, if so put for allow/grant, this app asks for superuser request everytime the app is opened so if it doesnt ask for it, try a fresh install, or check your superuser, or (as a last resort, just to test)make a backup of your phone, flash another rom thats rooted (like cyanogenmod), and test there, then restore your phone if wanted because like ive posted before i can only test on one phone so i can only tell what works/not works by my own tests and others feedback, so sorry if i cannot get this to work with miui, as i cannot test using that specific rom, sorry.
Off topic: im almost done with another build, it has toggle wifi, toggle mobile data, toggle nfc (if phone compatible), toggle gps, toggle wifi mobile hostspot, set off alarm sound, set off looping-alarm sound(currently has no shut off so a force-close or phone rebbot is needed), and experimental gps track phone (i havent fully tested it, as i cannot leave my house for enough time to set off the trigger of my phones gps, but it will turn on gps, send a sms to the phone that sent the command (as long as the command had the right pass phrase) with a link with google map coordinants of where the phones generall location is, but its only as good as the phones gps/enabled gps settings, and doesnt always give exact location, but if you recognise where its at like a freidns house is nearby, you know where to go.
SMS Task
this is brilliant, continue developing this, it has great potential. work great on my AT&T gs2 gonna test it on a galaxy exhibit 2 later

Categories

Resources