yashsingh1/xdaforums huggingface dataset:
[Nexus 5 General] dgm_mixtoon:
how to mod for 60fps?

i have marsmallow
[Nexus 5 General] defcomg:
attach libmmcamera_imx179.so and liboemcamera.so i will try the method i used for 6p it may work
[Nexus 5 General] dgm_mixtoon:
Here

Here:

https://mega.nz/#!W8hxCBbb!_zZbXQ9YzXbNaT5mRQZXmeSXHwYg2Y165Hph8BWqMTs

If you need pass:

!_zZbXQ9YzXbNaT5mRQZXmeSXHwYg2Y165Hph8BWqMTs
[Nexus 5 General] defcomg:
Try this with freedcam / Lcamera or any other cam2 app set fps to 60 see if it works

copy back the libs set rw-r-r permissions
[Nexus 5 General] dgm_mixtoon:
Not work, 60fps selection apear un blank

[IMG="Lcamera"]http://oi64.tinypic.com/2qmnrit.jpg[/IMG]

No api camera2 present :(
[Nexus 5 General] defcomg:
scoll down to save camera parameters attach the text file from /dcim/freedcam
[Nexus 5 General] dgm_mixtoon:
Parameters; https://mega.nz/#!mkoxCJpB!VFGfwflt2gF-y7thsWOBQ85e7SkWYaMv8HJW3_h5SX8
[Nexus 5 General] defcomg:
you sure you replaced liboemcamera right ?

preview-fps-range-values=(15000,15000),(7000,24000),(7000,30000),(30000,30000)
preview-fps-range=7000,30000
preview-frame-rate-values=15,24,30
preview-frame-rate=30

this should have changed and 60 should be on the list that

should be

preview-fps-range-values=(15000,15000),(7000,24000),(3000,30000),(60000,60000)
preview-fps-range=7000,60000
preview-frame-rate-values=15,24,60
preview-frame-rate=30

if you did then it seems the second res config gets ignored in that case for 1080p 60 you would need to switch between libs one for taking pics the other for 1080p video

in the attached lib the main res is configured for 60fps

for reference when i mean res im talking about this

.y_output = 1224,
.line_length_pclk = 3440,
.frame_length_lines = 1713,
.vt_pixel_clk = 176800000,
.op_pixel_clk = 178000000,
.binning_factor = 1,
.max_fps = 30.0,
.min_fps = 15.0,
.mode = SENSOR_DEFAULT_MODE,

retry L Camera and dump paarameters again in freedcam

edit

if working and alignment is off thats fine can fix that later

Supported IMX179 Modes
[Nexus 5 General] dgm_mixtoon:
I have replaced the files with es file explorer normally.

i replace with the main file and now the image is in black .-. , Lcamera shows lines

parameters: https://mega.nz/#!WoQBjRiZ!kxP-DjVQvmFub2puzyyuuUXt8YiRWe2MEylBXhcXxT8

capture: https://mega.nz/#!H8xWlQ5b!oGIENJesqz91bkAELUZjORUDwYIkZOb-3xmVXkfJjhU
[Nexus 5 General] defcomg:
try this if working record normal 1080p @ 30fps should be at 60fps
[Nexus 5 General] dgm_mixtoon:
Work :D

With some image flickering!, after recording vídeo the flickering is not present :good:
[Nexus 5 General] defcomg:
lol awesome you just gotta switch libs around i would look at using magisk to automate it so you can turn off 60fps when you do not need and maybe even enable 120fps :good:
[Nexus 5 General] dgm_mixtoon:
:)

https://mega.nz/#!25xCUCYC!bvbadkEZccAuaSX2xFItWshNAW_sgmV3OcP1X6E07WA
[Nexus 5 General] AutinDroid:
Does this work with Nougat?
[Nexus 5 General] defcomg:
It should
[Nexus 5 General] prog19:
Can confirm its working on nougat. But video camera seems to be misaligned. It was expected ?

It seems a littke cropped, also, but maybe its just impression
[Nexus 5 General] defcomg:
yes 60fps is cropped because 8mp cannot bin to 1080p res

