FORUMS
Remove All Ads from XDA

[TOOLS][ZIPS][SCRIPTS] osm0sis' Odds and Ends [Multiple Devices/Platforms]

13,641 posts
Thanks Meter: 30,084
 
By osm0sis, Recognized Developer / Recognized Contributor on 18th April 2013, 12:37 AM
Post Reply Email Thread
6th October 2017, 12:22 PM |#1511  
osm0sis's Avatar
OP Recognized Developer / Recognized Contributor
Flag Halifax
Thanks Meter: 30,084
 
Donate to Me
More
Quote:
Originally Posted by rizki_Alkaf

Hi everyone,
I'm on a rooted Nitrogen OS 8.0.0
I have a permission problem with obb files located on internal storage /storage/emulated/obb
Those files inside are owned by root:sdcard_rw and their permission are 660.
But i cannot delete it even as a root with a file explorer.
Using TWRP, /obb folder is not mounted. /storage folder is empty. Is there any script here that can solve my problem? Tried sdcard permission fix zip but it didn't work.
Or maybe anyone here knows how to mount /obb folder from TWRP / terminal?

Thanks

The actual location is /data/media/obb and the ownership is media_rw:media_rw, which are correct. Try from that location in a file explorer instead.
The Following User Says Thank You to osm0sis For This Useful Post: [ View ]
 
 
6th October 2017, 12:25 PM |#1512  
rizki_Alkaf's Avatar
Senior Member
Flag Semarang
Thanks Meter: 120
 
More
Quote:
Originally Posted by osm0sis

The actual location is /data/media/obb and the ownership is media_rw:media_rw, which are correct. Try from that location in a file explorer instead.

It works!!
Thank you, very very much

Sent from my Redmi Note 3 using Tapatalk
7th October 2017, 05:06 PM |#1513  
Account currently disabled
Flag Vienna
Thanks Meter: 620
 
Donate to Me
More
Can not install Busybox with Magisk 14.2.
7th October 2017, 09:42 PM |#1514  
osm0sis's Avatar
OP Recognized Developer / Recognized Contributor
Flag Halifax
Thanks Meter: 30,084
 
Donate to Me
More
Quote:
Originally Posted by Schrotty35

Can not install Busybox with Magisk 14.2.

Boot the device first. Magisk's install zip doesn't make magisk.img during install anymore.
8th October 2017, 03:20 AM |#1515  
Surge1223's Avatar
Recognized Contributor
Flag Iowa
Thanks Meter: 7,360
 
Donate to Me
More
Quote:
Originally Posted by Fif_

Thanks for the info.
I'm using the SELinux-enabled BusyBox that comes with OmniROM, but it's a little dated (1.22.1 bionic) and lacks some applets.

Alternately, you can compile a static BusyBox under Linux. It works but some things are broken (DNS resolving, uid mapping).

What applets is it missing specifically? Im wondering because adding applets to busybox kinda blows especially on aosp, where busybox is built in much the same way as was kernel inlining is done. I just recently rebuilt busybox with bionic and selinux so while it's fresh in my head I might as well add some useful binaries, I think off the top of my head checkpolicy, dispol, sefcontext, getfilecon, and setfilecon are the most useful in addition to the defaults.

I think most people have difficulty building busybox with selinux on aosp is for a few different reasons, the first being that busybox doesn't give much in the way of useful info on how to add it other than "make sure selinux is installed"

Next most selinux stuff we want to use depends on a a libselinux and libsepol minimum, and aosp doesn't contain a Android.mk for generation of the static versions (though the .bp is very useful). And finally it requires linking of the libs, along with references to the includes and its just a mess. Luckily it's not too bad if you have been building selinux and busybox for awhile.

I think I'm just going to fork osm0sis' busybox and see how it is for ndk and aosp.

I'm bored af rn so might as well.
The Following 2 Users Say Thank You to Surge1223 For This Useful Post: [ View ] Gift Surge1223 Ad-Free
8th October 2017, 02:25 PM |#1516  
Captain_Throwback's Avatar
Senior Member
Flag The Nothing
Thanks Meter: 22,611
 
