Startup shell script - OnePlus 3T Questions & Answers

What the best and safest way to start a shell script on reboot/restart? I'm running old OOS 3.5.3 and have root.

fleece said:
What the best and safest way to start a shell script on reboot/restart? I'm running old OOS 3.5.3 and have root.
Click to expand...
Click to collapse
If you're using Magisk, then add it to
/sbin/core/img/.core/service.d
And grant it execute permission
Sent from my OnePlus3T using XDA Labs

Related

[Q] How do I update the su binary in cm 5.0.8?

After updating my dream to cyanogenmod 5.0.8 ds, I realized a few problems. I have reflashed a few times, and a major gripe I have is that I can't seem to update the su binary to the latest version, it keeps failing at "gaining root access". I have also had to use the superuser update fixer to install the latest superuser version. The reason I want to install it is so that the stericson busybox installer will work, and thus metamorph will work, as it relies on the user having a semi-recent version of busybox.
P.S. I currently want to stick to cm5, as it is otherwise stable and full features. Any suggestions for another rom had better be convincing and involve a minimum of flashing.
I have the danger spl and cyanogen+jf recovery
Not sure if it's exactly what you need, but have a look here: http://forum.xda-developers.com/showthread.php?t=682828 I've noticed someone was talking about the Dream as well...
just try and uninstall super user all together and download superuser or super su from market, then try to update busbox through market app
I was able to get the su binary to update, but I'm not sure how. However, superuser is now denying everything, even freshly installed apps. What is going on?
Magicnet2 said:
Not sure if it's exactly what you need, but have a look here: http://forum.xda-developers.com/showthread.php?t=682828 I've noticed someone was talking about the Dream as well...
Click to expand...
Click to collapse
That is from a really early version of superuser, and it doesn't seem to fully answer my question, sorry.
can you uninstall current superuser and reinstall latest from market?
That is what I've already done. I couldn't update the su binary without doing so. All that cm5 seemed to have was the "superuser permissions" app.
When you go into the app do you have permissions denied? If your in an adb shell does it allow you su?
Sent from my Nexus 4 using XDA Premium 4 mobile app
When I go into any root app, superuser gives me a toast that says { } has been denied superuser permissions. The superuser app itself seems to have root access, though.
Try to just do it again, there's no reason I can think of this will happen
Just uninstall and reinstall su app, maybe try supersu, then use a busybox app to update. If this doesn't work again than try to manually do it
Sent from my Nexus 4 using XDA Premium 4 mobile app
Now, every time I try to do it, even after freshly flashing cm5, my phone does a boot loop.
Maybe try to extract contents of ROM and swap with new superuser
Sent from my Nexus 4 using XDA Premium 4 mobile app
At this point, I'm probably just going to try to get cm6 going on this thing.
Sure, check your other thread, I'll upload tonight
Sent from my Nexus 4 using XDA Premium 4 mobile app
Thanks!

[Q] Does the S6 root work for Edge?

I was checking out the Root Thread for S6 and realized that my Edge's ROM version matched one on there except for the G925 vs G920. Would that root work on my Edge's similar ROM?
Never EVER try to root your phone unless it meets ALL the requirements! Mine is a SAMSUNG-SM-G925V. Unless that root is developed for a SAMSUNG-SM-G925V, you're taking a chance on bricking your phone. There are things you can do to remove bloatware and improve battery performance, which are a couple of the main reasons for installing a different ROM. I've done it myself and find battery performance has drastically improved. Do some research and you'll find what settings you can change and which apps you can either uninstall or disable. I'm happy with the snappiness and performance of this phone and find with some simple adjustments, it makes this phone even better. We will just have to be patient to see if the bootloader can be unlocked. Who knows when or if that will happen any time soon! Hope that addresses your question.
Sent from my SM-G925V using XDA Free mobile app
MaverickCoast said:
Never EVER try to root your phone unless it meets ALL the requirements! Mine is a SAMSUNG-SM-G925V. Unless that root is developed for a SAMSUNG-SM-G925V, you're taking a chance on bricking your phone. There are things you can do to remove bloatware and improve battery performance, which are a couple of the main reasons for installing a different ROM. I've done it myself and find battery performance has drastically improved. Do some research and you'll find what settings you can change and which apps you can either uninstall or disable. I'm happy with the snappiness and performance of this phone and find with some simple adjustments, it makes this phone even better. We will just have to be patient to see if the bootloader can be unlocked. Who knows when or if that will happen any time soon! Hope that addresses your question.
Sent from my SM-G925V using XDA Free mobile app
Click to expand...
Click to collapse
I didn't realize that was the case and went ahead installing the apk. Bad news, it didn't work. Good news, the app tells you it doesn't work for G925V yet.
mngdew said:
I didn't realize that was the case and went ahead installing the apk. Bad news, it didn't work. Good news, the app tells you it doesn't work for G925V yet.
Click to expand...
Click to collapse
iambugsy said:
I was checking out the Root Thread for S6 and realized that my Edge's ROM version matched one on there except for the G925 vs G920. Would that root work on my Edge's similar ROM?
Click to expand...
Click to collapse
There's been an update. Version 3.2 of the app works fine on current Verizon S6 Edge software. I currently am sitting on one with root.
Berzerker7 said:
There's been an update. Version 3.2 of the app works fine on current Verizon S6 Edge software. I currently am sitting on one with root.
Click to expand...
Click to collapse
That's awesome news, thanks! I'll try it out when I get home today.
Yup - just used the updated APK and it worked like a charm. Went ahead and swapped out King for SuperSU.. that too works great.
How did you swapped king for super su?
furialfil said:
How did you swapped king for super su?
Click to expand...
Click to collapse
Check out the Q&A area of the PINGPONGROOT thread.. its all listed in there. I copied/pasted from it, but it might not transfer the code exactly correct..
http://forum.xda-developers.com/galaxy-s6/general/root-pingpongroot-s6-root-tool-t3103016
Q: I'd like switching to SuperSU, what shall I do?
A: Kinguser does not have a "swtich" function. Follow these steps to do so manually: (if you are not familiar with adb, see this version: http://forum.xda-developers.com/show...&postcount=269)
1. Download supersu.7z and extract it. You will get the files needed to install Supersu.
2. Using adb to push su and busybox (if not installed) to /data/local/tmp.
Code:
adb push su /data/local/tmp
adb push busybox /data/local/tmp
3. Start a su session and run the following commands:
Code:
mount -o remount,rw /system
cat /data/local/tmp/su >/system/xbin/daemonsu && chmod 0755 /system/xbin/daemonsu
cat /data/local/tmp/busybox >/system/bin/busybox && chmod 0755 /system/bin/busybox
daemonsu -d &
Then keep the session running.
4. Open Kinguser, go to Settings -> Root authorization setting -> Remove Root permission. Click to remove root permission. Your su session should be still running.
5. Uninstall Kinguser app.
6. Go back to the su session and run following commands to replace su and cleanup:
Code:
cat /data/local/tmp/su >/system/xbin/su && chmod 0755 /system/xbin/su
busybox chattr -ia /system/bin/ddexe
busybox chattr -ia /system/bin/ddexe_real
cat /system/bin/ddexe_real >/system/bin/ddexe
busybox chattr -ia /system/xbin/ku.sud
rm /system/xbin/ku.sud
rm /system/xbin/pidof
rm /system/xbin/supolicy
7. Install Supersu apk
8. Open Supersu apk to update files.
9. Reboot.
wait a minute so we now have root ?
XTRoRDiNAiRE said:
wait a minute so we now have root ?
Click to expand...
Click to collapse
yes
If your version matches what's in the pingpong root thread then yes. I rooted my S6E a few min ago.
Zmnypit said:
If your version matches what's in the pingpong root thread then yes. I rooted my S6E a few min ago.
Click to expand...
Click to collapse
rooted. has anyone installed TWRP? what's the best way to go about doing that? TWRP manager doesn't list verizon specific s6.
I want to flash the no-deep-sleep fix
I believe you can't install a custom recovery yet as it will trip knox. Might want to go through the posts on the root thread.
Thanks. Yeah sorry it's a bit hard to follow the latest news since there are a thousand threads on all the s6/edge forums talking about the same issue. If the recovery is untouched, do we need to worry about the deep sleep problem? I've read it was caused by recovery.

[MODULE][Terminal] App Systemizer v17.3.1

[Terminal] App Systemizer
Terminal App Systemizer systemizes Apps systemlessly! This is inspired by App Systemizer​ by stangri. I then decided to make a script/UI in Terminal emulator for it to make 'app systemizing' easier.
How to use:
Install from recovery
Type su and
Code:
systemize
in Terminal emulator or adb shell (use -nc, -a, -d, refer below)
Systemize Chosen App/APK!
And reboot to apply changes
OPTIONS:
** If you don't want those colors, use -nc.
Code:
systemize -nc
** To directly systemize (without ui) a given package name/s, use -a
Code:
systemize -a com.oasisfeng.greenify org.adaway
** To directly systemize (without ui) a given apk/s, use -d
Code:
systemize -d /sdcard/example.apk /sdcard/example2.apk
** Uploading logs
Go to the menu and type `logs`, this will upload the log files of this module and will generate a link. Send that
Alternatively, Send `/cache/terminal_debloater-verbose.log` here. I'll examine it for problems and will try to fix it.
Dowloads are here!
Github
Telegram Channel
Notification Channel
DONATE? If you want to (ノ・ω・)ノ゙
HERE'S A LITTLE VIDEO ON HOW TO USE IT:
F.A.Q
Q. Why do I need to systemize apps?
A. Some apps provide extra functionality as a system app (like Greenify, Launchers, etc). And if you just want an app to be a system app for no reason .
Q. Is A/B Devices (Pixel, Essential, MI A1 etc.) supported?
A. YES
Q. What's the advantage of using this over the other systemizers?
A. This one is very light weight (since it's just a script). And it's also very versatile and supports almost all devices.
Q. Something's not right??
A. Report in this thread...
When a systemizied app is updated, how do you re-systemize it? Do you just rerun the terminal UI and choose the updated app and reboot? After reboot, does the updated app replace the old one?
JERW28 said:
When a systemizied app is updated, how do you re-systemize it? Do you just rerun the terminal UI and choose the updated app and reboot? After reboot, does the updated app replace the old one?
Click to expand...
Click to collapse
No, it's like when you update a system app from play store, it stays as a system app.
No need to do anything if it's updated :good:
veez21 said:
No, it's like when you update a system app from play store, it stays as a system app.
No need to do anything if it's updated :good:
Click to expand...
Click to collapse
What if we wanted to use this as a tool to save space on internal memory? Once the systemized app is updated, it would take space on internal storage right? Anyway to put it back into system?
iG0tB0lts said:
What if we wanted to use this as a tool to save space on internal memory? Once the systemized app is updated, it would take space on internal storage right? Anyway to put it back into system?
Click to expand...
Click to collapse
Apks are not stored in internal mem. It's stored in /data. This only affects apks so i think saving space is out of this module's fuctionality.
After choosing option 1 for installed apps, this is all I get:
Code:
Search packages: packages search <query>
===========================
Installed Apps
===========================
Loading Apps...
0 - Exit
[CHOICE]:
yochananmarqos said:
After choosing option 1 for installed apps, this is all I get:
Click to expand...
Click to collapse
Could you do this command in terminal emulator:
Code:
pm list packages -3
veez21 said:
Could you do this command in terminal emulator:
Click to expand...
Click to collapse
Code:
$ pm list packages -3
android.os.DeadObjectException: Transaction failed on small parcel; remote process probably died
at android.os.BinderProxy.transactNative(Native Method)
at android.os.BinderProxy.transact(Binder.java:615)
at android.os.BinderProxy.shellCommand(Binder.java:662)
at com.android.commands.pm.Pm.runShellCommand(Pm.java:295)
at com.android.commands.pm.Pm.runList(Pm.java:666)
at com.android.commands.pm.Pm.run(Pm.java:130)
at com.android.commands.pm.Pm.main(Pm.java:99)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:262)
Sent from my Nexus 5X using XDA Labs
Damn, what happened? What rom?
Anyways, I'll try to find a workaround for this without using pm
veez21 said:
Damn, what happened? What rom?
Anyways, I'll try to find a workaround for this without using pm
Click to expand...
Click to collapse
No idea why that's happening. Stock 7.1.2, just did a factory reset a few days ago.
Sent from my Nexus 5X using XDA Labs
yochananmarqos said:
No idea why that's happening. Stock 7.1.2, just did a factory reset a few days ago.
Click to expand...
Click to collapse
I couldn't find a workaround for this, sadly. You have installed 3rd apps after factory reset?
veez21 said:
I couldn't find a workaround for this, sadly. You have installed 3rd apps after factory reset?
Click to expand...
Click to collapse
Yes, I have quite a few apps installed. It does the same thing without the -3 option, too.I wonder what could be causing it?
Sent from my Nexus 5X using XDA Labs
yochananmarqos said:
Yes, I have quite a few apps installed. It does the same thing without the -3 option, too.I wonder what could be causing it?
Click to expand...
Click to collapse
Okay, could you send me the output on 'pm' command only? I want to look on what's with it.
veez21 said:
Okay, could you send me the output on 'pm' command only? I want to look on what's with it.
Click to expand...
Click to collapse
Just pm by itself just gives the --help output.
Sent from my Nexus 5X using XDA Labs
yochananmarqos said:
Just pm by itself just gives the --help output.
Sent from my Nexus 5X using XDA Labs
Click to expand...
Click to collapse
Some users got this problem with my snapshot updater module & I had to remove "pm" from it... I think is a common problem with Nougat, because in Lollipop & Marshmallow all is fine... Do you may enable all usb debug options under developer settings in Android?
Deic said:
Some users got this problem with my snapshot updater module & I had to remove "pm" from it... I think is a common problem with Nougat, because in Lollipop & Marshmallow all is fine... Do you may enable all usb debug options under developer settings in Android?
Click to expand...
Click to collapse
I have USB Debugging enabled, yes. I'm not sure what you mean by "all usb debug options".
Sent from my Nexus 5X using XDA Labs
yochananmarqos said:
I have USB Debugging enabled, yes. I'm not sure what you mean by "all usb debug options".
Sent from my Nexus 5X using XDA Labs
Click to expand...
Click to collapse
All options related to install/verify from Debugging section (maybe different in your ROM).
I'm not trying to get on you, or burst your bubble, so please don't get mad. I want to know what the difference between this, and titaniumbackup pro? It has a function to turn user apps into system apps. I'd rather use this, cause titanium can get wonky sometimes.

MagiskSu Magisk v14, shell command via java Runtime.getRuntime().exec dont work.

I don't know if this is right place to post about however, my working project with SuperSu is no more working with MagiskV14.
Issue:1
In my java code I call few shell scripts and binaries from system(e.g; system/bin/input) using java runtime Api however, they are wont execute even with "su" command. the Scripts are working fine via adb shell but not via java code.
looking for some help here.
kozmike said:
I don't know if this is right place to post about however, my working project with SuperSu is no more working with MagiskV14.
Issue:1
In my java code I call few shell scripts and binaries from system(e.g; system/bin/input) using java runtime Api however, they are wont execute even with "su" command. the Scripts are working fine via adb shell but not via java code.
looking for some help here.
Click to expand...
Click to collapse
With v14, I believe that they removed support for SuperSU.
Sent from my SM-G900V using Tapatalk
Kaliaila said:
With v14, I believe that they removed support for SuperSU.
Sent from my SM-G900V using Tapatalk
Click to expand...
Click to collapse
Is there any alternate solution?, I tried using App systemizer module however, it is also not working.
kozmike said:
Is there any alternate solution?, I tried using App systemizer module however, it is also not working.
Click to expand...
Click to collapse
Magisk Su is the alternate solution.
Fif_ said:
Magisk Su is the alternate solution.
Click to expand...
Click to collapse
Sorry, could you please be more precise.
I am already using magiskSu/magiskmanager v14. and tried to invoke su via java, however it is not working.
Code:
'Process proc = Runtime.getRuntime().exec("su -c uiautomator \n");'

Gigantic X - I detected the Root Magisk

Hello.
This game (GIGANTIC X) Me detects the access root Magisk, the hidden through "Magisk Hide" and when I restart it again detects me again and does not work.
https://play.google.com/store/apps/details?id=com.ActionSquare.GiganticX
D-Mak said:
Hello.
This game (GIGANTIC X) Me detects the access root Magisk, the hidden through "Magisk Hide" and when I restart it again detects me again and does not work.
https://play.google.com/store/apps/details?id=com.ActionSquare.GiganticX
Click to expand...
Click to collapse
Have you tried the v19.0 Beta ?
lahceneamine said:
Have you tried the v19.0 Beta ?
Click to expand...
Click to collapse
I just tried the V19.0 and the same thing happens.
any root-using apps installed or magisk.zip still in storage?
D-Mak said:
I just tried the V19.0 and the same thing happens.
Click to expand...
Click to collapse
Do you pass SAFETYNET with v19.0 ? If not, there's something wrong in your config.
Oh... it's using Lockin Company's Liapp(https://liapp.lockincomp.com/ )...
It's not a problem like misconfig since it detects Magisk itself. Liapp updates frequently to apply new root (especially Magisk) detection methods, so it's hard to bypass it.
(Magisk 17.3+ bypasses 5.0.0, 18.2+ bypasses 5.0.1, but 5.0.2+ cannot be bypassed currently.)
same here.cantplay it on root device,well that sucks.Im not gonna sacrifice my magisk for this game,not worth it
I made a bypass script for it (and all other apps using Liapp and UDS detection method)!
Download it on https://github.com/Ingan121/UDSBypass/blob/master/udsbypass and run 'su -c sh /sdcard/Download/udsbypass com.ActionSquare.GiganticX/com.epicgames.ue4.GameActivity'. Make sure you added this app to MagiskHide.
Ingan121 said:
I made a bypass script for it (and all other apps using Liapp and UDS detection method)!
Download it on https://github.com/Ingan121/UDSBypass/blob/master/udsbypass and run 'su -c sh /sdcard/Download/udsbypass com.ActionSquare.GiganticX/com.epicgames.ue4.GameActivity'. Make sure you added this app to MagiskHide.
Click to expand...
Click to collapse
Thanks! How do i use this script? i tried in terminal but it keep saying no such file or directory
Predatorhaze said:
Thanks! How do i use this script? i tried in terminal but it keep saying no such file or directory
Click to expand...
Click to collapse
Did you download it in Download folder? Then it should be started by 'sh /sdcard/Download/udsbypass' (without quotes).
Also, you can copy it to /sbin, chmod 755, and then just run 'udsbypass'.
Ingan121 said:
Did you download it in Download folder? Then it should be started by 'sh /sdcard/Download/udsbypass' (without quotes).
Also, you can copy it to /sbin, chmod 755, and then just run 'udsbypass'.
Click to expand...
Click to collapse
I copied the text and made a text file saved .sh..or do I something wrong here
Predatorhaze said:
I copied the text and made a text file saved .sh..or do I something wrong here
Click to expand...
Click to collapse
sh /sdcard/path/to/udsbypass.sh
Ingan121 said:
sh /sdcard/path/to/udsbypass.sh
Click to expand...
Click to collapse
I am a noob with this,I don't get it.Cant get it to work.I think will uninstall magisk
Predatorhaze said:
I am a noob with this,I don't get it.Cant get it to work.I think will uninstall magisk
Click to expand...
Click to collapse
Termux can't be used for this.
Use other terminal app.
Ingan121 said:
Termux can't be used for this.
Use other terminal app.
Click to expand...
Click to collapse
It can be used if you adjust the script to check for /sbin in $PATH and then add it if it isn't already there.
Or adjust the script to use the absolute paths to the Magisk binary, but that is a lot less elegant and won't work if the paths change.
Ingan121 said:
Termux can't be used for this.
Use other terminal app.
Click to expand...
Click to collapse
well then i try material terminal.
by the way im running pie gsi.
How is the game btw? is it good? bored fast?
Predatorhaze said:
well then i try material terminal.
by the way im running pie gsi.
How is the game btw? is it good? bored fast?
Click to expand...
Click to collapse
I didn't play it, just deleted immediately after succeeding to bypass.
Alright.i really want to play this game but i cant get this bypass to work.Can someone explain more clear steps?
Ingan121 said:
Did you download it in Download folder? Then it should be started by 'sh /sdcard/Download/udsbypass' (without quotes).
Also, you can copy it to /sbin, chmod 755, and then just run 'udsbypass'.
Click to expand...
Click to collapse
I managed to run the script by putting the file in /sbin but the game is still detecting root
Ingan121 said:
I didn't play it, just deleted immediately after succeeding to bypass.
Click to expand...
Click to collapse
can u explain with a short video the game has official release yesterday

Categories

Resources