[Samsung] Airplane mode broken / "More connection settings" crash - General Questions and Answers

I've two problems on a Samsung phone (Android 10 / OneUI 2.5), likely caused by the same core problem.
Reset Network settings didn't help. I'm hoping to solve it directly, without factory reset or firmware reinstall.
Any idea how to debug further?
The two problems:
Airplane mode can't be toggled without a restart. Toggling in the Quick Settings, the button will just sit in an intermediate state:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Trying from the full settings page, under some conditions (not always) it looks like you can toggle it (status icons change), but nothing changes in practice, and the QS button will still stay in the intermediate state. The only way to toggle is to change in the full setting page, then restart the phone.
Entering "Settings \ Connections \ More connection settings" always crashes, due to:
Code:
com.android.settings/com.android.settings.SubSettings
java.lang.IllegalStateException
Dependency "airplane_mode" not found for preference "vpn_settings" (title: "VPN",Preference.java,1559]
The full stack trace is:
Spoiler
Code:
[05-20 12:50:43.505 4601:4601 E/AndroidRuntime]
FATAL EXCEPTION: main
Process: com.android.settings, PID: 4601
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.settings/com.android.settings.SubSettings}: java.lang.IllegalStateException: Dependency "airplane_mode" not found for preference "vpn_settings" (title: "VPN"
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3654)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3806)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2267)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:237)
at android.app.ActivityThread.main(ActivityThread.java:8167)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:496)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1100)
Caused by: java.lang.IllegalStateException: Dependency "airplane_mode" not found for preference "vpn_settings" (title: "VPN"
at androidx.preference.Preference.registerDependency(Preference.java:1559)
at androidx.preference.Preference.setDependency(Preference.java:1695)
at com.android.settings.network.VpnPreferenceController.displayPreference(VpnPreferenceController.java:88)
at com.android.settings.dashboard.DashboardFragment.displayResourceTiles(DashboardFragment.java:393)
at com.android.settings.dashboard.DashboardFragment.refreshAllPreferences(DashboardFragment.java:485)
at com.android.settings.dashboard.DashboardFragment.onCreatePreferences(DashboardFragment.java:195)
at com.samsung.android.settings.dynamicmenu.SecDynamicFragment.onCreatePreferences(SecDynamicFragment.java:154)
at androidx.preference.PreferenceFragmentCompat.onCreate(PreferenceFragmentCompat.java:246)
at com.android.settingslib.core.lifecycle.ObservablePreferenceFragment.onCreate(ObservablePreferenceFragment.java:61)
at com.android.settings.core.InstrumentedPreferenceFragment.onCreate(InstrumentedPreferenceFragment.java:67)
at com.android.settings.SettingsPreferenceFragment.onCreate(SettingsPreferenceFragment.java:238)
at com.android.settings.dashboard.DashboardFragment.onCreate(DashboardFragment.java:159)
at com.samsung.android.settings.dynamicmenu.SecDynamicFragment.onCreate(SecDynamicFragment.java:106)
at com.samsung.android.settings.connection.WirelessSettings.onCreate(WirelessSettings.java:322)
at androidx.fragment.app.Fragment.performCreate(Fragment.java:2471)
at androidx.fragment.app.FragmentManagerImpl.moveToState(FragmentManagerImpl.java:847)
at androidx.fragment.app.FragmentTransition.addToFirstInLastOut(FragmentTransition.java:1196)
at androidx.fragment.app.FragmentTransition.calculateFragments(FragmentTransition.java:1079)
at androidx.fragment.app.FragmentTransition.startTransitions(FragmentTransition.java:118)
at androidx.fragment.app.FragmentManagerImpl.executeOpsTogether(FragmentManagerImpl.java:1857)
at androidx.fragment.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManagerImpl.java:1815)
at androidx.fragment.app.FragmentManagerImpl.execPendingActions(FragmentManagerImpl.java:1722)
at androidx.fragment.app.FragmentManagerImpl.executePendingTransactions(FragmentManagerImpl.java:231)
at com.android.settings.SettingsActivity.switchToFragment(SettingsActivity.java:988)
at com.android.settings.SettingsActivity.switchToFragment(SettingsActivity.java:969)
at com.android.settings.SettingsActivity.launchSettingFragment(SettingsActivity.java:655)
at com.android.settings.SettingsActivity.onCreate(SettingsActivity.java:353)
at android.app.Activity.performCreate(Activity.java:7963)
at android.app.Activity.performCreate(Activity.java:7952)
[05-20 12:50:43.506 1317:3347 I/am_crash]
[4601,0,com.android.settings,685358661,java.lang.IllegalStateException,Dependency "airplane_mode" not found for preference "vpn_settings" (title: "VPN",Preference.java,1559]
Not sure anymore when the whole thing started, but it was long ago.
(Maybe the question fits better under "Android Development and Hacking"?
It's not specific to a Samsung model, and AFAICT there's no non-specific Samsung subforum.)

Related

[Q] Android 1.6 saving PNG bitmap doesn't maintain alpha component

Hello all,
So I have searched many api libraries and tried many different ways to save, but I cant seem to keep the alpha channel for an image.
So here is the problem
Step 1: Load an image that is some file type ... say rgb 565..., and convert that to argb 8888. This works great, and the bitmap's hasAlpha flag is true, and I tested it and was able to write to alpha, and read it properly.
Step 2: Save the converted image to a file using something like this:
Code:
bitmap.compress(Bitmap.CompressFormat.PNG, 100, out);
Where out is my FileOutputStream.
Step 3: Once saved I try to load that file again using:
Code:
bitmap = BitmapFactory.decodeFile(bmapFileName, bfo);
Where bfo is my BitmapFactory.Options, which has no prefferedConfig or whatnot.
At each step i print bitmap.getConfig() and bitmap.hasAlpha()
Prints:
Step 1 -> bitmap.getConfig() = rgb565 (or whateverfiletype), hasAlpha = false
Step 2 -> bitmap.getConfig() = argb8888 (or whateverfiletype), hasAlpha = true
Step 3 -> bitmap.getConfig() = argb8888 (or whateverfiletype), hasAlpha = false
So why am I getting hasAlpha in step 3 to be false. And how can I make sure that writing the bitmap to file will maintain its alpha component.
Thanks for any input
Multiple images Animated in Portable Network Graphics
I'm sorry I do not have the answer for you, though since there are two animation formats for PNG related graphics, you could consider using MNG. That most API's do not support them is because (currently) programmers are (still) not familiar with these file formats. Solution; create your own API
Here is some insight in APNG (Animated Portable Network Graphics) and MNG (Multiple-images Network Graphics) obtained from WiKiPEDiA for others to obtain more information regarding this subject.
Read here what w3c.org had to say about PNG.
An APNG image example -=[HERE]=- taken from en.wikipedia (not all browsers support this format)
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
We need more input from others regarding this interesting subject

Software Bug Wallpaper Settings

Anyone else have this bug when trying to change wallpaper..?
Settings > Personalize > Wallpaper > HTC Wallpapers
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Nope... since I use Swedish as language...
Hi ,
No not on mine
3 UK (1.53.771.4 CL47441 )
Nothing here...
Language: English (Greece)
Reply from HTC:
Thank you for contacting HTC.
My name is *** and I am a Technical Support Agent for the HTC Written Team.
I’m sorry to hear that you are experiencing difficulties with the 'apply' button on the personalise screen.
The reason for this is software error within the device.
To resolve this, I would like you to perform the following steps:
This will reset your home screens.
- From the home screen
- Menu
- settings
- applications
- manage all applications
- all
- HTC sense
- clear data / clear cache
- force close
If you can then soft reset the phone. This means to take out the battery while the phone is on, wait 10 seconds, put the battery back in and start up the phone.
If you still get the issue i will need you to do a hard reset. The reset process will restore the phone back to factory settings. This means that all your data will be removed from the phone except for data stored on the SD Card, SIM card or online services. HTC Sync software can provide you support to move media content from the phone to your PC. I would also recommend taking out the SIM and SD card to confirm data on these is safe.
The parts in bold do not fill me with confidence !!
A hard reset failed to solve the problem anyway.
My phone does in fact seem to have an entire vertical line where the display breaks on the right-hand side of the screen. Replacement coming tomorrow.

[APP][ROOT][TABLET] Tablet Auto Power Off ★ root

#############################################################
######### [ROOT] WARNING [ROOT]: It needs rooted device. ########
###### If you don't know what is ROOT or how can you root ##########
###### your device PLEASE AVOID TO CONTACT US, ##############
###### check on XDA's dev Forum instead. ########################
############################################################
How many time do you forget your tablet powered on?
I leave my tablet powered on every time I've used it.
Many times when I try using it again, I always find the battery dead!!
Yes my tablet (and perhaps any android tablet) goes in "deep sleep" (like standby) but it doesn't power off when I don't use it for a while.
To avoid this problem I've created this app, that helps you to poweroff ( shutdown / power off ) your tablet every time you leave it on, up to selected time.
This app checks the screen of the tablet. When you turn off the screen "Tablet Auto PowerOff" starts a timer to automatically shut down your tablet!
Configure it only one time, like any other Operating System ( Windows / Linux / MacOS ), then you can forget about it, the app will be silent and automatic.
You can set TWO types of controls:
*) Time Interval: you can set a time based control: when your screen will be off for a given time your tablet will be powered off.
*) Battery Level: You can choose to set the automatic shut down when battery is lower than a chosen battery percentage.
What are you waiting for? Just try this ultimate battery saver!
https://play.google.com/store/apps/details?id=it.elaware.autopoweroff
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Thanks mate!
Installed this on my galaxytab (p1000) running cyanogenmod 10 and the jog dials does not work
Please contact me if you need help testing a fix.
hmm tell me how is it battery saver when basiclly the app run in the background all the time in the deep sleep
This should be in the Paid Software Announcement and Discussion forum.
Is there any configration file that i can edit time in manually and then activate it through the app? I found an xml but it only contained true or false for enable.

