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

Need help unlocking your cellphone?

ummmm no if a bootloader can't be unlocked you can't root it.
Hm... last time I rooted a phone was years ago... But I'm pretty sure it's (maybe used to be) possible to root w/o unlocking the bootloader.
IIRC this was done by booting recovery.img with fastboot and then flash your rooting app from there.
Not 100% sure on the process, but AFAIK rooting and bootloader unlocking are two separate things, that don't (always) depend on one another.

error 400 bad request - invalid grant_type, when call google play developer API for getting subscrip

y authorization method:

try{
HttpTransport httpTransport = null;
httpTransport = new com.google.api.client.http.javanet.NetHttpTransport();

JacksonFactory jsonFactory = JacksonFactory.getDefaultInstance();

String applicationName = VariantConstants.AppName;
String packageName = VariantConstants.packageName;

final Set<String> scopes = Collections.singleton(AndroidPublisherScopes.ANDROIDPUBLISHER);

AssetManager am = context.getAssets();
InputStream inputStream = am.open("key.p12");


if(inputStream != null){
int SDK_INT = android.os.Build.VERSION.SDK_INT;
if (SDK_INT > 8) {
StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder()
.permitAll().build();
StrictMode.setThreadPolicy(policy);


GoogleCredential credential = new GoogleCredential.Builder()
.setTransport(httpTransport)
.setJsonFactory(jsonFactory)
.setServiceAccountId("service email")
.setServiceAccountScopes(scopes)
.setServiceAccountPrivateKeyFromP12File(inputStream)
.build();



AndroidPublisher pub = new AndroidPublisher.Builder
(httpTransport, jsonFactory, credential)
.setApplicationName(applicationName)
.build();


final AndroidPublisher.Purchases.Subscriptions.Get get =
pub.purchases().subscriptions().get(packageName,
VariantConstants.ONE_WEEK_SUB,
subscriptionDetail.getPurchaseToken());


final SubscriptionPurchase purchase = get.execute();

return purchase;
}
}else{
System.out.println("input Stream is null.");
}
}
/* catch (GeneralSecurityException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
} */
catch(Exception e){
System.out.println("getsubDetailFromGoogleApi :- Exception in method = " +e);
}

Android e6 Storage Permissions Madness!

I bet you have your SD card configured as expanded internal storage.

If this is the case, all data on the SD card is encrypted, and can only be accessed by the device. The OS handles storing apps on internal and expanded internal storage.

Setting up your SD card as portable storage allows the SD card to store all non-app related data and can be accessed by any device.

Hey folks! Thank you so much and I'm terribly sorry for the delayed reply. My car broke down and honestly it's been taking all my attention. But all's well that ends well!
You're absolutely right, that is how I configured my SD card. It's important that I have my SD encrypted because I use my phone in HIPAA contexts. I avoid having protected information on my phone, but I don't take chances. I had just sort of assumed that the SD would be mounted through the phone somehow but retrospectively that was pretty presumptuous.

I think your answer does answer the original question as presented, because I could simply reformat--but is there a solution that doesn't involve leaving the SD unencrypted?

Regarding the cloud based solution, it also answers the question as asked. I avoid cloud sync for the same reason I'm not wild about unencrypting my SD, but it's not like my photos contain HIPAA data...so maybe that would work. If nobody has any local solutions, I'll look into that.

Filter

Back
Top Bottom