yashsingh1/xdaforums huggingface dataset:
[SuperSU] ssrij:
I am in a weird situation. I have an app that requires root to function. I am using libsuperuser and calling the available() function in a background task, but I have some of users report me that (1) they didn't see the SU authorisation prompt AND the app received root permission or (2) The app didn't make SU show the authorisation prompt, so they couldn't approve the app. On my phone (using latest SuperSU beta), and on many other people's phones, it works fine, but on some, it does that.

Any idea why this could happen and what can be done to fix this? This is how I call available():

Tasks.executeInBackground(MainActivity.this, new BackgroundWork<Boolean>() {
@Override
public Boolean doInBackground() throws Exception {
return Shell.SU.available();
}
}, new Completion<Boolean>() {
@Override
public void onSuccess(Context context, Boolean result) {
isSuAvailable = result;
Log.i(TAG, "SU available: " + Boolean.toString(result));
if (isSuAvailable) {
// Perform stuff
}
} else {
Log.i(TAG, "SU permission denied or not available");
// Show error dialog
}
}
[SuperSU] Chainfire:
Which su are they running?

On various CM-based firmwares you do not get a confirmation dialog, you need to manually enable root access before starting the app.
[SuperSU] ssrij:
I'm not sure, I haven't asked them, although some of them said they're on the latest SuperSU stable or KingRoot. I'm on SuperSU beta (May 10) on a Galaxy S7 edge, and I see a prompt.

Is there a way to handle external authorisation? A way to detect if the SU authorisation dialog will show up or not, so I can tell the user to manually grant access via their SU app.
[SuperSU] Chainfire:
Well, then it seems you have altogether too little info...

Nope.

The best you can do is check the su version and compare it with known strings like supersu or cm-su.
[SuperSU] ssrij:
So how does one handle other SU apps or SU binaries located in a different path? It seems like bruteforcing is the only way. I wish there was a consistent way (maybe a method in libsuperuser) to handle different scenarios.
[SuperSU] Chainfire:
Those things are not related. libsuperuser will call su regardless of its path, its not hardcoded. Whether that su call pops up a dialog for the user to click on, or automatically denies, or grants, or whatever, is up to the implementation. You do not control that, and you should not want to.

The su call is the interface. This is the same across all root solutions. What happens next is implementation specific.
[SuperSU] vishal007:
[MENTION=631273]Chainfire[/MENTION] I'm trying to start an interactive shell at the startup of app but am having some problems with the callbacks.

So, in my onCreate I start an interactive shell using Shell.Builder.open method. Then in one of my Asynctasks I need to run the su command.

I read the Shell.Interactive documentation and you clearly stated that callbacks will be executed on the thread in which the instance was created (unless I call #setAutoHandler with false). But I'm already in my asynctask and I need the callback to be executed on that same thread. Is there any way I can do that? The inline documentation in java docs is a bit conflicting in this regard, as in one line you say not to pass commands in main thread, but then later on you say that only main thread have a Looper and only it can handle the callback, and that while the callback (onLineListener for eg.) is being executed, we need to take into consideration the multithreading point stand, and make calls thread safe.

I think I'm missing some really foolish. Please point me in the right path.
[SuperSU] vishal007:
Thank you very much for your insight. It certainly helped me understand the looper and handler concepts better.

Although I had already implemented them, the exact reason I was not getting any results is that I was using Shell.Builder object instead of Shell.Interactive returned from Shell.Builder#open method to add a command, and was waiting for Shell.Interactive#waitForIdle returned from that #open call. Such a little foolish mistake. This last piece of code from you saved my day (:

I overlooked this part from your example, my fault.
[SuperSU] badohn:
Thanks for the helpful article.
[SuperSU] kbeaumont:
I have a Teclast X10 3g phablet with MT8392 chip. There is NO byName for the mounts. Instead it has /proc/dumchar_info.

adb shell ls -l /proc/dum*

-r--r--r-- root root 0 2017-03-09 07:50 dumchar_info

kb@kb-VPCYB15AB:~$ adb shell cat /proc/dum*

Part_Name	Size	StartAddr	Type	MapTo	Region

preloader 0x0000000000040000 0x0000000000000000 2 /dev/misc-sd BOOT_1

mbr 0x0000000000080000 0x0000000000000000 2 /dev/block/mmcblk0 USER

ebr1 0x0000000000080000 0x0000000000080000 2 /dev/block/mmcblk0p1 USER

pro_info 0x0000000000300000 0x0000000000100000 2 /dev/block/mmcblk0 USER

nvram 0x0000000000500000 0x0000000000400000 2 /dev/block/mmcblk0 USER

protect_f 0x0000000000a00000 0x0000000000900000 2 /dev/block/mmcblk0p2 USER

protect_s 0x0000000000a00000 0x0000000001300000 2 /dev/block/mmcblk0p3 USER

seccfg 0x0000000000040000 0x0000000001d00000 2 /dev/block/mmcblk0 USER

uboot 0x0000000000060000 0x0000000001d40000 2 /dev/block/mmcblk0 USER

bootimg 0x0000000000a00000 0x0000000001da0000 2 /dev/block/mmcblk0 USER

recovery 0x0000000000a00000 0x00000000027a0000 2 /dev/block/mmcblk0 USER

sec_ro 0x0000000000600000 0x00000000031a0000 2 /dev/block/mmcblk0p4 USER

misc 0x0000000000080000 0x00000000037a0000 2 /dev/block/mmcblk0 USER

logo 0x0000000000800000 0x0000000003820000 2 /dev/block/mmcblk0 USER

ebr2 0x0000000000080000 0x0000000004020000 2 /dev/block/mmcblk0 USER

frp 0x0000000000100000 0x00000000040a0000 2 /dev/block/mmcblk0p5 USER

expdb 0x0000000000e60000 0x00000000041a0000 2 /dev/block/mmcblk0 USER

android 0x0000000060000000 0x0000000005000000 2 /dev/block/mmcblk0p6 USER

cache 0x000000001a800000 0x0000000065000000 2 /dev/block/mmcblk0p7 USER

usrdata 0x0000000323100000 0x000000007f800000 2 /dev/block/mmcblk0p8 USER

bmtpool 0x0000000001500000 0x00000000ffff00a8 2 /dev/block/mmcblk0 USER

Part_Name:Partition name you should open;

Size:size of partition

StartAddr:Start Address of partition;

Type:Type of partition(MTD=1,EMMC=2)

MapTo:actual device you operate

Can you fix the SU install script to work with this?

Also, do you know if there are drivers available for mt8392 in order to root the phone?

Regards,

KB
[SuperSU] voider1:
I want to put SuperSU on the Wiko Freddy. I managed to patch the recovery image so that it would accept OTA updates signed by my own keys. I've also installed Xposed with success, just had to make some minor modifications to the OTA update (remounting /system as rw, the Wiko Freddy handles that in a different way). I can't figure out what goes wrong with SuperSU and I want to patch it so I can make it work with the Wiko Freddy. Busybox is installed, and the error I'm getting is:

E: Can't run /tmp/update_binary (No such file or directory)
E: Error in sideload/package.zip
(status 255)
[SuperSU] goto50:
I have a Huawei phone, can i also use this method? I need to remove the bloatware away, any other way that i don't need to root my phone? Thanks.:o
[SuperSU] Mubeen1:
SU

All Codes Is working fine.:cowboy::crying:
[SuperSU] Mark Patterson 1971:
Any help with this huawei 7,trtlx2 2017
[SuperSU] mcnamaragio:
I am trying to read content of "/data/system/appops.xml" file so I issue

chmod 666

before trying to open the file but I still get FileNotFoundException exception which says "/data/system/appops.xml (Permission denied)". I can see that the permissions is changed to rw-rw-rw by using root explorer. Target sdk of the app is 22 (before runtime permissions). Android device version is 23. Any suggestions how to open the file for reading?
[SuperSU] AxelBlaz3:
Nice thread! Pretty helpful. Well, I was planning to flash a kernel (made with AnyKernel2 zip) automatically within the app. May I know how do to this? Thank you :p
[SuperSU] patientx:
My tv box came rooted BUT there was no su app at all. I installed from google play store and now, there is no app on the launcher or anywhere else... I saw there was a dialer trick to make it visible yet since this is a tv box there is no dialer no phone service... What can I do ?
[SuperSU] cristobal.digital:
Thank you for this valuable How2
[SuperSU] Lion_ofJUDA777@:
HELP... $

I know this not a help desk but could please post link to secure desk for security question on my systems. I've been chasing my tail and have hit a major platform block at this point. . .or email me at Lion_ofJUDA777@outlook.com I am willing to donate to whobwhere ever may help thank you...

***$$$
[Nexus 10 Q&A, Help & Troubleshooting] Maeltne:
These are do or die for me.

Information posted here: https://play.google.com/store/devices/details?id=nexus_10_16gb&feature=microsite seens to indicate no; which makes me a sad panda.
[Nexus 10 Q&A, Help & Troubleshooting] Vertron:
Being a Nexus device it has no sd card slot, which means 32gb is a must for most people.

Don't forget you can use usb sticks with this too. So having no sd card slot isn't a deal breaker.

Don't know about keyboards yet. You can easily buy a standard bluetooth keyboard if you can't live without one.
[Nexus 10 Q&A, Help & Troubleshooting] Maeltne:
I really dislike having a USB stick out the side from a mobile device. I dislike bluetooth keyboards almost as much.

Maybe I'll just wait for the next Asus.
[Nexus 10 Q&A, Help & Troubleshooting] efan3719:
then yeah maybe not the best device to buy....
[Nexus 10 Q&A, Help & Troubleshooting] XenGi:
You could buy one of these mini USB sticks and break the plastic part. Maybe it fits in the USB slot and you only see some millimeters of it.

Could be a solution. I already know some USB sticks that have 16GB and stick only 5mm out of the slot.
[Nexus 10 Q&A, Help & Troubleshooting] Maeltne:
Someone should make an NFC device that is a little box (around the size of a credit card, and 1/4" inch thick) and only has SD and USB storage options.

Then again it looks like someone has already thought of making one: http://www.google.com/patents/US20060069814

Now ... has someone already MADE one?
[Nexus 10 Q&A, Help & Troubleshooting] Celtish:
Why is it that manufacturers are starting this trend of leaving SD cards out? I'd expect it out of a cut rate piece of hardware, but not when they are charging a premium price. The fact that this on a Nexus (which is supposed to have all the bells and whistles. I am really disappointed. Granted it's a Samsung build, but someone at Google needs to wake up if the intend to hang the Nexus moniker on it.
[Nexus 10 Q&A, Help & Troubleshooting] efan3719:
Umm you are getting the phone at cost. Silly to complain.
[Nexus 10 Q&A, Help & Troubleshooting] SwiftLegend:
Probably a little cheaper and with the new fascination with everything being thin as paper, leaving it out allows for more room. I'm sure fitting a 9000 battery in a package this small wasn't a easy task.
[Nexus 10 Q&A, Help & Troubleshooting] Celtish:
At cost? How do you figure? And last I checked we were talking tablets. The point I was driving at was, as an original N1 owner, bought direct from Google, I have come to expect that the Nexus name will only be applied to only the most technically advanced devices. be they phones or tablets. To further that point, *not* including a microSD slot (which is the actual form factor I was referring to, apologies if you thought I meant a fullsize SD card) is taking a step backwards. I semi understood it with the Galaxy 7, as they were competing against the Kindle Fire's price point.

Cost I don't think is an issue. Thinness maybe, but for crying out loud this thing is a 10 in Tablet, not some microthin waferphone. Google/Samsung, you let me down. Going to have to consider the Nexus name as a marketing tool only, and not the absolute best like the N1 was on release.
[Nexus 10 Q&A, Help & Troubleshooting] mchief298:
For the price? I'd rather have an MSD slot than the screen resolution. Guess that's just me...

However, the Nexus 7 I may look into again.. If they did more than slap 32GB in it...
[Nexus 10 Q&A, Help & Troubleshooting] Maeltne:
Looking historically; Nexus has been attached to 'good' but not 'leading edge'. It's never been used on the absolute best. That wouldn't have the mass market appeal that the price tag of 'good' has. I think you misunderstand the purpose of 'Nexus'.
[Nexus 10 Q&A, Help & Troubleshooting] Maeltne:
My problem is that my desire for for easy & cheap interchangeable storage (an SD card) apparently doesn't have the ease of use that is desired in a Nexus device. I can live with that in a phone; but not a tablet. ONE of my NFC devices has to have an SD card.
[Nexus 10 Q&A, Help & Troubleshooting] Samzebian:
there is this remedy on the way (If it gets funded).

And until then there is CHEAP ebay products...

Now on the keyboard note, I am also in the same pickle. I have a TF700t, I have had SO MANY DAMN HARDWARE ISSUES! I have exchanged like 7 of the damn tablets! I have an RMA coming in form newegg for one, and it sucks. I love the design and the features, but the lagginess even on JB is absolutely insane on a $500 tablet!

Here's to hoping the next Asus Transformer tablet is a killer, crazy 2560x1600 Super IPS+ with a similar design to the TF700, maybe with some other cool features.
[Nexus 10 Q&A, Help & Troubleshooting] Kookas:
Asus has a thing for slow I/O, no idea why but basically every all of their tabs sucks - even the Vivo, which is much more recent. I wouldn't count on their next tab being worth anything. Why not just get a Nexus 4 and a Bluetooth keyboard? There's probably a full-size folding one somewhere.
[Nexus 10 Q&A, Help & Troubleshooting] Samzebian:
Nexus 4? lol

Idk, I really like the keyboard with a battery, gives me all day+ battery life. I can use the thing probably 3 days with HEAVY usage! Plus a full size USB port and SD card reader, AND a mousepad, PLUS it protects the screen VERY well when closed!! What's not to love about Asus's design?! I love the concept, just the execution on the prime was crap from Asus thanks to poor I/O.:silly:
[Nexus 10 Q&A, Help & Troubleshooting] nxss4:
I had an tf101, it was a shame. It restarted about 5 times a day after the ics update. Sold it now, there were to many lags even after all the updates. Asus's hardware is AMAZING but the software really sucks. It won't start up when docked...

Gonna buy the nexus 10 the day it comes out.

Send from my lovely Sensation XL, from a little town in france with a very very slow internet connection. ;)

If I succeed helping you (rare) don't forget to hit the thanks button
[Galaxy Note II Q&A, Help & Troubleshooting] joseag:
Hi!

Does your screen show perfect whites/grays at low/medium brightness?

Here is mine. It's hard to see but there are like bands across the screen, darker than the rest of it. This is really annoying when you are scrolling in webpages with white/gray content.

I've already got replaced one due to similar problem. What about yours?
[Galaxy Note II Q&A, Help & Troubleshooting] jujuburi:
Far from perfect. When I look at it from a 45° angle, it looks pure white, but any normal people will look at it from a 90° angle and it looks kinda yellowish from that angle. So the screen is NOT perfect by any means, but being said that I'm not changing mine to find a perfect one as I know none exists.
[Galaxy Note II Q&A, Help & Troubleshooting] Chrissssssss:
The colour definitely changes when the screen is tilted but that doesn't really bother me. Apart from that it's gorgeous.
[HTC One S] beekiller1:
I heard there's a app that tells you which one you have but idk what it is

I have the T-Mobile one s
[HTC One S] slainbybeats:
Safest method Tod tell which one you have is to Boot into bootloader and then look if it says ville er villec2 in the top lines. If it is c2 you have the S3 chipset ;)

Sent by baked One S
[HTC One S] Spastic909:
Look on the box it says it right there and read one of the many threads adding the same question.
[HTC One S] k1llacanon:
Or download quadrant and go to system information

If your processor is msm8960 its s4 version

Sent from a man, using a mobile phone
[HTC One S] a448y901:
1-reboot to the hboot and you can see the VLE or VILLEC2 the front is S4 ,another is S3

2-Download the app called Antutu benchmark .check your phone and it would tell you all the information about yours phone .

you can see the CPU and gpu .ville and 225 must be S4.villec 2 and 220 is S3

3-root your phone and open the file in system called build .prop .there is a line writen the type of CPU .8260a and 8960 is S4 ,8260 is S3
[HTC One S] Cyber-Droid:
Thanks!! I checked the System folder and looked in the build file and saw the line you were talking about, mine says msm8960. I also tried the Antutu App, see attached screenshot of my results!! Based on what I see and what you wrote here, I'm certain I have the S4 version!! Thanks again!!
[Nexus 4 Q&A, Help & Troubleshooting] richie390:
So this will be my first Nexus device coming from HTC HD2, G2x, and HTC Sensation. But from what I've experienced in the Sensation is the HQ Camera that's, well, HIGH QUALITY! All my pictures comes out sharp and saturated because of the options is has in the modified camera to raise/lower sharpness and saturation without editing the picture after taking it.

Overall, anyone who knows the Nexus can you tell me if there is a modified camera app for nexus out there that performs like the HQ on Sensation?
[Nexus 4 Q&A, Help & Troubleshooting] theo28:
You can try the VSCO Cam app from playstore. Its a good one.
[Nexus 4 Q&A, Help & Troubleshooting] redhunter22:
Nothing really helps,the n4 hasn't got a good sensor.You can try some apps,but they will give the same output.(I'm not a big camera fan so not having a good sensor isn't a big problem for me)
[Nexus 4 Q&A, Help & Troubleshooting] xSharpi:
The only thing I did was turn HDR on I mean it helps a bit but it won't turn into 50,000 Mega Pixel shooter
[Nexus 4 Q&A, Help & Troubleshooting] musclehead84:
Will there be any difference between the 2? Is the one from the play store able to work on all of t mobiles frequencies? Thanks.
[Nexus 4 Q&A, Help & Troubleshooting] giant22000:
By looking at the specs on the Google play store I'd say the lg nexus 4 should be able to operate on any north american providers gsm/HSPA+ services.
[Nexus 4 Q&A, Help & Troubleshooting] tuffCookie:
from the info out so far, it seems like T-Mobile's version will support their 42 mbps HSPA+ network while the Play Store version is only 21 mbps.

with that being said, i find it hard to believe that Google would sell this phone with 2 different radios. this same line of thinking is one of the reasons Google didn't include LTE on the Nexus 4.

i'm hoping (and assuming) that the Play Store version supports 42 mbps. if not, at least maybe some software hack could unlock 42 mbps access.

ugh, i just bought the Note 2...now debating on whether or not to return and get the Nexus 4.
[Nexus 4 Q&A, Help & Troubleshooting] Euler MD:
Yeah, I really hope the HSPA+42 one will be made available for the same price as the HSPA+21 one since I am using T-Mobile.
[Nexus 4 Q&A, Help & Troubleshooting] judoka209:
I really would like to know this too. I'm switching to T-Mobile for this phone and I need to know where to buy my phone from.
[Nexus 4 Q&A, Help & Troubleshooting] jarjar124:
im confused on this 2...i was hoping to change into the $30 monthly plan no contract on hspa+ but...which one is it?
[Nexus 4 Q&A, Help & Troubleshooting] Jesushasadroid:
The play store
[Nexus 4 Q&A, Help & Troubleshooting] lookitzjohnny:
I really hope the one in playstore tmobiles 42mbps, i will instantly pay my ETF with tmobile and switch to the $30 monthly plan!
[Nexus 4 Q&A, Help & Troubleshooting] ctfrommn:
Already announced!

http://www.androidcentral.com/fyi-nexus-4-rocks-42-mbps
[Nexus 4 Q&A, Help & Troubleshooting] fastcrab:
I'll be ecstatic if t-mobile includes Wifi UMA calling for the Tmobile release.
[Nexus 4 Q&A, Help & Troubleshooting] newbieandroid:
The T-Mobile version will be sporting the 42mbps radio, I'm torn between the Galaxy Note II and the Nexus 4. The Snapdragon S4 Pro is better than the quad core Exynos. I love the blacks on AMOLED screens since I watch movies often the screen size would be nice.

http://www.tmonews.com/2012/10/t-mobile-confirms-nexus-4-hspa-42mbps-connectivity/

Sorry for this dumb question but does the 42mbps radio make much of a difference if I'm averaging around 8-10mbps? I'm currently using the HTC One S and I know it's usng the 42mbps radio. If I get the play store version would I average lower connection speeds?
[Nexus 4 Q&A, Help & Troubleshooting] Red Wolf:
Oky guys, I am getting this for sure, but I don't wanna stuck in 2G so where should I buy it from google store or t-mobile?]

And who gonna provide the update for t-mobile version ? google or t mobile
[Nexus 4 Q&A, Help & Troubleshooting] thebobp:
So will the Play Store version, according to the update in that same article.

Given this, there's absolutely no reason to get the contract version. You only save $150, while the cost of a contract can easily exceed $1000.
[Nexus 4 Q&A, Help & Troubleshooting] newbieandroid:
Your right, I was shocked when I first saw the play store version because I thought the benefit of using a Snapdragon in almost all of T-Mobiles devices dating back to the S3 in the Galaxy S3 was to get the 42mbps radio. I guess that's my next phone!
[Nexus 4 Q&A, Help & Troubleshooting] musclehead84:
Sobit has been confirmed that the play store will use t-Mobiles 42 hdpa+? Also what is the 30 dollar a month plan on t-mobile? I'm on Verizon but I want the nexus 4
[Nexus 4 Q&A, Help & Troubleshooting] Red Wolf:
Check this article http://www.tmonews.com/2012/10/t-mobile-confirms-nexus-4-hspa-42mbps-connectivity/

They are saying it's 42+ not 21+ :confused:
[Nexus 4 Q&A, Help & Troubleshooting] IAmNotATeenageThug:
Canadian AWS carriers?

If these two are the same phones, will this work on mobilicity or wind?

Please be yes....
[Nexus 4 Q&A, Help & Troubleshooting] takerfan:
Are you talking about Wind in Canada? If so then yes, it will work. The nexus 4 is pentaband 3G meaning it supports all GSM bands.
[Nexus 4 Q&A, Help & Troubleshooting] leyvatron:
42mbps or 21mbps... I was with T-Mobile for about 10 years and rarely saw 8-10mbps.
[Nexus 4 Q&A, Help & Troubleshooting] bmozaffari:
A few people seem certain that there is only one version of the Nexus 4 so no difference if you get it from TMO or the Play Store. A couple of links like the one from tmo news suggest the same info from a Google Press Release but none have linked to or published the press release so we can't be sure.

So there is still not certainly from my point of view and a chance that the Play Store version will not be a TMO 42mbps version. However if that's the case, you will still get 3G and even HSPA+, it will just not be as fast. To be clear, based on feedback from others, you might get 5mbps where someone with the 42mbps version is getting 8.
[Nexus 4 Q&A, Help & Troubleshooting] Red Wolf:
its same version play store just updated https://play.google.com/store/devices/details?id=nexus_4_16gb

21 to 42 :D
[Nexus 4 Q&A, Help & Troubleshooting] triStateMindgate:
Seems like they're both the same device, both have the 42 radio. And it was confirmed that the one sold in tmo store is going to be 100% bare bone stock, no bloatware . I guess the only difference will be warranty procedures... tmo replacements vs Google warranty replacements...
[Galaxy S I9000 General] tinyhitman:
My galaxy s was hanging on boot (at the big S logo). This wasn't the first time and last time I had tried everything and reflashed. Yet this time odin crashed (windows gave me the 'Odin.exe stopped working' notification) and my phone powered off...

Now it won't give me anything, not download mode, OS or recovery (screen stays black, not even sure if the phone boots at all, hardware buttons also stay off)

Couldn't find anything usefull, any thoughts?

Cheers
[Galaxy S I9000 General] mrjraider:
Try the JIG to force it into download mode and try again. If odin crashes again, try flashin within windows safe mode. Sometimes it prevents crashing :)