• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

HBOOT STUCK AFTER SELECTING AN OPTION

No problem. Does it boot into hboot or fastboot mode when you restart while pressing the volume down key? My last HTC always started in fastboot mode, which is the one you want if you are to reflash the phone, but the one before would always start in hboot mode (they look very similar, apart from different menu items and the word hboot or fastboot at the top. If it's in hboot and won't switch to fastboot the only thing I can think is to try the same "reboot while pressing volume down" while connected to a computer.

If the bootloader menu doesn't respond and you can't get into either recovery or fastboot mode I agree that you have no options.

My carrier (Vodafone) is showing me pop-up messages, any way to stop them?

This is how I stopped it, I hope it helps you as well:
Steps:
1. Go to Settings
2. Go to Installed apps
3. Search for Sim Tool Kit
4. Select Sim Tool Kit
5. Select Notifications under the permissions tab
6. Uncheck all the notifications type i.e. uncheck priority, sound, vibration, notification light etc. you will not be able to uncheck show notification but thats fine.
Done.!
This annoying flash messages is one of the reason why subscribers shifted from idea to jio. If idea does not understand, it may lose customers.

My phone is virused and installs same apps.

You did reset the phone, what about the SD card though? You said that you suppose that the virus or what it might be it's on the SD card. Why don't you reset it then? Just back up everything and reconfigure it. If it stops, then you'll have a problem less, if no, it means it's the phone. I had to deal with malware before, but it was the phone, so I did a factory reset, and everything came back to normal. After, I just got my apps from apksalad, and it works perfectly fine to this day. I bet it's the SD card, but you know better.

DocumentsContract.copyDocument

I have a problem with DocumentsContract.copyDocument

Each time my program crashes: "java.lang.UnsupportedOperationException: Copy not supported" The curious thing is the below-listed actions are working fine!!

DocumentsContract.moveDocument

DocumentsContract.deleteDocument

DocumentsContract.renameDocument

DocumentsContract.createDocument

Permission to SD card access is apparently granted (above actions would fail without permission)

How come document moving, deleting and renaming is supported but not copying? Can anyone help me with this issue?

Is there a great conceptual difference between copyDocument and moveDocument. Why move does work and copy does not?

Any hint will be highly appreciated.





package com.example.forum14_11_2020;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import androidx.documentfile.provider.DocumentFile;

import android.content.ActivityNotFoundException;
import android.content.Context;
import android.content.Intent;
import android.content.UriPermission;
import android.net.Uri;
import android.os.Bundle;
import android.os.storage.StorageManager;
import android.os.storage.StorageVolume;
import android.provider.DocumentsContract;
import android.view.View;
import android.widget.Button;

import java.io.File;
import java.io.FileNotFoundException;
import java.util.List;

public class MainActivity extends AppCompatActivity {

Uri uri;
DocumentFile pickedDir;
Button Button1;

@override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

Button1 = new Button(MainActivity.this);
Button1 = findViewById(R.id.button1);
Button1.setOnClickListener(onClickListener_Button1);

takeCardUriPermission("storage/1619-0D07");

}


View.OnClickListener onClickListener_Button1 = new View.OnClickListener() {
@override
public void onClick(View v) {

uri = getUri();
pickedDir = DocumentFile.fromTreeUri(getBaseContext(), uri);

DocumentFile file = pickedDir.findFile("attempt.txt");
DocumentFile folder = pickedDir.findFile("folder");

try {
//DocumentsContract.moveDocument(getContentResolver(), file.getUri(), folder.getUri(), folder.getUri()); // does work!
//DocumentsContract.deleteDocument(getContentResolver(), file.getUri()); // does work!
//DocumentsContract.renameDocument(getContentResolver(), file.getUri(), file.getName() + "_rename"); // does work!
DocumentsContract.copyDocument(getContentResolver(), file.getUri(), folder.getUri()); // does not work, why???

} catch (UnsupportedOperationException | FileNotFoundException e) {
e.printStackTrace();
e.getMessage();
}

}
};





public void takeCardUriPermission(String sdCardRootPath) {

int stop=1;

if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.N) {
File sdCard = new File(sdCardRootPath);
StorageManager storageManager = (StorageManager) getSystemService(Context.STORAGE_SERVICE);
StorageVolume storageVolume = storageManager.getStorageVolume(sdCard);
Intent intent = storageVolume.createAccessIntent(null);
try {
startActivityForResult(intent, 4010);
} catch (ActivityNotFoundException e) {
}
}
}


protected void onActivityResult(int requestCode, int resultCode, @nullable Intent data) {
super.onActivityResult(requestCode, resultCode, data);

if (requestCode == 4010) {

Uri uri = data.getData();

grantUriPermission(getPackageName(), uri, Intent.FLAG_GRANT_WRITE_URI_PERMISSION |
Intent.FLAG_GRANT_READ_URI_PERMISSION);

final int takeFlags = data.getFlags() & (Intent.FLAG_GRANT_WRITE_URI_PERMISSION |
Intent.FLAG_GRANT_READ_URI_PERMISSION);

getContentResolver().takePersistableUriPermission(uri, takeFlags);
}
}

public Uri getUri() {
List<UriPermission> persistedUriPermissions = getContentResolver().getPersistedUriPermissions();
if (persistedUriPermissions.size() > 0) {
UriPermission uriPermission = persistedUriPermissions.get(0);
return uriPermission.getUri();
}
return null;
}






}

Help Can an incorrect pin factory reset be recovered?

Although it's true that computing devices in general (not just Android) do not actually remove data when you delete a file, just remove pointers and mark the space as free, if the device has actually suffered a factory reset that probably isn't going to help you. The reason is that in any Android device made in the last few years the storage is encrypted, and the encryption key (which isn't, or at least shouldn't be, just kept as a file in an accessible bit of storage) is wiped during the reset. That makes file recovery after a factory reset even more problematic than it is with an accidental file deletion (which is itself not as simple with an Android device as with a USB memory stick or SD card, since the way it connects to a computer is different).

So it might depend on exactly what happened, which isn't clear from your description, but if it did suffer a factory reset I think you've no chance. And even if it didn't I don't think the chances are good (as @ocnbrze says, it's easy to find apps that will claim to be able to recover deleted files from Android devices, it's much harder to find reliable reports of success for them, i.e. claims of success that are not written by or paid by the company producing the app.

Help Store newly taken photos to SD card

well if it is not in the camera settings then your phone is not capable of doing so as @Dannydet suggested. you can't will a device to do something it can't do.....unfortunately.

google photo's is your answer. you can have it sync over wifi when available automatically. i never have to worry about me photos......even when i get a new phone. i just sign in to my google acct and my photos are there.

Filter

Back
Top Bottom