for full fov @ 60fps video size would have to be 1640x1224 screenshot of misalignment ?
[Nexus 5 General] AutinDroid:
Not working for me :(

I'm using main60.zip and 2112 X 1180 _60 FULL REGS.zip but im getting a glitchy screen
[Nexus 5 General] DarkMaxOff:
Hi, is it possible to come up with something, I have Aex firmware (android 8.1), I need the phone to be able to shoot at least a minute?
[Nexus 5 General] mandayugana:
In LOS 15.1, the BFG library made Open Camera showing up to 64s shutter speed, but in reality it wasn't real 64s. Have anyone made it in another ROM? Or, is this hardware limitation?
[Windows 10 Mobile] jggbgm:
I Have a Lumia 630, I Use The RM Of Lumia 1520 (RM-937_1000) To Have More Live Titles/Quick Action Buttons , But I Want To Use The RM Of Lumia 1620, 1820 Or 2520!.

Anyone know which is The RM?
[Windows 10 Mobile] djtonka:
Lumia 1620 RM-666

Lumia 1820 RM-999
[Tasker Tips & Tricks] quintaar:
Hello guys.

I stumbled across a reddit thread providing some run shell commands to replace secure settings. The fixes on Android 6.0 allowed me to install and grand the root permissions but never actually worked as intended. Secure settings still returns errors when used.

Long story short I built on the list adding ones I used before from my list.

Here is about 30 most common run shell commands. I will update list if i come across some new ones. Also appreciate your input if you happen to use some good ones.

You can access it all here:

http://www.notenoughtech.com/tasker/tasker-run-shell-commands/

Happy tasking. :good:
[Tasker Tips & Tricks] Sukarn:
Boy, where do I start? The list would be endless. Anyway, here are some, not all, that I use.

Root commands

Open power menu: sendevent /dev/input/event0 1 116 108 && sendevent /dev/input/event0 0 0 0

Restart SystemUI: pkill -l TERM -f com.android.systemui

Safe reboot: svc power reboot

Safe reboot to recovery: svc power reboot recovery

Get list of all system/global/secure settings along with their values; using system settings as example: settings list system

Read system/global/secure setting to a variable; using secure setting accessibility_enabled as example: settings get secure accessibility_enabled

Change system/global/secure setting; using secure setting accessibility_enabled as example: settings put secure accessibility_enabled 0

Make /system rewritable: mount -o remount,rw /system

Make /system read-only: mount -o remount,ro /system

Change file permissions, using /system/etc/hosts as example; numbers are 7 for rwx, 6 for rw, 4 for r; first number is for root (system user), second is for group, third is for all users: chmod 644 /system/etc/hosts

Tap at x,y pixels on screen, using 540,1500 as example: input tap 540 1500

Swipe from x1,y1 to x2,y2, using 540,1500 to 540,300 (swipe up) as example: input swipe 540 1500 540 300

Read/change another app's database; can't give examples as this would need a full tutorial: sqlite3 /path/to/.db_file "sqlite3 commands";

non-root command

Open any app from a variable %package_name containing com.paclage.name; this one is javascript, not shell script [note that you don't want to put % before variable in javascript]: loadApp(package_name, '', false);

Extract %file zip file to /sdcard: unzip %file /sdcard/

Move a file: mv /original/path /new/path

Copy a file: cp /original/path /new/path

Read a file to a variable: cat /path/to/file

Write %var to a file: echo %var > /path/to/file

Delete a file: rm /path/to/file

Delete a folder and all its contents: rm -r /path/to/folder

Check whether a process is doing something or not; set the output to a variable, set a wait for some time, and then get the output again, if output has changed then the process is doing something: ps | grep com.package.name
[Tasker Tips & Tricks] quintaar:
Thanks I'm updating the page as I type this! - I completely forgot about file operations if I'm honest. Good to have others to contribute!
[Tasker Tips & Tricks] Sukarn:
You need to proofread that page. There are lots of errors in there that will stump newbs
[Tasker Tips & Tricks] quintaar:
That's what I'm doing now :), trying to put them, in some logical order as well, to make it easy to find, and use. I do appreciate the time taken to type this.
[Tasker Tips & Tricks] LeftyGR:
Is input keyevent correct for emulating the power button in a shell command? The # on the website didn't work. I found the generic.kl file in my /system/usr folders and the key # for power listed there did now work with that shell command, either. Even with run as root checked.
[Tasker Tips & Tricks] quintaar:
I believe hardware keys would be device specific, ego could have different codes.
[Tasker Tips & Tricks] LeftyGR:
I guess my real question is that the correct shell command as it is written? Because with my specific device key code did not do anything.
[Tasker Tips & Tricks] quintaar:
Are you trying to do this when the phone display is on or off? this only works when screen is on. input keyevent 26 works fine on my device
[Tasker Tips & Tricks] LeftyGR:
On... Guess it does not like me.
[Tasker Tips & Tricks] quintaar:
Do you get any error? My most common mistake is spelling the run shell with upper case, as my keyboard automatically corrects it. And if I forget to change it, it returns an error
[Tasker Tips & Tricks] LeftyGR:
Yes. Appears to be a timeout error.
[Tasker Tips & Tricks] shaharofir:
Background Data On/Off? Thanks in advance
[Tasker Tips & Tricks] quintaar:
I stumbled on this:

http://xdaforums.com/showthread.php?t=2063741

Perhaps will help you more as well
[Tasker Tips & Tricks] quintaar:
I've not come across the setting, but try to use:

settings list system

settings list global

settings list secure​

and see what your device will give you in options lists.
[Tasker Tips & Tricks] Sukarn:
I totally forgot about another shell command that I have set up in Tasker: md5sum /path/to/file

I use it to verify the integrity of downloads in an OTA app I made for a custom ROM using only Tasker.

---------- Post added at 10:52 AM ---------- Previous post was at 10:43 AM ----------

On my phone (OnePlus One), "input keyevent 26" just turns the screen off, while 116 does nothing.

Did you try the command I posted at the top of my post here? It's the second post in this thread.
[Tasker Tips & Tricks] shaharofir:
Thanks. Will give it a try.
[Tasker Tips & Tricks] quintaar:
I have added this one as well :) Thanks
[Tasker Tips & Tricks] shaharofir:
Looked, nothing there. Any suggestions?
[Tasker Tips & Tricks] quintaar:
Perhaps maybe more luck with intents? I'm working on the similar list for it
[Tasker Tips & Tricks] #Henkate:
This is awesome. Do you mind sharing a screenshot of it and also tell me how you've done the OTA app?
[Tasker Tips & Tricks] shaharofir:
Will check it out
[Tasker Tips & Tricks] Sukarn:
Screenshots (somewhat outdated and don't contain all current features): https://goo.gl/photos/1LwRquHioBVveS1h8

App and tasker project, i.e. source code (needs both apk files to be installed): https://drive.google.com/folderview?id=0B4q2Ez1yS1rKNVBIQU9KQmQtWEU

Feature list: http://xdaforums.com/showthread.php?p=67829941
[Tasker Tips & Tricks] Javi22:
Useful post... :)

Is there any way to get airplane mode on but keep wifi on?
[Tasker Tips & Tricks] quintaar:
I'd imagine you can run the airplane mode, then wifi on. It keeps other radios off when you do this with toggles, so I think it would be possible. You can add the wait option between run shell actions or within run shell itself.
[Tasker Tips & Tricks] Javi22:
Thanks for the answer. However... I can't do that, once airplane mode is on, if I turn wifi on, it won't find my home network, because my WiFi network only appears if airplane mode is off

That's because (I think) my wifi channel is not allowed in all the countries and it needs to check the sim...
[Tasker Tips & Tricks] quintaar:
Are you sure? Works like a charm. Remember to turn on the wifi after the airplane mode is done.
[Tasker Tips & Tricks] Javi22:
Yeah mate. My network wifi is 'special' and only appears if sim can be detected (so airplane mode needs to be off)

Buuut, I managed to get it. Using secure settings plugin I can select what to turn off with airplane mode :)
[Tasker Tips & Tricks] JasMan78:
Since I use the shell to modify some settings (e.g. mobile data and the location settings), I have the feeling that my phone gets a little bit slow after some days.

Therefore I have taken a look into the process list and I saw, that a lot of "/system/xbin/su--daemon" processes were running (about 200). After a restart of the phone they were gone.

