Code:
#include <std_disclaimer.h>
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this package
* before installing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/
{
"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"
}
You read it right, here's a functional port of BDS Menu for Lumias unlocked using WPInternals.
Note: I observed some weird behaviors on early x30 devices, including prototypes that had BDS menu out of the box, where the menu would simply act like if it was broken.
The bootarm.efi loader has been taken from the grub package posted here and modified to load menu.efi instead of boot.efi, credits belong to the original person that developed this efi in 2016.
Note: attached two variants, a normal one (fs3) and a fs4 variant, if you get an error about the menu not finding its configuration files, please try the other variant.
Installation instructions:
Download the files attached in this post.
Place all files downloaded in the EFIESP partition of your phone.
Configure BCD exactly like this to have an entry loading BDS menu:
Load the entry using your favorite method.
Have fun.
That shim file might not work on 950XL, it simply reboots my phone - haven't figured out why, probably due to new CPU architecture or the firmware itself
Thanks gus ,
you can also restore the USB Mass Storage picture by adding attached bmpx files in EFIESP\Windows\System32\BOOT\ui.
gus33000 said:
Configure BCD exactly like this to have an entry loading BDS menu:
Load the entry using your favorite method.
Click to expand...
Click to collapse
How?
augustinionut said:
How?
Click to expand...
Click to collapse
To be fair as some of the capabilities of BDS menu can be very destructive (hence the big disclaimer), if you really don't know how to do this, then you may stay away from it, it won't bring you anything cool
Please, y have the lumia 530 lab rat.
Nevermind, ill modify EFIESP\efi\Microsoft\Boot\bcd using visual BCD.
augustinionut said:
Please, y have the lumia 530 lab rat.
Nevermind, ill modify EFIESP\efi\Microsoft\Boot\bcd using visual BCD.
Click to expand...
Click to collapse
You shouldn't use visual BCD. Use BCDEdit since some of the options aren't available and Visual BCD isn't built for phones.
Note: currently looking at a problem where the block id for efiesp might differ between phones, if you get an error message saying can't load menu configuration file, please tell me your device model.
Edit: Fixed for some other problematic devices, I'll send an alternative version of the menu to see if it fixes it for most with the two variants
imbushuo said:
That shim file might not work on 950XL, it simply reboots my phone - haven't figured out why, probably due to new CPU architecture or the firmware itself
Click to expand...
Click to collapse
Yes same problem on 950.
Could you explain how to configure bcd using bcdedit please?
CosminNTT said:
Could you explain how to configure bcd using bcdedit please?
Click to expand...
Click to collapse
like this...
also need add device
bcdedit /store .\BCD /set "{7e1bd2b8-0ab0-11e8-aa3b-1c3947b79a68}" device partition=f:\efiesp
and(in my case) add it to customactions( activation by vol up/down )
bcdedit /store .\BCD /set "{bootmgr}" custom:54000002 "{7e1bd2b8-0ab0-11e8-aa3b-1c3947b79a68}"
(custom:54000002 == vol down, custom:54000001 == vol up)
The first time a came across this menu was on the Mi4 W10M rom. Thanks for sharing this.
Does not work on my lumia 950 it just seems to fit into ARM V7 with 32 bit architecture
Someone can copypaste those commands instead of attaching pictures?
Nevermind, i OCR that photo:
PS I:\EFIESP\efi\Microsoft\Boot> bcdedit /store .\BCD /create /application bootapp
xxxxxxxxxxxxxxx succesfuly created
PS I:\EFIESP\efi\Microsoft\Boot> bcdedit /store .\BCD /set "xxxxxxxxxxxxxxx" path \efi\bds\bootarm.efi
PS I:\EFIESP\efi\Microsoft\Boot> bcdedit /store .\BCD /set "xxxxxxxxxxxxxxx" description "BDS Menu"
PS i:\EFIESP\efi\Microsoft\Boot> bcdedit /store .\BCD /set "xxxxxxxxxxxxxxx" locale en-us
PS i:\EFIESP\efi\Microsoft\Boot> bcdedit /store .\BCD /set "xxxxxxxxxxxxxxx" inherit "{bootloadersettings}"
PS i:\EFIESP\efi\Microsoft\Boot> bcdedit /store .\BCD /set "xxxxxxxxxxxxxxx" nonintegritychecks yes
PS i:\EFIESP\efi\Microsoft\Boot> bcdedit /store .\BCD /set "xxxxxxxxxxxxxxx" testsigning yes
PS i:\EFIESP\efi\Microsoft\Boot> bcdedit /store .\BCD /set "xxxxxxxxxxxxxxx" isolated context yes
PS i:\EFIESP\efi\Microsoft\Boot> bcdedit /store .\BCD /set "xxxxxxxxxxxxxxx" device partition=i:\efiesp
PS i:\EFIESP\efi\Microsoft\Boot> bcdedit /store .\BCD /set "{bootmgr}" custom:54000002 "xxxxxxxxxxxxxxx"
at least mass storage bootable not via WPI only x3x x4 x
The menu is shown but no option works in Lumia 640 RM-1109
mateusseiboth said:
The menu is shown but no option works in Lumia 640 RM-1109
Click to expand...
Click to collapse
On my device too(
I run efi shell with simple script(for run another efi file) and shell thrown "security violation"...
grub2(chainload) thrown error too((
I can't edit bcd file no matter what I do. Cmd and ps keep saying access denied.
mateusseiboth said:
The menu is shown but no option works in Lumia 640 RM-1109
Click to expand...
Click to collapse
Same thing with 950. It just blinks and nothing happens.
BlueTR said:
I can't edit bcd file no matter what I do. Cmd and ps keep saying access denied.
Click to expand...
Click to collapse
run cmd/powershell by administrator
Related
Hi Friends.
Standard Cmd.exe seems not working on WP7 probably by any restrictions, then we need own solution. There is a simple WP7 console (paied!!!), but this is childer game only, not a real working tool (some connection features from it are so usable).
There is one BIG problem on CE based systems - Shell context absention, especially Current Directory concept miss. Rainer Keuchel's CELib and Console solves it by ENVIRONMENT registry key, common for every console instance. Desktop Windows / POSIX systems concept of many unique shell contexts is very hard implementable here.There is not problem to make new context in registry - this can be unique key, contain all included processes IDs, environment structure and especially current directory path. But, somebody must release this context, when all processes finish. It can not be user applications dependent, any kernel "garbage collector" must be implemented for it. And, how to refer context to launched process? What do you mean about it - is better simple one context shell then nothing, or long work on multicontext solution?
Another problem is popen and pipes absention on WP7 system. I finished very simple solution last weak, based on stdout to file redirecting, which Microsoft forgets in WP7 API from WM6 one. Then we can make simply dedicated applications (dir.exe, set.exe, copy.exe, delete.exe etc.) in \Windows directory, callable by standard ShellExecuteEx, enrolling ouptut do stdout by printf etc. But, is it good solution? Have you got anybody real pipes working on WP7?
Working console appplication with bath files interpreter give us big possibilities for on-device attempts and programming, simple installators/deinstallators building, WP7 Perl, HaRET, Linux, WM, WinRT, WP8 wrappers working etc. It is not problem now to runs anything in kernel mode on WP7. Are you somebody able to cooperate include native coding? We can make real operating system from Microsoft fart bag named WP7.
Martin7Pro said:
Hi Friends.
Standard Cmd.exe seems not working on WP7 probably by any restrictions, then we need own solution. There is a simple WP7 console (paied!!!), but this is childer game only, not a real working tool (some connection features from it are so usable).
There is one BIG problem on CE based systems - Shell context absention, especially Current Directory concept miss. Rainer Keuchel's CELib and Console solves it by ENVIRONMENT registry key, common for every console instance. Desktop Windows / POSIX systems concept of many unique shell contexts is very hard implementable here.There is not problem to make new context in registry - this can be unique key, contain all included processes IDs, environment structure and especially current directory path. But, somebody must release this context, when all processes finish. It can not be user applications dependent, any kernel "garbage collector" must be implemented for it. And, how to refer context to launched process? What do you mean about it - is better simple one context shell then nothing, or long work on multicontext solution?
Another problem is popen and pipes absention on WP7 system. I finished very simple solution last weak, based on stdout to file redirecting, which Microsoft forgets in WP7 API from WM6 one. Then we can make simply dedicated applications (dir.exe, set.exe, copy.exe, delete.exe etc.) in \Windows directory, callable by standard ShellExecuteEx, enrolling ouptut do stdout by printf etc. But, is it good solution? Have you got anybody real pipes working on WP7?
Working console appplication with bath files interpreter give us big possibilities for on-device attempts and programming, simple installators/deinstallators building, WP7 Perl, HaRET, Linux, WM, WinRT, WP8 wrappers working etc. It is not problem now to runs anything in kernel mode on WP7. Are you somebody able to cooperate include native coding? We can make real operating system from Microsoft fart bag named WP7.
Click to expand...
Click to collapse
Pocket CMD from CE7 ARMv7 works fine via telnet. Tested on my Samsung Omnia 7 and Jaxbot's Samsung Focus. You can see it in action in this screenshot: http://windowsphonehacker.com/articles/all_in_a_days_work-03-03-13
Do I have to rename the zip tp xap and install normally?
No. If you don't know how to install it you probably don't need it as it creates a huge security risk on your phone.
Hmm... , interesting. The same exe in other configuratin I tested on my phones in the past with result : "Too much console ones work immediatelly, close any and try again".
Do you know (or is possible to code) telnet WP7 client, functioning on the same IP as server? Especially with hardware keyboard support?
Martin7Pro said:
Hmm... , interesting. The same exe in other configuratin I tested on my phones in the past with result : "Too much console ones work immediatelly, close any and try again".
Do you know (or is possible to code) telnet WP7 client, functioning on the same IP as server? Especially with hardware keyboard support?
Click to expand...
Click to collapse
Silverlight apps can not connect to localhost, it has been blocked.
Simple batch line interpreter
I tried cmd.exe batch and arguments calling, but it seems does not working for me. Then I will try own attempt.
Single batch line interpreter (*.bat files interpreting precursor):
SHLine.cpp
PHP:
// SHLine.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
//#include <atlstr.h>
/*CString*/
#ifdef _DEBUG
#pragma comment (lib, "libcmtd.lib")
#else
#pragma comment (lib, "libcmt.lib")
#endif
/*CString*/
#include <list>
using namespace std;
typedef list<CString> StringList;
#define SEE_MASK_NOASYNC (0x00000100)
CString ErrorString(DWORD err)
{
CString Error;
try
{
LPTSTR s;
if (::FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM,
NULL, err, 0, (LPTSTR)&s, 0, NULL) == 0)
{
Error.AppendFormat(TEXT("Error code : %X"), err);
} /* failed */
else
{ /* success */
LPTSTR p = _tcschr(s, _T('\r'));
if(p != NULL)
{ /* lose CRLF */
*p = _T('\0');
} /* lose CRLF */
Error = s;
::LocalFree(s);
} /* success */
return Error;
}
catch (...)
{
Error.AppendFormat(TEXT("Error code : %X"), err);
return Error;
}
}
HRESULT ShellExecuteWait(const wchar_t * file, const wchar_t * args, long lTimeout)
{
TRACE(L"ShellExecuteWait file=%s, args=%s, long lTimeout=%X\n", file, args, lTimeout);
try
{
SHELLEXECUTEINFO lpExecInfo;
memset(&lpExecInfo, 0, sizeof(SHELLEXECUTEINFO));
lpExecInfo.cbSize = sizeof(SHELLEXECUTEINFO);
lpExecInfo.lpFile = file;
lpExecInfo.lpParameters = args;
lpExecInfo.lpDirectory = _T("");
lpExecInfo.lpVerb = _T("open");
lpExecInfo.nShow = SW_MINIMIZE;
lpExecInfo.fMask = 0;
lpExecInfo.fMask = SEE_MASK_NOCLOSEPROCESS | SEE_MASK_NOASYNC;// | SEE_MASK_FLAG_DDEWAIT;//0; lpExecInfo.hwnd = NULL;
lpExecInfo.hInstApp = NULL;//AfxGetInstanceHandle();
if(!ShellExecuteEx(&lpExecInfo))
{
DWORD err = GetLastError();
TRACE(L"ShellExecuteEx Error %d %s\n", err, ErrorString(err));
/// Sleep(100);
return (HRESULT)err;//ERROR_SUCCESS;
}
if (lpExecInfo.hProcess > 0)
{
TRACE(L"ShellExecuteEx WaitForSingleObject hProcess=%X\n", lpExecInfo.hProcess);
DWORD res = ::WaitForSingleObject(lpExecInfo.hProcess, lTimeout/*INFINITE*/);//5000);
TRACE(L"WaitForSingleObject lTimeout=%X, res=%X\n", lTimeout, res);
/// Sleep(100);
if (lTimeout != INFINITE && res != WAIT_OBJECT_0)
{
TerminateProcess(lpExecInfo.hProcess, 0);
TRACE(L"TerminateProcess;\n");
}
CloseHandle(lpExecInfo.hProcess);
}
TRACE(L"return ERROR_SUCCESS;\n");
return ERROR_SUCCESS;
}
catch (...)
{
DWORD err = 0x80070000 | GetLastError();
MessageBox(NULL, ErrorString(err), _T("ShellExecuteWait Error"), MB_OK);
return ERROR_SUCCESS;//(HRESULT)err;
}
}
StringList GetPathList(StringList & slPathList)
{
slPathList.clear();
slPathList.push_front(L"Program Files"); // Only for testing. HKCU\Environment PATH value will splitted instead;
slPathList.push_front(L"My Documents");
return slPathList;
}
CString GetCurrentDirectory(CString & csCurDir)
{
csCurDir = L"Program Files\\SHLine"; // Only for testing. HKCU\Environment CurrentDirectory value will readed instead;
return csCurDir;
}
bool FileExists(const wchar_t * file)
{
WIN32_FIND_DATA FindFileData;
HANDLE hFile = ::FindFirstFile(file, &FindFileData) ;
bool bFound = (hFile && (hFile != INVALID_HANDLE_VALUE));
if(bFound)
{
::FindClose(hFile);
}
return bFound;
}
int _tmain(int argc, _TCHAR* argv[])
{
TRACE(L"_tmain(int argc=%d);\n", argc);
if (argc > 1 && argv[1])
{
CString csRunPath = argv[1];
CString csRunArgs = L"";
if (argc > 2 && argv[2])
{
csRunArgs = argv[2];
for (int i = 3; i <= argc; i++)
{
if (argv[i])
{
csRunArgs = csRunArgs + L" " + argv[i];
}
}
}
CString csCurDir;
GetCurrentDirectory(csCurDir);
HRESULT hRes = ERROR_FILE_NOT_FOUND;
CString csFN = L"\\"+csCurDir+L"\\"+csRunPath/*.GetString()*/;
if (FileExists(csFN))
{
hRes = ShellExecuteWait(csFN, csRunArgs/*.GetString()*/, 60000);
}
if (hRes == ERROR_FILE_NOT_FOUND)
{
csFN = L"\\"+csRunPath;
CString csWin = L"\\Windows\\"+csRunPath;
if (FileExists(csFN) || FileExists(csWin))
{
hRes = ShellExecuteWait(csFN, csRunArgs, 60000); // Full path specified or file is known for CE Shell (included to \\Windows\ directory)
}
if (hRes == ERROR_FILE_NOT_FOUND)
{
StringList slPathList;
GetPathList(slPathList);
DWORD dwPath = 0;
for (StringList::iterator itPath = slPathList.begin(); itPath != slPathList.end(); ++itPath)
{
csFN = L"\\"+*itPath+L"\\"+csRunPath;
if (FileExists(csFN))
{
hRes = ShellExecuteWait(csFN, csRunArgs, 60000);
}
}
}
}
TRACE(L"_tmain returns 0x%X;\n", hRes);
return hRes;
}
TRACE(L"_tmain returns E_INVALIDARG;\n");
return E_INVALIDARG;
}
This interpret will be uploaded to \Windows directory to be used by any appplication. One can be batch files interpreter (call this shell with all lines as paramters), or do any controlling (lines can contain controlling directives as cycles etc.). The .bat extension registering is soluted by CE standard way on unlocked phones.
CD.exe, DIR.exe, ..., etc programs will add standard shell functionality. Output (directories listing etc.) will soluted by stdout file forwarding.
In this way one only shell interpreting application (one current directory only) will allowed immeditelly. Better something then nothing.
EDIT:
I have got batch interpreter working. But, very strange behaviour occures:
1. AygShell does not add exe extension automatically. Then I copied "copy.exe" to "\Windows\copy" etc. It works well. But, it does not work for "start" directive! Start is necessary for Iexplore and other "uncloseable" applications launching to prevent interpreter hanging up. It is interesting too "start.exe" (or "start") everytime renames automatically to "Start" with upcased first letter. Probably "\Windows\Start.html" causes this system behaviour.
2. std::list iterating for multi batch lines interpreting crashes everytime, when lauchched application contains any messagebox. Iterating replacing by numerous cyclus soles it. Unbelievable...
I will publish XAP as soon as. Any filemanager can be used for batch lauching after instllation. I recommend Phone Commander, which is able not only launch, but also edit *.bat files.
Non XAP preliminary beta for testers
1. Copy included files to \Windows directory.
2. Apply registry changes by Batch.reg (can be did automatically from Phone Commander etc.).
3. Try tap to Example.bat from any filemanager (Phone Commander, WP7 Root Tools, wPhoExplorer etc.).
4. Make your own scripts (you can use also automatical shell creating function from Phone Commander menu, rename *.sh file to *.bat and edit it's content by Phone Commander "View" edit function by pencil icon).
"start" and "copy" directives only are implemented still. "copy" is implemented with source and destionation parameters only (copies everytime), switches will added in future versions.
start "filename" [params] = nonblocking shell starting
"filename" [params] (without "start") = blocking shell starting, it waits to application closing (danger for iexplore and any other "uncloseable" applications, use "start" instead). It blocks NonDDE shell directives, DDE (pword.exe, other Office applications, etc.) are nonblocking everytime by principle.
"copy" directive + *.reg files interpreter can be used for simple installator creating for your native applications.
The same principle will used for universal scheduler (for example "switch on wifi every monday morning, switch off ringing and wifi tethering every friday evening" etc.).
"SHLine" part is offered for all console application creators (it interprets one batch line). Use stdout file redirect and ShellExecuteEx(...,L"SHLine.exe",User console input line,...);
jessenic said:
Pocket CMD from CE7 ARMv7 works fine via telnet. Tested on my Samsung Omnia 7 and Jaxbot's Samsung Focus. You can see it in action in this screenshot: http://windowsphonehacker.com/articles/all_in_a_days_work-03-03-13
Click to expand...
Click to collapse
Thanks for a tip. There is working on device Telnet xap screenshot:
{
"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"
}
Xap release will published, when I solute HaRET and Pocket CMD listing switch.
XAP is released.
Download from HaRET WP7 thread.
Console Big Update - try Ping, IPConfig, NetStat, WLanUtils etc.
New Console7 version can offer to you many usable utilities, as cgacutil, etcha, ipconfig, ipconfig6, ipv6, kbdtest, msmqadm, ndisconfig, net, netlogctl, netstat, ping, rnaapp, route, services, shell, tracert, upnpreg and wlantool. With simply user interface you can write commands (or batch or Mort scripts) with big possibilities as on desktop Windows.
Console7 is not so dangerous as HaRET, but you still keep in mind that it can also destroy your operating system and possibly device ...
1. Install XAP.
2. Enable it by Root Manager.
3. Tap to Upeer screen part, tap to Menu button, slide menu left and select "Install pocketcmd shell etc."
4. Wait to reboot.
5. Wait to automatical Console7 start.
6. Type commands in bottom textbox and send it by Enter key. HELP command is available.
7. Try standard commands. Use help , help cmd commands to see full list.
8. Try additional features. Use help, for example:
ipconfig /?
Also copy, delete, etcha. ipconfig, ipconfig6, ipv6, kbdtest, launchuri, md, messagebox, msmqadm, ndisconfig, net, netlogctl, netstat, ping, reboot, regimport, rnaapp, route, services, shell, start, startback, tracert, upnpreg, wlantool directives are offered, some with help by /?.
9. Try Batch and Mort script making by PhoneCommander editor. Batch files (*.bat) are registered authomatically by Console7 installing. MortScripts installator will available as soon as.
10. When you want to risc device Hard Reset, try also "install haret and kernel driver".
11. Try HaRET/Shell switching by yellow buttons.
Remember: PocketCMD using is relatively safe (when you will not delete any system files or directories), but HaRET may be very danger still! Use both on your own risc.
As you know there is no support for X11 in Ubuntu Touch with default CM10 kernel. To be more correct: there is no VT (virtual terminal) devices in Ubuntu Touch at Android layer. So you can install X11 but you can't run it! I decided to fix it and made kernel with VT support. Now it's possible to run X11 server and your favorite desktop environment. However there are some bugs with it: qml-phone-shell (which is Touch Shell) renders at top level and X11 - at bottom. Still you can interact with both of them: Touch Shell on phone and X11 over VNC. Another bugs are green tint on phone display and slow x11 render.
X11 over VNC:
{
"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"
}
Installation:
1. Get Kernel:
View attachment boot.img
2. Flash it with fastboot:
Code:
fastboot flash boot boot.img
3. And now you can install X11, x11vnc and desktop environment (e.g.: xfce4):
Code:
sudo apt-get install xorg x11vnc xubuntu-desktop
4. Also you need valid config for X11:
View attachment 99-omap.zip
5. Unrar it and put to device:
Code:
adb push 99-omap.conf /data/ubuntu/usr/share/X11/xorg.conf.d/99-omap.conf
6.Reboot phone
7. Set password for x11vnc server:
Code:
x11vnc -storepasswd <your_passwd>
8. Start x11vnc server:
Code:
sudo x11vnc -dontdisconnect -notruecolor -noxfixes -shared -forever -rfbport 5900 -bg -o /var/log/x11vnc.log -rfbauth /home/phablet/.vnc/passwd
Now you can connect to device with VNC Client.
How does this compare in performance to using a remote X server, as in this thread
http://forum.xda-developers.com/showthread.php?t=2161884
With that method I found most applications to perform decent except QtCreator.
Having to render the x server on the phone itself I would think wouldn't perform that fast.
BukaKing said:
Having to render the x server on the phone itself I would think wouldn't perform that fast.
Click to expand...
Click to collapse
That's true. X Server on phone slow enough and your way is better. Perhaps this one is alternative and require only VNC client or not require client at all. If you stop qml-phone-shell, X11 will be rendered to device. So this kernel is for testing purpose only.
VNC?
Great achievement. Can you run Xserver on its own dedicated VT when VT switching is enabled? What is VNC needed for in this scenario?
I will report a bug at launchpad so that the upstream (ubuntu-touch) kernel enables VT switch.
eudoxos.eu said:
Can you run Xserver on its own dedicated VT when VT switching is enabled? What is VNC needed for in this scenario?
Click to expand...
Click to collapse
You mean to use another tty? That's possible, since there lot of them. VNC server and client will be same (e.g. x11vnc and UltraVNC).
dim319 said:
VNC server and client will be same (e.g. x11vnc and UltraVNC).
Click to expand...
Click to collapse
The X11 server can't talk to the GPU directly, even without acceleration? In that case you could drop VNC completely.
dim319 said:
qml-phone-shell (which is Touch Shell) renders at top level and X11 - at bottom.
Click to expand...
Click to collapse
You can stop phone-shell with
Code:
service ubuntu-session stop
I installed gnome on my SGS2 GT-I9100 (worked without modifying kernel from http://forum.xda-developers.com/showthread.php?t=2188621 ), now I can start gdm with:
Code:
service gdm start
I have some trouble with onscreen keyboard in gdm (onboard), but you can enable autologin in /etc/gdm/custom.conf
Code:
[daemon]
# Enabling automatic login
AutomaticLoginEnable = true
AutomaticLogin = phablet
With this /etc/X11/xorg.conf even the touchscreen works (in a laptop-touchpad way):
Code:
Section "ServerLayout"
Identifier "Layout0"
Screen "Screen0"
InputDevice "cyttsp-i2c" "CorePointer"
EndSection
Section "InputDevice"
Identifier "cyttsp-i2c"
Driver "multitouch"
# MatchIsTouchpad "true"
# Driver "evdev"
Option "CorePointer" "true"
Option "SendCoreEvents" "true"
Option "Device" "/dev/input/event2"
Option "Protocol" "Auto"
Option "Rotate" "CW"
EndSection
Section "Device"
Identifier "Card0"
Driver "fbdev"
Option "fbdev" "/dev/graphics/fb0"
# rotate screen to be in sync with touchpad orientation
Option "Rotate" "OFF" # OFF=0 CW=90 UD=180 CCW=270
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
EndSection
(don't forget to install xserver-xorg-input-multitouch for touchsceen!)
Unfortunately I messed up my packaging system (didn't work because no space left on device, now even apt-get install -f can't repair it ), so i will have to try again i guess...
no VT needed?
-schumi- said:
You can stop phone-shell with
Code:
service ubuntu-session stop
I installed gnome on my SGS2 GT-I9100 (worked without modifying kernel from http://forum.xda-developers.com/showthread.php?t=2188621 ), now I can start gdm with:
Code:
service gdm start
Click to expand...
Click to collapse
Does that mean that I can run xorg on Nexus 10 with the official preview images - if I stop ubuntu-session, which occupies the only virtual terminal? (Sorry for perhaps a dumb question, I don't want to re-flash ubuntu-touch over CM again just to try that).
eudoxos.eu said:
The X11 server can't talk to the GPU directly, even without acceleration? In that case you could drop VNC completely.
Click to expand...
Click to collapse
The X11 works with framebuffer (which is fb0), not with GPU. You can use VNC to view X11 from phone to host. X11 can be viewed on phone without VNC.
-schumi- said:
You can stop phone-shell with
Code:
service ubuntu-session stop
I installed gnome on my SGS2 GT-I9100 (worked without modifying kernel from http://forum.xda-developers.com/showthread.php?t=2188621 ), now I can start gdm with:
Code:
service gdm start
Click to expand...
Click to collapse
I see. This is better than making new kernel, and require only correct config for xorg. I saw few solutions: one from BukaKing,one with Xvfb, mine kernel, and yours is best one!
I've worked around the virtual terminal issue by linking PTMX in the past.
just make a new Virtual Terminal device
Code:
rm /dev/ptmx
mknod --mode 666 /dev/ptmx c 5 2
/bin/dbus-uuidgen --ensure
Thanks for the info, great thread! I'm hoping to run a single dedicated X11 app, no real need for the original interface. That said, this seemed like a good starting point.
In case it helps anyone, attached is a kernel boot image I just built for a Nexus 7 wifi (Grouper) that has CONFIG_VT enabled. Ubuntu 13.04, kernel 3.1.10.
Thanks,
Brian
Because of OneCore (the fact that all WIndows versions use the same core), the boot process of Windows Mobile 10 seems to work the same way as the desktop version.
In the EFIESP partition, there is a BCD file under ":\EFI\Microsoft\boot". This BCD file can be opened with Visual BCD (Easy BCD doesn't work with this one).
The content of the Xiaomi Mi4 BCD file is below.
Can we edit this this like we do on desktop version? If we can, we may be able to change the boot settings and add a new boot option...
Has someone tried it?
{bootmgr}
---------
ApplicationDevice \Device\HarddiskVolume40()
ApplicationPath \efi\boot\bootarm.efi
Description Windows Boot Manager
PreferredLocale en-US
InheritedObjects {7ea2e1ac-2e61-4728-aaa3-896d9d0a9f0e}
iibrary_custom:0x1500007d 2
DefaultObject {7619dcc9-fafe-11d9-b411-000476eba25f}
BootSequence {01de5a27-8705-40db-bad6-96fa5187d4a6}
Timeout 0
DisplayBootMenu False
bootmgr_custom:0x26000028 True
bootmgr_custom:0x26000031 True
CustomActionsList 281476184670209 1409286145 281476318887937 1409286146
oem_custom: {0ff5f24a-3785-4aeb-b8fe-4226215b88c4}
oem custom: {bd8951c4-eabd-4c6f-aafb-4ddb4eb0469b}
Loaders
-------
ApplicationDevice \Device\HarddiskVolume40()
ApplicationPath \windows\system32\boot\mobilestartup.efi
Description Mobile Startup App
InheritedObjects {6efb52bf-1766-41db-a6b3-0ee5eff72bd7}
RecoverySequence {311b88b5-9b30-491d-bad9-167ca3e2d417}
AutoRecoveryEnabled True
ApplicationDevice \Device\HarddiskVolume40()
ApplicationPath \windows\system32\boot\ffuloader.efi
Description FFU Loader (User Invoked)
InheritedObjects {6efb52bf-1766-41db-a6b3-0ee5eff72bd7}
unknown_app_element True
ApplicationDevice ramdisk=()\PROGRAMS\UpdateOS\UpdateOS.wim, {ae5534e0-a924466c-b836-758539a3ee3a}
ApplicationPath \windows\system32\boot\winload.efi
Description Windows Update OS (Boot from WIM)
InheritedObjects {6efb52bf-1766-41db-a6b3-0ee5eff72bd7}
OSDevice ramdisk=()\PROGRAMS\UpdateOS\UpdateOS.wim, {ae5534e0-a924466c-b836-758539a3ee3a}
SystemRoot \windows
loader_custom:0x250000c2 1
WinPEMode True
ApplicationDevice \Device\HarddiskVolume45()
ApplicationPath \windows\system32\boot\winload.efi
Description Windows Loader
PreferredLocale en-US
InheritedObjects {6efb52bf-1766-41db-a6b3-0ee5eff72bd7}
DebuggerEnabled False
OSDevice \Device\HarddiskVolume45()
SystemRoot \windows
loader_custom:0x250000c2 1
BootStatusPolicy BootStatusPolicyIgnoreAllFailures
EmsEnabled False
ApplicationDevice \Device\HarddiskVolume40()
ApplicationPath \windows\system32\boot\resetphone.efi
Description Reset My Phone Application
InheritedObjects {6efb52bf-1766-41db-a6b3-0ee5eff72bd7}
unknown_app_element True
Hibernate resumers
------------------
(empty)
Settings
--------
- {emssettings}
EmsEnabled False
- {dbgsettings}
Description Windows Debugger Settings
- {bootloadersettings}
InheritedObjects {7ea2e1ac-2e61-4728-aaa3-896d9d0a9f0e}
DisplayAdvancedOptions False
DisplayOptionsEdit False
- {globalsettings}
InheritedObjects {4636856e-540f-4170-a130-a84776f4c654} {0ce4991b-e6b3-4b16-b23c-5e0d9250e5d9}
library_custom:0x15000079 5000
library_custom:0x1500007d 2
library_custom:0x16000050 True
library_custom:0x16000068 True
library_custom:0x16000069 True
library_custom:0x1600006a False
library_custom:0x16000072 True
library_custom:0x1600007a True
unknown_app_element BootStatusPolicyIgnoreAllFailures
unknown_app_element 7
unknown_app_element 90
unknown_app_element 0
unknown_app_element True
Device options
--------------
- {ramdiskoptions}
Description: Ramdisk Options
SdiDevice: \Device\HarddiskVolume40()
SdiPath: \boot\boot.sdi
Can somebody send me by email a copy of this BCD file?
(I am the developer of Visual BCD Editor (check for new version on boyans_dot_net) email => boyans dot gm at gmail dot com - thanks).
Cannot post links as not enough posts yet
You can edit every BCD element, also unrecognized by name, as elements are edited by type (integer, string, path, device, etc.).
It would be useful to add to next version of Visual BCD Editor these "unrecognized" elements, so they are displayed with symbolic name which is usually descriptive enough for the purpose of the element (or at least gives some clue).
boyans said:
Can somebody send me by email a copy of this BCD file?
(I am the developer of Visual BCD Editor (check for new version on boyans_dot_net) email => boyans dot gm at gmail dot com - thanks).
Cannot post links as not enough posts yet
You can edit every BCD element, also unrecognized by name, as elements are edited by type (integer, string, path, device, etc.).
It would be useful to add to next version of Visual BCD Editor these "unrecognized" elements, so they are displayed with symbolic name which is usually descriptive enough for the purpose of the element (or at least gives some clue).
Click to expand...
Click to collapse
Here is the file.
TristanLeBoss said:
Here is the file.
Click to expand...
Click to collapse
Thanks for BCD file and quick replay! :good:
TristanLeBoss said:
Here is the file.
Click to expand...
Click to collapse
Yes, It is almost similar as desktop BCD. Once you have disabled secure boot, then you can do whatever you want with device.
You can bcd mounting phone as "Mass Storage Mode" or directly access through bcdedit.exe or through registry editing.
boyans said:
Can somebody send me by email a copy of this BCD file?
(I am the developer of Visual BCD Editor (check for new version on boyans_dot_net) email => boyans dot gm at gmail dot com - thanks).
Cannot post links as not enough posts yet
You can edit every BCD element, also unrecognized by name, as elements are edited by type (integer, string, path, device, etc.).
It would be useful to add to next version of Visual BCD Editor these "unrecognized" elements, so they are displayed with symbolic name which is usually descriptive enough for the purpose of the element (or at least gives some clue).
Click to expand...
Click to collapse
Hi, good to see you here. feeling happy ?
I'm also going to write bcd editor for phone. I'm interested.
djamol said:
Yes, It is almost similar as desktop BCD. Once you have disabled secure boot, then you can do whatever you want with device.
You can bcd mounting phone as "Mass Storage Mode" or directly access through bcdedit.exe or through registry editing.
Hi, good to see you here. feeling happy
I'm also going to write bcd editor for phone. I'm interested.
Click to expand...
Click to collapse
@djamol : it may be better to help boyans (join your forces) instead of starting Yet Another BCD Editor. Btw, is it possible to disable SecureBoot on any of the Lumia WP8/10 phones?
@boyans : how do you find out the meaning of the unknown properties? will you mind sharing your progress on this forum/topic (beta, ...)?
On ATIV S 10.0.10586.218:
bcdedit /store K:\EFIESP\efi\Microsoft\Boot\BCD /set {bootloadersettings} advancedoptions Yes
{
"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"
}
bcdedit /store K:\EFIESP\efi\Microsoft\Boot\BCD /set {globalsettings} offmodecharging Yes
@TristanLeBoss
Yes, is possible to disable secure boot on some lumia (all x2x devices except 1520) by using Windows Phone Internals developed by Heathcliff74
It's also possible to enable Mass storage mode by flashing and engineering SBL3.
On Lumia 920:
bcdedit /store K:\EFIESP\efi\Microsoft\Boot\BCD /set {bootloadersettings} advancedoptions Yes
it doesn't show nothing but with:
bcdedit /store K:\EFIESP\efi\Microsoft\Boot\BCD /set {bootloadersettings} optionsedit Yes
it show this:
Camera button press simulate the enter key
ADeltaX said:
@TristanLeBoss
Yes, is possible to disable secure boot on some lumia (all x2x devices except 1520) by using Windows Phone Internals developed by Heathcliff74
It's also possible to enable Mass storage mode by flashing and engineering SBL3.
On Lumia 920:
bcdedit /store K:\EFIESP\efi\Microsoft\Boot\BCD /set {bootloadersettings} advancedoptions Yes
it doesn't show nothing but with:
bcdedit /store K:\EFIESP\efi\Microsoft\Boot\BCD /set {bootloadersettings} optionsedit Yes
it show this:
Camera button press simulate the enter key
Click to expand...
Click to collapse
still there is no way for 1520 due to different bootloader,anyone had a away to do at-least for power off charging ?
ATIV S 10.0.10586.218
bcdedit /store K:\EFIESP\efi\Microsoft\Boot\BCD /set {default} bootmenupolicy legacy
The selection is made the volume buttons (VOL +, VOL -, Camera - Enter)
bcdedit /store K:\EFIESP\efi\Microsoft\Boot\BCD /set {bootloadersettings} advancedoptions Yes
View attachment ntbtlog.txt
Really interesting. Thanks to this, we may be able to find out why some phones bootloop with new RS updates.
Enable boot logging... maybe we can also even prevent reboot on error and display the blue screen instead?
TristanLeBoss said:
@djamol : it may be better to help boyans (join your forces) instead of starting Yet Another BCD Editor. Btw, is it possible to disable SecureBoot on any of the Lumia WP8/10 phones?
@boyans : how do you find out the meaning of the unknown properties? will you mind sharing your progress on this forum/topic (beta, ...)?
Click to expand...
Click to collapse
The symbolic name of an element as defined by Microsoft can be taken from "bcdsrv.dll" in system32.
Microsoft documentation is really poor!
Every Windows version has its own (new and different) definition file.
Most unrecognized elements seem specific to WP.
I don't have a WP but should get some model for experiments
In the meantime could you attach a copy of WP "bcdsrv.dll" here?
Currently solving problems with my website, seems somebody/ies is/are trying to hack (as with every other website I suppose). Have to tighten security and resource protection.
boyans said:
The symbolic name of an element as defined by Microsoft can be taken from "bcdsrv.dll" in system32.
Microsoft documentation is really poor!
Every Windows version has its own (new and different) definition file.
Most unrecognized elements seem specific to WP.
I don't have a WP but should get some model for experiments
In the meantime could you attach a copy of WP "bcdsrv.dll" here?
Currently solving problems with my website, seems somebody/ies is/are trying to hack (as with every other website I suppose). Have to tighten security and resource protection.
Click to expand...
Click to collapse
This file doesn't exist. I searched for "bcd" on all partitions but only found one "bcd.dll" under MainOS:\Windows\System32
I attached it to this reply. Tell me if it's the right file.
Here are the "bcd.dll" from the Hololens (x86) emulator and the Windows Mobile 10 (x86) emulator.
Are you sure "bcdserv.dll" is supposed to exist or named this way under Windows 10? Because I can't find it in those 3 images...
spavlin said:
Click to expand...
Click to collapse
Nice! But how did you edited the SystemStartOptions key?
Is there any way to edit bcd file over SFTP?
I cannot change or copy it.
BlueTR said:
Is there any way to edit bcd file over SFTP?
I cannot change or copy it.
Click to expand...
Click to collapse
Yes, deploy few testing update packages on device.
Like tshell.spkg etc from wpblue 8.1
Qualcomm MMC Storage => Edit BCD => Select Menu => SystemStartOptions key change
Menu 10.0.10586 :
http://forum.xda-developers.com/showpost.php?p=66604194&postcount=10
Menu 10.0.143xx (Working on 10586) :
http://forum.xda-developers.com/showpost.php?p=67389214&postcount=15
Windows Boot Application (1020000a)
-----------------------------------
identifier {01de5a27-8705-40db-bad6-96fa5187d4a6}
device partition=\Device\HarddiskVolume87
path \windows\system32\boot\mobilestartup.efi
description Mobile Startup App
inherit {bootloadersettings}
recoverysequence {311b88b5-9b30-491d-bad9-167ca3e2d417}
recoveryenabled Yes
enablebootdebugpolicy Yes
enablebootorderclean Yes
enabledeviceid Yes
enableffuloader Yes
enableiuloader Yes
enablemassstorage Yes
enablerpmbprovisioning Yes
enablesecurebootpolicy Yes
enablestartcharge Yes
enableresettpm Yes
||
[HKEY_LOCAL_MACHINE\BCD00000001\Objects\{01de5a27-8705-40db-bad6-96fa5187d4a6}\Elements\16000009]
"Element"=hex:01
[HKEY_LOCAL_MACHINE\BCD00000001\Objects\{01de5a27-8705-40db-bad6-96fa5187d4a6}\Elements\26000145]
"Element"=hex:01
[HKEY_LOCAL_MACHINE\BCD00000001\Objects\{01de5a27-8705-40db-bad6-96fa5187d4a6}\Elements\26000146]
"Element"=hex:01
[HKEY_LOCAL_MACHINE\BCD00000001\Objects\{01de5a27-8705-40db-bad6-96fa5187d4a6}\Elements\26000147]
"Element"=hex:01
[HKEY_LOCAL_MACHINE\BCD00000001\Objects\{01de5a27-8705-40db-bad6-96fa5187d4a6}\Elements\26000148]
"Element"=hex:01
[HKEY_LOCAL_MACHINE\BCD00000001\Objects\{01de5a27-8705-40db-bad6-96fa5187d4a6}\Elements\26000149]
"Element"=hex:01
[HKEY_LOCAL_MACHINE\BCD00000001\Objects\{01de5a27-8705-40db-bad6-96fa5187d4a6}\Elements\2600014a]
"Element"=hex:01
[HKEY_LOCAL_MACHINE\BCD00000001\Objects\{01de5a27-8705-40db-bad6-96fa5187d4a6}\Elements\2600014b]
"Element"=hex:01
[HKEY_LOCAL_MACHINE\BCD00000001\Objects\{01de5a27-8705-40db-bad6-96fa5187d4a6}\Elements\2600014c]
"Element"=hex:01
[HKEY_LOCAL_MACHINE\BCD00000001\Objects\{01de5a27-8705-40db-bad6-96fa5187d4a6}\Elements\2600014d]
"Element"=hex:01
[HKEY_LOCAL_MACHINE\BCD00000001\Objects\{01de5a27-8705-40db-bad6-96fa5187d4a6}\Elements\2600014e]
"Element"=hex:01
Unhappy with the new Internet Settings Quick Settings tile?
You can restore the old WiFi and Cellular Quick Settings tiles by running the following adb command (root required):
Edit: Seems the November update broke this, however, credit to raimondas-rimkus who has found a workaround! Post here.
Inject this setting first:
adb shell settings put global settings_provider_model false
Then run this command:
adb shell settings put secure sysui_qs_tiles "wifi,cell,$(settings get secure sysui_qs_tiles)"
Enjoy!
Yeh, I'm not a fan of that new internet tile! Will be changing it via adb... Cheers
I'm rooted on my P6 Pro and this didn't work for me. Worked for me on my 4XL though.
Cares said:
I'm rooted on my P6 Pro and this didn't work for me. Worked for me on my 4XL though.
Click to expand...
Click to collapse
ditto and i didn't know how to revert, it f*d up my whole tile layout just reflashed.
Pixel 4a 5G here.
Did the update to Android 12, and immediately adb'd my tiles back, worked fine.
2 days later I got the November 5 Update, now the settings are gone.
Tried again, this time without any effect. Seems like Google strengthened their grip around their users ***** (phones).
I think I managed to bypass the "fix" that was introduced in November 5 update.
The code that removes the tiles: https://cs.android.com/android/plat...temui/qs/customize/TileQueryHelper.java;l=124
This checks for "settings_provider_model" feature flag in build.props. Overriding of these flags is allowed thru Developer Options -> Feature Flags. Sadly no feature flags are shown there as of now.
BUT, we can still inject this setting:
adb shell settings put global settings_provider_model false
Now running the original adb command will work:
adb shell settings put secure sysui_qs_tiles "wifi,cell,$(settings get secure sysui_qs_tiles)"
I used the following to get a Wifi tile using Tasker and some other tools: https://www.xda-developers.com/bring-back-wifi-toggle-quick-settings-android-12-tasker-project/
raimondas.rimkus said:
I think I managed to bypass the "fix" that was introduced in November 5 update.
The code that removes the tiles: https://cs.android.com/android/plat...temui/qs/customize/TileQueryHelper.java;l=124
This checks for "settings_provider_model" feature flag in build.props. Overriding of these flags is allowed thru Developer Options -> Feature Flags. Sadly no feature flags are shown there as of now.
BUT, we can still inject this setting:
adb shell settings put global settings_provider_model false
Now running the original adb command will work:
adb shell settings put secure sysui_qs_tiles "wifi,cell,$(settings get secure sysui_qs_tiles)"
Click to expand...
Click to collapse
I can confirm this worked for me.
raimondas.rimkus said:
I think I managed to bypass the "fix" that was introduced in November 5 update.
The code that removes the tiles: https://cs.android.com/android/plat...temui/qs/customize/TileQueryHelper.java;l=124
This checks for "settings_provider_model" feature flag in build.props. Overriding of these flags is allowed thru Developer Options -> Feature Flags. Sadly no feature flags are shown there as of now.
BUT, we can still inject this setting:
adb shell settings put global settings_provider_model false
Now running the original adb command will work:
adb shell settings put secure sysui_qs_tiles "wifi,cell,$(settings get secure sysui_qs_tiles)"
Click to expand...
Click to collapse
Thanks a lot! This worked. I will update the OP with this info and give you credit
This worked for me but I'm pretty sure I had to edit my Quick Navigation settings to actually add the toggle to the list.
For the longest time, I thought it never worked until I saw a video about an .apk that adds the Wi-fi toggle and they said to edit the Quick Navigation settings to actually add the Wi-Fi toggle to the Quick Navigation list. :/
Worked for me as well (after rebooting).
Note that you must have 'adb shell settings put global settings_provider_model false', otherwise it will not work.
It works immediate ! For 6 Pro
Perfect, this worked for me.
It works for me as well but Idk why I've got 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"
}
asdor said:
It works for me as well but Idk why I've got this error:
View attachment 5471923
Click to expand...
Click to collapse
Use Command Prompt (CMD) instead of PowerShell. There's a way to get commands to work in PowerShell but I never remember how.
Hurray! Great. But I always used PowerShell for all my previous phones as well as for rooting my current Pixel 6 Pro and there were no issues.
Thank you!!!
asdor said:
Hurray! Great. But I always used PowerShell for all my previous phones as well as for rooting my current Pixel 6 Pro and there were no issues.
Thank you!!!
Click to expand...
Click to collapse
You're welcome! Glad it's something easy. Me too (ADB/Fastboot used to work as is in PowerShell). I think Microsoft changed PowerShell enough over the last several years that made regular old commands require some extra characters typed before the commands to get them working.
Maybe it was a security enhancement to PowerShell so that if you're meaning to type a PowerShell command and there's an executable in the same folder by the same name as the PS command, then it's not accidentally running the executable instead, and makes you type extra characters since that's far less likely to be an accident.
There's also the wonderfully neat official Microsoft Terminal app in their store. You can have mix and match of Command Prompt and PowerShell in separate tabs in the same window. I think it has other features as well.
roirraW edor ehT said:
You're welcome! Glad it's something easy. Me too (ADB/Fastboot used to work as is in PowerShell). I think Microsoft changed PowerShell enough over the last several years that made regular old commands require some extra characters typed before the commands to get them working.
Maybe it was a security enhancement to PowerShell so that if you're meaning to type a PowerShell command and there's an executable in the same folder by the same name as the PS command, then it's not accidentally running the executable instead, and makes you type extra characters since that's far less likely to be an accident.
There's also the wonderfully neat official Microsoft Terminal app in their store. You can have mix and match of Command Prompt and PowerShell in separate tabs in the same window. I think it has other features as well.
Click to expand...
Click to collapse
In powershell:
./adb shell settings put global settings_provider_model false
./adb shell settings put secure sysui_qs_tiles "wifi,cell,$(settings get secure sysui_qs_tiles)"
bouchigo said:
In powershell:
./adb shell settings put global settings_provider_model false
./adb shell settings put secure sysui_qs_tiles "wifi,cell,$(settings get secure sysui_qs_tiles)"
Click to expand...
Click to collapse
Ah yes, thank you. dot forward-slash. dot forward-slash. Hopefully, I remember.
I hope someone finds a way to do this fro non-rooted 6 Pro
Unlocking bootloader on vivo MTK devices
This thread is intended for vivo MTK devices only. However you might have seen some of the threads for unlocking vivo bootloader but it might not work for you. So let's begin our tutorial
!! WARNING !!
THIS STEP WILL ERASE YOUR USERDATA, SO MAKE SURE YOU HAVE BACKED UP ALL YOUR DATA BEFORE EXECUTING THISRequirements:
This is needed to make it work!
1. MTK Driver
2. Python (latest)
3. UsbDK
4. MTKClient
5. Zip extractor like 7zip
Set up all the requirements:
1. Install Python
1.1. Open Python that you have download1.2. Tick a box called "add to PATH"1.3. Install2. Install UsbDK
2.1. Make sure you have downloaded UsbDk according to your architecture2.2. Double click the installation file and install3. Install MediaTek Drivers
3.1. Download zip that I attach on this thread3.2. Use your zip extractor app and extract the zip3.3. After extract, you will see 3 files inside, choose "cdc-acm.inf" and right click3.4. Select "Install drivers" and follow all instructions4. Setup MTKClient
4.1. They're many version releases on the github, download the source code zip from the latest version4.2. Use your extractor app and extract it into a folder4.3. Go into that folder and open command prompt from there4.4. Simply type "pip3 install -r requirements.txt" on the cmd and enter. Wait for it to finish4.5. Close the cmd
Steps to unlock:
1. Go to mtkclient folder and open cmd from the folder
2. Type "python3 mtk da seccfg unlock"
3. Prepare your phone, make sure it's turn off
4. Connect your phone to PC with volume combination, hold both volume button and connect
5. Hold it until you heard usb connection sound and release it
6. Wait until it succeed
7. If successful, disconnect your device and turn it on
8. You will see a message saying "Orange state bla bla", ignore it
9. If it keeps rebooting, just wait for it to enter recovery and it will ask you to factory reset your device
10. Factory reset it and you're done!
You've finally unlocked your vivo bootloader
Tested devices:
1. vivo Y20 2021/Y12s (PD2036F)
2. vivo Y17/Y15/Y12 (PD1901)
3. vivo Y1s (PD2014F)
4. vivo Y91C (MTK)(PD1818HF)
However vivo have patched the BROM mode(something like download mode on mtk) on the latest update. But I have solution for that issue!
NeonzGamingYT said:
However vivo have patched the BROM mode(something like download mode on mtk) on the latest update. But I have solution for that issue!
Click to expand...
Click to collapse
way
NeonzGamingYT said:
However vivo have patched the BROM mode(something like download mode on mtk) on the latest update. But I have solution for that issue!
Click to expand...
Click to collapse
Seems like you don't?
so i was trying to use mtk client with your command. i'm not sure why my windows don't recognize python3 as installed and redirected me to microsoft store, so i used just python command which should ran python 3.11.2 on my pc. But when i did that it didn't really let me do that saying that "da" flag not found
Code:
mtk client\mtkclient-1.52>python mtk da seccfg unlock
usage: mtk [-h]
{printgpt,gpt,r,rl,rf,rs,ro,w,wf,wl,wo,e,es,footer,reset,dumpbrom,dumppreloader,payload,crash,brute,gettargetconfig,peek,stage,plstage,xflash}
...
mtk: error: argument cmd: invalid choice: 'da' (choose from 'printgpt', 'gpt', 'r', 'rl', 'rf', 'rs', 'ro', 'w', 'wf', 'wl', 'wo', 'e', 'es', 'footer', 'reset', 'dumpbrom', 'dumppreloader', 'payload', 'crash', 'brute', 'gettargetconfig', 'peek', 'stage', 'plstage', 'xflash')
MTK Flash/Exploit Client V1.52 (c) B.Kerler 2018-2021
Also i'm trying to make it work with vivo v25e which uses Mediatek MT8781 Helio G99 (6nm) (if you can believe description)
if i run adb toolkit it shows me this info for my phone
Code:
Device: V2201
Model: V2201
Brand: vivo
Android: 13
Firmware: TP1A.220624.014
Security Patch: 2023-02-01
also this is behaviour for my phone on the 4ths step
4. Connect your phone to PC with volume combination, hold both volume button and connect
Click to expand...
Click to collapse
at first it shows first line in device manager then second and then disappears at all, is this normal behaviour?
{
"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"
}
Is there any chances for me to unlock bootloader or i should just give up for now? Also i'm very sorry if i miss something obvious.
twq_bought_a_shit_phone said:
so i was trying to use mtk client with your command. i'm not sure why my windows don't recognize python3 as installed and redirected me to microsoft store, so i used just python command which should ran python 3.11.2 on my pc. But when i did that it didn't really let me do that saying that "da" flag not found
Code:
mtk client\mtkclient-1.52>python mtk da seccfg unlock
usage: mtk [-h]
{printgpt,gpt,r,rl,rf,rs,ro,w,wf,wl,wo,e,es,footer,reset,dumpbrom,dumppreloader,payload,crash,brute,gettargetconfig,peek,stage,plstage,xflash}
...
mtk: error: argument cmd: invalid choice: 'da' (choose from 'printgpt', 'gpt', 'r', 'rl', 'rf', 'rs', 'ro', 'w', 'wf', 'wl', 'wo', 'e', 'es', 'footer', 'reset', 'dumpbrom', 'dumppreloader', 'payload', 'crash', 'brute', 'gettargetconfig', 'peek', 'stage', 'plstage', 'xflash')
MTK Flash/Exploit Client V1.52 (c) B.Kerler 2018-2021
Click to expand...
Click to collapse
i got the same error
First i think if you got vivo device is most likely patched. If not what version of mtk exploit is it using
I see you're using security patch dated 2023-02-01 which most likely won't work
ko_hi said:
First i think if you got vivo device is most likely patched. If not what version of mtk exploit is it using
I see you're using security patch dated 2023-02-01 which most likely won't work
Click to expand...
Click to collapse
honestly i was trying to lock the bootloader just so i won't touch these stuff and my phone is not even vivo it's oppo a5s