Failed to diable the captive portal detection - Nexus 5 Q&A, Help & Troubleshooting

Hey guys,
I was having trouble when disable the captive portal detection.
I got a Nexus5 with the latest original 6.0 rom MRA58N. To root the device, I also flashed a third part kernel, which is ElementalX 6.05 and SuperSU 2.46.
I used the adb shell on my computer and got a error prompt as shown below:
settings put global captive_portal_detection_enabled 0
Error while accessing settings provider
java.lang.NullPointerException: Attempt to invoke interface method 'android.app.
IActivityManager$ContentProviderHolder android.app.IActivityManager.getContentPr
oviderExternal(java.lang.String, int, android.os.IBinder)' on a null object refe
rence
at com.android.commands.settings.SettingsCmd.run(SettingsCmd.java:141)
at com.android.commands.settings.SettingsCmd.main(SettingsCmd.java:63)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:251)
Anyone here can help me?

Related

Super User - Cracked Screen

Hi, I have a BIG Optimus 2X, but i got a crack on the screen from left to right in the middle of the screen and i can only use the top half of the screen. I have managed to use nvflash to remove my custom rom and install the original rom.
As i am waiting my company to give me the instructions to get the phone repaired, I began to wonder if there is a way to use the phone without using the touch-screen.
Surfing the web i found Droid VNC Server and i managed to install it and to START it via ADB
the command to start it via ADB is the following one:
# am start -a android.intent.action.MAIN -n org.onaips.vnc/org.onaips.vnc.Mai
nActivity
well now i have it on the screen of my phone, and i am able to select start, becouse it is just up the crack, but Superuser acces is asked, and i am unable to accept and grant SU acess.
So my question is:
Is there a way to give SU permissions to vnc server via ADB? or is there a table or a file in where su has granted and denied software ?
Thanks in advance.
A possible way to launch vnc server :
(tested on a broken screen nexus S)
(droid VNC server must be installed (can be done via play store))
(I haven't any su issues with this method)
1: set execution right (this has to be to done only once) :
Code:
adb.exe shell chmod 766 /data/data/org.onaips.vnc/files/androidvncserver
2: manualy launch the executable :
Code:
adb.exe shell /data/data/org.onaips.vnc/files/androidvncserver
3: from an other window set port forwarding :
Code:
adb.exe forward tcp:5901 tcp:5901
4: from PC launch your favorite vnc viewer

[Q] Glamour S4 4.3 Rom (Unfortunately Settings Has Stopped)

Hi, Im getting an "Unfortunately Settings Has Stopped" error at boot of this rom, does anyone know a fix for this ?
mdcool26 said:
Hi, Im getting an "Unfortunately Settings Has Stopped" error at boot of this rom, does anyone know a fix for this ?
Click to expand...
Click to collapse
Post a logcat.
If you don't know how, then you can run the tool in my signature and use the command lgctnp
Then post the generated text file as an attachment here.
missis roo
Lgrootnoob said:
Post a logcat.
If you don't know how, then you can run the tool in my signature and use the command lgctnp
Then post the generated text file as an attachment here.
Click to expand...
Click to collapse
I've never done a logcat before. But I have adb installed with phone connected through usb. typed in "adb logcat -v long > Settings has stopped.txt" with message saying "- waiting for device -" then nothing happens when booting phone ?
mdcool26 said:
I've never done a logcat before. But I have adb installed with phone connected through usb. typed in "adb logcat -v long > Settings has stopped.txt" with message saying "- waiting for device -" then nothing happens when booting phone ?
Click to expand...
Click to collapse
Sorry, you will need the drivers for your device and you will have to have usb debugging on.(> the reasons for the waiting for device)
If you don't have debugging on then we must find a recovery with adbd running.
Then use my tool's command lgctnp
then exit notepad.
post the text file from the Work folder here in an attachment.
Then we can move along.
Lgrootnoob said:
Sorry, you will need the drivers for your device and you will have to have usb debugging on.(> the reasons for the waiting for device)
If you don't have debugging on then we must find a recovery with adbd running.
Then use my tool's command lgctnp
then exit notepad.
post the text file from the Work folder here in an attachment.
Then we can move along.
Click to expand...
Click to collapse
Here's a logcat. I had to update adb to latest version to get working.
mdcool26 said:
Here's a logcat. I had to update adb to latest version to get working.
Click to expand...
Click to collapse
Now we got something.
Status update in 5 minutes.
---------- Post added at 03:57 PM ---------- Previous post was at 03:39 PM ----------
DISCLAIMER: I'm not a developer. So expect some hiccups.
Potential issues:
dlopen failed: library "/system/lib/libnetcmdiface.so" not found
^Missing module. (Might mean networking problems )
bool android::SecHdmi::create(int, int)::FIMC0: Insufficient memory size(0x 3c00KB) for Graphic layers
^Hdmi? Don't worry 'bout this one.
(Seems like Hdmi out on this phone won't work} Does this phone have Hdmi out?
Back to the point.
Do you have trouble with airplane mode or wifi or any other networking?
What settings have you touched in developer options?
It says something about database issues with the settings application. Have you changed the default database at all with titanium backup?
(as in: Convert dbs to WAL mode)
Go run fix permissions in recovery.
Try the settings.
Then if it doesn't work try clearing data for settings app, and rebooting into recovery and clearing dalvik cache.
Can you quote this post to the rom developer please?
Other Stuff to highlight:
Code:
[ 12-01 04:11:07.846 7678: 7718 E/Volley ]
[287] NetworkDispatcher.run: Unhandled exception java.lang.NullPointerException
java.lang.NullPointerException
at com.android.volley.toolbox.BasicNetwork.performRequest(BasicNetwork.java:100)
at com.android.volley.NetworkDispatcher.run(NetworkDispatcher.java:105)
[ 12-01 04:11:13.736 4615: 4700 D/CrashAnrDetector ]
processName: com.android.settings
[ 12-01 04:11:13.736 4615: 4700 D/CrashAnrDetector ]
broadcastEvent : com.android.settings system_app_crash
This looks like a major issue:
[ 12-01 04:11:07.776 7771: 7783 E/DatabaseUtils ]
Writing exception to parcel
java.lang.NullPointerException
at com.visionobjects.resourcemanager.util.Version.compareTo(Version.java:88)
at com.visionobjects.resourcemanager.util.Version.compareTo(Version.java:1)
at java.util.ComparableTimSort.countRunAndMakeAscending(ComparableTimSort.java:286)
at java.util.ComparableTimSort.sort(ComparableTimSort.java:153)
at java.util.ComparableTimSort.sort(ComparableTimSort.java:142)
at java.util.Arrays.sort(Arrays.java:1973)
at java.util.Collections.sort(Collections.java:1867)
at com.visionobjects.resourcemanager.core.FileSystemHelper.keepOnlyMostRecentLibVersion(FileSystemHelper.java:64)
at com.visionobjects.resourcemanager.core.FileSystemHelper.<init>(FileSystemHelper.java:52)
at com.visionobjects.resourcemanager.DataStorageProvider.buildLangCache(DataStorageProvider.java:270)
at com.visionobjects.resourcemanager.DataStorageProvider.buildLangsCursor(DataStorageProvider.java:315)
at com.visionobjects.resourcemanager.DataStorageProvider.query(DataStorageProvider.java:175)
at android.content.ContentProvider.query(ContentProvider.java:744)
at android.content.ContentProvider$Transport.query(ContentProvider.java:199)
at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:114)
at android.os.Binder.execTransact(Binder.java:388)
at dalvik.system.NativeStart.run(Native Method)
[ 12-01 04:11:07.786 7743: 7743 D/AndroidRuntime ]
Shutting down VM
[ 12-01 04:11:07.786 7743: 7743 W/dalvikvm ]
threadid=1: thread exiting with uncaught exception (group=0x41c70700)
[ 12-01 04:11:07.801 5072: 5072 W/dalvikvm ]
Refusing to reopen boot DEX '/system/framework/commonimsinterface.jar'
[ 12-01 04:11:07.806 7743: 7743 E/AndroidRuntime ]
FATAL EXCEPTION: main
java.lang.RuntimeException: Unable to start receiver com.android.settings.SettingsIntentReceiver: java.lang.NullPointerException
at android.app.ActivityThread.handleReceiver(ActivityThread.java:2541)
at android.app.ActivityThread.access$1600(ActivityThread.java:159)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1392)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5419)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1046)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:862)
at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:115)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException
at android.os.Parcel.readException(Parcel.java:1437)
at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:185)
at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:137)
at android.content.ContentProviderProxy.query(ContentProviderNative.java:385)
at android.content.ContentProviderClient.query(ContentProviderClient.java:86)
at android.content.ContentProviderClient.query(ContentProviderClient.java:67)
at com.android.settings.handwritingsearch.RMHelper.getLangList(RMHelper.java:43)
at com.android.settings.SettingsIntentReceiver.checkVOLanguage(SettingsIntentReceiver.java:1752)
at com.android.settings.SettingsIntentReceiver.onReceive(SettingsIntentReceiver.java:565)
at android.app.ActivityThread.handleReceiver(ActivityThread.java:2525)
... 11 more
[ 12-01 04:11:07.836 4615: 5202 I/ActivityManager ]
Notify an ApplicationCrash
problem in glamour s4 rom
I am also using glamour s4 rom on s3 but there are some problems which lack my device performance .!
The camera isn't working properly when I click the button to capture the image the camera is unfortunately get stopped .!
Sometimes settings also stopped !
And a window appear on which writen
Unfortunately touchwiz stopped .!
Plz help me guys .!
Although I respect the work of henery and his partners !
May I get the solutions of these all problems .!
Otherwise the best rom having features of s4 and of note 3 .!

