Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
re860_factory
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
waterword
re860_factory
Commits
b8f38739
Commit
b8f38739
authored
Oct 13, 2025
by
lyong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:取消授权时候功能处理错误
parent
d40b899d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
22 deletions
+2
-22
factoryTest_plugin/factory_autoFactoryTestUtil.js
factoryTest_plugin/factory_autoFactoryTestUtil.js
+2
-22
No files found.
factoryTest_plugin/factory_autoFactoryTestUtil.js
View file @
b8f38739
...
...
@@ -232,18 +232,13 @@ function getTempHum() {
}
function
writeLic
(
hexStr
)
{
var
filePath
=
"
/tmp/test_license.txt
"
;
// inner_sn_data.bin
// operation_license
// sn_data.bin
var
filePath1
=
"
/tmp/operation_license
"
;
var
filePath2
=
"
/tmp/sn_data.bin
"
;
//
var filePath2 = "/tmp/sn_data.bin";
const
SECURE_APP_PATH
=
"
/mnt/app/eOpteeCtrl
"
console
.
log
(
'
Full license written:
'
+
hexStr
);
var
hexLen
=
hexStr
.
length
;
// console.log("Writing data: " + hexStr + " to " + filePath);
var
result
=
uart
.
writeData
(
hexStr
,
hexLen
,
filePath1
);
if
(
result
==
1
)
{
console
.
log
(
"
Data written successfully.
"
);
...
...
@@ -252,25 +247,10 @@ function writeLic(hexStr) {
}
system
(
"
sync
"
);
system
(
SECURE_APP_PATH
+
"
-b
"
+
filePath1
);
var
result
=
uart
.
writeData
(
hexStr
,
hexLen
,
filePath2
);
if
(
result
==
1
)
{
console
.
log
(
"
Data written successfully.
"
);
}
else
{
console
.
log
(
"
Failed to write data.
"
);
}
system
(
"
sync
"
);
system
(
SECURE_APP_PATH
+
"
-b
"
+
filePath2
);
// console.log('Full license asciiText:' + asciiText);
// handleSNDataBinFile.writeLicenseToBinFile(asciiText)
// handleSNDataBinFile.writeSNDataToBinFile(asciiText)
// system("echo " + asciiText + " > /tmp/test_license.txt")
// handleSNDataBinFile.writeInnerSNDataToBinFile(lic)
system
(
"
cp /tmp/operation_license /mnt/userdataA/files/
"
);
system
(
"
/mnt/app/eMideaSetMac
"
);
}
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment