[MOD][SU.D SCRIPT] Use Decrypted device and have working mobile network - HTC 10 ROMs, Kernels, Recoveries, & Other Developm

UPDATE: Thanks to @squid2's insight, there's a better method that should work for everyone. Just download the attached script, remove the .txt extension, and drop into your su.d folder with proper permissions. For more information, see here and here.
------------------------------
This is all thanks to @nkk71, btw. Right now the fix is very hacky but I'm sure ROM devs will find a more appropriate fix soon.
I'm not sure if I want to reveal the fix publicly in case HTC's spies are monitoring the thread, lol....probably better safe than sorry. But go visit nkk71's profile and buy him many beers for figuring this out. And also find some posts by him and click "Thanks."
WARNING: Dragons ahead! Anything you flash to your device is done at your own risk!
EDIT: Alright, I'll publish a flashable zip here based on the 1.53.617.5 US Unlocked Edition. I've been testing the mod/hack for a few days now and have seen no ill effects. It should work fine on ROMs using that base.
I have NO IDEA if it'll work on ROMs using an International/Europe base or on CDMA. If you really want to try it, make sure you make a backup first! You will need to "Format Data" in TWRP and flash the standard SuperSU zip to remove forced encryption (or do it manually, if you know how).
Let the bricking begin!
P.S. Thanks of course also go to @Chainfire for SuperSU and su.d!

Just let the ROM cooks know =)

ChronoReverse said:
Just let the ROM cooks know =)
Click to expand...
Click to collapse
They already do

I don't really find it hacky, just another workaround
Unfortunately, due to personal reasons, I have personally decided not to share this.
(I know you above all others will understand)
It is not a secret, I have a certainly made it public (or so I thought) enough.
Unfortunately the controversy, I'm not willing to deal with... An innocent "share", turned ugly
I fully endorse this method, though I only had 7 mins of testing, before things got very ugly, a very very very very very very very very very very unfortunate incident.
So be it.
The method is still sound, and anybody who wishes to use it, I have neither any objections, just please test it.
Thanks
nkk71
Sent from my HTC 10 using Tapatalk

nkk71 said:
I don't really find it hacky, just another workaround
Unfortunately, due to personal reasons, I have personally decided not to share this.
(I know you above all others will understand)
It is not a secret, I have a certainly made it public (or so I thought) enough.
Unfortunately the controversy, I'm not willing to deal with... An innocent "share", turned ugly
I fully endorse this method, though I only had 7 mins of testing, before things got very ugly, a very very very very very very very very very very unfortunate incident.
So be it.
The method is still sound, and anybody who wishes to use it, I have neither any objections, just please test it.
Thanks
nkk71
Click to expand...
Click to collapse
You think I should post it? Or do you think HTC might find it and try and change their method?

Captain_Throwback said:
You think I should post it? Or do you think HTC might find it and try and change their method?
Click to expand...
Click to collapse
In my humble opinion, go for it
I doubt HTC will change the code, and it is a workaround [emoji2]
Unless something is being changed... Elsewhere (doubt it) , I Personally, have briefly tested and accept it
Sent from my HTC 10 using Tapatalk

nkk71 said:
In my humble opinion, go for it
I doubt HTC will change the code, and it is a workaround [emoji2]
Unless something is being changed... Elsewhere (doubt it) , I Personally, have briefly tested and accept it
Click to expand...
Click to collapse
Done.
This should be fun, lol. Let the brickings begin!

Captain_Throwback said:
Done.
This should be fun, lol. Let the brickings begin!
Click to expand...
Click to collapse
Well I did, trip verity,verified, and a few other things [emoji4]
Oh, wait, I was testing some thing els [emoji23]
Sent from my HTC 10 using Tapatalk

