Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Android Device ID Changer shell script Post 303038764 by f4is4l on Friday 13th of September 2019 01:18:25 AM
Old 09-13-2019
Android Device ID Changer shell script

this is worked "ANDROID NOUGAT" how can i use it for "ANDROID OREO"
-plz help me...

Code:
echo "                       Ã-~-DEVICE ID CHANGINGÃ-~-"
sleep 2
echo "
"
COUNT=1
while
do
[ $COUNT ];




echo "settings put secure android_id " | tr -d '\n' > X1
od -x /dev/urandom | head -1 | awk '{OFS=""; print $4,$7$8$9}' > X2
cat X1 X2 > /system/bin/aaaa

rm -rf X1
rm -rf X2

chmod -R 777 /system/bin/aaaa

sh /system/bin/aaaa

rm -rf /system/bin/aaaa


########################
awk -v min=1111111111111111 -v max=2999999999999999 'BEGIN{srand(); print int(min+rand()*(max-min+1))}' | tr -d '\n' > id
awk -v min=6500000000 -v max=6509999999 'BEGIN{srand(); print int(min+rand()*(max-min+1))}' | tr -d '\n' > idd
cat /dev/urandom | tr -cd 'a-f0-9' | head -c 9 | tr -d '\n' > name
######
cat /proc/sys/kernel/random/uuid | tr -d '\n' > device_idB
od -x /dev/urandom | head -1 | awk '{OFS=""; print $2$3,$4,$5,$6,$7$8$9}' | tr -d '\n' > device_idD
od -x /dev/urandom | head -1 | awk '{OFS=""; print $2$3,$4,$5,$6,$7$8$9}' | tr -d '\n' > device_idF

 

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Running a shell script on device mount

Something I have always wondered but never had any luck finding information on is running a shell script when a device mounts... Lets say I have an external hard drive as a back up, every time I plug the device in I want to launch a shell script to rsync a few directories. How would I do... (4 Replies)
Discussion started by: d3mcfadden
4 Replies

2. Android

Android Scripting Environment: Shell Scripting and Android

I just upgraded to Android 2.2 from 2.1. The GPS issue that was troublesome in 2.1 seems to have been fixed. Some of web browsing seems faster, but it could just be my connection is better today ;) Flash works in some browsers but not very good and it is too slow for Flash apps designed for... (0 Replies)
Discussion started by: Neo
0 Replies

3. Shell Programming and Scripting

GPS-Tracker script [Android]

Hi UNIX-Forum! I don't know if this is the right Forum for my question, but since Android technically is a UNIX-based system... I have a rooted Android and a Terminal emulator and bash installed. I wanted to write a little script for my android that activates GPS, gets the location and sends... (3 Replies)
Discussion started by: al0x
3 Replies

4. Solaris

Medium Changer not detected.

Hello Gurus, We are in the process of configuring SAN based backup for our DB hosted on Solaris 10 (SPARC and X86) Servers. But the Robotic arm (Medium Changer - HP) is not getting detected on the server. Need experts help in checking this from the host (Solaris Server) end. Thank You. (0 Replies)
Discussion started by: EmbedUX
0 Replies

5. Shell Programming and Scripting

Help with Backup Shell Script for Network Device Configuration backup

HI all, im new to shell scripting. need your guidence for my script. i wrote one script and is attached here Im explaining the requirement of script. AIM: Shell script to run automatically as per scheduled and backup few network devices configurations. Script will contain a set of commands... (4 Replies)
Discussion started by: saichand1985
4 Replies

6. Android

Device Names on Android

Hi, I have a program that logs serial port data. In order to do so it requires the full device name in linux (e.g. /dev/ttyUSB0) and a baudrate. Does anyone know how I can find out the device name in the terminal? I am trying to port this application to Android and cant figure it out. ... (22 Replies)
Discussion started by: fedora18
22 Replies

7. Android

Running only the Linux kernel of an Android device

I am looking for a way to run on top of the Linux kernel of an Android device. I want to use the existing configured Linux beneath Android rather than put a new Linux distribution onto a device. The article "The Android boot process from power on" (sorry, forum won't let me paste the link)... (0 Replies)
Discussion started by: raoulney
0 Replies

8. Android

Problem with torrents and bash script on Android

Please disregard this post (0 Replies)
Discussion started by: johnnybopper
0 Replies
SCRIPT(1)						    BSD General Commands Manual 						 SCRIPT(1)

NAME
script -- make typescript of terminal session SYNOPSIS
script [-adfpqr] [-c command] [file] DESCRIPTION
script makes a typescript of everything printed on your terminal. It is useful for students who need a hardcopy record of an interactive session as proof of an assignment, as the typescript file can be printed out later with lpr(1). If the argument file is given, script saves all dialogue in file. If no file name is given, the typescript is saved in the file typescript. Option: -a Append the output to file or typescript, retaining the prior contents. -c command Run the named command instead of the shell. Useful for capturing the output of a program that behaves differently when associated with a tty. -d When playing back a session with the -p flag, don't sleep between records when playing back a timestamped session. -f Flush output after each write. This is useful for watching the script output in real time. -p Play back a session recorded with the -r flag in real time. -q Be quiet, and don't output started and ended lines. -r Record a session with input, output, and timestamping. The script ends when the forked shell exits (a control-D to exit the Bourne shell (sh(1)), and exit, logout or control-d (if ignoreeof is not set) for the C-shell, csh(1)). Certain interactive commands, such as vi(1), create garbage in the typescript file. script works best with commands that do not manipulate the screen, the results are meant to emulate a hardcopy terminal. ENVIRONMENT
The following environment variable is used by script: SHELL If the variable SHELL exists, the shell forked by script will be that shell. If SHELL is not set, the Bourne shell is assumed. (Most shells set this variable automatically). SEE ALSO
csh(1) (for the history mechanism). HISTORY
The script command appeared in 3.0BSD. BUGS
script places everything in the log file, including linefeeds and backspaces. This is not what the naive user expects. BSD
October 17, 2009 BSD
All times are GMT -4. The time now is 04:15 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy