Welcome to Termux!
Wiki: https://wiki.termux.com Community forum: https://termux.com/community Gitter chat: https://gitter.im/termux/termux IRC channel: #termux on freenode Working with packages: * Search packages: pkg search [query] * Install a package: pkg install [package] * Upgrade packages: pkg upgrade Subscribing to additional repositories: * Root: pkg install root-repo * Unstable: pkg install unstable-repo * X11: pkg install x11-repo Report issues at https://termux.com/issues1. Getting OS Info
$ uname Linux $ uname -a Linux localhost 4.14.199-24365169-abX205XXU1AVG1 #2 SMP PREEMPT Tue Jul 5 20:39:23 KST 2022 aarch64 Android2. Getting Processor Info
$ more /proc/cpuinfo Processor : AArch64 Processor rev 1 (aarch64) processor : 0 BogoMIPS : 52.00 Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp CPU implementer : 0x41 CPU architecture: 8 CPU variant : 0x1 CPU part : 0xd05 CPU revision : 0 processor : 1 BogoMIPS : 52.00 Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp CPU implementer : 0x41 CPU architecture: 8 CPU variant : 0x1 CPU part : 0xd05 CPU revision : 0 processor : 2 BogoMIPS : 52.00 Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp CPU implementer : 0x41 CPU architecture: 8 CPU variant : 0x1 CPU part : 0xd05 CPU revision : 0 processor : 3 BogoMIPS : 52.00 Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp CPU implementer : 0x41 CPU architecture: 8 CPU variant : 0x1 CPU part : 0xd05 CPU revision : 0 processor : 4 BogoMIPS : 52.00 Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp CPU implementer : 0x41 CPU architecture: 8 CPU variant : 0x1 CPU part : 0xd05 CPU revision : 0 processor : 5 BogoMIPS : 52.00 Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp CPU implementer : 0x41 CPU architecture: 8 CPU variant : 0x1 CPU part : 0xd05 CPU revision : 0 processor : 6 BogoMIPS : 52.00 Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp CPU implementer : 0x41 CPU architecture: 8 CPU variant : 0x3 CPU part : 0xd0a CPU revision : 1 processor : 7 BogoMIPS : 52.00 Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp CPU implementer : 0x41 CPU architecture: 8 CPU variant : 0x3 CPU part : 0xd0a CPU revision : 1 Hardware : Unisoc ums512 Serial : 96789ab0ffeb70e8d1320621ab4d084fb1082517682936e1977afc5ae63a3c7b3. Getting my username
$ whoami u0_a2184. Getting Your IP Address
$ ifconfig Warning: cannot open /proc/net/dev (Permission denied). Limited output. lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 1000 (UNSPEC) wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.1.102 netmask 255.255.255.0 broadcast 192.168.1.255 unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 1000 (UNSPEC)5. Checking RAM Usage
$ free -h total used free shared buff/cache available Mem: 2.4Gi 1.9Gi 113Mi 12Mi 493Mi 448Mi Swap: 2.5Gi 1.2Gi 1.3Gi6. Checking Space on Hard Disk
$ df -h Filesystem Size Used Avail Use% Mounted on /dev/block/dm-4 3.2G 3.2G 2.5M 100% / tmpfs 1.2G 1.3M 1.2G 1% /dev tmpfs 1.2G 0 1.2G 0% /mnt /dev/block/dm-1 122M 122M 0 100% /system_ext /dev/block/dm-5 759M 751M 0 100% /vendor /dev/block/dm-6 1.0G 1.0G 0 100% /product /dev/block/dm-7 271M 166M 99M 63% /prism /dev/block/dm-8 31M 408K 30M 2% /optics tmpfs 1.2G 0 1.2G 0% /apex /dev/block/dm-11 1.8M 1.7M 0 100% /apex/com.android.os.statsd@311510000 /dev/block/dm-12 704K 676K 16K 98% /apex/com.android.sdkext@330810010 /dev/block/dm-13 13M 13M 0 100% /apex/com.android.cellbroadcast@330911010 /dev/block/dm-14 15M 15M 0 100% /apex/com.android.permission@330912010 /dev/block/dm-15 7.9M 7.8M 0 100% /apex/com.android.tethering@330911010 /dev/block/dm-16 3.8M 3.7M 0 100% /apex/com.android.resolv@330910000 /dev/block/dm-17 19M 19M 0 100% /apex/com.android.media.swcodec@330443040 /dev/block/dm-18 8.4M 8.4M 0 100% /apex/com.android.mediaprovider@330911040 /dev/block/dm-19 836K 808K 12K 99% /apex/com.android.tzdata@303200001 /dev/block/dm-20 7.2M 7.1M 0 100% /apex/com.android.neuralnetworks@330443000 /dev/block/dm-21 7.8M 7.7M 0 100% /apex/com.android.adbd@330444000 /dev/block/dm-22 4.8M 4.8M 0 100% /apex/com.android.conscrypt@330443020 /dev/block/dm-23 5.6M 5.6M 0 100% /apex/com.android.extservices@330443000 /dev/block/dm-24 748K 720K 16K 98% /apex/com.android.ipsec@330443010 /dev/block/dm-25 5.7M 5.6M 0 100% /apex/com.android.media@330443030 /dev/block/loop21 24M 24M 0 100% /apex/com.android.i18n@1 /dev/block/loop22 5.1M 5.1M 0 100% /apex/com.android.wifi@300000000 /dev/block/loop23 5.0M 5.0M 0 100% /apex/com.android.runtime@1 /dev/block/loop24 236K 72K 160K 32% /apex/com.samsung.android.shell@303013100 /dev/block/loop25 82M 82M 0 100% /apex/com.android.art@1 /dev/block/loop26 232K 92K 136K 41% /apex/com.android.apex.cts.shim@1 /dev/block/loop27 109M 109M 0 100% /apex/com.android.vndk.v30@1 /dev/block/loop28 236K 32K 200K 14% /apex/com.samsung.android.wifi.broadcom@300000000 /dev/block/loop29 236K 32K 200K 14% /apex/com.samsung.android.camera.unihal@301742001 /dev/block/by-name/cache 303M 12M 285M 4% /cache /dev/block/by-name/sec_efs 11M 788K 10M 8% /efs /dev/fuse 22G 8.5G 13G 40% /storage/emulated7. Print Environment Variables
$ echo $USER $ echo $HOME /data/data/com.termux/files/home8. Print Working Directory
$ pwd /data/data/com.termux/files/home
Showing posts with label Android. Show all posts
Showing posts with label Android. Show all posts
Wednesday, October 26, 2022
Termux to get information about my Android device
Saturday, January 15, 2022
Simple Flutter Android App That Receives Firebase Push Notification
1. 2. 3. 4. Firebase Console 5. 6. 7. 8. 9. 10. 11. Cloud Messaging 12. Add Firebase to your app. 13. App registration form 14. App Name From The XML File 15.1 App name from build.gradle 15.2 Register the app with this name 16. Download Google Services JSON File. 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.Tags: Technology,Android,Flutter,Cloud,
Wednesday, December 22, 2021
Getting Started With React Native
Tags: Technology,Android,JavaScript,React Native,Step 1: Install Node.JS
URL: NodeJS DownloadStep 2: Install Expo CLI
npm install --global expo-cli Ref: https://expo.dev/toolsStep 3: Install Expo Client on Your Phone
Ref: https://expo.dev/clientStep 4: Initialize a blank Expo project
(base) E:\Workspace\react_native>expo init msg_tracker √ Choose a template: » blank a minimal app as clean as an empty canvas √ Downloaded and extracted project files. 📦 Using npm to install packages. √ Installed JavaScript dependencies. ✅ Your project is ready! To run your project, navigate to the directory and run one of the following npm commands. - cd msg_tracker - npm start # you can open iOS, Android, or web from here, or run them directly with the commands below. - npm run android - npm run ios # requires an iOS device or macOS for access to an iOS simulator - npm run web (base) E:\Workspace\react_native> (base) E:\Workspace\react_native>cd msg_tracker (base) E:\Workspace\react_native\msg_tracker>dir Volume in drive E is New Volume Volume Serial Number is 5086-28BA Directory of E:\Workspace\react_native\msg_tracker 12/22/2021 07:13 PM <DIR> . 12/22/2021 07:13 PM <DIR> .. 12/22/2021 07:11 PM <DIR> .expo-shared 10/26/1985 01:45 PM 119 .gitignore 10/26/1985 01:45 PM 454 App.js 12/22/2021 07:11 PM 654 app.json 12/22/2021 07:11 PM <DIR> assets 10/26/1985 01:45 PM 107 babel.config.js 12/22/2021 07:12 PM <DIR> node_modules 12/22/2021 07:13 PM 665,238 package-lock.json 12/22/2021 07:11 PM 537 package.json 6 File(s) 667,109 bytes 5 Dir(s) 579,593,072,640 bytes free (base) E:\Workspace\react_native\msg_tracker>type App.js import { StatusBar } from 'expo-status-bar'; import { StyleSheet, Text, View } from 'react-native'; export default function App() { return ( <View style={styles.container}> <Text>Open up App.js to start working on your app!</Text> <StatusBar style="auto" /> </View> ); } const styles = StyleSheet.create({ container: { flex: 1, backgroundColor: '#fff', alignItems: 'center', justifyContent: 'center', }, });Step 5: Starting the application with "$ expo start"
Before running "expo start", make sure that your Desktop and Phone are on same WiFi network, in my case it is Airtel-MyWiFi. (base) E:\Workspace\react_native\msg_tracker>expo start Starting project at E:\Workspace\react_native\msg_tracker Developer tools running on http://localhost:19002 Starting Metro Bundler ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ █ ▄▄▄▄▄ █ ▀▀▄ ▄██ █ ▄▄▄▄▄ █ █ █ █ ███ ▄▄ ▄▄ █ █ █ █ █ █▄▄▄█ █ ▄▄ █ ██▄█ █▄▄▄█ █ █▄▄▄▄▄▄▄█ █ ▀ █▄▀ █▄▄▄▄▄▄▄█ █▄▄ ▀▀ ▄█ ██▀ ▀▄▄ ▄▄██ █ █ █ ▄█▄▀█▀█▄██▄▄██▀▄█▄▄█▄█ █▄█▄▀▀▄▄ ▀ █▄ █ █ ███▀ ▀█ █▄▄█▀██▄▀▄█ ▀ ▄ ▄█ ▄█▀▄█ █▄▄▄█▄▄▄█ ▀█▄▀ █ ▄▄▄ ▀█ █ █ ▄▄▄▄▄ █▀▄▄▄▄▄ █ █▄█ ██▀▄█ █ █ █ ██▀█ ██ ▄▄▄▄ ▀ ██ █ █▄▄▄█ █ ▄▄▄▄▄ ▀▀█ ▄██▄▄█ █▄▄▄▄▄▄▄█▄█▄▄██▄▄▄▄█▄▄███▄█ › Metro waiting on exp://192.168.1.102:19000 › Scan the QR code above with Expo Go (Android) or the Camera app (iOS) › Press a │ open Android › Press w │ open web › Press r │ reload app › Press m │ toggle menu › Press d │ show developer tools › shift+d │ toggle auto opening developer tools on startup (disabled) › Press ? │ show all commands Logs for your project will appear below. Press Ctrl+C to exit. Once you have scanned the QR code from phone, following logs will appear: Android Bundling complete 10901ms Android Running app on M2006C3LIApp Screenshots From Phone
Subscribe to:
Posts (Atom)