[GUIDE] How get rid of Kaspersky and unlock your phone - Android Q&A, Help & Troubleshooting

This guide will help you to get rid of Kaspersky and unlock your locked mobile phone in case you don’t remember your pin/unlock code. It describes how I've done this when forgotten unlock code. Everything wrote below is based on online search and experiments with my phone. You just need basic computer knowledge and follow steps below. It works great on my Samsung Galaxy S3 Mini (GT-I8190N) with Android 4.1.2 onboard. Good luck.
IMPORTANT !!!​Search online how rooting may affect your mobile phone warranty and do not continue if warranty is more important for you then your data. Phone can be unrooted as well, search online…
Using this method WILL NOT delete any other of your data, apps, contacts, SMS, etc.
Getting root access
Steps listed below are based on this website (sorry, can't post links, please send me PM if you need them). There are also links to necessary software but my advice is to search online for latest version. You need SD Card to install software and for system backup (more GB card has more backups you can make).
Software needed
1. Download Samsung USB Drivers and install them on your computer
2. Download Android SDK and unpack to your hard drive
3. Download ClockworkMod ROM Manager
4. Download ODIN and unpack to your hard drive
5. Download SuperSu
Getting root access (it is more convenient to open phone for better access to battery)
6. Pull battery out and refit (or switch phone off)
7. Press and hold Volume Down + Home button + Power button for few seconds to enter software download mode
8. Press Volume Up button when you see warning message screen to continue
9. Connect USB cable to your phone and computer
10. Unzip (if necessary) ClockworkMod ROM Manager to have .md5 file
11. Run ODIN. Make sure Auto Reboot and F. Reset Time options are ticked. ODIN should show the message confirming connection to device (bottom left) and COM port ID (top left) if not repeat steps 6-9
12. Press PDA button and browse to unzipped .md5 file and then press Start button
13. Phone should reboot after software installation is complete
14. Copy SuperSu .zip file to SD Card, pull battery out and enter card into the phone. Refit battery
15. Press and hold Volume Up + Home button + Power button for few seconds to enter ROM Manager (ClockworkMod Recovery)
16. Select install zip from sdcard ==> choose zip from external sdcard ==> browse to SuperSu zip file and confirm installation when prompted
Backup and software modification (based on this website, sorry can't post links, please send me PM if you need them)
17. Repeat step 15 if needed to run ROM Manager than choose backup and restore ==> backup to external sdcard and wait till process is finished (this is copy of all your existing software, data, SMS, etc.)
18. Choose mounts and storage option then select mount /data (if you need go back option is always at the bottom of menu)
19. Press Win+R or Start-->Run… and type in cmd to run console
20. Browse to adb.exe file (it is located in SDK folder ex. C:\adt-bundle-windows-…..\sdk\platform-tools\) using cd folder name command ex. cd platform-tool
21. Type in adb shell and press ENTER
22. Navigate to /data/app folder using cd /data/app command
23. List files using ls –a –p command (press ENTER after each command used in console) and find kms file (I have com.kms.free-1.apk file)
24. Delete kms file using rm com.kms.free-1.apk command
25. Navigate to /data/data folder using cd /data/data command
26. Repeat step 23
27. Delete kms folder using rm –r com.kms.free command (make sure –r parameter is entered in command)
28. Navigate to /data/dalvik-cache folder using cd /data/dalvik-cache command
29. List files using ls –a –p command and find kms file (I have [email protected]@[email protected] file)
30. Delete kms class file using rm [email protected]@[email protected] command
31. Navigate to /data/system folder using cd /data/system command
32. List files using ls –a –p command and find locksettings.db files
33. Delete locksettings files using rm locksettings.* command
34. List files using ls –a –p command and find packages.list and packages.xml files
35. Run new console window (step 19) and navigate to adb.exe file (step 20)
36. Type in adb pull /data/system/packages.list and press ENTER (file will be copied form your phone to PC's hard drive into …\platform-tools\ folder, always where adb.exe file is located)
37. Type in adb pull /data/system/packages.xml and press ENTER (file will be copied to same folder as in step 36)
38. Open folder with packages files and edit them using any of text file editor (Notepad, TextPad, etc.)
39. Inside packages.list file search for kms and delete each row containing it. Save file when done
40. In packages.xml file search for kms and delete each row containing it. IMPORTANT!!! In this file you will find sections starting with <package> tag and ending with </package>. One section includes kms. Select and delete entire kms section including corresponding <package>…</package> tags. Save file when done
41. Switch to second windows console opened in step 35 and send files from PC into phone using adb push packages.xml /data/system and adb push packages.list /data/system commands
42. Press reboot system now in your ROM Manager or pull out and refit battery to switch phone off and then switch it on
Enjoy and NEVER GIVE UP!!!
If you have any questions please post them and I'll try to help as much as I can.

Related

ADB remount - permission denied

OK - small issue here.
It seems that you cant remount the system using the commandshell.
While you can do "su" to get super user permission when you are in the "adb shell" they get lost after closing the session and trying to mount system using the "adb remount" command.
Anyone else with the same problem?
as Bin4ry said:
Yes it's normal.
The ro.secure is set in default.prop which is part of kernel.img (boot.img) so we need to change the ramdisk for that! I only modded the system.img -> so no unsecure shell.
Edit this has been fixed by [email protected]
GScript Insecure ADB Install:
Link: Click here to download
Instructions:
1) if you already use gscript skip to step 3
2) install gscript from market, create a folder on sdcard called gscript
3) extract files from archive to gscript folder on sdcard
4) load gscript press menu, select add script, then select load script
5) Select "install modaco insecure adb.sh"
6) MAKE SURE SU is ticked, then run script
7) Enjoy adb remount
8) THANK PAUL AT MODACO
WARNING: AS PAUL HAS ADVISED THIS MAY BRICK YOUR DEVICE... Maybe.. Although I would think flashing a system.img from fastboot would repair.
WARNING: RECOMMENDED ONLY FOR UNLOCKED BOOTLOADER