10
Donate to Me
More
Quote:
Originally Posted by Surge1223

What applets is it missing specifically? Im wondering because adding applets to busybox kinda blows especially on aosp, where busybox is built in much the same way as was kernel inlining is done. I just recently rebuilt busybox with bionic and selinux so while it's fresh in my head I might as well add some useful binaries, I think off the top of my head checkpolicy, dispol, sefcontext, getfilecon, and setfilecon are the most useful in addition to the defaults.

I think most people have difficulty building busybox with selinux on aosp is for a few different reasons, the first being that busybox doesn't give much in the way of useful info on how to add it other than "make sure selinux is installed"

Next most selinux stuff we want to use depends on a a libselinux and libsepol minimum, and aosp doesn't contain a Android.mk for generation of the static versions (though the .bp is very useful). And finally it requires linking of the libs, along with references to the includes and its just a mess. Luckily it's not too bad if you have been building selinux and busybox for awhile.

I think I'm just going to fork osm0sis' busybox and see how it is for ndk and aosp.

I'm bored af rn so might as well.

I've actually been trying to figure out how to build a dynamically linked busybox with the latest busybox and AOSP source with SELinux enabled to use with TWRP. If you can get this working, it would be awesome.
The Following 2 Users Say Thank You to Captain_Throwback For This Useful Post: [ View ] Gift Captain_Throwback Ad-Free
8th October 2017, 03:10 PM |#1517  
Surge1223's Avatar
Recognized Contributor
Flag Iowa
Thanks Meter: 7,360
 
Donate to Me
More
Quote:
Originally Posted by Captain_Throwback

I've actually been trying to figure out how to build a dynamically linked busybox with the latest busybox and AOSP source with SELinux enabled to use with TWRP. If you can get this working, it would be awesome.

Hah ironic I was actually working on that as we speak

Along with...

Click image for larger version

Name:	1507471699476.jpg
Views:	630
Size:	79.3 KB
ID:	4296308

osm0sis I saw your message about aapt..just built newest on ndk, requires setting the ___ANDROID_API__=21 CFLAG to use non unified headers using the newest ndk.
The Following 2 Users Say Thank You to Surge1223 For This Useful Post: [ View ] Gift Surge1223 Ad-Free
8th October 2017, 08:59 PM |#1518  
Senior Member
Thanks Meter: 779
 
More
Quote:
Originally Posted by Surge1223

What applets is it missing specifically?

That's a long list...
[spoiler]acpid
add-shell
addgroup
adduser
ar
arping
bash
beep
blkdiscard
bootchartd
chat
chpasswd
chpst
chrt
chvt
cksum
conspy
cryptpw
cttyhack
delgroup
deluser
dhcprelay
dnsdomainname
dpkg
dpkg-deb
du
dumpkmap
dumpleases
eject
envdir
envuidgid
ether-wake
factor
fakeidentd
fallocate
false
fatattr
fbset
fdflush
fdformat
find
flash_eraseall
fsck
fsck.minix
fsfreeze
ftpd
getty
hd
hdparm
hostid
hostname
httpd
hush
i2cdetect
i2cdump
i2cget
i2cset
ifdown
ifenslave
ifplugd
ifup
inetd
init
inotifyd
ipaddr
ipcalc
ipcrm
ipcs
iplink
ipneigh
iproute
iprule
iptunnel
kbd_mode
kill
klogd
last
link
linux32
linux64
linuxrc
load_policy
loadfont
loadkmap
logger
login
logname
logread
lpd
lpq
lpr
lsscsi
lunzip
lzip
makedevs
makemime
mdev
mesg
microcom
mkfs.minix
mkfs.reiser
mkpasswd
modinfo
msh
mt
nameif
nl
nproc
nsenter
od
partprobe
passwd
paste
ping6
pivot_root
popmaildir
powertop
printenv
pscan
raidautorun
readahead
readprofile
reformime
remove-shell
rfkill
rpm
rpm2cpio
rtcwake
runlevel
runsv
runsvdir
script
scriptreplay
sed
sendmail
setarch
setfont
setlogcons
setpriv
setsebool
setuidgid
showkey
shred
shuf
slattach
softlimit
ssl_client
start-stop-daemon
su
sulogin
sv
svc
svlogd
swapoff
syslogd
tcpsvd
traceroute6
truncate
tty
tunctl
ubiattach
ubidetach
ubimkvol
ubirename
ubirmvol
ubirsvol
ubiupdatevol
udhcpc
udhcpc6
udhcpd
udpsvd
uevent
umount
unlink
unshare
users
vconfig
vlock
volname
w
wall
watchdog
which
who
whois
xxd
zcip[/spoiler]
The Following User Says Thank You to Fif_ For This Useful Post: [ View ] Gift Fif_ Ad-Free
9th October 2017, 12:59 AM |#1519  
Recognized Developer / Recognized Contributor
Thanks Meter: 4,265
 
