Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
@flyskywhy/react-native-android-shell
Advanced tools
This module for execute shell android, use command and execute shell
This module is for execute shell command on android.
On rooted device with e.g. install-supersu, even can run root command, e.g.
AndroidShell.executeCommand(
'su -c ifconfig eth0 down; su -c ifconfig eth0 hw ether 19:21:19:49:20:21; su -c ifconfig eth0 up',
(result) => {},
);
1.x if gradle < 7 2.x if gradle >= 7
Forked from react-native-android-shel, and fix Error: Program type already present: com.reactlibrary.BuildConfig
on release build. Below is its README.
$ npm install @flyskywhy/react-native-android-shell --save
import AndroidShell from '@flyskywhy/react-native-android-shell';
// TODO: What to do with the module?
AndroidShell.executeCommand('your Command', (result) => {
console.log(result)
});
import React, { Component } from 'react';
import { View, Text } from 'react-native';
import AndroidShell from '@flyskywhy/react-native-android-shell'
class demo extends Component {
constructor(props) {
super(props);
this.state = {
result: ''
};
}
componentDidMount() {
AndroidShell.executeCommand("ls", (result) => {
this.setState({ result: 'yeu : ' + result });
console.log('Result :', result);
});
}
render() {
return (
<View style={{alignItems: 'center', flex: 1 }}>
<Text>{this.state.result}</Text>
</View>
);
}
}
export default demo;
FAQs
This module for execute shell android, use command and execute shell
The npm package @flyskywhy/react-native-android-shell receives a total of 3 weekly downloads. As such, @flyskywhy/react-native-android-shell popularity was classified as not popular.
We found that @flyskywhy/react-native-android-shell demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.