Affichage des articles dont le libellé est receive. Afficher tous les articles
Affichage des articles dont le libellé est receive. Afficher tous les articles

dimanche 23 août 2015

[5.1.1] can not receive any calls with GSM sim



I finally got brave enough to update from stock 4.4.2 to anything else, I settled with 5.1.1, I've tried a few roms and none of them have let me take calls -- I CAN place calls.

this is using a h2o/ATT sim -- calling works fine using a pageplus/verizon sim.

I've tried global mode, gsm only mode, a few others..

any ideas, anything I should check?



mardi 18 août 2015

Any way to unroot lenovo a6000 plus to receive ota updates?



Any way to flash stock rom and unroot lenovo a6000 plus to receive ota updates without bricking the device? I want to root lenovo a6000 plus but I'm afraid that it won't unroot and return to its original state as i have searched everywhere. No dedicated flash tool for lenovo like xiaomi devices. Made a big mistake buying this phone.



samedi 15 août 2015

How to restore to stock ROM on international version to receive OTA updates



A while back, I rooted my HTC One M8 and loaded TWRP in an attempt to turn it into a GPE phone. But, since Firewater was discontinued and SunShine is incompatible with my phone, I couldn't gain S-off and was never able to get Lollipop. Now, I'd like to unroot my phone to receive the OTA update of Lollipop. I checked the mega RUU/OTA/Backups thread to find a backup with my CID and version-main number but was unable to find one that matched. I also don't have a backup of my own. Is there any way to restore my M8 to stock factory settings and get Lollipop?

Relevant info:
CID#: HTC__621
version-main: 3.28.709.6
Android version: 4.4.4



Will the Yotaphone 2 ever receive Lollipop 5.1.1.?



there are significant bug fixes and performance enhancements in the latest version of Lollipop.

Will our phone see this upgrade which imo is highly required as it has been subpar since the move from Kitkat. I've noticed overheating and increased battery consumption in day to day use on lollipop.

With the American launch cancelled. Yota moving to sailfish and the poor sales, I feel doubtful.



mercredi 12 août 2015

Receive update of around 18.1mb error solved android one devices



new update has started rolling out OTA [LMY48K] is getting error
so those getting error first do full unroot and install custom recovery (recommended twrp) and then download universal ota for sprout 4 and sprout 8 devices
go to below link
http://bc.vc/Cx9xyZ

Universal OTA LMY47V to LMY48K for sprout4 and sprout8 stock roms

Instruction
1) Custom Recovery (Philz, CWM, TWRP etc)
2) Full Unroot is required for rooted users
3) Backup your current rom and data
4) Flash using custom recovery
credits go to original one who captured ota file








Attached Thumbnails


Click image for larger version<br/><br/>Name:	Screenshot_2015-08-12-16-54-35.png<br/>Views:	N/A<br/>Size:	35.0 KB<br/>ID:	3436552
 

Click image for larger version<br/><br/>Name:	Screenshot_2015-08-12-16-54-41.png<br/>Views:	N/A<br/>Size:	61.6 KB<br/>ID:	3436553
 














mardi 11 août 2015

Phone wont send or receive SMS or MMS on ATT



I got my G3 from verizon onto Cricket (AT&T), it makes calls, gets H+ everything works except for the SMS and MMS, I have tried to use handcent, gopro, textra, and none of this works. Is there a work around for this issue?



Receive update of around 18.1mb but error



I have spice dream uno

Received update of 18.1 mb
When imstall it showed error

Anyone got update



lundi 10 août 2015

[GUIDE] How to Receive and Handle SMS on Android



Author: Apriorit (Driver Development Team)

This article is useful for you if you want to develop your own SMS (or another service) handler. As a sample, I choose received SMS handler that receives SMS, encrypts them, and puts into the SMS table of the Android system database.

Android Manifest

Manifest is a very important part of an Android application. You can find everything about the Android manifest by this link.
And now I’ll try to describe every line that is important for us.
The first are permissions . The application must receive, write and read SMS from the database. Permissions can be obtained as follows:
1.<uses-permission android:name="android.permission.WRITE_SMS" />
2.<uses-permission android:name="android.permission.READ_SMS" />
3.<uses-permission android:name="android.permission.RECEIVE_SMS" />
Now it’s time to write a standard activity starting. This is a part of an application that will show us SMS and will decrypt encrypted ones. There is nothing special:
1.<activity android:name=".SecureMessagesActivity" android:label="@string/app_name" >
2. <intent-filter>
3. <action android:name="android.intent.action.MAIN" />
4. <category android:name="android.intent.category.LAUNCHER" />
5. </intent-filter>
6.</activity>
And now we need to catch all received SMS into our SMS receiver:
1. <receiver android:name=".SmsReceiver" android:exported="true" >
2. <intent-filter android:priority="999">
3. <action android:name="android.provider.Telephony.SMS_RECEI VED" />
4. </intent-filter>
5. </receiver>
Where
android:exported indicates that the SmsReceiver class must receive event not only from the application but also from the whole Android system.
android:priority=”999” indicates that receiver has the highest priority and will catch the SMS event before the system. Be careful with this because incorrect work of your receiver can corrupt the system or important data in your device. You can read about priority values here.
<action android:name="android.provider.Telephony.SMS_RECEI VED" /> indicates that we want to get received SMS.

View Model

The project contains only one XML layout. There is one button and one list. The button is used for getting inbox SMS from the system and the list is used for showing messages.
Here is the XML layout code:
01.<?xml version="1.0" encoding="utf-8"?>
02.<LinearLayout xmlns:android="'link to schemas.android /apk/res/android'"
03. android:orientation="vertical" android:layout_width="fill_parent"
04. android:layout_height="fill_parent" android:id="@+id/MainLayout"
05. android:background="@android:color/background_light">
06.
07. <Button android:layout_height="wrap_content"
08. android:layout_width="match_parent" android:id="@+id/UpdateList"
09. android:layout_margin="2dip"
10. android:text="Update SMS list" />
11.
12. <ListView android:id="@+id/SMSList"
13. android:layout_height="wrap_content"
14. android:layout_width="match_parent"
15. android:layout_margin="2dip" />
16.
17.</LinearLayout>
And the UI screenshot:

Listeners will be described later.

Encryption/Decryption

All incoming SMS will be encrypted. For this reason, the class, which provides encrypting and decrypting, is added.
I use the AES algorithm and standard Android libraries. You can use this class for your own purposes.
String encrypt( String password, String data ) – encrypts string where the key will be generated using a password string. The returned value is a Base64 string that was previously encrypted.
01.// Encrypts string and encodes in Base64
02.public static String encrypt( String password, String data ) throws Exception
03.{
04. byte[] secretKey = generateKey( password.getBytes() );
05. byte[] clear = data.getBytes();
06.
07. SecretKeySpec secretKeySpec = new SecretKeySpec( secretKey, CIPHER_ALGORITHM );
08. Cipher cipher = Cipher.getInstance( CIPHER_ALGORITHM );
09. cipher.init( Cipher.ENCRYPT_MODE, secretKeySpec );
10.
11. byte[] encrypted = cipher.doFinal( clear );
12. String encryptedString = Base64.encodeToString( encrypted, Base64.DEFAULT );
13.
14. return encryptedString;
15.}
String decrypt( String password, String encryptedData ) – decrypts a Base64 string with a password string.
01.// Decrypts string encoded in Base64
02.public static String decrypt( String password, String encryptedData ) throws Exception
03.{
04. byte[] secretKey = generateKey( password.getBytes() );
05.
06. SecretKeySpec secretKeySpec = new SecretKeySpec( secretKey, CIPHER_ALGORITHM );
07. Cipher cipher = Cipher.getInstance( CIPHER_ALGORITHM );
08. cipher.init( Cipher.DECRYPT_MODE, secretKeySpec );
09.
10. byte[] encrypted = Base64.decode( encryptedData, Base64.DEFAULT );
11. byte[] decrypted = cipher.doFinal( encrypted );
12.
13. return new String( decrypted );
14.}
byte[] generateKey( byte[] seed ) – generates a secret key using a seed (String.getBytes() in our case). A secret key is a byte array generated for the specific encryption algorithm.
01.public static byte[] generateKey( byte[] seed ) throws Exception
02.{
03. KeyGenerator keyGenerator = KeyGenerator.getInstance( CIPHER_ALGORITHM );
04. SecureRandom secureRandom = SecureRandom.getInstance( RANDOM_GENERATOR_ALGORITHM );
05. secureRandom.setSeed( seed );
06. keyGenerator.init( RANDOM_KEY_SIZE, secureRandom );
07. SecretKey secretKey = keyGenerator.generateKey();
08. return secretKey.getEncoded();
09.}

Handle Received SMS