[How To] How To Install a Boot Animation (Rooted AND Non-Rooted)

This is mainly for the users of my animations who were asking! - Have fun guys!
If you are rooted:
1. Download a root explorer app (ES File Explorer is suggested and free)
2. Enable root directory (in ES File Explorer hit menu, go to settings, and check "Up to Root", then go farther down and check "Root Explorer". Accept any Superuser requests.
3. Go back to your explorer and navigate to where you downloaded the "bootanimation.zip" file. Copy (or cut) it.
4. Navigate as far up as you can into your root directory, and then to /data/local/
5. Paste your "bootanimation.zip" file into /data/local/ (it MUST be named bootanimation.zip)
6. Reboot and enjoy!
Alternatively, you can put it in /system/media, HOWEVER, make sure you back up your stock bootanimation.zip (rename it to bootanimation.zip.bak or move it to your sdcard somewhere) in case something goes wrong.
If you are not rooted (or rooted, this method works with both)
**PC only! I'm not sure how to set the Max OSX terminal to accept "adb" commands by default!**
Setup:
1. Download the newest Android SDK
2. Click the start menu, right click "Computer", and click "Properties"
3. Click "Advanced System Settings" on the left (On Win7)
4. In the advanced tab, click "Environment Variables"
5. In the system variables window, find "Path", select it and click "edit"
6. At the end of the bottom line, paste:
For 64-bit users:
Code:
;C:\Program Files (x86)\Android\android-sdk\platform-tools
For 32-bit users:
Code:
;C:\Program Files\Android\android-sdk\platform-tools
7. Click OK.
Process:
1. Plug in your device using a USB cable and enable USB Debugging (in the settings menu under development on your device)
2. Click the start menu, and either search for "cmd" or click run, and type "cmd.exe"
3. Navigate to the folder that you downloaded the bootanimation.zip file to using the following commands:
Code:
dir - lists all files in the directory stated
cd - changes directory to the given path. If "cd ..", it will navigate one folder backwards.
4. Use the following commands (your file must be named bootanimation.zip)
Code:
adb pull /data/local/bootanimation.zip C:\
adb push bootanimation.zip /data/local
NOTE: Alternatively for part 2 you can type "adb push ", open windows explorer, and drag the file infront of the command which will give you the path without having to type it in or navigate to it.
5. Be patient, when it is done it will say something like "X kb/s (X bytes) in X seconds"
6. You can test to see if you did it correctly by rebooting manually or entering
Code:
adb reboot
7. If you no longer want a custom bootanimation, just enter
Code:
adb pull /data/local/bootanimation.zip C:\
Remember to look in your main HDD directory and delete the bootanimation.zip file if it in fact did show up there for some reason.
Note: if it STILL does not revert to the stock boot animation after doing this step, type
Code:
adb shell
cd /data/local
rm bootanimation.zip
**If you have adb problems or questions, I'm not the one to ask, Google is
Thank you for thanking me!
I was completely unaware you could change your boot animation unrooted, thanks
Sent from my Transformer Prime TF201 using Tapatalk 2 Beta-5
Thanks for this.
I thought it could not be done without a un-rooted Prime.
Thanks for this! Wasn't planning on rooting my Prime just yet and it's great that I can change the boot animation!
If you do copy a bootanimation.zip to the data/local directory do you have to do anything to the Original bootanimation.zip in the system/media Directory?
Sent from my Transformer Prime TF201 using Tapatalk
RonH54 said:
If you do copy a bootanimation.zip to the data/local directory do you have to do anything to the Original bootanimation.zip in the system/media Directory?
Sent from my Transformer Prime TF201 using Tapatalk
Click to expand...
Click to collapse
Nope! It stays there safe and sound and will start playing again as soon as you remove the one from /data/local!
Nolam20 said:
Nope! It stays there safe and sound and will start playing again as soon as you remove the one from /data/local!
Click to expand...
Click to collapse
Thanks. I had always just renamed my bootanimation.zip file and copied new one to the system/media directory but with these Bigger File size bootanimation.zip I was getting error that there not enough room to copy some of these bootanimation.zip files to the system/media directory.
Thanks
lovit
Awesome Workaround, but I have a little problem
I'm trying to get this working, but when I type in the commands in cmd, it says the adb is not recognized as a command. Help?
theManchur said:
I'm trying to get this working, but when I type in the commands in cmd, it says the adb is not recognized as a command. Help?
Click to expand...
Click to collapse
Make sure you've correctly done steps 3-7 of setup, otherwise cmd.exe will not know what to do with adb commands.
i always put my bootanimations in system/media and make sure your permissions are set like this
Uploaded with ImageShack.us
blaxican25 said:
i always put my bootanimations in system/media and make sure your permissions are set like this
Uploaded with ImageShack.us
Click to expand...
Click to collapse
His problem appears to be something different.
Can't get past the CMD command section. more detail help for us no bodies
Nolam20 said:
This is mainly for the users of my animations who were asking! - Have fun guys!
If you are rooted:
1. Download a root explorer app (ES File Explorer is suggested and free)
2. Enable root directory (in ES File Explorer hit menu, go to settings, and check "Up to Root", then go farther down and check "Root Explorer". Accept any Superuser requests.
3. Go back to your explorer and navigate to where you downloaded the "bootanimation.zip" file. Copy (or cut) it.
4. Navigate as far up as you can into your root directory, and then to /data/local/
5. Paste your "bootanimation.zip" file into /data/local/ (it MUST be named bootanimation.zip)
6. Reboot and enjoy!
Alternatively, you can put it in /system/media, HOWEVER, make sure you back up your stock bootanimation.zip (rename it to bootanimation.zip.bak or move it to your sdcard somewhere) in case something goes wrong.
If you are not rooted (or rooted, this method works with both)
**PC only! I'm not sure how to set the Max OSX terminal to accept "adb" commands by default!**
Setup:
1. Download the newest Android SDK
2. Click the start menu, right click "Computer", and click "Properties"
3. Click "Advanced System Settings" on the left (On Win7)
4. In the advanced tab, click "Environment Variables"
5. In the system variables window, find "Path", select it and click "edit"
6. At the end of the bottom line, paste:
For 64-bit users:
Code:
;C:\Program Files (x86)\Android\android-sdk\platform-tools
For 32-bit users:
Code:
;C:\Program Files\Android\android-sdk\platform-tools
7. Click OK.
Process:
1. Plug in your device using a USB cable and enable USB Debugging (in the settings menu under development on your device)
2. Click the start menu, and either search for "cmd" or click run, and type "cmd.exe"
3. Navigate to the folder that you downloaded the bootanimation.zip file to using the following commands:
Code:
dir - lists all files in the directory stated
cd - changes directory to the given path. If "cd ..", it will navigate one folder backwards.
4. Use the following commands (your file must be named bootanimation.zip)
Code:
adb pull /data/local/bootanimation.zip C:\
adb push bootanimation.zip /data/local
NOTE: Alternatively for part 2 you can type "adb push ", open windows explorer, and drag the file infront of the command which will give you the path without having to type it in or navigate to it.
5. Be patient, when it is done it will say something like "X kb/s (X bytes) in X seconds"
6. You can test to see if you did it correctly by rebooting manually or entering
Code:
adb reboot
7. If you no longer want a custom bootanimation, just enter
Code:
adb pull /data/local/bootanimation.zip C:\
Remember to look in your main HDD directory and delete the bootanimation.zip file if it in fact did show up there for some reason.
Note: if it STILL does not revert to the stock boot animation after doing this step, type
Code:
adb shell
cd /data/local
rm bootanimation.zip
**If you have adb problems or questions, I'm not the one to ask, Google is
Thank you for thanking me!
Click to expand...
Click to collapse
riorancho said:
Can't get past the CMD command section. more detail help for us no bodies
Click to expand...
Click to collapse
What specifically are you having trouble with?
Section 7 and down. I am not that dos smart to understand what you substitute in the cmd screen and I don't even know if my zip file is correct. I had it on my desktop then in c: adk\tool folder but I can't get any further than completing line 6 set up. Compressed with no compression using winzip.
And I really don't know if my txt file is correct?? My image size is 960 x 540
Using a Razr Maxx. site won't let me download the win zip file
Nolam20 said:
What specifically are you having trouble with?
Click to expand...
Click to collapse
riorancho said:
Section 7 and down. I am not that dos smart to understand what you substitute in the cmd screen and I don't even know if my zip file is correct. I had it on my desktop then in c: adk\tool folder but I can't get any further than completing line 6 set up. Compressed with no compression using winzip.
And I really don't know if my txt file is correct?? My image size is 960 x 540
Using a Razr Maxx. site won't let me download the win zip file
Click to expand...
Click to collapse
I'm not really sure how exactly I can help you, I'd go over the guide a few more times and google your problem.
I need specific problems like errors or what you don't understand.
Also, I don't know the size for a Droid Razr, but you can probably find it via a quick search.
I get lost here
Process:
1. Plug in your device using a USB cable and enable USB Debugging (in the settings menu under development on your device) OK
2. Click the start menu, and either search for "cmd" or click run, and type "cmd.exe" OK
3. Navigate to the folder that you downloaded the bootanimation.zip file to using the following commands:
Code: LOST RIGHT HERE WITH THE PROPER COMMAND
dir - lists all files in the directory stated
cd - changes directory to the given path. If "cd ..", it will navigate one folder backwards.
what command do I put in in cmd at this point?
dir - lists all files in the directory stated
cd - changes directory to the given path. If "cd ..", it will navigate one folder backwards.
and then:
Use the following commands (your file must be named bootanimation.zip)
Code:
adb pull /data/local/bootanimation.zip C:\
adb push bootanimation.zip /data/local
what is this command above??
Where do I save my boot zip file to??
Nolam20 said:
I'm not really sure how exactly I can help you, I'd go over the guide a few more times and google your problem.
I need specific problems like errors or what you don't understand.
Also, I don't know the size for a Droid Razr, but you can probably find it via a quick search.
Click to expand...
Click to collapse
riorancho said:
I get lost here
Process:
1. Plug in your device using a USB cable and enable USB Debugging (in the settings menu under development on your device) OK
2. Click the start menu, and either search for "cmd" or click run, and type "cmd.exe" OK
3. Navigate to the folder that you downloaded the bootanimation.zip file to using the following commands:
Code: LOST RIGHT HERE WITH THE PROPER COMMAND
dir - lists all files in the directory stated
cd - changes directory to the given path. If "cd ..", it will navigate one folder backwards.
what command do I put in in cmd at this point?
dir - lists all files in the directory stated
cd - changes directory to the given path. If "cd ..", it will navigate one folder backwards.
and then:
Use the following commands (your file must be named bootanimation.zip)
Code:
adb pull /data/local/bootanimation.zip C:\
adb push bootanimation.zip /data/local
what is this command above??
Where do I save my boot zip file to??
Click to expand...
Click to collapse
Ok, so, for example, if your file is in user/Fred/Documents and named bootanimation.zip, then you need to type:
Code:
cd users
then
Code:
cd Fred
then
Code:
documents
then type
Code:
adb pull /data/local/bootanimation.zip
Then
Code:
adb push bootanimation.zip /data/local
part of the problem may be that I have a mac and use windows under parellas so the files are not the same
in c: Users\DT\Documents DOCUMENTS IS WHERE ZIP FILE IS LOCATED
get error message: "adb" is not reconized as an internal or external command operabtle program or batch file
Nolam20 said:
Ok, so, for example, if your file is in user/Fred/Documents and named bootanimation.zip, then you need to type:
Code:
cd users
then
Code:
cd Fred
then
Code:
documents
then type
Code:
adb pull /data/local/bootanimation.zip
Then
Code:
adb push bootanimation.zip /data/local
Click to expand...
Click to collapse
riorancho said:
part of the problem may be that I have a mac and use windows under parellas so the files are not the same
in c: Users\DT\Documents DOCUMENTS IS WHERE ZIP FILE IS LOCATED
get error message: "adb" is not reconized as an internal or external command operabtle program or batch file
Click to expand...
Click to collapse
Then you didn't follow steps 2-7 correctly.
2. Click the start menu, right click "Computer", and click "Properties"
3. Click "Advanced System Settings" on the left (On Win7)
4. In the advanced tab, click "Environment Variables"
5. In the system variables window, find "Path", select it and click "edit"
6. At the end of the bottom line, paste:
For 64-bit users:
Code:
;C:\Program Files (x86)\Android\android-sdk\platform-tools
For 32-bit users:
Code:
;C:\Program Files\Android\android-sdk\platform-tools
7. Click OK.
This guide is for windows, if you're having problems getting it to work on Mac or a virtual Windows machine, I'm sorry but I can't help you.

New Custom BootSound and Instructions

Credit's go to Eollie and ricspeed From AndroidCentral where I found the information below
The oroginal post can be seen here
http://forums.androidcentral.com/optimus-v-rooting-roms-hacks/114730-how-boot-sound.html
The bootanimation is the stock animation for the XT912
I have a XT910 so I put it in the folder for other XT910 users
I did a bit of chopping and splicing for this bootsound, hope you enjoy it
If you're like me and had no audio on boot here's the steps made noob proof from the post above
Make sure you're rooted
extract folder and place files on either internal or external sdcard, just make sure it's in the root folder (not within any folders)
Install RootBrowser
Grant SuperUser Permissions
go to location of files (sdcard or sdcard-ext)
menu > Multi-select
select bootanimation.zip and RazR-CusT-BooT.ogg
Copy
go to /system/media/
long press bootanimation.zip and select rename
rename it to bootanimation.zip.bak
paste
log press RazR-CusT-BooT.ogg and select copy
go to /system/media/audio/notifications/
paste (I also had a notifications2 folder, I pasted it there as well)
Go back to sdcard or sdcard-ext (wherever you saved the files)
long press init.local.rc
go to /system/etc/
rename init.local.rc to init.local.rc.bak
paste
make sure permissions are set to rw-rw-rw
(if not long press and edit permissions)
Go to /system/ and open build.prop
open with text editor
look for ro.config.play.bootsound=1
delete entire string
menu "save and exit"
reboot
There still shouldn't be any bootsound
Install Android Terminal Emulator
Grant Superuser permission
open android terminal emulator
type the following
su (enter)
cd /sdcard (if placed on internal sdcard) (enter)
cd /sdcard-ext (if placed on external sdcard) (enter)
sh bootsnd.sh (enter)
(ignore any errors)
reboot - you have sound now
Optional - I also included a ringtone that I made that I personally like
you can place it in /system/media/audio/ringtones/ to be able to select it natively
Download Link - http://bit.ly/XmIRzv
Just Audio
If anyone wants just the audio without all the other stuff here you go
Like I said, the boot audio timing is made to work with the stock XT912 bootanimation
RazR-CusT-BooT : http://bit.ly/Wc1DbK
Niggas In Paris Ringtone - http://bit.ly/U3lwmN

Blu Vivo 5 Multi-window view

You'll either need root or a custom recovery to do this, but as not everyone wants root.
1. Here's how you do it with TWRP, a USB cable, and a PC with ADB:
2. Root (easiest method)
Method 1
Boot your device into recovery
2. Mount your system by going to Mounts > Tick System
3. On your PC open a command line, somewhere like your desktop is useful
4. Type the following command:
HTML Code:
adb pull /system/build.prop
5. Open the build.prop file with your favourite editor, I recommend using Notepad++ on Windows
6. Find the "ro.build.type" line
7. Change the text after = to "userdebug" from "user"
8. Save the file in Notepad
9. Go back to the command line and enter the following command:
HTML Code:
adb push build.prop /system/
10. Now open a shell doing:
HTML Code:
adb shell
11. Now a adb shell will open, enter these commands:
HTML Code:
cd system
THEN
chmod 644 build.prop
12. Reboot the device as normal
13. When the device has booted, go to the developer options
14. Scroll down to the bottom of the "Drawing" category
15. Enable multi-window and have some fun!
METHOD 2 -Root
This is the easiest way
1. Go to google Play Store
2. Find BuildProp Editor by JRummy Apps and install
3. In the app, locate Ro.Build.type
4. Change "user" to "userdebug"
5. Then Reboot from the App (normal reboot)
6. Go to developer options, scroll down until you see enable multi window view
Good Luck
All credit to Quinny899
Can you provide a screenshot? I don't want to do anything that might possibly damage my device.
Can confirm that this works!
I have just tried it.

[GUIDE] Root SM-J500FN with Magisk

There is already guide how to root Galaxy J5 with SuperSU. In 2015 Chinese company CCMT bought SuperSU from Chainfire and the original code is no longer developed. In this tutorial you will learn how to root your device with topjohnwu's Magisk.
1. Install required software​1.1. SD Card​Make sure that external SD Card is inserted into your phone and has free space.
1.2. adb​Download platform tools: https://developer.android.com/studio/releases/platform-tools
Extract it somewhere on your hard disk, then:
1. Open terminal
2. Navigate to extracted platform tools, e.g. cd C:\platform-tools
3. Make sure that adb works by typing adb help
1.3. ODIN​There is no official download on Samsung site. There are many third-party websites with Odin download. I don't know which are legit and which may contain malware. It's up to you to find a trusted source and scan it on VirusTotal. Version 3.13.1 is to download from this thread:
Patched Odin 3.13.1
For those looking for a modified, modded, or patched odin that is a newer build than all the fake and renamed prince comsy 3.12.3 versions floating around. I patch recent Odin versions to offer similar functionality to the princecomsy; in that...
forum.xda-developers.com
For Linux there is a tool Heimdall (not tested) and JOdin created by community:
[Utility] Odin for Linux !!! (JOdin3 CASUAL)
I have finally found a working version of Odin for Linux! JOdin 3 Casual powered by Heimdall You need at least Java 8, if you don't have it already: To see the java version type: java -version Aptitude Package Manager: sudo add-apt-repository...
forum.xda-developers.com
1.4. TWRP Recovery​For J500FN download latest tar from: https://eu.dl.twrp.me/j5nlte/
For other devices find there: https://twrp.me/Devices/Samsung/
Read FAQ before use: https://twrp.me/FAQ/
1.5. Magisk + Magisk Manager​Download Magisk (.zip file) and Magisk Manager (.apk file) into external SD card.
Download file: https://github.com/topjohnwu/Magisk/releases
Installation manual: https://topjohnwu.github.io/Magisk/install.html
1.6. SmartSwitch for backup​Download for Windows: https://www.samsung.com/us/support/owners/app/smart-switch
2. Make Backup (optional, recommended)​On Windows:
1. Disconnect phone from PC.
2. Install Smart Switch.
3. Connect phone when prompted.
4. Make backup (you will need 8 GB free space on disk).
On Linux:
You may try running SmartSwitch on Wine or make image of whole internal memory:
Code:
adb pull /dev/block/mmcblk0 mmcblk0.img
3. Enable USB debugging​In your phone:
1. Settings -> About device -> Software info -> Build number (tap it quickly 7 times)
2. Settings -> Developer options -> USB debugging (enable it)
3. Settings -> Developer options -> OEM unlock (enable it)
Note: If you disable OEM unlock, then you will brick your phone.
4. Install Magisk Manager​Navigate to external SD card on your phone and install Magisk Manager from .apk file.
5. Open Odin and enter download mode​1. Make sure that battery is fully charged. If no, charge your phone first.
2. Unplug phone from computer.
3. Open Odin program on your computer.
4. Turn off phone - hold power button (the one on right side) and tap Power off.
5. Press (starting in this sequence) and hold: Home + Volume down + Power.
6. Green screen should appear. Press Volume Up to dismiss warning.
7. Plug phone to computer.
8. In Odin you should see "Added!!!" in Log tab.
Note: If there is no "Added!!!" in Odin tab, then do not proceed and fix connection.
9. In Options tab turn off Auto Reboot
10. Click AP button and select previously downloaded .tar file.
11. Click Start
12. After you see green "Passed", unplug phone from PC and remove battery.
13. Insert battery again.
14. Press (in this sequence) and hold: Home + Volume up + Power
15. Now KNOX is over (0x1)
16. You should see TWRP. Allow modifying system partition by moving strap right.
17. Tap Install and find .zip file on your external SD card. Note that if you fail to install MagiskSU now, then during reboot original Samsung's recovery will be restored and you will need to flash TWRP again, starting from point 5.1.
18. Now you may plug phone to PC.
6. Install Magisk Manager​1. Boot your phone to system.
2. Run Magisk Manager and check if your phone is rooted.
3. Check if you may access root from shell:
Code:
adb shell su root ls -al /data
4. Enable screen on your phone and gain root access to shell.
5. In terminal you should see /data directory listing.
7. We're done - what next?​Now you have great power and great responsibility because you may easily destroy your system or even brick your phone.
Q: My bank app is not working or NFC doesn't work​A: Magisk Manager allows to trick SafetyNet feature and hide the fact that your phone is rooted. If this doesn't help, you will need to repackage Magisk. That is also available from official Magisk Manager app.
Q: Why there is less and less free space after upgrading system apps?​A: Look at mount points with disk usage by typing in adb
Code:
adb shell
su
df
You will get long output. I cutted less important lines and included the most important ones:
Code:
[email protected]:/ # df
Filesystem Size Used Free Blksize
/dev 681.7M 144.0K 681.5M 4.0K
/system 2.0G 1.4G 620.8M 4.0K
/data 4.7G 3.5G 1.2G 4.0K
/efs 9.8M 332.0K 9.4M 4.0K
/cache 192.8M 3.7M 189.2M 4.0K
/persist 3.9M 104.0K 3.8M 4.0K
/firmware 64.0M 11.5M 52.5M 16.0K
/mnt/media_rw/0000-0001 14.8G 11.2G 3.6G 32.0K
Notice that in above output /system is only 1.4 GB used because I removed many bloatware.
Answering the question, when you update system app, the original .apk remains on /system partition and the updated one is installed into /data partition. You will also notice that if you downgrade to original version in Application manager, then you free up space.
Q: Can I move updated app to /system?​A: Yes, you may make any application a system app using Link2SD from Google Play. However, app will be reinstalled again and you will lose all settings, user data, etc.
Note: if you update app, it will be installed again in /data
Q: How to move app to /system without losing data?​A: You may move app to /system and make symbolic link in /data:
Code:
su
mount -o rw,remount /system
mkdir /system/data-apps
mv /data/app/pl.blinkee.mobile-1 /system/data-apps
ln -s /system/data-apps/pl.blinkee.mobile-1 /system/app/pl.blinkee.mobile-1
Note: you must remount /system partition to read-write as in above example.
Note: you cannot make hard link between partitions so if you update app, it will override link in /data
Note: I will experiment with a cron job that pushes updated apps back to /system
Q: How to repartition internal memory?​A: You can't from adb. The only way is Odin and modifying PIT via zip file. Try for your own responsibility: https://github.com/Lanchon/REPIT
Q: How to enable adoptable storage?​A: Adoptable storage allows you to extend internal memory with external SD card. It's not possible without applying a patch. This will slightly decrease peformance. Refer to this thread for more details:
Root and fix of Samsung Galaxy J5 SM-J500FN with Optional Adaptable Storage Enabler
I ran into a few issues when rooting my J5 for the first time, but I found a working solution and wanted to share it. I'm not sure if this is the right place - feel free to move the thread or repost as you wish. I just find it important to post...
forum.xda-developers.com
Q: How to move app to external SD card?​A: You may move apps to external SD card in Settings in Application Manager or in Link2SD. But after you update app, it will be installed in internal memory and you can't change this behavior in official ROM. Paid Link2SD version also moves and links data and dex files.

Categories

Resources