Donate to Me
More
Quote:
Originally Posted by Fif_

That's a long list...

And which of those are actually useful under Android?
The Following User Says Thank You to _that For This Useful Post: [ View ]
9th October 2017, 04:25 AM |#1520  
ahrion's Avatar
Retired Forum Moderator / Recognized Developer
Thanks Meter: 5,114
 
More
Quote:
Originally Posted by Fif_

That's a long list...
[spoiler]acpid
add-shell
addgroup
adduser
ar
arping
bash
beep
blkdiscard
bootchartd
chat
chpasswd
chpst
chrt
chvt
cksum
conspy
cryptpw
cttyhack
delgroup
deluser
dhcprelay
dnsdomainname
dpkg
dpkg-deb
du
dumpkmap
dumpleases
eject
envdir
envuidgid
ether-wake
factor
fakeidentd
fallocate
false
fatattr
fbset
fdflush
fdformat
find
flash_eraseall
fsck
fsck.minix
fsfreeze
ftpd
getty
hd
hdparm
hostid
hostname
httpd
hush
i2cdetect
i2cdump
i2cget
i2cset
ifdown
ifenslave
ifplugd
ifup
inetd
init
inotifyd
ipaddr
ipcalc
ipcrm
ipcs
iplink
ipneigh
iproute
iprule
iptunnel
kbd_mode
kill
klogd
last
link
linux32
linux64
linuxrc
load_policy
loadfont
loadkmap
logger
login
logname
logread
lpd
lpq
lpr
lsscsi
lunzip
lzip
makedevs
makemime
mdev
mesg
microcom
mkfs.minix
mkfs.reiser
mkpasswd
modinfo
msh
mt
nameif
nl
nproc
nsenter
od
partprobe
passwd
paste
ping6
pivot_root
popmaildir
powertop
printenv
pscan
raidautorun
readahead
readprofile
reformime
remove-shell
rfkill
rpm
rpm2cpio
rtcwake
runlevel
runsv
runsvdir
script
scriptreplay
sed
sendmail
setarch
setfont
setlogcons
setpriv
setsebool
setuidgid
showkey
shred
shuf
slattach
softlimit
ssl_client
start-stop-daemon
su
sulogin
sv
svc
svlogd
swapoff
syslogd
tcpsvd
traceroute6
truncate
tty
tunctl
ubiattach
ubidetach
ubimkvol
ubirename
ubirmvol
ubirsvol
ubiupdatevol
udhcpc
udhcpc6
udhcpd
udpsvd
uevent
umount
unlink
unshare
users
vconfig
vlock
volname
w
wall
watchdog
which
who
whois
xxd
zcip[/spoiler]

You forgot wget and zip. Awk would be nice too
9th October 2017, 04:23 PM |#1521  
Senior Member
Thanks Meter: 779
 
More
Quote:
Originally Posted by _that

And which of those are actually useful under Android?

You really enjoy my long lists, do you?
ar can be used to unpack .debs
arping is a network utility
bash doesn't need an introduction
blkdiscard is for blanking flash
chrt is for controlling the real-time scheduler
cksum is a CRC32 checksum utility
du is for disk usage
ether-wake is for wake-on-lan
I only went to the letter e, but f-z has plenty of useful stuff too.
Post Reply Subscribe to Thread

Tags
automation, batch, flashable zip, script, tool

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes