[Q] Console - Corrupt characters with ls (escape characters) - Android Q&A, Help & Troubleshooting

Hallo,
after setting up SSHd in CM7 with 'dropbearkey -t rsa -f /data/dropbear/dropbear_rsa_host_key' it outputted the key to the screen with escape sequences. After that my console output (especially ls) looks like this:
{
"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"
}
I tried 'reset' already but gives me some escape characters only as well. Restart of the phone doesn't help either.
How can i fix this?
Edit: Somehow color sequence codes have been enabled for ls. Don't know how this happened. I can temporarily (for one session) disable them with 'alias ls='ls --color=never''.
How can i do that permanently and how could that happen?

Related

[Q] Little help with coding

Hello,
I would like to turn on my bluetooth from PC (via usb for now) using adb commands.
until now I've found something like that:
HTML:
adb shell "am start -a android.bluetooth.adapter.action.REQUEST_ENABLE"
This works good but it requires user to accept a dialog, and if the phone would be 2 meters away it wouldn't be convenient.
I also found sth.like that:
HTML:
adb shell am start -a android.bluetooth.adapter.action.STATE_CHANGED
However it gives this error:
{
"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"
}
Original source is here: http://www.androidadb.com/source/backport-android-bluetooth-read-only/backport-android-bluetooth201/src/backport/android/bluetooth/BluetoothAdapter.java.html
If You know how to make it work, please help.
Anyone?

How can I make a partition table of my phone?

Hello,
I'm trying to manually install a custom recovery to my phone, my model is a LG L5 II, it was released early this year and its like a modified version of the L5..
I guess the blocks this phone uses for boot, recovery, system are different, so Im trying to make a partition table of the blocks.
Over ADB I used the "ls -l /dev/blocks/" command and I can see the blocks of the device, but for some reason no one has a specific name for it, I mean all the blocks say the same "root", any ideas why?
{
"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"
}

Screen overlay with system info?!

I've received an I9300 from a friend, that has a strange screen overlay/popup on the home screen. Does anyone know how to get rid of it?
{
"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"
}
https://photos.app.goo.gl/Ff2UIJLJ6VR1bgAl2
Thanks in advance!
I've seen that before. Its factoryapp. Factory mode.
If you didn't enable it yourself then you know an app for that.. one you downloaded probably did it.
You need root to fix it. No root means flash back to stock.
Find efs/factoryapp/ and open the factoryapp file with a text editor and change its contents to the opposite of what it is now. Save and exit. Reboot phone.

How to add/edit/rearrange drop down/notification shortcuts?

Guys,
Bought the RN9 PRO today, but I cannot find a way to edit/add/rearrange the shortcuts in the drop down notification area. I'm on the latest update for MIUI 11.
Any ideas? This is what I see:
{
"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.
Same here.
I think we cannot arrange it.
It's a bug that happens after restoring Google backup. The fix is easy using adb, just type: adb shell settings put secure sysui_qs_tiles default
Check there if you need more instructions https://xiaomi.eu/community/threads/quick-settings-edit-tile-missing.54865/#post-543658
This restores quick settings back to default and the "edit" button will reappear. Worked for me.

Help identifying settings table names for Location Preferenecs

Hey I'm trying to use the "settings put" commands to change these 2 settings here:
{
"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"
}
Any idea which names correspond to these 2 settings?
Many apps want the "High Accuracy" location enabled to perform some function, so I'm constantly toggling them back and forth.
I figure I'll let a script run in the background to auto-disable them after every 30 minutes or so.
Someone gave me the bright idea of comparing the outputs of "settings list". Seems obvious in hindsight.
Code:
[global]
wifi_scan_always_enabled=0
assisted_gps_enabled=0
network_recommendations_enabled=0
[secure]
location_changer=2
location_mode=0
I'm getting warmer...

Categories

Resources