Root Android 6 Without Pc

0 views
Skip to first unread message

Leroy Turcios

unread,
Aug 5, 2024, 10:44:33 AM8/5/24
to bissembsipo
Asalready written in the other topic: The error has nothing to do with being root or not and it is not specific to android. Neither is the 8192 number of much significance, that just seems to be the default on many systems.

Lately I've been playing around with .sh scripting in Android. At first I used BusyBox and it's integrated scripting utility, though I quickly realised that coding on the phone isn't the best, so I switched over to my desktop and started using ADB to push my scripts to my device. It all worked well for about two weeks, until recently the exact same scripts that used to work perfectly, tell me some : not found[0]: syntax error: '{ Error. I've copied the exact same code from my script and used BusyBox to create it for me, and that way it works just fine. So the code is fine.


After some digging, I think it's either because of permissions, because of encoding possibly, or also because of the location of the scripts. I've tried many different locations (because I want to be able to run the scripts without root), and ended up choosing /storage/emulated/0. If I understood correctly, this is a symlink to the internal storage, which is read/write-able without root. But maybe sometimes executable and sometimes not? I don't know.


UPDATE: Thanks to @IrfanLatif, I've managed to fix the : not found[0]: syntax error: '{ Error! I was using Visual Studio Code as my editor for the scripts, which was saving them with the End of Line Sequence CRLF, which Android doesn't like. For an easy fix, just change your Line Endings to LF, problem solved. Check the comments out for more info.


You cannot browse this directory from a file manager on the phone, so a workaround is required to put your scripts there. I have created sub-directories from the home Termux directory, so it looks like this:


However, from here, you can access all the standard directories with read and write permissions (as well as create your own, of course). Here is the output from the tree command run from the home directory on my phone, which explains it better than words:


From my scripts directory I have written scripts called get.sh and put.sh to help move files between my PC and the phone, as it's easier to script on a PC's big screen. I use a hidden directory in the Download directory called ".scripts" as the point to access files on both my cable-connected PC and from Termux. All I have to do is make them executable once they are in the scripts directory.


In practice, it varies from device to device - a very common way of an end-user obtaining root is to flash an insecure kernel. This can be a standalone kernel or a pre-rooted kernel + ROM combination. For certain devices, there are also available a number of 3rd party "one-click rooting" apps.


That being said, rooting might cause your device to be unusable (if not done correctly or something unexpected occurs), so read the instructions carefully before proceeding and ALWAYS backup your data to an external source like Dropbox or to your PC before you begin.


That very much depends on your device, as the rooting process often is device specific. Following up to the rooting tag wiki will give you some basic info, and also provide a link to our rooting index, which might even already include a link for your device.


Basically, rooting just means to push a binary (su) and a helper app (SuperUser/SuperUser or SuperSU) to the system partition. So as Compro01 wrote in his comment on your question, you're "customizing your ROM" somehow.


Kingoroot - you can download it to your phone and root with one touch or onto Windows and root via usb, it requires no flashing so is safe and takes up to two minutes. I used it on my Samsung Galaxy phone and it worked fine (may need to do a couple of tries). It even installs super user (a root access manager) app for you.


Mainstream phones are easier to root since their source is well adopted. Less familiar phones can be harder to root. Why? When you're rooting, you're adding one functionality to the phone which is initialized at boot; that is to run the SuperSU Daemon which utilizes the su binary in coordination with the Kernel to work in providing elevated permissions over Read Only File Systems like the /system. How is this achieved? The Kernel has to be patched to be able to do this since that's another third party services being added. If a phone has an unpatchable boot.img. All these things might require installing a third party boot.img which still support the current system to be able to root. Failure to find a way to develop a boot.img that will support the system will require you to install a full Custom ROM to be able to do this. Remember the kernel is in the boot.img together with something they call the ramdisk that's why you should talk about boot.img if you're taking about Kernel in Android. It is either possible to root without Custom ROM or Impossible depending on your device


I need to root my Samsung s10 with android 10, but without internet connection to the device. I can download all necessary files to my PC and connect the device to the PC (use ADB \ Odin), but the device itself doesn't have an internet connection.


You don't need an internet access to root a devices as far as i know... This might help.. -galaxy-s10-twrp-magisk-root-guide/

Don't modify any commands or steps given here.. if things aren't going as described DON'T PROCEED I myself have bricked 2 smartphone so i'd suggest you not to root it if you don't have enough knowledge about rooting!


Wireshark is a daily tool used at work and at home some times but as its being so useful I would love to install into my android latest device but I am not willing to root my device. So I am raising this query for possible ways of having installed into my android device without rooting my device?


I must say you guys have always amazed me with this Powerful tool of your. My scope of work as a Core Engineer has never being easy and fun without using wireshark. I salute your Technical Team and Administration team for many all impossible into possible.


You can't run Wireshark on an android device directly, root or no root. The trick to run Wireshark on an android device is by using Lil' Debi, which installs a Debian subsystem on the phone. So if you want Wireshark, you need root and Lil' Debi.


If you can live with packet capture and analyzing it in Wireshark after transfer, you might want to check out tPacketCapture, which uses the VPNService of Android to get access to the data, so there's no root required.


Frida is a great toolkit by @oleavr, used to build tools for dynamic instrumentation of apps in userspace.It is often used, like Substrate, Xposed and similar frameworks, during security reviews of mobile applications.


Typically rooted Android devices are used during such reviews. There are several reasons for this, but the most important is that the frida-server binary, which executes on the device, requires root privileges to attach to (ptrace) the target application, in order to inject the Frida gadget library into the memory space of the process.


However, testing on a rooted device is not the only way! I am not sure why this technique is not more widely publicized, but Frida can also be used on non-rooted Android devices and non-jailbroken iPhones, without running frida-server at all. In this post I will focus on Android, however things are pretty similar on iOS - frida can also be used on jailed Apple devices.


Inject a System.loadLibrary("frida-gadget") call into the bytecode of the app, ideally before any other bytecode executes or any native code is loaded. A suitable place is typically the static initializer of the entry point classes of the app, e.g. the main application Activity, found via the manifest.


If this process seems complicated, the good news is that it can be automated. As part of the appmon hooking framework (based on Frida) @dpnishant released apk_builder, a script automating most of the above steps!


As you might expect, the next step is connecting to the listening socket: Most frida tools work as expected although there are a few issues that can be handled better, e.g. connecting to the library after initialization, not just during loading.


is there sample since below tutorials not details, urgent to studying HFT and gonna install RStudio on android tablet and mobile smartphone, will also use but there has only 3GB workspace and do not have root authority.


This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.



If you have a query related to it or one of the replies, start a new topic and refer back with a link.


If you've bought a new Android phone, chances are it came pre-installed with some apps you don't care about. OEMs often partner with other brands and companies to pre-install their apps on their devices, and these apps can be anything ranging from streaming services to music players. If your phone is locked to a particular carrier, there would be some apps your carrier has also pre-installed on your device that you may never use.


These apps needlessly clutter your app drawer and may even send obtrusive notifications or sometimes even push ads on your device. What makes it even worse is that you can't easily uninstall this bloatware most of the time, which can lead to frustration.


If you are bothered by these pre-installed apps on your phone and want to get rid of them, or you want to enjoy a cleaner UI with fewer distractions or you want to get rid of annoying notifications, this guide will show you how to uninstall carrier/OEM bloatware from your device without root access. All you need to do are follow a few simple steps that involve just your phone and a computer.


This method works not just for third-party apps but also for some first-party apps. For example, if your phone comes with Samsung Calendar but you prefer using Google Calendar, you can uninstall Samsung's app and use Google Calendar as your default calendar app. The only things you'll need for this are your Android phone, a PC/Mac with ADB, and a USB cable to connect your phone to your computer.

3a8082e126
Reply all
Reply to author
Forward
0 new messages