IKeyStore Force Closes

I had the 4.4.4 CarbonRom flashed and decided to try out the new 5.X.
Without updating my bootloader ( It was 4109 I think) I clean wiped my phone and flashed the euphoria rom. I was unable to open the Security Settings menu or uninstall any app. I posted the logcat from the 5.1 rom in the euphoria thread.
Since I was on the old bootloader I updated to the 4118 versione without a problem but I still couldnt open Security or uninstall any app. I tried other roms such as the AOSP 5.1, but it still wasn't working. So I tried going back to the stock 4.4.4 rom but I'm still having the same problems. The logcat from the 4.4.4 stock is attached. I've also tried the 5.1 stock rom, same result.
Any idea on how to fix this?
Ok I managed to fix this by searching for another string I found in the logcat, specifically :
Code:
E/QSEECOMAPI: ( 6008): Error::Cannot open the file /vendor/firmware/keymaster/keymaster.mdt
E/QSEECOMAPI: ( 6008): Error::Cannot open the file /firmware/image/keymaste.mdt
I'm reposting the solution and the relevant logcat lines for any poor soul that has the same problem in the future:
Code:
E/AndroidRuntime(19798): java.lang.RuntimeException: Unable to resume activity {com.android.settings/com.android.settings.SubSettings}: java.lang.NullPointerException: Attempt to invoke interface method 'int android.security.IKeystoreService.is_hardware_backed(java.lang.String)' on a null object reference
E/AndroidRuntime(20411): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.settings/com.android.settings.SubSettings}: java.lang.NullPointerException: Attempt to invoke interface method 'int android.security.IKeystoreService.zero()' on a null object reference
E/AndroidRuntime(25642): java.lang.NullPointerException: Attempt to invoke interface method 'int android.security.IKeystoreService.clear_uid(long)' on a null object reference
I found the solution in this thread. You have to copy the keymaster files I attached in the zip into the /firmware/image/ folder after mounting the /firmware with read write permissions. Be sure to chmod 644 all the files too.

