yashsingh1/xdaforums huggingface dataset:
[Android General] Senthil360:
[MENTION=5514152]Paget96[/MENTION] I created this installer to copy the kernel tweaks to init.d and set proper permissions, i placed this file in the same folder as 00kerneltweaks (sdcard/check) When i execute it from terminal i get the echo commands but after that i get 'not found' 'not found' , but strangely no error and the file is copied to init.d and proper 755 permissions are set,how can i make that 'not found' go away from terminal?
[Android General] Paget96:
As I can see you only write 00KERNELTWEAKS try to write file destintion

cp -f /sdcard/00Kerneltweaks /path/where/to/copy

Try and report back :)

I'm waiting
[Android General] Senthil360:
Script works!!! But this still happens in terminal
[Android General] Paget96:
Add

2 > /dev/null

In same line where is cp -f :)
[Android General] MSF Jarvis:
I had tried that with one '>' which didn't work. Anyway, on your suggestion I rooted this device but crappy KingUser is getting on my nerves. And that edit worked for me.[emoji6] [emoji6] [emoji6]
[Android General] Paget96:
Flash superSU it is better ;)
[Android General] MSF Jarvis:
Dude I would KILL to get SuperSU. But it's impossible to do that from the play store method, and I haven't found a good custom recovery for my device.
[Android General] Paget96:
Try to flash superSU with flashify app :)

Find that on google.

Flashify app by chainfire

superSU beta 2.49 by chainfire
[Android General] MSF Jarvis:
Flashify app isn't by chainfire. Anyway gonna try it soon. Right now I'm looking on the XDA forum for a recovery.
[Android General] insigma28:
Awesome guide [MENTION=5514152]Paget96[/MENTION] will be trying out near future maybe be as good as you hehe. Thumbs up mate

Tapped from my N4
[Android General] Senthil360:
[MENTION=5514152]Paget96[/MENTION] bro made a trial script,all options working, A ton of thanks won't be enough bro?, still visual is not that good..will try to correct it tomorrow ?
[Android General] Paget96:
Oohhh not flashify sorry habahah :D

I mean flashfire by chainfire ^~^

That app :D

Just keep rolling mate ;) hehehe

I'm waiting to see your stuff here ^~^

Good, awesome, great job :D

Just keep doing stuff ^~^
[Android General] Senthil360:
L-speed runs if i enter LS from terminal,how do i do that for my script bro?

Also,

The updater script seems 10 times more difficult than normal scripts ??, but not impossible ?
[Android General] Paget96:
When you put file into /system/bin you don't need to type sh or anything :)

For example you have a file with the name test5, copy it to /system/bin

From terminal you need to type only

su

test5

That I will add next to the guide ;)

I just didn't have a time today for that :)
[Android General] Senthil360:
Oh thought the same thing,but instead of putting in /system/bin i put it in /system/xbin,

Will be waiting for the update, ?
[Android General] Paget96:
You can put in any of that both ;)
[Android General] Senthil360:
But i got permission denied error,

So can i put a system remount r/w script in init.d folder to make it work?
[Android General] Paget96:
First type su ;)
[Android General] Senthil360:
[MENTION=5514152]Paget96[/MENTION] Is it possible to expand the functionality of if and elif commands,

Let me tell an example, I have 2 files at different locations, inside one file i have written 'Speed' and in the other file i have written 'Mod',

now I want to copy only the file which has only 'Speed' written inside it.... Is it possible?
[Android General] Paget96:
I understand this, but what are you trying to do???

If there are different locations heh, you need to write only one cp -f command for that one file. Give me full example of what are you trying to do :)
[Android General] Senthil360:
No problem mate,idea was to run the crond installer according to the csc version printed inside a file, those ideas were shortcuts, so instead i made a 369 line script and my phone is blazing fast now, Thanks bro,will send u the script, Planning to intrgrate it into our Note 4 Nameless Rom
[Android General] Paget96:
Good job :)

When you have a time, please upload it, I want to see ;)
[Android General] gothy.gothy:
Paget, what you do here is like in this saying: "Give a man a fish and you feed him for a day; teach a man to fish and you feed him for a lifetime."

Yeah, you can use it as your motto wherever you want! :)
[Android General] Paget96:
Wow :D

I like this :D

Did you wrote that???
[Android General] gothy.gothy:
No, it's an old chinese saying ...
[Android General] Paget96:
Anyway it's awesome :)
[Android General] gothy.gothy:
This is what you already do: you teach us "fishing" for having "food" for ... life!

You, being a Scorpio, water sign, ...
[Android General] Paget96:
Yes, I am Scorpio ;) heheh
[Android General] Senthil360:
It 100% suits [MENTION=5514152]Paget96[/MENTION] ??
[Android General] hoholee12:
this is a pretty basic introduction of shell scripting... but i like the simplicity, and its well written for others to understand approximately whats going on in the back scene;

well done m8 xDD

perhaps i could link some pages for people who really want to go further into programming other than just tinkering the surface with basic stuff. ask me anything! :D
[Android General] Paget96:
Thank you dude ;)

Well join the party heheh
[Android General] Senthil360:
I would love to see those links <3
[Android General] Black_Eyes:
[MENTION=5514152]Paget96[/MENTION] Your Star is Scorpion :eek: ?
[Android General] Paget96:
Yeah, why?? :D
[Android General] Black_Eyes:
Nothing, They are just kind enough :fingers-crossed:
[Android General] Paget96:
I still doesn't understand :D
[Android General] Black_Eyes:
You don't have to :p
[Android General] gothy.gothy:
great-heart people
[Android General] Paget96:
Thanks guys ^~^
[Android General] hoholee12:
here ya go xDD

http://c.learncodethehardway.org/

http://regex.learncodethehardway.org/

http://www.agner.org/optimize/
[Android General] GreekDragon:
Danijel, as i say, currently trying to build my dragon's script. However i have a question. Before Loading on terminal the file, when i press the letter "g" or whatever, the terminal just force close. Is terminal related issue?
[Android General] Paget96:
Thank you for sharing this ^~^

Which terminal are you using?? :)
[Android General] GreekDragon:
Terminal Emulator for android by jack palevice. Im on last update of this app by the way.
[Android General] k1labban17120692:
Helpful! This tutorial will be a lot useful to us users and beginners. Will look forward into this one. Thank you! ??
[Android General] Paget96:
Thank you too :)
[Android General] MSF Jarvis:
Sample L Speed Prepper Script

Hi [MENTION=5514152]Paget96[/MENTION], long time no see heheh:D. I wrote a sample script to prep any device for installing L Speed. My Explorer is bricked and the 616 hasn't got init.d support, so you'll have to test it and tell if it works. Here you go :

echo '--------------------------'
echo ' L Speed Prepper Script '
echo ' By MSF Jarvis @ XDA '
echo '--------------------------'
echo 'Initialising root permissions'
su
echo 'Mounting /system writable...'
mount -o rw,remount /system
sleep 3
echo 'Backing up init.d scripts...'
if [!-e /sdcard/init.d-backup];then
mkdir /sdcard/init.d-backup
fi
cp /system/etc/init.d /sdcard/init.d-backup
sleep 3
echo 'Cleaning out init.d and restoring critical scripts'
rm -rf /system/etc/init.d
mkdir /system/etc/init.d
cp /sdcard/init.d-backup/00banner /system/etc/init.d
if [-e /sdcard/init.d-backup/90userinit];then
cp /sdcard/init.d-backup/90userinit /system/etc/init.d
fi
if [-e /sdcard/init.d-backup/99SuperSUDaemon];then
cp /sdcard/init.d-backup/99SuperSUDaemon
fi
echo 'init.d Done...'
sleep 1
echo 'Setting SELinux to Permissive...'
echo 'ro.build.selinux=0' >> /system/build.prop
echo 'Done toggling SELinux...'
sleep 1
echo 'All Done...'
echo 'You should be ready to flash L Speed without any issues'

Hope it works:fingers-crossed: If yes, I'll post it up on my GitHub and you can post the link to it on the L Speed Thread.
[Android General] Paget96:
I'm little busy,that is why, also I'm rebuilding LS :D

Script is good, but also I can do the same thing in updater-script :)

Reason why, in someone's init.d you can find a lot of files which are important :)

Script is good, but I found few errors :)

Ecactly 2.

if [-e /sdcard/init.d-backup/99SuperSUDaemon];then
cp /sdcard/init.d-backup/99SuperSUDaemon
fi

You didn't type where to copy :)

And second one where is selinux stuff, you cannot change it in that way :)
[Android General] MSF Jarvis:
Oops... My bad on the copying thing. But AFAIK and have tested, SELINUX can be toggled using the build property. If that's wrong, can you tell me how would you go about achieving permissive SELinux status
[Android General] Paget96:
As you can see there is su.d folder inside L Speed's zip. :D

For executing this folder superSU is needed :)
[Android General] MSF Jarvis:
That su.d folder will toggle SELinux??

Sent from a Cool Phone stuck with crappy KingUser
[Android General] Paget96:
Yup, exactly script which is inside ;)
[Android General] MSF Jarvis:
Cool. I'll check it in the new build you're working on. Best of Luck for L Speed Mod v4.0 ( that's the correct version number, right???)

Sent from a Cool Phone stuck with crappy KingUser
[Android General] Paget96:
V3.1 b4

And it's already uploaded, you can check ;)
[Android General] MSF Jarvis:
Rebuilding calls for a major version number bump, but anyway, I'm downloading it now.[emoji16] [emoji16] [emoji16]

Sent from a Cool Phone stuck with crappy KingUser
[Android General] MSF Jarvis:
Hey [MENTION=5514152]Paget96[/MENTION] had a quick question for you. What command can I use to wait for the user to press enter before the rest of the script executes ???
[Android General] Paget96:
Yes, here it is

read enterKey
[Android General] MSF Jarvis:
Thanks. As soon as I finish the script I'm working on, I'll show it off here. Beware though, it's for Linux, not Android.

Sent from a Cool Phone stuck with crappy KingUser
[Android General] Paget96:
Android is based on Linux ;) heh

Everything for linux will work on android, exactly almost all :)
[Android General] MSF Jarvis:
Yup, that's why I'm asking you for help. I am writing a shell based ApkTool Wrapper Script for Linux. It's supposed to give access to all ApkTool features plus some more.

Sent from a Cool Phone stuck with crappy KingUser
[Android General] Senthil360:
[MENTION=5514152]Paget96[/MENTION] Is there any specific lines to add in the updater script to install busybox from zip? (Permissions?)
[Android General] Paget96:
I'm waiting to see this :)

You can look at mine zip ;)

http://xdaforums.com/showthread.php?t=3219431
[Android General] MSF Jarvis:
Some more help

Another query [MENTION=5514152]Paget96[/MENTION], is there any way to set a time out on the logcat -f logcat.txt command. Because it keeps on pushing logs until I close the shell.
[Android General] Paget96:
Use this for time output :)

busybox echo "$( date +"%m-%d-%Y %H:%M:%S" ) YOU CAN TYPE TEXT HERE" | busybox tee -a /PATH/OF/OUTPUT/FILE
[Android General] Senthil360:
Oh, now i understand what this is , it was always in the end of most of the L-Speed scripts, lol
[Android General] mirsaeed.namdar:
I am very new in using scripts and linux terminal,almost I don't know anything but I am an engineer(not in IT fields) and I am very interested in learning linux terminal commands and using it.

I am studying myself, but would u please guide me to some learning references and the way I should begin? I mean I just want to focus on linux terminal.

Thanks in advance.
[Android General] Paget96:
Yes hahah :D

Now you know ^~^

Like on the thread, learn busybox commands then go trough the thread.