How to: Launch intents, set defaults with Android internal app picker/intent handler

This is just a convenience trick. This can be done on ANY stock FireOS ROM WITHOUT root access, provided you have ADB installed and working.
This shell command will launch Android's internal intent picker (app picker) so you can select a variety of apps and functions to make as default. For some reason, not all apps are included (system and or user). This helps set default intents when more than one app exists to handle the same intent.
If you removed the device owner configurations based on my removal guide here: https://forum.xda-developers.com/hd8-hd10/general/root-remove-parental-control-t3932831 and you have not done a wipe (that means select everything except system), your tablet may reboot when the picker pops up and you may not be able to set defaults as a result. Why? Intents are directed to be launched through Amazon's internal picker. When disabling the use of their managed accounts and deleting the associated apks, Amazon's picker becomes frustrated and sends intents to the owner managed profile, which no longer exists. Launching Android's picker manually overrides Amazon's picker. And once you set your default apps, that intent will forever be handled permanently through your default application choice.
So this trick is essentially a preventive measure. Set your default applications as soon as you can, if you can, using this method so you avoid having to ever come across any issues with intents being redirected to managed profiles that don't exist.
Plug tablet into PC and open an ADB window and type:
Code:
adb shell am start -a android.intent.action.MAIN
Choose your intent or app. If you run the above code again the last default app chosen in the picker will be the first one you can choose in the box. I have not really fooled around with this yet so I'm not really sure what it's capable of. It would be nice if somebody could report back with the results.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