Could it be that the "Run Shell" task needs a logout after each command to exit the shell process?
[Tasker Tips & Tricks] microtext:
I want to move all files in Internal Download folder to External Download folder.

This is my command shell:

***

su -c "mount -o remount,rw /storage/emulated/0 && su -c mount -o remount,rw /storage/sdcard1 && mv /storage/emulated/0/Download /storage/sdcard1/Download"

***

But, failed. Any suggestions?

I am using Llama, a free Tasker alternative with Locale plugin to run shell commands.

OS: Android KitKat

Thanks in advanced.
[Tasker Tips & Tricks] w. junior:
I use this way to move system folders:

su
mount -o remount,rw /system /system
mv "/system/app/Exchange2" "/system/app/___Backup"

Try

su
mv "/storage/emulated/0/Download" "/storage/sdcard1/Download"
[Tasker Tips & Tricks] microtext:
Not working, Brother.
[Tasker Tips & Tricks] w. junior:
Try to run the command in a terminal emulator, first, to see if any error occurs

if you don't have the folder download on the card sd try this

su
mv "/storage/emulated/0/Download" "/storage/sdcard1"
[Tasker Tips & Tricks] nellyb4:
I found these for toggling GPS on marshmallow, works a treat with tasker.

Turn on GPS

settings put secure location_providers_allowed +gps

Turn off GPS

settings put secure location_providers_allowed -gps
[Tasker Tips & Tricks] efraim14:
Hello,

i read all the stuffs of the OP said, i wonder if there is any chance we can do this to things in Developer Options settings?

My phone is Oneplus 2 and i want Tasker to automatically turn on 'Game Mode' when my game running. Is there any shell commands that i can use to change settings in developer options?

Thanks
[Tasker Tips & Tricks] donny02:
Hi,

is it possible to connect to known bluetooth device via shell command?

My car handsfree sometimes does not auto connect to my cm13 phone, although it is still in the list of known devices. I then have to open bluetooth menu on phone and click on car handsfree to get it connected again.

In tasker I found Network BT_Near which I could use to trigger action, but I have no connect-to-device-option there. If I had a shell command I could use it there.
[Tasker Tips & Tricks] an0n981:
I had the same issue with the headset in my office, Secure Settings app has an option to connect to a bluetooth device, that as a Task with a Profile that scans for 'Bluetooth Near' solved it for me.

With these terminal commands you can fix Secure Settings SU issues on Marshmallow/Nougat

su

mount -o remount,rw /system

mount -o remount,rw /

touch /sbin/su /system/bin/su /system/xbin/su

mount -o remount,ro /system

mount -o remount,ro /

exit

reboot
[Tasker Tips & Tricks] zalood:
What is the command for creating a file or directory?

I would like to automate the /system/bin/su folder

- delete when I need to run Titanium Backup

- create to keep SecureSettings works once TB exit

thanks ...
[Tasker Tips & Tricks] axxbat:
touch

is to create an empty file

mkdir

to create a directory
[Tasker Tips & Tricks] zalood:
Thanks mate ...
[Tasker Tips & Tricks] lyzakiel:
Setting time

Bit of a random related question, but does anyone know a way to set the date and time of the device with a shell command?
[Tasker Tips & Tricks] ktmom:
You should be able to use the "date" command.

usage: date [-u] [-r FILE] [-d DATE] [+DISPLAY_FORMAT] [-D SET_FORMAT] [SET]

Set/get the current date/time. With no SET shows the current date.

Default SET format is "MMDDhhmm[[CC]YY][.ss]", that's (2 digits each)
month, day, hour (0-23), and minute. Optionally century, year, and second.
Also accepts "@UNIXTIME[.FRACTION]" as seconds since midnight Jan 1 1970.

-d Show DATE instead of current time (convert date format)

-D +FORMAT for SET or -d (instead of MMDDhhmm[[CC]YY][.ss])

-r Use modification time of FILE instead of current date
-uUse UTC instead of current timezone

+FORMAT specifies display format string using these escapes:

%% literal %
%n newline
%t tab
%S seconds (00-60)
%M minute (00-59)
%m month (01-12)
%H hour (0-23)
%I hour (01-12)
%p AM/PM
%y short year (00-99)
%Y year
%C century
%a short weekday name
%A weekday name
%u day of week (1-7, 1=mon)
%b short month name
%B month name
%Z timezone name
%j day of year (001-366)
%d day of month (01-31)
%e day of month ( 1-31)
%s seconds past the Epoch

%U Week of year (0-53 start sunday)

%W Week of year (0-53 start monday)

%V Week of year (1-53 start monday, week < 4 days not part of this year)

%D = "%m/%d/%y"
%r = "%I : %M : %S %p"
%T = "%H:%M:%S"
%h = "%b"
%x locale date
%X locale time
%c locale date/time

"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
[Tasker Tips & Tricks] kurokirasama:
Hello,

is there a shell command to enable/disable pattern lock like the way Secure Settings used to do it?
[Tasker Tips & Tricks] DTTR:
https://xdaforums.com/showthread.php?t=3663485
[Tasker Tips & Tricks] ktmom:
My approach is different, and does not require a reboot each time.

Setting pin when away from home? Not quite working. by starbuckk, see post 2.
[Tasker Tips & Tricks] alienyd:
your method has side effect on moto display function, since the screen is essentially not locked/device is still awake, thus Moto display won't activate.

Instead I use system profiles to bypass lock. This is (CM) system native solution, so imo it works better. There is a system profile plugin for Tasker in store, check it out.
[Tasker Tips & Tricks] ktmom:
Bummer, works great on my N6 [emoji6]

"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
[Tasker Tips & Tricks] TT_Vert:
Guys I stumbled upon this. Any idea why I'd be able to run certain shell commands via adb but NOT via tasker? This is a non rooted S8+ . I've attached the error i'm getting. I can't even run basic commands (reboot) via tasker shell for some reason. This should not require root so I'm unsure wtf is going on here. Any ideas/input? This actual command is am start -a android.intent.action.VOICE_ASSIST

Thanks much,

Dave
[Tasker Tips & Tricks] ktmom:
When I try to run that intent in a terminal (effectively the same as tasker run shell) without root this is what I get:

In the terminal or tasker, if I use root it works properly.

It might be possible to give Tasker the "android.permission.INTERACT_ACROSS_USERS_FULL" permission through ADB. I think the command would be;

adb shell pm grant net.dinglisch.android.tasker android.permission.INTERACT_ACROSS_USERS_FULL

I would test this for you, but no PC access right now.

"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
[Tasker Tips & Tricks] ontwykende:
Need help with sh command. If I miss the subforum, please take me to the right place.

Since I upgrade to Android 9 (Pie) sh command doesn't change network type any more.

I use change network mode to 2g:

su

settings put global

settings put global preferred_network_mode1 1

And (back to Auto 2g/3g/4g):

su

settings put global

settings put global preferred_network_mode1 9

But it doesn't do the trick any more. Commands are executing as root from Tasker.

OP5t OOS

Please help.
[Tasker Tips & Tricks] ktmom:
Have you tried to run the script from a terminal so you can see the errors?

Please also post the description of the task so it's clear what is being done. Select the task, go to 3-dot menu, express description to clipboard.

"find somebody that you think is undeserving of your compassion and give it to them" - Christian Picciolini
[Tasker Tips & Tricks] ontwykende:
In Android Oreo it change preferd network type to 2G (when I don't use mobile data and I'm connected to WiFi) and back to Auto 3G/4G (when I use mobile data instead WiFi)... Now, on Pie, there is no error but command simple do not do anything (when I execute script in terminal or run tasker task, no change in Setting-Preferred Network Type).

