yashsingh1/xdaforums huggingface dataset:
[Galaxy Note 3 Neo Q&A, Help & Troubleshooting] jugals:
Hello,

I have been looking for an application which can restrict or can allow to control permissions of another application.

I want to disable internet connectivity permission of some applications. Is this possible as this can result into convenient use as well it can help in saving the battery life.

If anyone is aware about the same, please let me know.

Model - Samsung Note 3 Neo

I dont prefer to root the model as of now.

Thanks :)
[Galaxy Note 3 Neo Q&A, Help & Troubleshooting] yukidurama:
If you are still in jelly bean, you can use app ops.

Though, it doesnt have capability to disable internet connection.

It can, however, disable permission such as contacts, location request, etc.
[Nexus 9 Q&A, Help & Troubleshooting] GedBlake:
Hi, all..

As is probably known, before fastboot commands on the Nexus 9 will work, two things are required...

First, this option, in Developer Options, needs to he checked box ticked...

** Enable OEM Unlock **

...followed by... (with the device booted into it's bootloader)...

fastboot oem unlock

------

UNDER ABSOLUTELY NO CIRCUMSTANCEs SHOULD THIS PROCEDURE BE REVERSED.... unless you're running 100% stock.

It will very likely cause your Nexus 9 to be become permanently semi-bricked.

The device will boot, and it will charge... However IF YOU CAN'T BOOT ANDROID, AND RE-ENABLE. the ** Enable OEM Unlock ** option in Developer Setting's, then...

fastboot oem unlock

...will fail.

And you won't even be able to fastboot flash back to factory stock.

You can't even remotely boot a recovery, with...

fastboot boot recovery

...as this too, also requires an unlocked bootloader.

I know; I've tried.

-----

And this is my current predicament... My Nexus 9 now constantly bootloops into TWRP, with this message, at the top of the screen...

This is a development device not intended for production use..

Bootloader is locked, and I can't unlock it because I can't boot Android in order to set ** Enable OEM Unlock ** in developer options.

Unless anybody has any suggestions, my Nexus 9 is now pretty much useless:(.

Rgrds,

Ged.
[Nexus 9 Q&A, Help & Troubleshooting] GedBlake:
OK.. Anybody know what the setting **Enable OEM Unlock** in Developer Options actually sets.

What flag it sets?

In terms of the underlying operating system, this MUST JUST FLIP some binary state flag, such that...

fastboot oem unlock

...now works.

There's gotta be some ADB command that will re-enable this, in the absence of a bootable version of Android.

Or some terminal command like a (dd=if>of command).

----

I've been at this for now, for 12 f**king hours:)...

I've tried everything I know.

At one point, TWRP, didn't bootloop and booted properly. But it was a pyrrhic victory, 'cos I had nothing on the device to restore. That was four hours ago... since then TWRP just bootloops endlessly.

I suspect that when., via the bootloader, I select the FACTORY RESET option, it's looking for the stock recovery... and which of course it doesn't find.... because TWRP is installed.

Indeed, I also suspect because Lollipop now runs encrypted, there are issues with mounting the data partition.

----

Well, I guess, my Nexus 9 is pretty much screwed, I think... :(

It'll make a nice Christmas decoration though:).. It actually lights up!!!:)))). It's not THAT bricked. It still lights up.:(.

----

In conclusion..

...and for guidance for others...

***

After rooting, and fastboot flashing TWRP...

--do not relock the bootloader.--

--do not disable. ** Enable OEM Unlock ** in Developer Options--

***

If you do both, and Android won't boot, your Nexus 9 is f**cked!:(!

You won't be able to flash anything; not even with a a toolkit like Wugs. I've tried.

Rgrds,

Ged.
[Nexus 9 Q&A, Help & Troubleshooting] Scotlac:
Wow, really sorry to hear about your device! Maybe somebody here can come up with a fix for you...

Thanks for giving the rest of us a heads up!
[Nexus 9 Q&A, Help & Troubleshooting] demkantor:
[MENTION=5049483]GedBlake[/MENTION]

If you have time I'm willing to help you out, I've been testing some things and may be able to help, just let me know
[Nexus 9 Q&A, Help & Troubleshooting] MRobbo80:
Don't worry! Will let demkantor help you. Have you tried fastboot erase recovery and flash stock?
[Nexus 9 Q&A, Help & Troubleshooting] di11igaf:
He can't fastboot because his boot loader is locked. He can't unlock boot loader because he can't check that box. I knew this was gonna be problems as soon as I saw this setting. I guess I get what google was going for, but I still don't like it.

A nexus device should be able to recover from anything short of a hand grenade, for something this simple to semi brick a nexus is ridiculous.

Op, i taje it you can get to an adb shell? Or can you not even access recovery?
[Nexus 9 Q&A, Help & Troubleshooting] di11igaf:
As long as you don't make the same 'mistake' again,(admittedly a mistake google should have considered before implementing the 'unlockable' flag) rooting/flashing a nexus is perfectly safe. If you stay unlocked, you can recover from anything. Performance with kernels and roms will continue to get better as the nexus 9s shortcomings are discovered and figured out. (There is a lot of new things with the 9-----lollipop, 64 bit architecture, etc). Personally I need root and an unlocked boot loader, but not everybody does.

Realistically with your device having access to a # adb shell your device was probably recoverable at the very least with 'dd', but you're back up so thats good. You paid for the no questions asked warranty and used it as designed as you should have, as much as it sucks at least you're back up.

Glad everything worked out for you.
[Nexus 9 Q&A, Help & Troubleshooting] totalnoob34:
I think you simply got a good scare off this story, losing a tablet for a checkbox unchecked is quite annoying.

I like to have the bootloader unlocked/s-off as soon as I get a device, so that I can do whatever I like with it the future. I personally couldn't live without root and custom roms, but I guess that my opinion could differ from yours :)
[Nexus 9 Q&A, Help & Troubleshooting] GedBlake:
A good 'scare off' story is perhaps sometimes a good thing. It helps keep perspective. A 'chilling' perspective...

Rooting, unlocking bootloaders, and/or flashing custom roms/kernels/recoveries, etc... should, I think, NEVER be considered routine.

We're not talking about installing Angry Birds here:)... there is always going to be some element of risk to the device.

However, with all that said... I've decided that some valid points have been made... And so I have decided to bite the bullet, and root my replacement Nexus 9.

Currently backing everything up to my laptop...

I'm going to use CF-Auto root... And stay clear of TWRP. I have some suspicions that the presence of TWRP (which endlessly bootlooped), played some part in the previous debacle.

Hope my female friend, who bought me this device, doesn't learn that I'm messing with it again:(. She'll give me all kinds of hell if I screw it up again!!

Anyhow, signing off for now... progress report later:).

Rgrds,

Ged.

Yay!!!! My Nexus 9 bootloader is now unlocked, and successfully rooted... and without problems.

I can now rest easy... :).

Thanks once again, for everybodies input, help, advice and guidance.

Kind Rgrds,

Ged.
[Nexus 9 Q&A, Help & Troubleshooting] totalnoob34:
In my opinion, unlocking the bootloader and rooting is routine, on mine and on my close friends' phones. But, as I said, everyone is free to do whatever he likes with their device ;)
[Nexus 9 Q&A, Help & Troubleshooting] rodrigorajao:
I've always had bad luck with TWRP on my devices. I always use ClockworkMod recovery, even if someone specifically recommends TWRP for some task.

But don't be scared by this episode. From your post, you definitely know what you're doing and eventually hit a brick wall. Yeah, **** happens. It's an inherent risk of modding your device.

Just don't give up.
[Nexus 9 Q&A, Help & Troubleshooting] StuMcBill:
I just relocked mine prior to sending it back, however, I was stock.

I did a full wipe, then did a fastboot oem lock, then booted back into android, re-enabled Developer Options, disabled OEM Unlock option and wiped again - booted into setup screen no problem.

Now packed up ready to send back to Google.
[Nexus 9 Q&A, Help & Troubleshooting] Migamix:
that sounds like the logical proper order to do it.
[Nexus 9 Q&A, Help & Troubleshooting] albsat:
Thanks for the warning. So to sum it up, if we need to enable oem unlock, we should be in stock 100%. Right?
[Nexus 9 Q&A, Help & Troubleshooting] dirceucorsetti:
My case is similar, the only difference is that I never changed the recovery. After a few days of it working ok, at the startup it just stays at the Google logo.

Tried a Factory Reset and Wipe and not yet a single change. Next step would be to just flash the stock ROM, but wait! Developer Options was never enabled nor was Enable OEM Unlock.

I bought this $450 tablet in the US and I live in Brazil and now I cannot even return it. This is how dumb the decision to add this toggle was. And I tought Google made the device for developers.
[Nexus 9 Q&A, Help & Troubleshooting] doitright:
You're fine. Just find the factory update.zip and install it via factory recovery, along with a userdata wipe.
[Nexus 9 Q&A, Help & Troubleshooting] dirceucorsetti:
After a few tries the factory reset was well succeeded. Thanks for the info though. I had no knowledge that I could flash the stock version via factory recovery. I guess I'm back to the noob pack.
[Nexus 9 Q&A, Help & Troubleshooting] lyubor:
Same just happened to me and I'm stuck. Is there any way to even use TWRP? I can boot into it but it can't mount storage which makes it useless afaik. I was running stock rom and everything except recovery..

You still have no answer to your problem?

Edit: after trying factory reset through the bootloader the recovery won't boot anymore..
[Nexus 9 Q&A, Help & Troubleshooting] demkantor:
Just use fastboot to install the factory images
[Nexus 9 Q&A, Help & Troubleshooting] lyubor:
My device is locked and it won't let me unlock the bootloader. Probably because of that pesky option in dev options. :(
[Nexus 9 Q&A, Help & Troubleshooting] demkantor:
Try anyway, you should be able to flash stock without unlocking the bootloader
[Nexus 9 Q&A, Help & Troubleshooting] lyubor:
Access denied to any fastboot command since the bootloaders locked. I don't get why I can't unlock it though. I never unchecked the option in dev settings. I'll try to get it replaced due to defects (got light bleed and crappy buttons) hopefully I can convince them that the software wasn't my fault.
[Nexus 9 Q&A, Help & Troubleshooting] demkantor:
Try

fastboot oem rebootRUU
[Nexus 9 Q&A, Help & Troubleshooting] lyubor:
What'll that do? Would this be some workaround to booting past the current kernel?
[Nexus 9 Q&A, Help & Troubleshooting] demkantor:
No its htc's way of flashing stock ROMs

I haven't had enough time to play around with this devices bootloader but would love to try and dig into the issues of one of these soft bricked ones to see how easy it could be to fix
[Nexus 9 Q&A, Help & Troubleshooting] jd1639:
Without being able to flash the factory image with the bootloader locked and the gyrations one needs to go through to unlocked the bootloader it's an accident waiting to happen.
[Nexus 9 Q&A, Help & Troubleshooting] demkantor:
I'm not disagreeing that the new tickmark that needs to be applied is a bad idea but this doesn't mean that all commands are absent to those in this situation

Every nexus device I have owned (all but the gnex) are able to flash factory images with a locked bootloader so having this situation wouldn't matter with those devices

With every HTC I have owned (5 in all) there has been multiple ways of flashing stock firmware to the device and without the need for an unlocked bootloader or radio secure flags removed

This doesn't mean that this device isn't different or that there will be a way other than JTAG but I would like to run some tests on a n9 in this situation to confirm its either a terrible idea to have the tick mark or just something stupid to have but an easy way around it when something happens
[Nexus 9 Q&A, Help & Troubleshooting] jd1639:
I don't know what kind of tests you'd like to run, I may be open to running some, but in my opinion if you're going to root and/or put a custom rom on it's best to leave the bootloader unlocked just in case.
[Nexus 9 Q&A, Help & Troubleshooting] lyubor:
That command booted me with HTC logo but I couldn't get it to do much. Any other ideas? I'm going to look up all fastboot OEM commands, maybe something in there will make sense.

---------- Post added at 01:08 PM ---------- Previous post was at 12:14 PM ----------

I would've never locked the bootloader if I wasn't planning on returning it due to light bleed and crappy buttons. I just hope that they accept it at the store later today. Bootloader's locked so I should still have warranty, since the internal storage's wiped there's nothing left of when I did have root. I doubt the people at the store have any idea what a custom recovery is.
[Nexus 9 Q&A, Help & Troubleshooting] demkantor:
When are you planing to return it? Do you have some time to chat somewhere in real time to try and return in to working stock first?

Well the tests I want to run would be on one of these soft bricked ones, so unless your in that boat I doubt you want to test
[Nexus 9 Q&A, Help & Troubleshooting] guivalli:
Hello everyone

First, sorry about my english (Im Brazilian and my english is very poor)

Second, i have same situation in here. I Locked my bootloader and this lolli cant let me unlock again

My phone is a MotoMaxx (yes, i know, here is just for nexus, but im in panic and i need help!)

I cant exit fastboot mode.

Neither Reovery mode too

If anyone have idea, ill try!

So, thank u!
[Nexus 9 Q&A, Help & Troubleshooting] awdizayn:
did you find a solutoin?
[Nexus 9 Q&A, Help & Troubleshooting] geologic:
Fixedddddd

I found a fix for this after I half bricked my nexus 6 earlier.

1) Use TWRP or whatever other non stock recovery you have installed to install a third party ROM like Chroma

2) Enable developer options, turn on enable oem unlock

3) reboot to bootload and fastboot oem unlock

