adb – I want to restore my contacts from a broken and black screen android device

I have a Samsung galaxy s5. Its screen has gotten smashed and now it displays nothing (black).

I can turn on the phone, and also I can enter recovery mode (by pressing home+power+volume up).

I have ADB installed on my laptop. But ADB can not access my phone and it shows it is unauthorized after typing adb devices, because it needs debugging mode to be enabled on the phone and I can not do that because the screen is smashed and black.

I have read that after entering recovery mode in your phone you can access it with ADB without USB debugging being enabled. So I entered recovery mode in my S5 then I connected it to my laptop, in my laptop I typed adb devices but nothing was shown. Does somebody know how to do it?

Is there any better solution?

android – Qual a maneira correta de recuperar um ArrayList do cloud firestore?

Estou usando o seguinte código para tentar recuperar um ArrayList do firestore:

List<Long> longs = (List<Long>) task.getResult().getDocuments().get(i.get()).get("longsArray");

Entretanto não estou certo de estar fazendo isto da maneira correta, pois estou recendo o seguinte erro:

    Process: com.exemplifique.project, PID: 14521
    java.lang.RuntimeException: Could not deserialize object. Class java.util.ArrayList has generic type parameters, please use GenericTypeIndicator instead```

Which smartphone is more secure Iphone or Android?

I need to decide whether or not I will push all of my employees to Apple or Android. Right now we’re about an even split and I’d really like to have them all on one side. It really comes down to which phone is more secure, The new iPhones or new Androids? These phones are only used for email connectivity.

  • What features make one more safe than the other?
  • What vulnerabilities have been seen between these two phones?
  • Which is more security oriented?

java – implementing Fingerprint in android webview using shared preferences

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

    WebView webView = (WebView) findViewById(R.id.webview);

    WebSettings webSettings = webView.getSettings();
    webSettings.setJavaScriptEnabled(true);

    webView.loadUrl("https://hostname.com/login");


}'''

for first login i want to login by username and password and setup fingerprint
and from next login i need to login by fingerprint


i have some of the authentication page
like
1. https://hostname/payment
2. https://hostname/confirmation

i want to verify with fingerprint using jwt token

notifications – How to send emergency alerts from server to android app in realtime when app is closed? Using foreground service or by using other channel?

Current Implentation:
When event is generated at server I am sending notifications to android app using FCM, some notification are with normal priority and some with high priority.
When notifications with high priority are sent to android app, app trigger custom alarms with sound to inform user about event.

It is working in android 5,6,7 without any issues.

Issue:
In phones with android 8+ I am facing issue of late notification due to Doze mode and App Stanby mode, so notifications are sent on time but received late on phone with delay of 20-25 minutes

What I have tried:
I have done all required settings like keeping Power saving disabled, Keep app rinning in background, Autostart enabled, Priority notification are enabled,
Also sending notifications with normal and high priority but still issue not resolved.

I have tried using foreground service but that remains active untill app is open, as soon as app is closed service stops.

How to send emergency alerts from server to android app in realtime even when app is closed? Using foreground service or by using other channel?

applications – setText() gives error in android studio

java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setText(java.lang.CharSequence)' on a null object reference in android

I have textview in one activity and I want to change the text of textview from other fragment only when that fragment is open otherwise not.I am unable to do that.Please help me with this.

applications – How to implement APK pipelines in Android core under Software Interoperability Act, enacted by the Congress?

re.:
How to implement APK pipelines in Android core under Software Interoperability Act, enacted by the Congress

Software interoperability is well supported in health industry, enabling patient’s test data from one medical equipment to read by another equipment to make COVID-19 treatment an integrated process between health institutes, hospitals.

There are Ts of applications developed by third parties in Google Play store, which don’t interoperate, since were never intended to be run in pipelines.

Good example is live analog audio input processing

APKs in the store, generally read audio as input, process and output live, to file, via Bluetooth, WiFi

Since I build Live Audio > MIDI stream > MIDI animation + sound out software pipeline, made of
APKs developed by third parties

my pipeline works in off-line mode, manually operated only.

I can run 2 applications in parallel,

  1. reading audio input from analog grand piano, converting to MIDI
    but MIDI streaming or output to streaming device is not supported.

All I can do is to save generated MIDI to file

  1. I need to open second app and open saved MIDI file within it and manually click to open it
    to have MIDI animation generated live.

Under Software Interoperability Act, enacted by Congress, developers of software,
may offer interfaces, API, streaming devices to support building of software pipelines made
of software blocks developed by third parties.

Contacting developers fails to work since one is living in Osaka Japan, another in Spain and one another somewhere in the Internet space, not responding to email contacts.

So let me know state-of-the-art in Software Interoperability in case of Android and Android APKs, published via Play Store
and if such tools, of interest to me and other, are offered by Android core development team.

thank you

https – How to convert certificate to be used in Android

I have generated a public – private keypair (CA is true) using the following code:

openssl genrsa  -out private.key  3072  
openssl req -new -sha256  -out keys.csr  -key private.key  
openssl x509 -req -days 365 -in keys.csr -signkey private.key  -out public.cert 

Now I need to get the certificate working on Android. As I understand it (from going through several sites) Android needs the certificate in the binary DER format. Correct?
The conversion seems to be done like this ..

openssl x509 -inform PEM -outform DER -in ... -out ...  

The problem is, I don’t know the format of the initial certificate (-inform should be?). I doubt it’s in PEM format. However, I tried the above code, Android lets me import the file but it doesn’t work with the app I’m trying to use. Does anyone know what format the first shown code lines yields? And should I convert the public, or the private key for Android? What should I specify with the -in and -out parameters?
I’m a noob at cryptography so any help is very appreciated!

How to remove file permission from pendrive added by android automatically?

File permission in pendrive is added automatically by android when I connected it to my phone. Now I can not access the pen drive from computer as it says read only file system how can I solve this. How can I remove file permission from Pendrive using android?