Home
About
Blog
Products
Forum
Support
Contact
Sunbelt Computer Software
PL/B Language Development and Support
Home
About
Blog
Products
Forum
Support
Contact
OtaUpdateAutoTest/addte.txt at master · coder-Silver/OtaUpdateAutoTest · GitHub
Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
See all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
coder-Silver
OtaUpdateAutoTest
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
master
Breadcrumbs
OtaUpdateAutoTest
/
addte.txt
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
77 lines (55 loc) · 2.69 KB
master
Breadcrumbs
OtaUpdateAutoTest
/
addte.txt
Copy path
Top
File metadata and controls
Code
Blame
77 lines (55 loc) · 2.69 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
######配置te权限#########
####方式一:###
#1.
#在aosp/system/sepolicy/增加对应te文件autoupdate.te,在dmesg日志中根据报的权限需求添加
########################################################
#sepolicy rules for autoupdate
#######################################################
type autoupdate, domain;
type autoupdate_exec, exec_type, file_type;
permissive autoupdate;
init_daemon_domain(autoupdate)
allow autoupdate toolbox_exec:file { read open execute execute_no_trans getattr };
allow autoupdate cache_file:dir { search };
allow autoupdate cache_recovery_file:dir { search write };
allow autoupdate storage_file:lnk_file { read };
allow autoupdate shell_exec:file { read getattr };
allow autoupdate system_data_file:file { getattr };
allow autoupdate system_data_file:dir { getattr };
allow autoupdate self:capability { dac_override sys_admin };
allow autoupdate rootfs:dir { write add_name create };
allow autoupdate system_file:file { execute_no_trans };
allow autoupdate cache_file:dir { getattr };
allow autoupdate tee_data_file:dir { getattr };
allow autoupdate storage_file:dir { getattr };
allow autoupdate media_rw_data_file:dir { getattr search read open write };
allow autoupdate media_rw_data_file:file { getattr read open write };
allow autoupdate tmpfs:dir { write add_name create search };
allow autoupdate mnt_user_file:dir { read search };
allow autoupdate mnt_user_file:lnk_file { read } ;
allow autoupdate sdcardfs:dir { search read open getattr };
allow autoupdate sdcardfs:file { getattr read open };
allow autoupdate autoupdate_exec:file { read open execute execute_no_trans getattr };
#2.在system/sepolicy/file_contexts中添加context配置:
/system/bin/autoupdate.sh u:object_r:autoupdate_exec:s0
####方式二:直接关闭selinux权限检查。
#aosp/vendor/bootable/bootloader/lk/pratform/<project>/rules.mk
#在N版本以后,关闭只能设置permissive,不能设置disable
SELINUX_STATUS :=2
######以上设置完te权限配置,需要设置开机自启动脚本
##在aosp/system/core/rootdir/init.rc或者对应项目的rc文件中配置
on property:sys.boot_completed=1
start autoupdate
#service 启动配置视需求而定
service autoupdate /system/bin/autoupdate.sh
class main
user root
group root
disabled
onrestart
seclabel u:r:autoupdate:s0
#######以上开机启动脚本配置完成##############
##添加脚本到打包到system.img中
##添加脚本文件到对应项目的分支中,同时在对应项目device.mk中添加:
PRODUCT_COPY_FILES += device/along/along8167_tb_n/autoupdate.sh:system/bin/autoupdate.sh
#视需求可放在system/bin中,也可放在vendor/bin.另vendor/bin/中sh最终仍然使用/system/bin/sh
You can’t perform that action at this time.