yashsingh1/xdaforums huggingface dataset:
[General Questions and Answers] SwedishForenger:
It's because you are not fully rooted, I assume you only have Magisk root, instead of SuperSU.
[General Questions and Answers] den_save:
you're right. anyway, everything worked after using ro2rw as a way to set the /system folder to r/w mode. thanks!
[General Questions and Answers] SwedishForenger:
You are welcome...

Make sure to pay it forward :)

XDA works well because we all help each other and share our solutions and ideas.
[General Questions and Answers] DiamondJohn:
I guess the first iteration f this question is where is the best palce to post it Its not "Android" specific, its Network specific.

I am building a shell script that builds firewall rules. One of the requirements is converting an IP/CIDR tp a networ range.

For example (and one that I am getting incorrect 👺) is 210.105.47.255/12.

Using the web site https://mxtoolbox.com/SubnetCalculator.aspx it comes to the range

210.96.0.0 - 210.111.255.255

However, I come to 210.96.0.0-210.105.255.255

ARRRGGGGgghh!

I pump out a bunch of debug during my calcs, to hopefully give me a clue, including the bit masks, but I dont see where I am going wrong.

ENTER calcrange - IP_CIDR=210.105.47.255/12
subNetMask=240 CIDR=12 index=2 mask_ip=240
INDEX=2

IP1=210 IP2=105 IP3=47 IP4=255

SUBNETMASK=255.[240=128,64,32,16].0.0

LEFT_BYTE_MASK=240 RIGHT_BYTE_MASK=31
11110000
00011111
============================================================
S1=210 S2=96 S3=0 S4=0
E1=210 E2=105 E3=255 E4=255
e1=11010010 e2=01101001 e3=11111111 e4=11111111

ANSWER: 210.96.0.0-210.105.255.255

Im getting the START of the range correct, but the end (second IP byte in 201.105.47.155/12) Incorrect. it should be 111 not 105. For the start, I *think* I do a bitwise mask between 105 and 240 where I turn on the bits that have the BYTE value of the IP (ie 105) AND the mask turned on (ie 240)

Does someone (anyone) see the an obvious flaw in my calc? or is there a better place for this question?
[General Questions and Answers] SwedishForenger:
Below is a simple shell script that uses iptables to create firewall rules for the specified IP range:

#!/bin/bash

# Define IP range

IP_RANGE_1="210.105.47.255/12"

IP_RANGE_2="210.96.0.0/210.111.255.255"

# Create firewall rules

iptables -A INPUT -s $IP_RANGE_1 -j ACCEPT

iptables -A INPUT -s $IP_RANGE_2 -j ACCEPT

iptables -A INPUT -j DROP

# Save the rules

service iptables save

service iptables restart

Save the above script in a file, for example, firewall_setup.sh. Make the script executable by running the following command: chmod +x firewall_setup.sh

hen, you can execute the script using: ./firewall_setup.sh

-----

Another approach is to use the ufw (Uncomplicated Firewall) utility, which provides a simpler interface for managing iptables. Here's a script using ufw:

#!/bin/bash

# Define IP range

IP_RANGE_1="210.105.47.255/12"

IP_RANGE_2="210.96.0.0/210.111.255.255"

# Enable ufw

ufw --force enable

# Allow incoming traffic from specified IP ranges

ufw allow from $IP_RANGE_1

ufw allow from $IP_RANGE_2

# Deny all other incoming traffic

ufw default deny incoming

echo "Firewall rules for $IP_RANGE_1 and $IP_RANGE_2 have been applied using ufw."

------------

Another way to configure firewall rules is using firewalld, a dynamic firewall management tool. Here's a script that uses firewalld:

#!/bin/bash

# Define IP range

IP_RANGE_1="210.105.47.255/12"

IP_RANGE_2="210.96.0.0/210.111.255.255"

# Ensure firewalld is running

systemctl start firewalld

# Add zones for the specified IP ranges

firewall-cmd --permanent --new-zone=iprange1

firewall-cmd --permanent --new-zone=iprange2

# Add IP ranges to the zones

firewall-cmd --permanent --zone=iprange1 --add-source=$IP_RANGE_1

firewall-cmd --permanent --zone=iprange2 --add-source=$IP_RANGE_2

# Set the default zone to drop

firewall-cmd --permanent --set-default-zone=drop

# Reload firewalld to apply changes

firewall-cmd --reload

echo "Firewall rules for $IP_RANGE_1 and $IP_RANGE_2 have been applied using firewalld."

Hope this helps ...