This will be enough for beginning :)
[Android General] MSF Jarvis:
Ummm, I need to set a timeout on logcat, not print the current time. What should happen is that logcat should keep outputting logs into the file for like 30 seconds and then move onto the next line in the script. Something to that effect would be helpful.

Sent from a Cool Phone stuck with crappy KingUser
[Android General] Paget96:
I don't understand clearly what are you trying to do :)

Maybe combining of this

(while [ 1 ]
do
.....what to do.....
done &)

And thing from previous post can help :)

Sorry if I didn't get a point this time.
[Android General] MSF Jarvis:
That's useful, but not in this case. I need some kind of parameter for [logcat], not a loop statement.

Sent from a Cool Phone stuck with crappy KingUser
[Android General] Paget96:
You can try with writing

sleep 2

Do something

echo "some comment useful for loging"

sleep 2

Do something

.

.

.

Maybe some script configuration like this. Just put an output file for a log. :)
[Android General] MSF Jarvis:
echo 'Beginning Logging'

mkdir /sdcard/loggs

echo 'Obtaining Logcats'

touch /sdcard/loggs/logcat

logcat -f /sdcard/loggs/logcat

sleep 3

echo 'Logcats done'

echo '----------------------'

echo 'Getting /proc messages'

echo 'and partition info'

touch /sdcard/loggs/last_kmsg

touch /sdcard/loggs/meminfo

touch /sdcard/loggs/part_info

cat /proc/last_kmsg >> /sdcard/loggs/
last_kmsg

sleep 3

cat /proc/meminfo >> /sdcard/loggs/
meminfo

sleep 3

df >> /sdcard/loggs/part_info

sleep 3

echo 'Done. Saved in /sdcard/loggs'

This is the script that's got me and you all worked up. What happens is that logcat(line 5) doesn't stop i.e. the next line doesn't execute.

Sent from a Cool Phone stuck with crappy KingUser
[Android General] Paget96:
Yes, if line doesn't stop next will not be executed, that is a fact :)

Try to use something instead of this :D
[Android General] MSF Jarvis:
What other options do I have for getting logcats???

Sent from a Cool Phone stuck with crappy KingUser
[Android General] Paget96:
Maybe yo remove that line??? With logcat -f

I don't see any function, because you have cat >> to move everytging from a current file to a log
[Android General] MSF Jarvis:
Fine I think I'll have to dump out logcat. Another thing, how to use tar compression for folder.

Sent from a Cool Phone stuck with crappy KingUser
[Android General] Paget96:
Here to create tar file. :D

tar -cvf /location1/filename.tar /location2/filename

Location 1 is where to make an output. You must to write .tar on the end, for example you want to create logcat.tar on sdcard from for example /data/log

tar -cvf /sdcard/logcat.tar /data/log

This is it :3
[Android General] MSF Jarvis:
https://github.com/TeamRedux/ApkTool-Wrapper-Scripts

This is the link to the script I was making earlier

Sent from a Cool Phone stuck with crappy KingUser
[Android General] Paget96:
It looks pretty well, did you try it??? :D

Edit:

Btw, you can put everything in one file instead of 5-6 :)

When I finish this version of L Speed, I will work a bit on helpful scripts like this, just to build a bit more projects ^`^
[Android General] MSF Jarvis:
I thought about that but I came to know that I can't link to parts of the code from inside the same file. Maybe you can branch it off and do those edits....

About the testing part, I'm currently stuck with an old version of Fedora that doesn't even have package installer. I'll try and install Ubuntu 14.04 and then maybe I'll be able to test it.

Sent from a Cool Phone stuck with crappy KingUser
[Android General] Paget96:
Check first if it work, if yes, then I will repack it to 1 file.

Problem here is that I don't own pc :) and I am too much limited now with this stuff :D

You already know that I built everything with android devices ^~^
[Android General] MSF Jarvis:
Yeah I know. I'll try and install Ubuntu today, coz my internet connection is back on after two days.

Sent from a Cool Phone stuck with crappy KingUser
[Android General] Paget96:
Nice dude ;)

I'm now going to sleep, 03:24AM is here ;)

Time for bed :D
[PDA2, XDA IIi, 2020i Software Upgrading] smokkky:
Hi,

Can anyone share the latest radio rom for my friend's i-Mate PDA2 Alpine. I am having 1.03.00 and I am looking for the latest version.

Thanks in advance!
[P3300, MDA Compact III ROM Development] hays:
Having overslept when my WM5 alarm failed to work, I'm keen to know if it's been sorted on WM6 ???

Don't want to have to install a 3rd party app unless I have to

Which 3rd party alarm app do you guys recommend ?
[P3300, MDA Compact III ROM Development] imstill@g:
I just put everything im my calender, and use the reminder function, all is well in 6 with that method
[8125, K-JAM, P4300, MDA Vario General] Myrddin Wyllt:
M'kay. I was looking at an assortment of "remaps your softkeys" programs, and I'm either too stupid to see it, or it doesn't happen. It's also possible I'm searching using the wrong terms. I am a little slow sometimes...

I want to press the center button on my dpad, and have it open the Start Menu. I'm using WA2 to gain cascading menus, and I'd love to be able to completely launch a program without using the touchscreen or pulling out a stylus.

If it's already been done, can someone please point me to it? If it hasn't been done, whose butt do I need to start kissin'?

Here's a shot of what I'm talking about, just in case my mis-speaking is confusing you. When I press that button, I want that menu to open!
[8125, K-JAM, P4300, MDA Vario General] charly_mx:
have you ever heard about smartskey???

Look out for it..

is the answer for your prayers... You will not remap your center button, however a long press on the left softpad key will open your program menu.

Good luck
[8125, K-JAM, P4300, MDA Vario General] Myrddin Wyllt:
Yes, I've heard of it. No it's really not the answer to my prayers.

I don't really care for the smartskey method (it would take too long to explain, but I don't like it, and that should suffice for explanation), and I don't get why you can't remap that center button...it doesn't do anything in the Today view (or much in anything else, other than "execute" whatever is focused).

Thanks anyways for the reminder. If all else fails, I can fall back on that as an unsatisfying workaround.

Got any other suggestions?
[8125, K-JAM, P4300, MDA Vario General] Myrddin Wyllt:
M'kay, it's not freeware, but it does have a free trial. AE Button Plus is capable of doing what I want, within reason.

I have to double click my center button (reserving single click for selecting highlighted items, etc.) to open the start menu. I'm actually okay with this as a solution.

Still, this program, as good as it is, is more bulky than I'd like (nearly 1/3 MB!) for such a seemingly simple action. I'd expected this to load pretty small, and was surprised by the relatively large package.

I know it's cheap of me, but I'd still welcome any (free/smaller footprint) alternatives to this...
[8125, K-JAM, P4300, MDA Vario General] ArrO:
Try HButton it does everything and more, i love this app.

you are able to map 6 apps on 1 button and you can even use your slider to scroll.

check this
[8125, K-JAM, P4300, MDA Vario General] Myrddin Wyllt:
At first blush, this appeared to be what I was looking for. However, I cannot figure out how (if it's even possible) to reassign one of the five HButtons to activate from the center button on the dpad, or how to distinguish that from, say, clicking the dpad once to OK a procedure or popup message.

Not really interested in clicking and holding (for example) my Messages button to open the start menu.

I feel rather silly for being so picky, but there you have it. I'm picky.
[8125, K-JAM, P4300, MDA Vario General] Myrddin Wyllt:
After wrestling with all of these, I'm slightly embarrassed to say that charly_mx had the best suggestion, right off the bat. It's not perfect, but launching Start from my left soft key isn't terrible, just not what I wanted.

Sometimes, you just don't get what you want, so you take what you can get, and so I have done that.

Apologies to anyone that I annoyed (esp. charly_mx).
[Palm Treo 750] ghettopops:
I am looking for a GBA Emulator for my Treo 750. I want to be able to play .GBA roms.

Thanks in advance.
[P3300, MDA Compact III General] dealsoutlook:
ok everyone my first post here and I am not very familiar with the technincal stuff so please explain the fix properly (if their is any)

I have the o2 xda orbit and I never tried to modify it (change firmware, rom etc) or upgrade to WM6. Everything is original the way that it came. I have been using the orbit for about 6 months now and I had bought it off ebay.

Just yesterday I was chargin the orbit through the usb cable and I removed it since i had to go out and i just put it in my jeans pocket and after 5 min when i took it out there was a blank white screen. I took the battery out overnight and turned it on in the morning but still the same thing happens. The images below show exactly what shows up on my screen

I dont know what to do :( The minute i turn it on that is the only screen i see. No windows logo nothing. I removed the sim card and memory card. But still no luck. Can i change it through warranty eventhough I live in Canada? ANy help is appreciated!! I would be glad to give more information to you if I can.

If you know of any other forums where i can get better help, please let me know.
[P3300, MDA Compact III General] MaskedMarauder:
Switch it on but hold in the voice record button when you do it, do you get a Red/Green/Blue screen?
[P3300, MDA Compact III General] TryOG:
Maybe, it saw a ghost? :)
[P3300, MDA Compact III General] dealsoutlook:
nope same blank white screen with a line in the middle.
[P3300, MDA Compact III General] Gajet:
Looks like a serious hardware death there. Did you buy it off an ebay shop or private? If from a shop you may be able to make a warranty claim, if not you'd have to post it to a repair centre and cross your fingers.

I am presuming here that you have tried a Hard Reset too, ie holding down both softkeys whilst resetting, then releasing the softkeys when you get a confirmation message.
[P3300, MDA Compact III General] dealsoutlook:
if i press the reset button nothing happens. Orbit only responds to the power button. I bought it off ebay and hence the problem. Do you think it is only a screen malfunction and if i buy a replacement screen I should be able to solve the problem? is it easy to replace the screen by myself?
[P3300, MDA Compact III General] derooseolivier:
I DONT KNOW IF IT'S WORK for you BUT... I work in a big shop where a lot of clients buy differents models from Htc and, 2 months ago, somebody have the same problem (with 2 lines) WITH a Tytn. We have flashing his tytn with the original rom and the problem has gone !

Have you try to make a connection with you pc ??? If activsync work...(maybe the bootloader work and ... of course, you can't see if the htc is running because you screen d'ont work for the moment)... you have nothing to loose if you try... If activsync dont work, try to put a original signed rom from htc to the root directory of your microsdcard and follow this tread from the xda-wiki section : http://wiki.xda-developers.com/index.php?pagename=Artemis_SD_Card_Flashing

REALLY, I'M NOT A PROFESSIONAL BUT I REALLY THINK THIS IS MADE BY SOMETHING WRONG (FOR ANY RAISON) IN YOUR ROOT DIRECTORY AND THE SCREEN CAN'T WORK NORMALLY... oF IT'S MEABY DUE TO A BAD CONTACT BEETWEEN YOU SCREEN AND THE "MOTHERBOARD" FROM THE PDA.

I HOPE THIS CAN HELP YOU.
[P3300, MDA Compact III General] dealsoutlook:
Could you give me step by step instructions on flashing the xda orbit rom. Out of frusturation i tried updating the orbit to WM6 and it successfuly updated according to message on my computer screen. So i have wm6 on my phone now but still the same problem.

I exctacted the file and put it in the root of my sd card and pressed the voice button and power button. Now how do i know that the ROM is being flashed? (since i just see the white screen). Even for the orbit should i just name the file on the microsd card as ARTEIMG.nbh ?

Thanks for all your help..but since i am new to this could you please explain teh process in more simpler terms?

Thanks again
[P3300, MDA Compact III General] neilhhardy:
Sorry to tell you dear friend but your LCD is cracked, you can see it very clearly on the first picture, bottom right hand corner.

simple way to test if true is to connect to the pc and see if its recognised.

sorry to give you some bad news.