Skip to content
This repository was archived by the owner on Nov 6, 2024. It is now read-only.

Commit 12264bc

Browse files
committed
AdaptationKits: FOS: Initialize
1 parent 70392b9 commit 12264bc

File tree

6 files changed

+154
-3
lines changed

6 files changed

+154
-3
lines changed

Diff for: .gitattributes

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# Treat everything as binary, as cat files require binary identity for signatures to match
2-
* -text
2+
* -text

Diff for: .gitignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
################################################################################
1+
################################################################################
22
# This .gitignore file was automatically created by Microsoft(R) Visual Studio.
33
################################################################################
44

5-
/.vs
5+
/.vs

Diff for: adaptationkits/FOS/OEMInput.epsilon.xml

+96
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<OEMInput xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/embedded/2019/06/ImageUpdate">
3+
<Description>FactoryOSArgon Development_Internal_Epsilon en-us image. EPSILON_SPACES OEMInput for AndromedaH855 on arm64</Description>
4+
<DeviceLayoutType>EPSILON_SPACES</DeviceLayoutType>
5+
<SV>Microsoft</SV>
6+
<!-- HACK: Use AndromedaH845 as the device name to enable a few ImageApp customizations -->
7+
<Device>AndromedaH845</Device>
8+
<ReleaseType>Test</ReleaseType>
9+
<BuildType>fre</BuildType>
10+
<Languages>
11+
<Language Default="true">en-US</Language>
12+
</Languages>
13+
<AdditionalFMs>
14+
<!-- Microsoft -->
15+
<AdditionalFM>D:\Surface-Drivers-main\adaptationkits\FOS\FMs\WindowsCoreProductionFM.xml</AdditionalFM>
16+
<AdditionalFM>D:\Surface-Drivers-main\adaptationkits\FOS\FMs\WindowsCoreNonProductionFM.xml</AdditionalFM>
17+
<AdditionalFM>D:\Surface-Drivers-main\adaptationkits\FOS\FMs\MobileDeviceSpaceFM.xml</AdditionalFM>
18+
<AdditionalFM>D:\Surface-Drivers-main\adaptationkits\FOS\FMs\CommonContainerFM.xml</AdditionalFM>
19+
<AdditionalFM>D:\Surface-Drivers-main\adaptationkits\FOS\FMs\ArgonContainerFM.xml</AdditionalFM>
20+
<AdditionalFM>D:\Surface-Drivers-main\adaptationkits\FOS\FMs\FOSNonProductionFM.xml</AdditionalFM>
21+
<AdditionalFM>D:\Surface-Drivers-main\adaptationkits\FOS\FMs\FactoryOSArgonProductSpecificFM.xml</AdditionalFM>
22+
<AdditionalFM>D:\Surface-Drivers-main\adaptationkits\FOS\FMs\FactoryOSFM.xml</AdditionalFM>
23+
<AdditionalFM>D:\Surface-Drivers-main\adaptationkits\FOS\FMs\FactoryOSProductSpecificFM.xml</AdditionalFM>
24+
<AdditionalFM>D:\Surface-Drivers-main\adaptationkits\FOS\FMs\FactoryOSRamBootFM.xml</AdditionalFM>
25+
<!-- OEM -->
26+
<AdditionalFM>D:\Surface-Drivers-main\adaptationkits\FOS\FMs\OEM\EpsilonDeviceFM.xml</AdditionalFM>
27+
<AdditionalFM>D:\Surface-Drivers-main\adaptationkits\FOS\FMs\OEM\EpsilonDeviceDriversFM.xml</AdditionalFM>
28+
<AdditionalFM>D:\Surface-Drivers-main\adaptationkits\FOS\FMs\OEM\MicrosoftSurfaceDeviceAppsFM.xml</AdditionalFM>
29+
</AdditionalFMs>
30+
<MachineInfoFile>D:\Surface-Drivers-main\adaptationkits\FOS\machineinfo.epsilon.xml</MachineInfoFile>
31+
<Features>
32+
<Microsoft>
33+
<Feature>ALLOW_CONNECTEDSTANDBY</Feature>
34+
<Feature>CAD_CHARGING</Feature>
35+
<Feature>CORE_WIN32_SUPPORT_ARGON</Feature>
36+
<Feature>DEBUGGER_IGNORE_UM_EXCEPTIONS</Feature>
37+
<Feature>DEVICEPORTAL_OPTIONAL_MONITORCONFIG</Feature>
38+
<Feature>ENABLE_WOW</Feature>
39+
<Feature>FACTORY_ORCHESTRATOR_SERVICE</Feature>
40+
<Feature>FONTSIZE_30</Feature>
41+
<Feature>MANUFACTURING_MODE_EMPTY_PROFILE</Feature>
42+
<Feature>MANUFACTURING_POWER_SCHEME</Feature>
43+
<Feature>MANUFACTURING_POWER_SCHEME_SLEEP_ON_POWER</Feature>
44+
<Feature>MICROSOFT_EDGE</Feature>
45+
<Feature>OEM_IMAGE</Feature>
46+
<Feature>OFFLINE_CRASH_DUMP_SUPPORTED</Feature>
47+
<Feature>RESOLUTION_1440X2560</Feature>
48+
<Feature>SERVICING_STACK</Feature>
49+
<Feature>SETTINGS_APP</Feature>
50+
<Feature>SHELL_BOOT</Feature>
51+
<Feature>STATESEPARATION_ON</Feature>
52+
<Feature>STATESEPARATION_TALKMAN_EXEMPT</Feature>
53+
<Feature>TELEMETRY_OPT_OUT</Feature>
54+
<Feature>WCOS_ACCESSIBLITY_NARRATOR</Feature>
55+
<Feature>WCOS_APP_CENTENNIALRUNTIME</Feature>
56+
<Feature>WCOS_APP_WIN32SUPPORT_ARGON</Feature>
57+
<Feature>WCOS_AUDIO_MMESUPPORT</Feature>
58+
<Feature>WCOS_CLOUD_FILES</Feature>
59+
<Feature>WCOS_CONTAINERS</Feature>
60+
<Feature>WCOS_DEVICEPORTAL</Feature>
61+
<Feature>WCOS_DEVICEPORTAL_WOW</Feature>
62+
<Feature>WCOS_DIAGHOST_HOST</Feature>
63+
<Feature>WCOS_DISPLAY_ENHANCEMENT_SERVICE</Feature>
64+
<Feature>WCOS_DRIVERS_USB_ETHERNET</Feature>
65+
<Feature>WCOS_EVENTLOG_SERVICE</Feature>
66+
<Feature>WCOS_FEEDBACKHUB_DXDIAG</Feature>
67+
<Feature>WCOS_HLK_COMPONENTS</Feature>
68+
<Feature>WCOS_MTP</Feature>
69+
<Feature>WCOS_NET_CELLULAR_DATA</Feature>
70+
<Feature>WCOS_NET_PROXIMITY_SERVICE</Feature>
71+
<Feature>WCOS_NET_RADIO_MANAGEMENT</Feature>
72+
<Feature>WCOS_OPENSSH_AUTOSTART</Feature>
73+
<Feature>WCOS_PNP_RUNTIMEDEVICEINSTALL</Feature>
74+
<Feature>WCOS_POWERPOLICY_VM</Feature>
75+
<Feature>WCOS_POWERSHELL</Feature>
76+
<Feature>WCOS_SPEECH_VOICEAGENT_SUPPORT</Feature>
77+
<Feature>WCOS_STORAGE_CDDVD</Feature>
78+
<Feature>WCOS_TEST_COMPONENTS</Feature>
79+
<Feature>WCOS_TESTSIGNING_ON</Feature>
80+
<Feature>WCOS_TIMESYNC_MOBILE</Feature>
81+
<Feature>WCOS_WDTF_COMPONENTS</Feature>
82+
<Feature>WCOS_XBOX_AUTHENTICATION</Feature>
83+
<Feature>WCOS_XRO_LOGGING</Feature>
84+
<Feature>WINDOWS10X_SECURE_BOOT_POLICY</Feature>
85+
</Microsoft>
86+
</Features>
87+
<AppXOptionalPackages>
88+
<AppXID>Microsoft.WindowsFeedbackHub_8wekyb3d8bbwe</AppXID>
89+
<AppXID>Microsoft.RemoteDesktop_8wekyb3d8bbwe</AppXID>
90+
<AppXID>Microsoft.MicrosoftEdge.Stable_8wekyb3d8bbwe</AppXID>
91+
<AppXID>Microsoft.WindowsCalculator_8wekyb3d8bbwe</AppXID>
92+
<AppXID>Microsoft.WindowsStore_8wekyb3d8bbwe</AppXID>
93+
<AppXID>Microsoft.FactoryOrchestratorApp_8wekyb3d8bbwe</AppXID>
94+
</AppXOptionalPackages>
95+
<Product>FactoryOSArgon</Product>
96+
</OEMInput>

Diff for: adaptationkits/FOS/build.epsilon.cmd

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
@echo off
2+
3+
SET HOUR=%time:~0,2%
4+
SET dtStamp9=%date:~-2%%date:~4,2%%date:~7,2%-0%time:~1,1%%time:~3,2%
5+
SET dtStamp24=%date:~-2%%date:~4,2%%date:~7,2%-%time:~0,2%%time:~3,2%
6+
7+
if "%HOUR:~0,1%" == " " (SET dtStamp=%dtStamp9%) else (SET dtStamp=%dtStamp24%)
8+
9+
set SIGN_OEM=1
10+
set DIR=%CD%
11+
cd "F:\Program Files\Windows Kits\10\tools\bin\i386"
12+
c:
13+
14+
mkdir "%DIR%\Image_%dtStamp%_Epsilon"
15+
imggen "%DIR%\Image_%dtStamp%_Epsilon\Flash.vhd" "%DIR%\OEMInput.Epsilon.xml" "%DIR%" ARM64
16+
cd %DIR%

Diff for: adaptationkits/FOS/machineinfo.epsilon.xml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<?xml version='1.0' encoding='utf-8'?>
2+
<MachineInfo Manufacturer="Microsoft Corporation" Family="Surface" ProductName="Surface Duo" SKUNumber="Surface_Duo_1930"></MachineInfo>

Diff for: adaptationkits/FOS/patch.epsilon.cmd

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
@echo off
2+
set MainOS=G:
3+
set HACK_EFIESP=H:
4+
set BSP=I:
5+
set VIRT_EFIESP=J:
6+
set EFIESP=K:
7+
8+
set Folder=D:\Surface-Drivers-main\adaptationkits\FOS
9+
10+
mkdir %EFIESP%\efi\Boot
11+
copy %HACK_EFIESP%\efi\Boot\bootaa64.efi %EFIESP%\efi\Boot
12+
13+
bcdedit /store %HACK_EFIESP%\efi\Microsoft\Boot\BCD /set {default} nointegritychecks on
14+
bcdedit /store %HACK_EFIESP%\efi\Microsoft\Boot\BCD /set {default} testsigning on
15+
16+
bcdedit /store %HACK_EFIESP%\efi\Microsoft\Boot\BCD /set {01de5a27-8705-40db-bad6-96fa5187d4a6} enablebootdebugpolicy No
17+
bcdedit /store %HACK_EFIESP%\efi\Microsoft\Boot\BCD /set {01de5a27-8705-40db-bad6-96fa5187d4a6} enablebootorderclean No
18+
bcdedit /store %HACK_EFIESP%\efi\Microsoft\Boot\BCD /set {01de5a27-8705-40db-bad6-96fa5187d4a6} enabledeviceid No
19+
bcdedit /store %HACK_EFIESP%\efi\Microsoft\Boot\BCD /set {01de5a27-8705-40db-bad6-96fa5187d4a6} enablemassstorage No
20+
bcdedit /store %HACK_EFIESP%\efi\Microsoft\Boot\BCD /set {01de5a27-8705-40db-bad6-96fa5187d4a6} enablerpmbprovisioning No
21+
bcdedit /store %HACK_EFIESP%\efi\Microsoft\Boot\BCD /set {01de5a27-8705-40db-bad6-96fa5187d4a6} enablesecurebootpolicy No
22+
bcdedit /store %HACK_EFIESP%\efi\Microsoft\Boot\BCD /set {01de5a27-8705-40db-bad6-96fa5187d4a6} enablestartcharge No
23+
bcdedit /store %HACK_EFIESP%\efi\Microsoft\Boot\BCD /set {01de5a27-8705-40db-bad6-96fa5187d4a6} enableresettpm No
24+
25+
ren %HACK_EFIESP%\efi\Microsoft\Boot\SecureBootPolicy.p7b SecureBootPolicy.p7b.bak
26+
27+
xcopy /cheriky %HACK_EFIESP%\* %VIRT_EFIESP%\
28+
29+
reg load HKLM\RTS %MainOS%\Windows\System32\config\SOFTWARE
30+
for /f %%f in ('dir /b /s %Folder%\REG.EPSILON\SOFTWARE\*.reg') do reg import %%f
31+
reg unload HKLM\RTS
32+
33+
reg load HKLM\RTS %MainOS%\Windows\System32\config\SYSTEM
34+
for /f %%f in ('dir /b /s %Folder%\REG.EPSILON\SYSTEM\*.reg') do reg import %%f
35+
reg add HKLM\RTS\ControlSet001\Services\bindflt /v Start /t REG_DWORD /d 0 /f
36+
reg add HKLM\RTS\ControlSet001\Control\Bitlocker /v PreventDeviceEncryption /t REG_DWORD /d 1 /f
37+
reg unload HKLM\RTS

0 commit comments

Comments
 (0)