Data Off (12)

A1: Wait [ MS:0 Seconds:0 Minutes:1 Hours:0 Days:0 ]

A2: Mobile Data [ Set:eek:ff ] If [ %WIFIC ~ 1 ]

A3: Run Shell [ Command:su

settings put global

settings put global preferred_network_mode1 1 Timeout (Seconds):0 Use Root:eek:n Store Output In: Store Errors In: Store Result In: ] If [ %WIFIC ~ 1 ]

AND

Data ON (11)

A1: Mobile Data [ Set:eek:n ]

A2: Run Shell [ Command:su

settings put global

settings put global preferred_network_mode1 9 Timeout (Seconds):0 Use Root:eek:n Store Output In: Store Errors In: Store Result In: ]

OnePlus 5t, OOS, Android 9
[Tasker Tips & Tricks] ktmom:
Edit: I'll bet if you toggle airplane mode on, wait a couple of seconds then toggle airplane mode off again, the radio switch will occur without having to go into settings.

Original post:

I think that change is no longer monitored until the advanced section of the mobile data settings is opened. There's probably a intent for that, but off the top of my head, I don't know what it is.

You could test this theory by opening mobile data settings and tapping the advanced section and the mode should change.

You could also make use of the built in Tasker custom settings action to simplify the task. Below, A1 does the same as your Data On - A2.

Below A2 will quickly open the mobile data settings menu, but to test my theory, you will still have to tap on advanced.

A1: Custom Setting [

Type:Global

Name:preferred_network_mode1

Value: 1

Use Root: On

Read Setting To:

]

A2: Mobile Data Settings

It's either what I described above, or since you are calling SU twice, that might cause a problem. A shell action should be as simple as;

A2: Run Shell [

Command: settings put global preferred_network_mode1 1

Timeout (Seconds): 0

Use Root: On

Store Output In:

Store Errors In:

Store Result In:

]

"find somebody that you think is undeserving of your compassion and give it to them" - Christian Picciolini
[Tasker Tips & Tricks] ontwykende:
Unfortunately, none of the suggestions results (I try toggle airplane mode on/off abefore and after the command is applied, but no change in setting) ... just a manual change from settigs toggle work, which does not mean much to me because I can not automate that with the help of the tasker.

So no more automatic change of network type mode form 4g to 2g and vice versa.

If somebody has another suggestion, I'm willing to try. This is obviously a change in the Andrpid itself ... on version 8 (oreo) everything worked without problems.
[Tasker Tips & Tricks] ktmom:
Could you post the description of the task you modified with the airplane mode? Toggling airplane mode should occur after the setting is changed with a few seconds wait between.

"find somebody that you think is undeserving of your compassion and give it to them" - Christian Picciolini
[Tasker Tips & Tricks] ontwykende:
Data Off (12)

A1: Wait [ MS:0 Seconds:0 Minutes:1 Hours:0 Days:0 ]

A2: Custom Setting [ Type:Global Name:preferred_network_mode1 Value:1 Use Root:eek:n Read Setting To: ]

A3: Mobile Data [ Set:eek:ff ] If [ %WIFIC ~ 1 ]

A4: Airplane Mode [ Set:eek:n ]

A5: Wait [ MS:0 Seconds:15 Minutes:0 Hours:0 Days:0 ]

A6: Airplane Mode [ Set:eek:ff ]

Or

Data Off (12)

A1: Wait [ MS:0 Seconds:0 Minutes:1 Hours:0 Days:0 ]

A2: Run Shell [ Command:settings put global

settings put global preferred_network_mode1 1

settings put global preferred_network_mode 1 Timeout (Seconds):0 Use Root:eek:n Store Output In: Store Errors In: Store Result In: ] If [ %WIFIC ~ 1 ]

A3: Mobile Data [ Set:eek:ff ] If [ %WIFIC ~ 1 ]

A4: Airplane Mode [ Set:eek:n ]

A5: Wait [ MS:0 Seconds:15 Minutes:0 Hours:0 Days:0 ]

A6: Airplane Mode [ Set:eek:ff ]