Device Owner already set

I'm trying to set up a package to be device owner
adb shell dpm set-device-owner com.pdp.deviceowner/.receivers.AdminReceiver
But, i'm getting an error
java.lang.IllegalStateException: Not allowed to set the device owner because there are already some accounts on the device
at android.os.Parcel.createException(Parcel.java:1958)
at android.os.Parcel.readException(Parcel.java:1918)
at android.os.Parcel.readException(Parcel.java:1868)
at android.app.admin.IDevicePolicyManager$Stub$Proxy.setDeviceOwner(IDevicePolicyManager.java:5863)
at com.android.commands.dpm.Dpm.runSetDeviceOwner(Dpm.java:176)
at com.android.commands.dpm.Dpm.onRun(Dpm.java:106)
at com.android.internal.os.BaseCommand.run(BaseCommand.java:54)
at com.android.commands.dpm.Dpm.main(Dpm.java:41)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:340)
Caused by: android.os.RemoteException: Remote stack trace:
at com.android.server.devicepolicy.DevicePolicyManagerService.enforceCanSetDeviceOwnerLocked(DevicePolicyManagerService.java:7942)
at com.android.server.devicepolicy.DevicePolicyManagerService.setDeviceOwner(DevicePolicyManagerService.java:7232)
at android.app.admin.IDevicePolicyManager$Stub.onTransact(IDevicePolicyManager.java:1095)
at android.os.Binder.execTransact(Binder.java:746)
There are no accounts on the device, i did a factory reset.
I have a verizon z4. is this the problem? is anyone else having a problem with an 'Unlocked' version?
Get a root shell using ADB and check the contents of your device_policies.xml (and device_owner.xml) files.
Code:
cat /data/system/device_policies.xml
Code:
cat /data/system/device_owner.xml
You want to check if there is an active admin or owner set for your device. If you cannot find this app enabled as admin in settings (Settings > Security > Device admin apps), you can remove this app using ADB.
Because you already have a device owner, you cannot set a different device owner until all accounts are removed and no active admin application owns your device.