.
[General Questions and Answers] SwedishForenger:
https://tweakdroid.com/custom-rom/samsung-galaxy-m10-sm-m105g-m10lte/
[General Questions and Answers] SwedishForenger:
I see on different parts of the forum, people ask about how to make their /system folders RW- for editing. Now is your time to shine ( :

If you don't mind --

Could you kindly make a simple guide on using ro2rw to make their /system folder writable for them. I will share the link to your guide when I find these questions in the future.

sharing is caring my friend ...

.
[General Questions and Answers] Ah9m7ed:
There are no Roms on the website, is it possible to install the gsi roms on top of stock firmware?
[General Questions and Answers] smohroot:
I'm not sure if it works on all Android ROMs, but give it a try

Sent from 22101320G using ReLabs
[General Questions and Answers] den_save:
sure thing! the only problem is, this is a third party software, and I have absolutely no idea what does this thing actually do to achieve r/w mode. it may contain malware, so it should be checked before using. you can check it here: https://sourceforge.net/projects/multi-function-patch/files/RO2RW/

I used v3.7.2.1

if the code doesn't seem to contain anything suspicious, I can start
[General Questions and Answers] DiamondJohn:
Thanks, but I dont think it does. for my specific case.

I have to create a text file format (its for use in a windows firewall, Peerblock, of the format above; ie specifically a start and end IP. Not directly create the rules into the system. And I think your letting the system do the hard work of conversion to a range. I need to do the range calc in my script, AND I am limited to busybox functionality. Thats why I showed my calcs.

Loooong story as to why.
[General Questions and Answers] SwedishForenger:
It seems find to me, gone through the code. it's just a simple code half automated simplified for users that are not programmers ore advanced users.

Please continue with your guide.

.
[General Questions and Answers] SwedishForenger:
Ok. You can create script that generates PeerBlock rules for a given IP/CIDR and uses BusyBox functionality, you can use the following script. This script assumes that you have the busybox applet available on your system:

bash

#!/bin/sh

# Function to convert IP/CIDR to network range

ip_cidr_to_range() {

local cidr="$1"

# Extract IP address and CIDR prefix length

local ip=$(echo "$cidr" | cut -d '/' -f 1)

local prefix=$(echo "$cidr" | cut -d '/' -f 2)

# Calculate network range

local netmask=$((2**(32 - prefix) - 1))

local network=$(busybox ipcalc -n -b "$ip/$prefix" | grep Network | cut -d '-' -f 2)

local range_start=$(busybox ipcalc -n -b "$ip/$prefix" | grep Network | cut -d '-' -f 1)

local range_end=$(busybox ipcalc -n -b "$ip/$prefix" | grep Broadcast | cut -d '-' -f 2)

echo "IP: $ip"

echo "CIDR: $cidr"

echo "Network Range: $range_start - $range_end"

}

# Function to create PeerBlock rule

create_peerblock_rule() {

local range_start="$1"

local range_end="$2"

echo "Rule: $range_start-$range_end"

}

# Example usage

ip_cidr_to_range "210.105.47.255/12"

# Uncomment the following line to create a PeerBlock rule

# create_peerblock_rule "$range_start" "$range_end"

This script uses BusyBox's ipcalc and echo functions to calculate the network range and create PeerBlock rules. It prints the IP address, CIDR, and network range to the console. You can uncomment the last line in the script to actually create the PeerBlock rule based on the calculated range.

Save the script to a file (e.g., generate_peerblock_rule.sh), make it executable (chmod +x generate_peerblock_rule.sh).

.
[General Questions and Answers] DiamondJohn:
The actual script did not work, HOWEVER on my initial testing, (I did not know about the *magic* of ipcalc), the STARTING address is

$ ipcalc -n "192.225.16.63/12"
NETWORK=192.224.0.0

NB: A random test case.

and the ending IP address is

$ ipcalc -b "210.105.47.255/12"
BROADCAST=210.111.255.255

Which is a dodle to parse,. That makes a COMPLETE MOKERY of the complexity of code I created. Man, I hope its that simple!!! (EDIT: its NOT but ok for most)

Now to set up a bulk testing rig.

As for your info, to test busybox, I use the following lines. Firstly I enter busybox by busybox sh -l; and any script should have busybox as the bang operator, not SH.

And then what you run into the shell is running busy box as first call, but you can still inadvertently call other components (on linux). One of my plans is to actually use a Win32 BusyBox (YES! a single exe!) on windows, so there are no other linux shell components. Remember, its busybox creating stuff for windows, so running IN windows, brings it into a single system. Since finding this exe, I dont think I will be creating crappy shell batch files in windows, and avoid learning this whole powershell.

Did I say THANK YOU!!

=============================================================================================

EDIT: SO the above works for 90+% of cases, but I did find at least one case where it failed.

Nope, my bad, something else went wrong. Give me a break, I am doing >4M lines....
[General Questions and Answers] ayyan448:
Can anyone help me with my smc9000 (china) after i flash twrp it takes a long time to flash through odin and fails. i want to install lineageos but first need twrp but i can't. I am 16 and a student btw. I have flashed my s5 and did the same process for twrp and flashed lineage os 18.1, it was perfectly fine and my s5 is running very smoothly. Idk why but my c9000 is having this problem.

Thanks very much in advance
[General Questions and Answers] nedal.adee:
أريد تحديث جهاز سامسونج غراند GT-19082

Mod translation: Samsung Grand GT-19082 update
[General Questions and Answers] smohroot:
ask in English or you won't get answers

Sent from 22101320G using ReLabs
[General Questions and Answers] adhesiveee:
i have a redmi 9c with pbrp installed i know its a old recovery im trying to install ubuntu touch which has a system.img which counts as gsi and fastbootd gives me a error can i install it in recovery?
[General Questions and Answers] gomavs123:
Hello, I have recently received a bag full of old android phones. From it, I was able to fish out about 7 or so phones ranging from orbic, LG, Samsung A series, etc that isn't shattered. IS there a blanket program I can run to re flash every one of them to see if anything works? Some of them are just bootlooping on the logo, some are locked, and some are not responsive (but want to see if possible). Thank you!
[General Questions and Answers] den_save:
Set your /system folder to r/w mode with RO2RW! Android 13, Magisk 2024 method

I've struggled for a lot of time to find this. I hope it helps you! WARNING: this is not my software! I don't know how to work with it and I will not be able to recover your phone if anything happens! USE AT YOUR OWN RISK! Requirements: A...

xdaforums.com
[General Questions and Answers] joeiy_sai:
Android 14 kg lock, is there a way to unlock the device or downgrade back to android 13? I tried downgrading with Odin but the kg lock seems to block it
[General Questions and Answers] SwedishForenger:
Reflash it With an earlier version of android.
[General Questions and Answers] SwedishForenger:
No, There is no "blanket program" for this purpose. Different manufacturers and models have different ways to flash Android on them, based on the phones hardware and chipsets.
[General Questions and Answers] joeiy_sai:
I tried with Odin, gets block everytime with a message "custom binary blocked due to remaining installment balance". Is there another program you recommend that I can bypass this? I got a little access with alliance shield but I can't access developer settings to activate USB debugging, been pressing build number 50 times and it won't activate.
[General Questions and Answers] SwedishForenger:
Have you tried this?:
[General Questions and Answers] joeiy_sai:
The program doesn't work, I just tried it.

I thought there'd be another programs to load firmwares other than Odin.

View attachment 6051499
[General Questions and Answers] theimpulson:
Thread Cleaned. Please remember to read and follow the XDA Forum Rules, specifically:

2.1 Language: XDA is a worldwide community. As a result, what may be OK to say in your part of the world, may not be OK elsewhere. Please don't direct profanity, sexually explicit language or other offensive content toward Members or their work. Conversely, while reading posts from other members, remember that the word you find offensive may not be offensive to the writer. Tolerance is a two-way street.

Regards,

theimpulson
[General Questions and Answers] SwedishForenger:
You can enable and disable debugging mode on your phone through ADB commands:

adb shell settings put global adb_enabled 0

adb shell settings put global adb_enabled 1

adb shell settings put global development_settings_enabled 0

adb shell settings put global development_settings_enabled 1
[General Questions and Answers] ajrobson:
Hi,

I found my old Kindle Fire HDX (3rd Generation) running Fire OS 4.5.5.3 and thought it might make a good little device to mount to a wall and use to control Spotify or my home automation setup.

However it's so old now most apps I try aren't supported, is there anything I can do with this device to root it to a newer version of Android? or should I just get rid of it?
[General Questions and Answers] SwedishForenger:
.

Well, you can update some of the apps by sideloading apps and add play store etc, to make it useful again. You can install Aurora app store, if you don't want google play store.

Multi-platform 1-Click bootloader unlock for *ANY* 3rd Gen HDX (with VirtualBox)

UPDATE 2022-03-05: Network Access Snafu During the last week or so, a server-side issue caused 1-Click to fail either silently or with a "1-Click needs network access!" message on startup. If you experienced the above, please try again...

xdaforums.com

.
[General Questions and Answers] ayyan448:
@swedishfoenger can you help me ?
[General Questions and Answers] SwedishForenger:
Hi.

Well, that depends. If you have used odin to flash TWRP and it fails, I recommend you to flash the TWRP in 'fastboot' instead. Download the recovery below and flash it.

adb reboot bootloader

fastboot oem unlock

fastboot flash recovery twrp-3.7.0_9-0-c9ltechn.img

fastboot reboot recovery

Please be advised...

To flash a phone through fastboot or other software ore updates, that does not come from the manufacturer, can damage or Harbrick your phone. To continue with these instructions, you also understand that the responsibility rests on you as the person carrying out these commands. You are only 16 and should ask an adult to help you with this. To follow the advice by XDA or members of this forum, are we not responsible if anything goes wrong.

.
[General Questions and Answers] Oswald Boelcke:
Aurora Store has also a thread on XDA, and development is assured by our RD and my esteemed team mate @theimpulson:

[App][5.0+] Aurora Store - Open Source Google Play client

Aurora Store Unofficial Google Play client Disclaimer : Using Aurora Store with your own Google account may cause your account to be blacklisted, use at your own risk. Aurora Store is an unofficial, FOSS client to Google Play with bare...

xdaforums.com
[General Questions and Answers] ajrobson:
Thanks, I already have play store on it but even with that there's not much I can do even things like the latest version of Chrome won't install I just get a message saying is unsupported on this device.
[General Questions and Answers] sir.forty.c:
Can anyone tell me how to enable otg support on non-rooted Unihertz jelly pro (8.1.0)? Please because I've read a lot of bogus answers online. I hoping you guys can help.
[General Questions and Answers] SubwayChamp:
Assuming that this TWRP is specifically for your device, it seems to me, in a quick view, that your file has double extension, img, and tar, compress it again, choosing from the list, tar extension.
[General Questions and Answers] SubwayChamp:
Probably no, as the system image is merged into the super partition, it may need of fastbootd, by the way, read this guide https://gist.github.com/sivinnguyen/a6f65c5af9198d40d396e11048512347, you may need first to boot to fastboot, and from there, you can boot to fastbootd, using fastboot reboot fastboot, or, from PBR, you also have that option.
[General Questions and Answers] DiamondJohn:
I dont really know what I am talking about, as all my phones have run custoim ROMs that support OTG. However, I use the file manager MiX, that I think includes explicit OTG support; sand has a good support network here on XDA. You will need to download and install the correct API version for your phone.Ask on the Q&A thread

[APP][2.2+] MiXplorer v6.x Released (fully-featured file manager)

[APP][2.2+] MiXplorer (full-featured file manager) Hello everyone! My name is Hootan. I work on XDA in my free time and this file explorer is my favorite Android project! MiXplorer mix of explorers (SD, FTP, Lan, Cloud and other storage...

xdaforums.com

MiXplorer: Q&A and FAQ (User Manual)

MiXplorer: Q&A and FAQ (User Manual) Table Of Contents: i. INTRODUCTION, GETTING MIXPLORER, & INSTALLATION (This post) ii. UI, NAVIGATION, VIEW CONFIGURATION, BOOKMARKS, TABS iii. WORKING WITH FILES & FOLDERS (Copy Move methods, Trash option)...

xdaforums.com
[General Questions and Answers] SwedishForenger:
Yes. Just make sure you flash the correct rom, 32bit GSI

adb reboot bootloader

fastboot reboot fastboot

fastboot erase system

fastboot delete-logical-partition product_a

fastboot --disable-verity --disable-verification flash system GSI.img

fastboot reboot bootloader

fastboot -w

fastboot reboot

.
[General Questions and Answers] SwedishForenger:
Just download the APK file and side-lode it.
[General Questions and Answers] joeiy_sai:
Tried this today, got nothing, kept saying no devices found, I even tried googling other commands to force adb but apparently I would need developer options for this.If I had gotten this to work I would've sideload the downgrade file, I'm not giving up, giving myself til Sunday to get this figured out 🙏🏽 any tips would be greatly appreciated.
[General Questions and Answers] 3dads:
Hi All,

So finally got around to getting WSA installed with GApps on my PC so now have proper Android running and now want to take on getting Android Auto working as well. Crux of it all is looking to run all this off a car-puter. So far all I've found is using a headunit emulator or the SDK to emulate a headunit.

Does anyone know of a more "naitive" way to do this? I stumbled upon a "Google Automotive App Host" but the way I understand the purpose of that app is developing apps for AA?

Sorry if I'm in the wrong thread, its a bit of a unique one 😆

Thanks
[General Questions and Answers] Ah9m7ed:
Thanks, but the phone unfortunately does not support fastboot, it only support Odin mode.
[General Questions and Answers] Droidriven:
Using OTG has 2 requirements.

1) the device must have the hardware to support OTG

2) the device must have the software to support OTG.

Devices that have the hardware support but do not have the software can install software to enable OTG functionality. Devices that do not have the hardware support can not use OTG whether they have or install the software to support OTG or not.
[General Questions and Answers] hasnata:
i cant find the oem unlocking button on dev options in sm-360h. please help.View attachment 6052558View attachment 6052558View attachment 6052559View attachment 6052560View attachment 6052561View attachment 6052562View attachment 6052563
[General Questions and Answers] ejrv:
It's already Unlocked, No need
[General Questions and Answers] hasnata:
trying to install twrp on sm-360h but adb shows this. tried diff. cables and usb

btw my pc doesnt make sound when connecting.

View attachment 6052590
[General Questions and Answers] mrrocketdog:
hello all , hope your world is doing good.

i would like to relock my sim to original carrier (att). i have an htc one M9.

scoured and scoured the www with nothing but articles to "unlock" a phone.

i would like the opposite.

if anyone could chyme in , any help greatly appreciated ,

dave
[General Questions and Answers] NewKindaNew:
Hi, I’m new here but got directed here by a helpful experienced member to seek help and advice about my situation.

Is there software for an old Sony e-reader (PRS-T1) because mine is slow as molasses!! I’m hoping that someone on here might be aware of a ROM available which can make it snappier?

I know it’s an ancient device but it works well so I don’t want to send it to landfill just yet if all it needs is a software update to make it more bearable to use regularly. Because even though it works, the lag is making it quite frustrating!

Thanks in advance ✌🏼
[General Questions and Answers] sir.forty.c:
Okay so I've recently read online that I can add command lines to the build.prop file to add otg feature to phone. Is this true or false?
[General Questions and Answers] sir.forty.c:
Only if I root the phone first I mean
[General Questions and Answers] Droidriven:
Yes, as long as your hardware and your kernel support OTG, editing build prop should work.
[General Questions and Answers] sir.forty.c:
Okay. Thank you for the guidance too. Gonna try to root this bad boy today🤞
[General Questions and Answers] sir.forty.c:
Okay so I'm running an unihertz jelly pro on an android 8.1.0 Oreo. I'm trying to root it using the mtk-easy-su method as I do not have access to a computer to root using adb commands. So I guess my question now would be: how do you suggest I root without computer/pc?
[General Questions and Answers] Droidriven:
Root without PC on 8.1 pretty much isn't going to happen.
[General Questions and Answers] sir.forty.c:
So I was gonna try the mediatek exploit that diplomatic outlined in this thread

Amazing Temp Root for MediaTek ARMv8 [2020-08-24]​

I meet the criteria (I currently have a mt6735 chipset and the device manufacturer didn't send the updated security patch) check out that thread and let me know what you think
[General Questions and Answers] Droidriven:
You asked about rooting without PC, that method requires PC.
[General Questions and Answers] Rob00n:
I have this weird problem with my Tecno Pova 4.

Every time I restart the phone, the SD card always read as corrupted. When I checked with in PC and in another phone, the files inside are not corrupted. Both cards were working normally, even.

I've tried runing chkdsk to repair the SD Cards, but the problem persists. I've already talked to the store where I bought the phone and they think it's a hardware issue. But when I use the OTG mode, it also display the OTG drive as corrupted.

Any help would be appreciated.
[General Questions and Answers] ejrv:
Is the USB Debugging mode On?
[General Questions and Answers] Vovan2k:
I found about couple options for extracting full APP, not tested without root yet

X-plore File Manager - Apps on Google Play

X-plore is dual-pane file manager with tree view, LAN/Root/Clouds and more.

play.google.com

MT Manager is another one that works even better.
[General Questions and Answers] mstrnemo:
I dont know about these
[General Questions and Answers] Droidriven:
Ok guys, my niece has a Blu M10L Pro tablet. I can't find a way to power the device off, when I long press the power button, it brings up Google Assistant instead of the power menu. When I hold the power button longer than that, it just reboots and boots back into system. I've looked through settings but I don't see anything jumping out at me that might be causing this behavior.
[General Questions and Answers] SubwayChamp:
Probably new Google platform tools don´t work with old devices, you must install, instead, this https://androidmtk.com/download-15-seconds-adb-installer.

Or, send your device to download mode, using hardware buttons, for old devices, is from your device off, pressing button volume down and power button, at the same time.
[General Questions and Answers] SubwayChamp:
Maybe I missed something, but, only for adding some lines to the build.prop, you don`t need root.