Can the application modify the node's permission?

本文介绍了在不同权限设置下更新设备固件的方法。如果应用仅有系统权限,则无法直接提升权限来修改节点权限;放置应用在特定文件夹(/system/app/)可获得root权限,但需预先具备此权限。通过PC端程序及ADB命令可以实现固件更新。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

[Update]

1.      If theapplication has only the system permission, it can’t improve its permissionthrough the shell(run-asLpyCExV93hsXdwT2 su 0). So in this situation, we can’t change the node’spermission(chmod 666dev/zinitix_touch_misc).

2.      If we put theapplication in the folder(/system/app/), it will gain the root permission, wecan execute the shell(chmod666 dev/zinitix_touch_misc) through the application. But in this case we needthe root permission firstly.

3.      Wrap up here,we can’t do all things in the application. However there’s one more complicatedway to update the firmware.

 

Steps

What do we do in this step?

Highlight

3.1 Run the program firstly in the PC side

1 Copy the firmware to the device

2. Install the application

3. Execute the shell through ADB

      run-as LpyCExV93hsXdwT2 su 0

     chmod 666 dev/zinitix_touch_misc

 

the program for linux is ready.

 

If customer’s environment is windows, we also need to build the program with windows’ compile tool

 

If we use the ADB shell directly, we don’t need to prepare it for different PC environment.

 

3.2 Run the application in the device

Update the firmware

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值