How do I set the Device Owner? (adb) - To disable system apps

Hi,
I was wondering if anyone has managed to set the device owner for the find x2 pro? I tried using package disabler pro, but it keeps complaning about not having device owner access. It says to run thus via adb:
Code:
adb shell dpm set-device-owner com.pdp.deviceowner/.receivers.AdminReceiver
after running this, it does not work and get this erro
Code:
java.lang.IllegalStateException: Not allowed to set the device owner because there are already several users on the device
at android.os.Parcel.createExceptionOrNull(Parcel.java:2397)
at android.os.Parcel.createException(Parcel.java:2373)
at android.os.Parcel.readException(Parcel.java:2356)
at android.os.Parcel.readException(Parcel.java:2298)
at android.app.admin.IDevicePolicyManager$Stub$Proxy.setDeviceOwner(IDevicePolicyManager.java:8665)
at com.android.commands.dpm.Dpm.runSetDeviceOwner(Dpm.java:203)
at com.android.commands.dpm.Dpm.onRun(Dpm.java:115)
at com.android.internal.os.BaseCommand.run(BaseCommand.java:60)
at com.android.commands.dpm.Dpm.main(Dpm.java:41)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:399)
Caused by: android.os.RemoteException: Remote stack trace:
at com.android.server.devicepolicy.DevicePolicyManagerService.enforceCanSetDeviceOwnerLocked(DevicePolicyManagerService.java:9668)
at com.android.server.devicepolicy.DevicePolicyManagerService.setDeviceOwner(DevicePolicyManagerService.java:8702)
at android.app.admin.IDevicePolicyManager$Stub.onTransact(IDevicePolicyManager.java:3582)
at android.os.Binder.execTransactInternal(Binder.java:1161)
at android.os.Binder.execTransact(Binder.java:1130)
I also deleted all my accounts associated to the device and still no joy
I wanted to disable some system apps, to see if I can figure out what is preventing apps to be clocked at 60hz. I know coloros whitelists certain apps, so i thought it maybe a system app that is doing this and eliminate them one by one.
Have you selected the option Disable Permission Monitoring in Developer options?

Categories

Resources