View Full Version : NetHunter Disk Encryption
This howto was taken from https://github.com/offensive-security/kali-nethunter/issues/7#issuecomment-57045080 and was reposted for additional visibility.
Go to the Kali Launcher and hit "Shutdown Kali"
Enable USB Debugging on the device
adb shell
su
mv /data/local/userinit.sh /data/local/userinit_old.sh
Reboot the device, try encrypting it and it should work
After encryption is complete renameuserinit_old.sh back to userinit.sh
Reboot
Done! Remember to disable USB debugging when your finished!
vavkamil
2014-10-06, 20:53
Using Kali and google-nexus-tools:
root@localhost:~# nexus-adb shell
shell@hammerhead:/ $ su
root@hammerhead:/ # mv /data/local/userinit.sh /data/local/userinit_old.sh
root@hammerhead:/ # reboot
unknownpwn
2014-12-12, 20:54
Or just open a terminal after shutting Kali, and type
su -c mv /data/local/userinit.sh /data/local/userinit_old.sh
SOLIDQUBIT
2015-10-09, 08:09
mv /data/local/userinit.sh /data/local/userinit_old.sh
keeps telling me theres no such file or directory. I tried manually looking everywhere for userinit.sh file and no luck.. any ideas?
fix-
I just reformatted everything and reinstalled. followed the above steps with no problems.
pamamolf
2016-03-06, 19:41
try encrypting it
How?Is there any info related?
How?Is there any info related?
You may encrypt your device via the settings menu. I am using KitKat, and for me I access the option via:
Settings > Security > Encrypt phone
If you attempt this without the aforementioned fix, you will only succeed in rebooting the phone, but it will not be encrypted.
BookerScacy
2018-01-28, 21:16
Hi all,
Now NetBSD supports full disk encryption, but I dont understand the sparse instructions of the installation menu. Any help to set this up for / and swap?
tbma9karma
2020-03-29, 15:39
My solution of this problem
go to app in your phone: supersu > settings > unroot
reboot the phone
configuration > security > encrypt
encrypt in progrees > .....%%%%% done
poweroff
go to the recovery mode >>> poweroff >>>( volume down + power ) > recovery
twrp > install supersu ((((((((((( if you delete this apk > redownload it on your phone before this step )
or ( if you have linux system ) : go to settings >> developer options >> turn on USB debugging >> put usb cabel into your computer
$ git clone https://guthub.com/0xFireball/root/_avd
$ cd root_avd
$ adb install SuperSU/common/Superuser.apk )))))))))))) then go to the recovery mode >>> poweroff >>>( volume down + power ) > recovery
twrp > install supersu
install
now you encrypted your phone and have root permissions.
Done.
tbma9karma
2020-03-30, 11:05
My solution of this problem
go to app in your phone: supersu > settings > unroot
reboot the phone
configuration > security > encrypt
encrypt in progrees > .....%%%%% done
poweroff
go to the recovery mode >>> poweroff >>>( volume down + power ) > recovery
twrp > install supersu ((((((((((( if you delete this apk > redownload it on your phone before this step )
or ( if you have linux system ) : go to settings >> developer options >> turn on USB debugging >> put usb cabel into your computer
$ git clone https://guthub.com/0xFireball/root/_avd
$ cd root_avd
$ adb install SuperSU/common/Superuser.apk )))))))))))) then go to the recovery mode >>> poweroff >>>( volume down + power ) > recovery
twrp > install supersu
install
now you encrypted your phone and have root permissions.
Done.
$ git clone https://guthub.com/0xFireball/root/_avd
https://github.com/0xFireball/root_avd ;)
Bearkane8
2020-11-21, 01:28
I don't know much about it. But I would like to get some more details in order to educate myself. Thank you so much!