Looking at the logic in the HTC RIL library, in Pythonic pseudocode, it goes something like this:
Code:
if property_get("ro.crypto.state") != "encrypted":
if property_get("persist.radio.current.cnv", default="-1") == "-1":
if htcril_db_property_get("current.cnv") != "-1":
htcril_db_property_set("current.cnv", "-1")
Other libraries then query the htcril DB via the library, and behave differently if the current.cnv property is set in the DB. Based off this, I would guess that doing the following would have a similar effect without needing to hack the library:
Code:
setprop persist.radio.current.cnv 0
I haven't tried this, but I'm curious if restoring the stock libhtcril_db.so and setting this property would work.

squid2 said:
Looking at the logic in the HTC RIL library, in Pythonic pseudocode, it goes something like this:
Other libraries then query the htcril DB via the library, and behave differently if the current.cnv property is set in the DB. Based off this, I would guess that doing the following would have a similar effect without needing to hack the library:
I haven't tried this, but I'm curious if restoring the stock libhtcril_db.so and setting this property would work.
Click to expand...
Click to collapse
Brilliant! That works! Much easier/cleaner solution than hacking the lib
EDIT: Posted script in the OP. Bedtime!

Can anyone remind me/us the pros and cons of decrypting?
Sent from my Nexus 5 using XDA-Developers mobile app

Captain_Throwback said:
You think I should post it? Or do you think HTC might find it and try and change their method?
Click to expand...
Click to collapse
This?

So boot into TWRP, format data and flash regular SuperSu? What are the permissions for the Script ?

squid2 said:
Looking at the logic in the HTC RIL library, in Pythonic pseudocode, it goes something like this:
Code:
if property_get("ro.crypto.state") != "encrypted":
if property_get("persist.radio.current.cnv", default="-1") == "-1":
if htcril_db_property_get("current.cnv") != "-1":
htcril_db_property_set("current.cnv", "-1")
Other libraries then query the htcril DB via the library, and behave differently if the current.cnv property is set in the DB. Based off this, I would guess that doing the following would have a similar effect without needing to hack the library:
Code:
setprop persist.radio.current.cnv 0
I haven't tried this, but I'm curious if restoring the stock libhtcril_db.so and setting this property would work.
Click to expand...
Click to collapse
Captain_Throwback said:
Brilliant! That works! Much easier/cleaner solution than hacking the lib
EDIT: Posted script in the OP. Bedtime!
Click to expand...
Click to collapse
Nice :good:
Strangely enough, I couldn't get the property to stick, but I edited the init.rc directly, didnt use the su.d... maybe I put it in the wrong place

Black_Eyes said:
So boot into TWRP, format data and flash regular SuperSu? What are the permissions for the Script ?
Click to expand...
Click to collapse
Permissions for su.d scripts are 0700. If you want to put the script there while in recovery and you're using systemless root, you can use @osm0sis SUmount zip to mount the su.img and then the TWRP File Manager to copy the script over and change perms. Flash the SUmount zip again to unmount su.img, and then reboot.

Captain_Throwback said:
Permissions for su.d scripts are 0700. If you want to put the script there while in recovery and you're using systemless root, you can use @osm0sis SUmount zip to mount the su.img and then the TWRP File Manager to copy the script over and change perms. Flash the SUmount zip again to unmount su.img, and then reboot.
Click to expand...
Click to collapse
the flashable zip if i want to try on international rom...
i boot into twrp formata data to remove encryption flash super 2.65 stable flash your script and boot will that do?

SacredDeviL666 said:
the flashable zip if i want to try on international rom...
i boot into twrp formata data to remove encryption flash super 2.65 stable flash your script and boot will that do?
Click to expand...
Click to collapse
Don't use the zip. That's the old hack. Use the script. You have to manually place it.
And use the latest SuperSU Beta, not the stable.

Captain_Throwback said:
Don't use the zip. That's the old hack. Use the script. You have to manually place it.
And use the latest SuperSU Beta, not the stable.
Click to expand...
Click to collapse
okay thank you so i would use the latest supersu 2.74beta zip from recovery.
the script isn't downloading for me when i click on it just opens a page with below message
#!/system/bin/sh
# Allow mobile network while decrypted
# thanks @squid2 from XDA for the easy fix!
setprop persist.radio.current.cnv 0
... from pc i am..