Enabling mirrorlink option

Greetings XDA members.
All the progress I've made so far is based on Q&A from your site, so thank you right from the begining.
So here's what I've managed to do so far, starting with the device details:
LG G8S stock ROM (not rooted and boot loader still locked)
Downloaded Total Commander and accessed the root directory
Found two apk files named MirrorLinkServer,apk (the first in /product/app/mirrorlinkserver/ and the second in /system,/product/app/mirrorlinkserver/) - I'm Adding a screenshot of the search results down below
Installed both apk files (each after a factory reset to avoid duality or any other kind of interference)
Got the same result in both cases - When connecting phone to the cars USB outlet, the USB indicator at the notifications bar start flashing but nothing happens (phone screen or car screen)
When disconnecting - a mirrorlink menu appears showing the apps installed but saying they're not authenticated - I'm Adding a screenshot down below
If I'm trying to hit the back button the phone goes to settings but the mirrorlink menu doesn't show there
If I'm plugging the phone back to the car USB socket the "Connect via USB cable" option is trying to switch on automaticlly but goes back off and on again in an endless loop
Hitting the apps trying to authenticate them is doing nothing at all.
when I'm checking the mirrorlink server app in phones settings - It says under Permissions: "No permissions requested"
I believe that here lies the problem - meaning that if i could grant the mirrolink server the necessary permissions (internet access for authenticating the apps and later on for downloading data for the apps themselves; and location for navigation; and so on) then I think it would've worked.
So my main question is - How can I grant the mirrorlink server app permissions, even though none was requested?
However - If you think that I'm wrong or that I've made a mistake along the way - for instance that the mirrorlink server apk must get system app priviliges and therefore must be in /system/app/ folder - Please let me know
thanks,
Jacob
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

Categories

Resources