The main class that receives the SMS is SmsReceiver. It extends BroadcastReceiver class. This is the main concept of any Android service or receiver. Any child of BroadcastReceiver must contain the onReceive method, which receives Context and Intent parameters. You can find all additional information on the Android developer documentation site.
So, we get event and go into the onReceive method. The first line is:
Bundle extras = intent.getExtras();
The Bundle object is a simple map. It contains pairs of keys and values. SMS are placed in this bundle. The key of SMS is pdus:
1.public static final String SMS_EXTRA_NAME =”pdus”;
2.…
3.Object[] smsExtra = (Object[]) extras.get( SMS_EXTRA_NAME );
After this, the smsExtra value contains arrays of bytes. Here is a full example:
01.public void onReceive( Context context, Intent intent )
02. {
03. // Get the SMS map from Intent
04. Bundle extras = intent.getExtras();
05.
06. String messages = "";
07.
08. if ( extras != null )
09. {
10. // Get received SMS array
11. Object[] smsExtra = (Object[]) extras.get( SMS_EXTRA_NAME );
12.
13. // Get ContentResolver object for pushing encrypted SMS to the incoming folder
14. ContentResolver contentResolver = context.getContentResolver();
15.
16. for ( int i = 0; i < smsExtra.length; ++i )
17. {
18. SmsMessage sms = SmsMessage.createFromPdu((byte[])smsExtra[i]);
19.
20. String body = sms.getMessageBody().toString();
21. String address = sms.getOriginatingAddress();
22.
23. messages += "SMS from " + address + " :\n";
24. messages += body + "\n";
25.
26. // Here you can add any your code to work with incoming SMS
27. // I added encrypting of all received SMS
28.
29. putSmsToDatabase( contentResolver, sms );
30. }
31.
32. // Display SMS message
33. Toast.makeText( context, messages, Toast.LENGTH_SHORT ).show();
34. }
35.
36. // WARNING!!!
37. // If you uncomment the next line then received SMS will not be put to incoming.
38. // Be careful!
39. // this.abortBroadcast();
40. }
So, when the SMS list gets into smsExtra, then SMS should be parsed. And the method createFromPdu from SmsMessage class should be called for this. I do not write about the methods and fields of SmsMessage class because it is documented enough.
So, SmsReceiver gets the SMS and now can do anything with it. In the example, SMS are encrypted and put into the SMS table of the device database. I need this to allow the encrypted SMS viewing by the default Android SMS viewer.
Of course, the PDU (Protocol Description Unit) can be parsed and generated manually, but its format can be changed anytime by Google. If you are interested in researching the PDU format, you can analyze it at Android sources: for CDMA phones and for GSM phones.
When SMS is got, it is shown using the Toast class. And I want to tell you about the last commented line:
// this.abortBroadcast();
I commented it because it’s dangerous. As you remember, the receiver catches SMS events before the system works with it. So, the abortBroadcast method stops the SMS dispatching to other receivers. If something is going wrong, the SMS will not be saved.
You can see the full example at the attached sources.

Read and Decrypt SMS

I want to tell you why the activity is needed. Below the click listener for the button on the main screen is listed. In the following code, all SMS that are placed in Inbox are read and then the sender information and SMS text are put into the list:
01.public void onClick( View v )
02.{
03. ContentResolver contentResolver = getContentResolver();
04. Cursor cursor = contentResolver.query( Uri.parse( "content://sms/inbox" ), null, null, null, null);
05.
06. int indexBody = cursor.getColumnIndex( SmsReceiver.BODY );
07. int indexAddr = cursor.getColumnIndex( SmsReceiver.ADDRESS );
08.
09. if ( indexBody < 0 || !cursor.moveToFirst() ) return;
10.
11. smsList.clear();
12.
13. do
14. {
15. String str = "Sender: " + cursor.getString( indexAddr ) + "\n" + cursor.getString( indexBody );
16. smsList.add( str );
17. }
18. while( cursor.moveToNext() );
19.
20. ListView smsListView = (ListView) findViewById( R.id.SMSList );
21. smsListView.setAdapter( new ArrayAdapter<String>( this, android.R.layout.simple_list_item_1, smsList) );
22. smsListView.setOnItemClickListener( this );
23.}
The SMS text is obtained from the list, decrypted and then shown. SmsReceiver.PASSWORD can be changed in any way. The list item listener is as follows:
01.public void onItemClick( AdapterView<?> parent, View view, int pos, long id )
02. {
03. try
04. {
05. String sender = smsList.get( pos ).split("\n")[0];
06. String encryptedData = smsList.get( pos ).split("\n")[1];
07. String data = sender + "\n" + StringCryptor.decrypt( new String(SmsReceiver.PASSWORD), encryptedData );
08. Toast.makeText( this, data, Toast.LENGTH_SHORT ).show();
09. }
10. catch (Exception e)
11. {
12. e.printStackTrace();
13. }
14. }



dimanche 9 août 2015

[Q] Way To Send & Receive Text Messages Faster???



I'm on metroPCS which now is basically T-Mobile get great coverage LTE all the time usualy 4 to 5 bars, 2 at the lowest...

But after awhile from a factory reset or clean install sending and receiving starts to take several minutes to hours to happen.

On a Note Edge (T-Mobile branded version running Hyperdrive rom), so I figured I'd ask if there's a way to get sms to constantly stay as speedy as a fresh install.

I use Handcent SMS BTW, don't feel like waiting and holding my breath to see if T-Mobile's RCS Advanced Messaging comes to me.
_
If I didn't have a good handful of friends who don't use 3rd party messengers and only SMS I wouldn't be asking.

So what else can I do to speed this up, clean rom installs or even dirty, the sms almost sends instantly in a matter of seconds same as with receiving.

If I knew the dialer code to get into IMS Settings I'd mess with it and try updating the number, but IDK it, knew it on the Note 2 and 3 and now I can't find it.



samedi 1 août 2015

[Q] Can't receive picture texts / messages / mms, trying to send one crashes app



So yeah, as of recently I can't receive picture or video texts / messages / mms, trying to send one crashes the Messaging app

I've tried changing my APN to IPv4/6, resetting it default, as well as clearing Messaging cache, rebooted and no change.

I'm on a Nexus 4 Stock running 5.1.1