Fixed!

Hope this helps!
[Nexus 9 Q&A, Help & Troubleshooting] jd1639:
Dude, you're not understanding the problem
[Nexus 9 Q&A, Help & Troubleshooting] geologic:
as I understood it he had relocked the device with a nonstock recovery and a non working OS installed. He couldnt reunlock the bootloader without being able to boot. Am I misunderstanding?
[Nexus 9 Q&A, Help & Troubleshooting] YankInDaSouth:
Welp, I think I am officially in this club of bricking a Nexus device! Tried to update my N6 to 5.1 and, long story short, it's locked, won't boot and no custom recovery ...
[Nexus 9 Q&A, Help & Troubleshooting] jd1639:
The problem is it never boots into twrp. It starts to boot and then reboots
[Nexus 9 Q&A, Help & Troubleshooting] geologic:
I actually ran into that too... I did fastboot format cache and fastboot format userdata. For whatever reason I was then able to get into TWRP.

If I recall correctly... Ive been working on this all day. The TeamWin Logo would show up... then the screen would go black... then it would show up again... endlessly.
[Nexus 9 Q&A, Help & Troubleshooting] jd1639:
If the bootloader is locked you can't run fastboot commands. That's part of the whole problem here. If the bootloader was unlocked you could flash a factory image and all the problems would be solved
[Nexus 9 Q&A, Help & Troubleshooting] geologic:
It might not be helpful but I know that I couldnt boot stock android so I thought oh let me lock then unlock and it should clear everything out and might fix this. I then found out I couldnt reunlock the bootloader. TWRP was stuck in the bootloop I described - I cant recall exactly but either turning off and then back on and/or those fastboot commands eventually let me into TWRP. From there I could do as described and reunlock the bootloader.

---------- Post added at 02:01 AM ---------- Previous post was at 01:56 AM ----------

To confirm my experience I just locked the bootloader on my Nexus 6 via fastboot. I then was able to successfully execute fastboot format cache and fastboot format userdata.

---------- Post added at 02:11 AM ---------- Previous post was at 02:01 AM ----------

So condescend all you like - my experience has been that the exact procedure I have described works. Good luck with your problem.

---------- Post added at 02:19 AM ---------- Previous post was at 02:11 AM ----------

I used chroma as the ROM to recover my nexus 6.
[Nexus 9 Q&A, Help & Troubleshooting] ixa20:
Deleted
[Nexus 9 Q&A, Help & Troubleshooting] walt4861:
nexus 6 lollipop 5.1 update said successful but now in bootloop

even twsp in bootloop apparently the update reset devloper options abd debug not checked aslo oem not checked can't unlock phone since in bootloop the only thing I can do is terminal mode can i set developer options in terminal mode
[Nexus 9 Q&A, Help & Troubleshooting] goti(0):
Partial solution

If this case happens there will be two situations

1 Custom recovery is installed on your nexus.

If yes then there is no problem boot your device in recovery after entering in bootloader. Then transfer any rom you want to flash, problem solved.Device will boot normally then afterward everything is easy.

If you are stuck in bootloop then just factory reset after that flash the rom.

2 Custom recovery is not installed on your nexus.

In this case i don't have much information, i'll give it a try if a can get much information about this .
[Nexus 9 Q&A, Help & Troubleshooting] Dux0n:
Hi all,

I'm in the same boat as OP today. :(

This sounds interesting, but what does "fastboot format cache" actually do? can you recall it? As far as I know that's no valid fastboot command at all.

Here's my output: pastebin.com/KwuV6twL
[Nexus 9 Q&A, Help & Troubleshooting] mbirth:
I believe your fastboot version is out of date. Mine has a lot more features:

usage: fastboot [ <option> ] <command>

commands:
update <filename> reflash device from update.zip
flashall flash boot, system, vendor and if found,
recovery
flash <partition> [ <filename> ] write a file to a flash partition
erase <partition> erase a flash partition
format[:[<fs type>][:[<size>]] <partition> format a flash partition.
Can override the fs type and/or
size the bootloader reports.
getvar <variable> display a bootloader variable
boot <kernel> [ <ramdisk> [ <second> ] ] download and boot kernel
flash:raw boot <kernel> [ <ramdisk> [ <second> ] ] create bootimage and
flash it
devices list all connected devices
continue continue with autoboot
reboot reboot device normally
reboot-bootloader reboot device into bootloader
help show this help message

options:
-w erase userdata and cache (and format
if supported by partition type)
-u do not first erase partition before
formatting
-s <specific device> specify device serial number
or path to device port
-l with "devices", lists device paths
-p <product> specify product name
-c <cmdline> override kernel commandline
-i <vendor id> specify a custom USB vendor id
-b <base_addr> specify a custom kernel base address.
default: 0x10000000
-n <page size> specify the nand page size.
default: 2048
-S <size>[K|M|G] automatically sparse files greater
than size. 0 to disable
[Nexus 9 Q&A, Help & Troubleshooting] Dux0n:
Yes indeed! Thanks. I've updated but still this suggestion doesn't seem to be a solution in my case. I'd love to know what happened when user geologic executed those commands.

root@hubert:/home/duxon# fastboot format cache
Creating filesystem with parameters:
Size: 268435456
Block size: 4096
Blocks per group: 32768
Inodes per group: 8192
Inode size: 256
Journal blocks: 1024
Label:
Blocks: 65536
Block groups: 2
Reserved block group size: 15
Created filesystem with 11/16384 inodes and 2089/65536 blocks
target reported max download size of 518205818 bytes
erasing 'cache'...
(bootloader) Device State : Locked
FAILED (remote: Can not erase any partition while device state is locked!)
finished. total time: 0.139s

root@hubert:/home/duxon# fastboot format userdata
Formatting is not supported for filesystem with type 'f2fs'.
[Nexus 9 Q&A, Help & Troubleshooting] bcn2003:
PLEASE HELP, I think I'm bricked

I have TWRP installed but I accidentally wiped everything on the phone and re-locked my bootloader...when I run fastboot oem unlock, it tells me I have to enable the setting in developer options, which does me no good if I can't boot into the phone. I can get into the bootloader and I can get into TWRP. Is there anyway possible to unlock my bootloader through an adb or fastboot command? My normal boot up right now is the word "Google", then the AT&T splashscreen logo, followed by the circling colored lights that never changes.

Please help...tell me i'm not screwed
[Nexus 9 Q&A, Help & Troubleshooting] Rekzer:
I just got a nexus 9 and im wondering if this is still a risk to new users? I see the checkbox but is that the only way for the phone to become bricked?
[Nexus 9 Q&A, Help & Troubleshooting] Dux0n:
Well, it is a risk and always will be in the future I guess, since the whole deal is to potentially brick stolen devices.

You, of course, are safe if you won't unlock or uncheck the dev option and lock after you've unlocked.
[Nexus 9 Q&A, Help & Troubleshooting] goti(0):
transfer any Rom you want to flash via your pm as it will be detected by pc.

follow all the instructions to flash that Rom reboot it's done

Sent from my Nexus 6
[Nexus 9 Q&A, Help & Troubleshooting] Rekzer:
Still crazy that a little checkbox can brick it beyond repair.
[Nexus 9 Q&A, Help & Troubleshooting] treepleks:
I just bought a Nexus 6. OTA updated to 5.1. Fastboot unlocked. Rooted. Installed MultiROM which installed TWRP. Then locked it. And I entered the infernal loop where TWRP reboots permanently and fastboot oem unlock says:

(bootloader) Check 'Allow OEM Unlock' in Developer Options.
FAILED (remote failure)

I was hopeless. Softbricked after few hours of usage ! :mad::crying:

I thought unlocking was needed before doing anything effective on the flash memory but it's not correct. You can still format...

I could enter fastboot mode (power + vol down) but recovery lead nowhere (looping TWRP) and also other options lead nowhere.

But...

> fastboot format cache
erasing 'cache'...
OKAY [ 0.056s]
formatting 'cache' partition...
Creating filesystem with parameters:
Size: 268435456
Block size: 4096
Blocks per group: 32768
Inodes per group: 8192
Inode size: 256
Journal blocks: 1024
Label:
Blocks: 65536
Block groups: 2
Reserved block group size: 15
Created filesystem with 11/16384 inodes and 2089/65536 blocks
sending 'cache' (6248 KB)...
writing 'cache'...
OKAY [ 0.386s]
finished. total time: 0.442s

And then

> fastboot format userdata
erasing 'userdata'...
OKAY [ 1.179s]
formatting 'userdata' partition...
Creating filesystem with parameters:
Size: 28474998784
Block size: 4096
Blocks per group: 32768
Inodes per group: 8160
Inode size: 256
Journal blocks: 32768
Label:
Blocks: 6951904
Block groups: 213
Reserved block group size: 1024
Created filesystem with 11/1738080 inodes and 153124/6951904 blocks
sending 'userdata' (139061 KB)...
writing 'userdata'...
OKAY [ 8.591s]
finished. total time: 9.770s

It did it: when I rebooted, the "Google logo" did not blink before entering the dreadful TWRP loop. It instead booted in Lollipop 5.1. I had to enter my Gmail/password twice, the first being because the device complained of having been erased and checked proper owenship. Then I had to reenter it as usual to connect to the Google account.

So, before total despair, don't shoot you and try this :)
[Nexus 9 Q&A, Help & Troubleshooting] Bdbplatano:
Thank you thank you thank you!!!!

This 100% worked!!! Thank you soooo much I was literally on the last thread that I was going to read to try to fix this. This solution completely worked in 10 seconds and with ZERO issues. Thank you so much!!!!