SacredDeviL666 said:
okay thank you so i would use the latest supersu 2.75beta zip from recovery.
the script isn't downloading for me when i click on it just opens a page with below message
#!/system/bin/sh
# Allow mobile network while decrypted
# thanks @squid2 from XDA for the easy fix!
setprop persist.radio.current.cnv 0
... from pc i am..
Click to expand...
Click to collapse
Right-click and Save As....

Captain_Throwback said:
Right-click and Save As....
Click to expand...
Click to collapse
thanks got it!!!
place the script in system/su.d folder with the permissions/boot to recovery format data/flash latest supersu beta 2.74 and the let boot finish.....
at htc green logo now...fingers crossed... by the way i was on system mode su prior to trying this mod.
now optimizing the apps...lee's r82 international
---------- Post added at 01:38 PM ---------- Previous post was at 01:16 PM ----------
@Captain_Throwback
came back as encryped only....
the script permission i gave was rwx r-x r-x

Related

Actual (2010-06-27) hosts file

Because AdFree is not working on Desire:
I've made hosts file which is compilation of two lists and some manual additions (for correct blocking of admob). So I decided to share with my list. Use it if You want to. Please tell me if this forum is wrong for that list.
Sorry for the n00b question but how do you install this?
Nice one mate. You've just reminded me I needed to redo my hosts file after installing Modaco Froyo, and I might as well use yours as it'll be more up to date than mine.
Ghisy said:
Sorry for the n00b question but how do you install this?
Click to expand...
Click to collapse
ditto this, instructions for us noobies?
unzip the host file
than enter recovery
adb-windows shell mount /system
adb-windows shell mv /system/etc/hosts /sdcard/backuphost
adb push c:\hosts /system/etc
that should wrok if you unziped hosts.zip to c:\ and if something goes wrong you have your original hosts file backed up in /sdcard/backuphost
hope this helps
p.s. i didn't try this
did everything, and adfree is still not working in froyo...
Thanks anyway!
Edit: Now, Adfree FCs!
Edit 2: I did it again and it worked!
Could someone please create a zip file, that can be falshed through clockworkmod recovery? This would be fantastic.
Try this, mate. [Click!]
dnlgee said:
Try this, mate. [Click!]
Click to expand...
Click to collapse
Thanks dnlgee I put it in my repo on ROM Manager
This is great, thanks for sharing - it seems to work great. I might go back to a stock hosts though - I like to block ads when browsing, but I feel bad about doing it for ad-supported applications. That's just me though
shawe_ewahs said:
Thanks dnlgee I put it in my repo on ROM Manager
Click to expand...
Click to collapse
No worries, just checked your repo, there's a lot of stuff there haha.
dnlgee said:
No worries, just checked your repo, there's a lot of stuff there haha.
Click to expand...
Click to collapse
Yes, trying to do thinks more easy for all people
Thank you. I have been looking for this for a long time
Great work, it worked a charm until I changed to a new rom, went to use it again and it was gone from the downloads in Rom Manager.
Big thanks.
Panic over, It was saved as a download on my SD card, Rom Manager flashed it again from the saved location no problem.
Love it.
danbst said:
Your stuff is gone from Rom Manager it seems mate.
Would I be right in assuming I can put this on my card renamed as update.zip (if I need to?)
Use rom manager to boot into recovery and flash it manually?
Great work BTW, it worked a charm until I changed to a new rom, went to use it again and as I say it was gone.
Big thanks.
Click to expand...
Click to collapse
You don't need to rename the zip file if you're using ROM Manager, but yes you should be able to install this through the manager.
If you can't download it through the ROM Manager report, my link is always online and will be updated when possible.
Sent from my HTC Desire using Tapatalk
Just a confused question;
If we have a rooted device, what's the reason for having to use the recovery menu? Can you not simply overwrite the file?
Thanks
Yea you can, provided you reboot into recovery and mount the system, then pull or push the device back into the system.
Either way you need to boot into recovery as there's no root method that fully allows read/write access for the Desire at the moment.
Psy-Blade said:
Just a confused question;
If we have a rooted device, what's the reason for having to use the recovery menu? Can you not simply overwrite the file?
Thanks
Click to expand...
Click to collapse
It should work like this. Unfortunatelly you can't mount system partition as read/write. That is because system is blocking this in some way.
Sent from my HTC Desire using XDA App
Another quick one:
I used the zip file which people are using in the rom manager. I rebooted into clockwork and selected apply update from zip and selected the file. Appears I broke the system though lol .
Is this not the right way of doing it?
Also how do you type commands in the recovery? :S
dnlgee said:
Try this, mate. [Click!]
Click to expand...
Click to collapse
Link dead ??!! "File does not exist. Make sure you specified correct file name."

[MOD][GUIDE] AdAway on Write Protected /system Partitions [RECOVERY]

If your /system partition is write protected like on the HTC One (M7) and you try to use an advertisement blocker like AdAway, you will encounter that changes to /system/etc/hosts are lost after reboot and ad blocking doesn't work. You have basically 3 methods to get around this:
A) Link /system/etc/hosts to a partition AdAway can write to
Install symlink_hosts_to_data.zip via your custom recovery (like CWM) to create a symbolic link from /system/etc/hosts to /data/data/hosts. Afterwards you can configure AdAway to use /data/data/hosts (as shown in attached screenshot) and it will work perfectly with updates and everything.
B) Flash the hosts file directly
Install adaway_hosts_2014-04-14.zip via recovery. Now you have the hosts file as AdAway created on April 14th 2014. Disadvantage: you would need to flash again for updates. Advantage: you don't need the AdAway app at all. Note: many custom ROMs include such a hosts file already in their distribution.
C) Make /system partition writable
Use this kernel extension or a custom ROM including it to have the /system partition writable all the time. AdAway will work out-of-the-box then.
If you like to restore original state after having flashed one of the recovery zips above, use the attached restore_original_hosts.zip
Mantelinho said:
The attached recovery flashable update.zip modifies your /system/etc/hosts file just like AdAway or Adblock Plus would. Useful if your /system partition is write protected like on the HTC One (and changes are lost after reboot).
You need
a custom recovery like ClockWorkMod on your device
the understanding that you will use this script at your own risk
You could also
make the /system partition writable via kernel patch and use the app
use a custom ROM which comes with an ad-blocking hosts file already
This uses the hosts list from AdAway as of June 17th 2013. All credits for this to AdAway and its contributors
Click to expand...
Click to collapse
Can you create a script which creates the symbolic link i.e. the approach recommended in AdAway help (S-ON/S-OFF)? That would allow the file to be updated by the app over time...
melando said:
Can you create a script which creates the symbolic link i.e. the approach recommended in AdAway help (S-ON/S-OFF)? That would allow the file to be updated by the app over time...
Click to expand...
Click to collapse
This makes sense if you want to keep using the app, thanks for the hint. I uploaded symlink_hosts_to_data.zip and updated the opening post. This will work also after having the other zip already applied.
Cheers, do I need all 3 zips or just the one dated today?
Sent from my Nexus 7 using xda app-developers app
jonny68 said:
Cheers, do I need all 3 zips or just the one dated today?
Click to expand...
Click to collapse
Either the one dated (and you're fine) OR the symlink one if wanting to use AdAway configured to write to /data/data/hosts. The third file is only for restoring original state.
Cheers, so should this block all ads then, I had the ad block apk. But it didn't block all annoying ads?
Sent from my Nexus 7 using xda app-developers app
jonny68 said:
Cheers, so should this block all ads then, I had the ad block apk. But it didn't block all annoying ads?
Click to expand...
Click to collapse
This should block all ads so far (at least it absolutely does for me). However the list of ad servers is actively maintained by hosts-file.net. If you should find an ad host not blocked you can post it there and it will find its way back to AdAway. To be always up-to-date I recommend using AdAway with the symlink method from OP.
Dunno why but it doesn't block ads on the goal.com app but for some reason no adblock app ever really did, strange!
Sent from my Nexus 7 using xda app-developers app
sinna ketskm
Hey, just inquiring...
I've done the "flash host files directly" step, and playing Subway Surfers.
It would seem that ads are only blocked on that game when I have system set to RW...(I think...?...not 100% sure, but it would seem this way)
I was under the impression that it shouldn't matter because I'm flashing the host file directly?
Can anyone offer their thoughts please.
B BOY DRAW2 said:
Hey, just inquiring...
I've done the "flash host files directly" step, and playing Subway Surfers.
It would seem that ads are only blocked on that game when I have system set to RW...(I think...?...not 100% sure, but it would seem this way)
I was under the impression that it shouldn't matter because I'm flashing the host file directly?
Can anyone offer their thoughts please.
Click to expand...
Click to collapse
Yes, after flashing the hosts files directly no further steps should be necessary and ads be gone. Can you verify that ads also exist in other applications (or websites)? Maybe this is an issue with the app you are using, for example if it loads its apps from its own (unblocked) server.
Yeah, I think you're right about it perhaps being app related. I think maybe I need to monitor it a bit more closely and take random notes...
like sometimes I'm bombarded with advertisments any time I touch to advance or go back through menus...but just in that app...then I'll reboot...and sometimes it'll go a full day without ads...?
I also use a local news app which would normally advertise dating links, but those don't seem to appear...so it's definitely working.
All good though...thanks for answering that for me!
Much appreciated!!!
Mantelinho said:
Install symlink_hosts_to_data.zip via your custom recovery (like CWM) to create a symbolic link from /system/etc/hosts to /data/data/hosts. Afterwards you can configure AdAway to use /data/data/hosts.
Click to expand...
Click to collapse
Thanks so much for this info Mantelinho, I had been looking for a solution. When using this 1st method, do I need to flash symlink_hosts_to_data.zip in recovery after every ROM flash? I.e., I'm dirty-flashing CyanogenMod nightlies every other day or so and I'm not sure if need to re-create the symlink after every flash.
edit: I have discovered I DO need to flash symlink_hosts_to_data.zip after every ROM flash.
Sorry to bump an old thread. Will this work on the new M8 variant of the One, or will it only work on the M7 variant?
TrainAss said:
Sorry to bump an old thread. Will this work on the new M8 variant of the One, or will it only work on the M7 variant?
Click to expand...
Click to collapse
im sure it works
Child's Play said:
im sure it works
Click to expand...
Click to collapse
It does work. I forgot to change data location.
Sent from my HTC One (M8) using Tapatalk Pro
Can i use twrp and will work in moto x?
Hi, is this guide specific for the HTC One? Or would it perhaps work on my HTC One S too?
Sandeman1976 said:
Hi, is this guide specific for the HTC One? Or would it perhaps work on my HTC One S too?
Click to expand...
Click to collapse
Its for htc phones with s-on
---------- Post added at 11:26 AM ---------- Previous post was at 11:11 AM ----------
gskelter said:
Can i use twrp and will work in moto x?
Click to expand...
Click to collapse
If cwm or twrp is available for ur device, u can flash cwm or twrp
Child's Play said:
Its for htc phones with s-on
Click to expand...
Click to collapse
Ok, thanks!
FF.

HTC 10 - Getting SELinux Permissive

I have a couple apps that need selinux permissive but attempting any past methods seems to throw an error during boot that the "android system has experienced an error and must be reset/wiped" (or something like that).
My last HTC One, M7 and M8 (m8 on marshmallow), I could just use init.d to enforce permissive. When I do it on my rooted, s-off htc 10, I get that error during bootup if I use init.d. If I run the script post boot up, the apps work fine however I need it to be permissive by default.
Is this due to the new security and encryption issues?
I see lee's ROM has permissive but his scripts would not work for me either.
Does anyone know how to get permissive working or provide a script to flash for those of us who need it?
Does system need to be RW for it to work? If so, is there a script for the 10 to do that as well?
Thank you!
MNoisy said:
I have a couple apps that need selinux permissive but attempting any past methods seems to throw an error during boot that the "android system has experienced an error and must be reset/wiped" (or something like that).
My last HTC One, M7 and M8 (m8 on marshmallow), I could just use init.d to enforce permissive. When I do it on my rooted, s-off htc 10, I get that error during bootup if I use init.d. If I run the script post boot up, the apps work fine however I need it to be permissive by default.
Is this due to the new security and encryption issues?
I see lee's ROM has permissive but his scripts would not work for me either.
Does anyone know how to get permissive working or provide a script to flash for those of us who need it?
Does system need to be RW for it to work? If so, is there a script for the 10 to do that as well?
Thank you!
Click to expand...
Click to collapse
Same here bro
Raqib1994 said:
Same here bro
Click to expand...
Click to collapse
I ended up using an app called init.d scripts support. Its available in the app store.
After installing it you create a folder with all of your scripts in it. You can then set in the app when you want the scripts to run...automatically, delayed, specific conditions, etc.
I just threw a permissive script in the folder and boom, working perfectly! Let me know if you need the script if you end up taking this route.
MNoisy said:
I have a couple apps that need selinux permissive but attempting any past methods seems to throw an error during boot that the "android system has experienced an error and must be reset/wiped" (or something like that).
My last HTC One, M7 and M8 (m8 on marshmallow), I could just use init.d to enforce permissive. When I do it on my rooted, s-off htc 10, I get that error during bootup if I use init.d. If I run the script post boot up, the apps work fine however I need it to be permissive by default.
Is this due to the new security and encryption issues?
I see lee's ROM has permissive but his scripts would not work for me either.
Does anyone know how to get permissive working or provide a script to flash for those of us who need it?
Does system need to be RW for it to work? If so, is there a script for the 10 to do that as well?
Thank you!
Click to expand...
Click to collapse
Raqib1994 said:
Same here bro
Click to expand...
Click to collapse
MNoisy said:
I ended up using an app called init.d scripts support. Its available in the app store.
After installing it you create a folder with all of your scripts in it. You can then set in the app when you want the scripts to run...automatically, delayed, specific conditions, etc.
I just threw a permissive script in the folder and boom, working perfectly! Let me know if you need the script if you end up taking this route.
Click to expand...
Click to collapse
you could flash this in recovery after the first complete boot of leedroid rom...
SeLinux-Permissive_fix -- > https://www.androidfilehost.com/?fid=24591000424945158
SacredDeviL666 said:
you could flash this in recovery after the first complete boot of leedroid rom...
SeLinux-Permissive_fix -- > https://www.androidfilehost.com/?fid=24591000424945158
Click to expand...
Click to collapse
Thats great! Thank you.
Has this been tested on stock ROM? The update-binary is encoded so I was trying to make sense of it.
MNoisy said:
Thats great! Thank you.
Has this been tested on stock ROM? The update-binary is encoded so I was trying to make sense of it.
Click to expand...
Click to collapse
yeaps it should....
you mentioned you are on Lee or you asking in general would it work for stock?
SacredDeviL666 said:
yeaps it should....
you mentioned you are on Lee or you asking in general would it work for stock?
Click to expand...
Click to collapse
I am on stock 1.80.617, NOT on Lee. I am asking if this works for stock. When he first released his ROM his permissive did not work when I tried (If I recall trying it correctly) but this was on his initial builds.
MNoisy said:
I am on stock 1.80.617, NOT on Lee. I am asking if this works for stock. When he first released his ROM his permissive did not work when I tried (If I recall trying it correctly) but this was on his initial builds.
Click to expand...
Click to collapse
yeaps it should...
MNoisy said:
...Let me know if you need the script if you end up taking this route.
Click to expand...
Click to collapse
It looks like I need it, thanks.
Bill Gamble said:
It looks like I need it, thanks.
Click to expand...
Click to collapse
Attached
MNoisy said:
Attached
Click to expand...
Click to collapse
Looks like it not attaching. Pm me your email
MNoisy said:
Looks like it not attaching. Pm me your email
Click to expand...
Click to collapse
Thanks, anyway. It turns out that the following works just fine:
Code:
#!/system/sh
setenforce 0

How to change permissions on Nougat

So I'm unable to change file permissions on anything in Nougat.
I'm using this rom right now
http://forum.xda-developers.com/nexus-5x/development/rom-debloated-busybox-fast-stable-t3398617
It is rooted with SuperSU 2.76, I believe. Any reason why I can't change file permissions? I'm trying to add scripts that pertain to my kernel into /system, but can't adjust the permissions.
Any help would be appreciated, thank you.
LegoFarmer said:
So I'm unable to change file permissions on anything in Nougat...
Click to expand...
Click to collapse
Brough, I am on full stock with Systemless root. I faced the same. But a couple days back I installed RootBrowser with BusyBox and I can change those. The annoying thing is that system gives me a warning that I ignore and need to get out of folder and in to see the permissions are changed. A bit slower way to my liking but I can live with like that till there's more comfortable way.
enzo_cz said:
Brough, I am on full stock with Systemless root. I faced the same. But a couple days back I installed RootBrowser with BusyBox and I can change those. The annoying thing is that system gives me a warning that I ignore and need to get out of folder and in to see the permissions are changed. A bit slower way to my liking but I can live with like that till there's more comfortable way.
Click to expand...
Click to collapse
I still can't get it to work.
LegoFarmer said:
I still can't get it to work.
Click to expand...
Click to collapse
Huh, that's weird.
enzo_cz said:
Huh, that's weird.
Click to expand...
Click to collapse
"Changing permissions was not successful. Please note that some file systems do not allow permission changes".
My rom has busybox. What am I doing wrong?
Well, the thing I described above does work for me. That way I can change any permissions within the system. I had been a stong believer that this was gow it went for others too.
LegoFarmer said:
So I'm unable to change file permissions on anything in Nougat.
I'm using this rom right now
http://forum.xda-developers.com/nexus-5x/development/rom-debloated-busybox-fast-stable-t3398617
It is rooted with SuperSU 2.76, I believe. Any reason why I can't change file permissions? I'm trying to add scripts that pertain to my kernel into /system, but can't adjust the permissions.
Any help would be appreciated, thank you.
Click to expand...
Click to collapse
Try Solid Explorer, some people say this is the only file manager that completely works (I mean doing "root things", you know what I mean). I'm using in for example to edit build.prop file and it basically works so this might be it

[tool] sd-card sync sauce - twrp & android!

Here is a really straight foward sd-card incremental backup tool for all the crack flashers. This has been tested on the Pixel 2 XL in TWRP and Android extensively. It should works on most data media devices in TWRP with no issues. If the device also has a /storage/emulated/0 it should work in Android. Root is not required as far as I know, but recommended as it was tested with root. Also please make sure no file names have a * in them as it will fail the backup.
This has also been tested via Wireless ADB with ADB Wireless By Henry app on the Play Store. I have created and option to connect to it via wireless. All you need to is start the app and type the ip address given from the app. This function of the app will kill the adb server and start a new one on your giving ip address. If you want to continue working from the wired portion you will need to open a cmd prompt with adb access and type
Code:
adb kill-server
Or you can use the built in ADB menu.
All credits go to @Renate NST for the exe here. Also based on "ADBsync sdcard Backup" by @osm0sis, found here.
*DOWNLOADS*
https://www.mediafire.com/file/v0bj2c7sx7azbya/SDCARD SYNC SAUCE V0.5.zip
*RESERVED*
Adding W32 long path registry addition to copy long file name in Android instead of twrp. It will be a separate add-on that its to be imported into the registry once. Rename it from .txt to .reg and double click to import!
*ANOTHER*
Thanks brother, it's working flawlessly over here.
So, to be clear here, you've added some menus to my existing one-click adbsync sdcard backup script?
osm0sis said:
So, to be clear here, you've added some menus to my existing one-click adbsync sdcard backup script?
Click to expand...
Click to collapse
One of your one-click scripts have been added. Thats why I tagged you. But if you would like I can remove it and I can just keep the Android side of it?
bryantjopplin said:
One of your one-click scripts have been added. Thats why I tagged you. But if you would like I can remove it and I can just keep the Android side of it?
Click to expand...
Click to collapse
Addressed via PM. Thanks for the updated credit. Carry on. :good:
osm0sis said:
Addressed via PM. Thanks for the updated credit.
Click to expand...
Click to collapse
Right on man. I forgot how brilliant that OP full of scripts linked above really is. I highly recommend folks check it out if for no other reason but to see what prolific devs on XDA are churning out...
I guess everything works and no complaints lol
Sent from my Pixel 2 XL using Tapatalk
bryantjopplin said:
I guess everything works and no complaints lol
Sent from my Pixel 2 XL using Tapatalk
Click to expand...
Click to collapse
Working great for me thanks dude.
I am liking it.
If only there was a shell script version of this. :good:
I am NOT good at scripting in any language. I was too old when I started this computer stuff, and am competent in most things android. linux and dos/win, but scripting eludes me. I need a time machine to go back to my pre-teens when learning this is natural.
I am getting close to unlocking and rooting my P2XL and I can manually backup the sdcard before wiping, but boy this script would be wonderful.
Pkt_Lnt said:
If only there was a shell script version of this. :good:
I am NOT good at scripting in any language. I was too old when I started this computer stuff, and am competent in most things android. linux and dos/win, but scripting eludes me. I need a time machine to go back to my pre-teens when learning this is natural.
I am getting close to unlocking and rooting my P2XL and I can manually backup the sdcard before wiping, but boy this script would be wonderful.
Click to expand...
Click to collapse
I don't think it would work in a linux shell. The adb sync binary is a windows exe.
northmendo said:
I don't think it would work in a linux shell. The adb sync binary is a windows exe.
Click to expand...
Click to collapse
Ah, good point, thanks. I guess I could think more about wine or similar. I just feel no need to boot into my Win 7 partition except for some GIS programs, that is rare these days.
Pleased that there are linux choices for adb, andromeda, and Deuce flash / recovery script.
Pkt_Lnt said:
Ah, good point, thanks. I guess I could think more about wine or similar. I just feel no need to boot into my Win 7 partition except for some GIS programs, that is rare these days.
Pleased that there are linux choices for adb, andromeda, and Deuce flash / recovery script.
Click to expand...
Click to collapse
Ya, I'll bet wine would work. Report back if you try it.
bryantjopplin said:
I guess everything works and no complaints lol
Sent from my Pixel 2 XL using Tapatalk
Click to expand...
Click to collapse
Haven't dared to try restoring data yet!
Have you had any feedback on restoring?
Sent from my Pixel 2 XL using Tapatalk
I have used it but thats about as far as i know. Technically you could just hit copy and paste it there due to the incremental only works on the pull.
Alxoom33 said:
Haven't dared to try restoring data yet!
Have you had any feedback on restoring?
Sent from my Pixel 2 XL using Tapatalk
Click to expand...
Click to collapse
bryantjopplin said:
I have used it but thats about as far as i know. Technically you could just hit copy and paste it there due to the incremental only works on the pull i believe.
Click to expand...
Click to collapse
I actually have used copy and paste from the backup for specific files I needed.
Sent from my Pixel C using Tapatalk
All it uses is this to push it
adb push sdcard\0\ /storage/emulated/
Alxoom33 said:
I actually have used copy and paste from the backup for specific files I needed.
Sent from my Pixel C using Tapatalk
Click to expand...
Click to collapse
bryantjopplin said:
I have used it but thats about as far as i know. Technically you could just hit copy and paste it there due to the incremental only works on the pull.
Click to expand...
Click to collapse
One of the telegram users restored going back from 8.1 to 8.0 and was successful as downgrading requires a full wipe.

Categories

Resources