Xiaomi MIUI Official Forum

Moderator

My Brain... Trembles!!!

Rank: 7Rank: 7Rank: 7

Credits
22681
Device
Mi 5
MIUI Version
7.8.17
Online time
642 Hours
Send PM

Mi In-Ear HeadphonesXiaomi 6 LaunchMi BandMi KeyMi BoxAwesome!FlashholicMIUI 7MIUI 2015MIUI 8Fantastic!MIUI Devices ContestI Love MIUIMIUI 64 Million Forum MembersMi NoteMi 3MIUI Fan From PhilippinesThanksgiving DayMIUI 9MIUI HalloweenDiwali 300K Forum MembersMIUI Fan From IndonesiaMIUI 4th AnniversaryMIUI Fan From SingaporeHappy Singles' DayFan MIUI PhilippinesMIUI World TourMIUI 300 WeeksMIUI 6th AnniversaryMIUI Fan from TurkeyMIUI Lucky Friday1900K Forum Members3500K Forum MembersRooster Year of 2017Merry Christmas1 Million Forum Members1st Anniversary2014 ChristmasHappy Valentine's DayMIUI Fan from MalaysiaMIUI 100 Million UsersAlpaca Mi Bunny Gamer Mi BunnyI Love Mi BunnyMIUI ReviewMost Active MIUIerMIUI Android 4.4 KitKatMIUI FollowerForum Contest LoverMIUI FB FollowerMIUI Global Forum 2014Android GuruScroll Of WisdomHumor MasterInbox ZeroUpdates LoverDie-hard MIUI FanYouth PledgeStar Of Icons

[Tips & Tutorials] What the TECH?!!! #1 - Android File Permissions (and why should you care?)

[ Promote]
2675 25 |
15:02, Nov-26-2014 | From PC
|
|
Go to reply no.
This post was edited by iakwbos at 15:15, Nov-26-2014

Hi Guys! I've decided to do a series of threads discussing the techs behind our beloved Android Phones, so without further ado, this is WHAT THE TECH?!! Issue NO. 1

What the TECH template.jpg

Have you encountered some of these *gibberish*?
"set your permissions to chmod 755?"
"check if the file is executable?"
"set your permissions to rw-r-r?"


So what the TECH are these?

The Android Ecosystem is just Awesome. We all agree that countless forums like this one exist because we all want customization. MIUI was born 4 years ago because of that same mindset: User customization. We want more. That's why there's a plethora of Custom ROMs and App Ports and Xposed modules out there because of the openness of the Android Platform.

This is only possible because Android is using the open-source LINUX underneath. And still underneath it, is the grand-daddy of it all, UNIX.

LINUX? UNIX? What the TECH are you talking about?


unix.JPG


So wait? what the TECH is UNIX? Unix is an Operating System (OS) developed in the early 1970-1980.
Albeit it's age, it is where some of our modern OS'es are based upon like Linux, and even Apple's OSX and iOS.

What the TECH has UNIX have to do with the Android File System?

Since basically, Android is based from linux, and linux from UNIX, UNIX-based OSes, such as Android, files and folders stored in the physical drive and the system has a set of permissions associated with it which dictates who is allowed to do what with the file.

Let's break it into sections, shall we?:

In any unix-based OS, there are 3 types of people who can take control of files and folders inside the system:
OGO
O stands for Owner, G for Group, and O for Others.

Basically, YOU are the OWNER, and the users who are members of the file group is the GROUP, and those who are neither the owner or member of the group are under the OTHERS.

With those people in mind, there are 4 basic things they can do to a file or folder:
RWX-
R stands for Read, basically letting you read the file or folder, but not edit it.
W is for Write, which lets you write and delete files and folders.
X is for Execute, which lets you run the file if it's an executable script.
- is for Not Allowed. Preventing Access to any file or folder


Now, what the TECH is this: rw-r--r--?

permission gib.JPG

WHY THE TECH DO I HAVE TO BE AWARE OF THESE?

We're basically talking about customization here, am i right? Whether you are Making or flashing Custom Roms, or changing System fonts or icons, or even activating Xposed Modules in your device, it AWLAYS involves changing permissions inside the system.

For example, for you to be able to run a System App to your device, you have to push your APK to /system/app/ with rw-r-r permission which enable the device to run the app. Setting incorrect permissions can mess up your phone, bootloop it, and worse BRICK it.


So, How The TECH can I make use of this?

There are two ways:

1. Most Root file managers let you do this, given that your device is ROOTED. (The easier way)

Screenshot_2014-11-26-14-39-24.png

For your convenience, Here are some of those I personally use:

Rom Toolbox (lite and Pro)
Root Explorer
Cabinet Beta (where I took the screenshot above)
ES File Explorer
Amaze FIle Manager
and so much more...

2. Using Terminal Emulator in your phone, or ADB from your PC (For the more Advanced Users)

Pre-requisite:
Your phone is ROOTED
Terminal Emulator (for your phone only)
Minimal ADB & Fastboot (Download Here) for your PC

Some useful ADB guides  HERE (Credits to @DoxMAzz)

Why the TECH should you know about it?

Without proper knowledge of these permissions when modifying your Android Device, you can endanger bootlooping your phone (like putting system libs in system with wrong permission), and worse brick your phone.

Now You know what the TECH is Android/UNIX permissions all about.

~~~~~~~

Shameless Advertisement:
CHECK OUT WHAT THE TECH?!! ISSUE #2 SOON! Until then, stay awesome guys!




Favorite1 Share

Rated by 5 people   Experience Reason  

fredie271 + 1 Fantastic!
Inkorporated + 5 Fantastic!
Shuddhahnik + 2 Great!
ussmrg + 4 Great!
Iyengar + 8 Excellent

Experience +20  View Rating Log

Supreme Member

It has Begun

Rank: 7Rank: 7Rank: 7

Credits
32163
Device
Mi 5
MIUI Version
7.7.13
Online time
1069 Hours
Send PM

Mi KeyMi BoxMi Power BankMi In-Ear HeadphonesMi WiFi RouterMi BandMIUI 6I Love MIUIAwesome!Fantastic!FlashholicMIUI 2015MIUI 7Mi TVXiaomi Mi 4Mi PadMi 3Redmi 1SRedmiRedmi NoteRedmi 3Mi NoteRedmi Note 2Mi 4cMi 4iRedmi 22014 ChristmasThanksgiving DayFan Of MIUI BangladeshHappy Singles' DayFan Of  MIUI AzerbaijanDiwali MIUI 4th AnniversaryHappy DiwaliHappy Valentine's DayMIUI Halloween300K Forum Members600K Forum Members900K Forum MembersFan of MIUI Myanmar1 Million Forum MembersSingapore Birthday800K Forum Members700K Forum Members500K Forum MembersXiaomi 5th AnniversaryMalaysia AnniversaryMIUI 5th AnniversaryMIUI 100 Million UsersMIUI Fan from IndiaMIUI Fan From IndonesiaFan Of MIUI IndiaMIUI Fan From BrazilMIUI V5 Review1st AnniversaryFan Of MIUI Ex-Yu MIUI Fan from MalaysiaHilal Ramadan MIUI Fan From PhilippinesMIUI 50 Million UsersMIUI Fan From SingaporeMIUI Fan from TurkeyI Love Mi BunnySummer Mi BunnyAlpaca Mi Bunny Gamer Mi BunnyMost Active MIUIerMIUI Medals CollectorMi Bunny Game Master MIUI FollowerMIUI Android 4.4 KitKatMIUI Photography GuruAndroid GuruStar Of IconsMaster Of TechnologyDie-hard MIUI FanOTA FeedbackRingtone MasterRingtone Star Super ModeratorPioneer of MIUI English Forum MIUI Ice Bucket ChallengeForum Contest LoverMIUI G+ FollowerMIUI Twitter FollowerMIUI FB FollowerAndroid ElfMi TalentMIUI Global Forum 2014Mi Lover MedalScroll Of WisdomDebate MasterRingtone TalentUpdates LoverYouth PledgeRedmi Quiz MasterInbox ZeroHumor Master

15:14, Nov-26-2014 | From PC
|
techies love this

Comment

iakwbos haha, I bet they do!  15:15, Nov-26-2014
TRUE WARRIOR WILL NEVER GIVE UP!

Moderator

Rank: 7Rank: 7Rank: 7

Credits
37490
Device
Mi 4i
MIUI Version
V7.3.1.0.KHJMIDD
Online time
2638 Hours
Send PM

Mi In-Ear HeadphonesMi Band 2Mijia Story TellerMi BoxMi WiFi RouterMi BandMi HeadphonesMi HomeMi VRXiaomi 7th AnniversaryFantastic!MIUI 7Awesome!I Love MIUIMIUI 6MIUI 2015MIUI 2016FlashholicMi 1Xiaomi Mi 4Mi 4iRedmi4 Million Forum MembersMi PadMi 31st AnniversaryMIUI English Forum 20132014 ChristmasMIUI 20 Million Users100k Forum MembersFan Of MIUI Ex-Yu 90000 Forum MembersFan Of  MIUI AzerbaijanMIUI 30 Million UsersMIUI Fan From IndonesiaMIUI 100 Million UsersMIUI HalloweenMIUI 3rd Anniversary300K Forum MembersAtaturk MourningThanksgiving DayMIUI Fan From PhilippinesHappy Singles' DayFan Of MIUI India600K Forum MembersMIUI 4th Anniversary500K Forum MembersHappy Diwali1 Million Forum MembersMIUI Fan From SingaporeSuper Thursday2100K Forum MembersMIUI Lucky FridayDiwali 1 Million Forum App InstallsI Love 2016Fan Of MIUI BangladeshMIUI 50 Million Users800K Forum MembersMIUI Forum App700K Forum MembersRingolicious MedalMIUI Fan From BrazilXiaomi 5th AnniversarySuper SundaySuper SaturdayHappy Valentine's DaySuper MondayMIUI 5th Anniversary3500K Forum MembersI Love Mi BunnyAlpaca Mi Bunny Gamer Mi BunnySummer Mi BunnyMIUI Beta TeamMIUI ReviewMIUI Beta Team VIPStar Of IconsMIUI ExpertMIUI Android 4.4 KitKatMIUI Medals CollectorAndroid GuruStar Bug FinderMIUI Global Forum 2014MIUI G+ FollowerMi TalentMIUI Twitter FollowerMIUI FB FollowerAndroid ElfMIUI Translation ContributorDebate MasterMi Story TellerMIUI Ice Bucket ChallengeMIUI KingStar Of TechnologyMi Lover MedalForum Contest LoverYouth PledgeBest ArticleMr. DependableStar Of  MIUI Beta TeamSenior Beta TesterSuper ModeratorMIUI FollowerPioneer of MIUI English Forum OTA FeedbackMIUI Community VIPDie-hard MIUI FanUpdates Lover

15:27, Nov-26-2014 | From PC
|
Nice one... Let me know if you want to work along with me if you're interested to write articles.

Comment

iakwbos yeah, sure! definitely! i'd like that.  15:32, Nov-26-2014
Retired

MIUI Translation Team

Credits
669
Device
Mi 5 Pro
MIUI Version
7.7.20
Online time
143 Hours
Send PM

Mi WiFi RouterMIUI 6FlashholicRedmi 1SMi 3Fan Of MIUI India300K Forum MembersMIUI Beta TeamOTA FeedbackMIUI FollowerAndroid GuruPioneer of MIUI English Forum MIUI Global Forum 2014Die-hard MIUI Fan

16:34, Nov-26-2014 | Via mobile
|
can't wait for the next issue :)

Comment

iakwbos thanks for the excitement bro!  16:37, Nov-26-2014

Elite Member

Work for tomorrow

Rank: 6Rank: 6

Credits
16225
Device
Mi 3
MIUI Version
7.6.8
Online time
626 Hours
Send PM

Mi HeadphonesMi Band 2Xiaomi 6 LaunchMijia Story TellerMi Power Bank 10000MAH Magic CubeMi Selfie StickMi BoxMi HomeMi VRMi KeyUnlock MedalMi BandMi In-Ear HeadphonesMi Power BankMi WiFi RouterXiaomi 7th AnniversaryMIUI 7MarshmallowMIUI 6MIUI 2015I Love MIUIFlashholicMIUI 8MIUI Devices ContestAwesome!MIUI 2016Fantastic!Mi TVMi 4iRedmiMi PadRedmi Note 2Mi 4cMi 3Xiaomi Mi 4Redmi 2Redmi 1SMIUI 100 Million UsersHappy New YearMIUI Fan from Malaysia700K Forum MembersMIUI 7th Anniversary600K Forum MembersMIUI Fan From BrazilXiaomi 5th Anniversary500K Forum MembersHappy Singles' DayFan Of MIUI IndiaMIUI Fan From Indonesia1st AnniversaryDiwali MIUI Fan From SingaporeMIUI 50 Million UsersMIUI 4th AnniversarySingapore BirthdayHilal Ramadan MIUI Fan from India300K Forum MembersMIUI Fan From PhilippinesMIUI Fan from Turkey2014 ChristmasFan Of MIUI BangladeshFan Of  MIUI AzerbaijanThanksgiving Day800K Forum MembersHappy DiwaliMIUI HalloweenAtaturk MourningHappy Valentine's DayMIUI 5th AnniversaryPokemon Master Medal3500K Forum MembersSuper WednesdayI Love 20162100K Forum MembersMIUI World TourFan Of MIUI PolandFan Of MIUI UkraineFan Of MIUI ItalyRocket to FutureMIUI Happy MedalFan Of MIUI Russia3 Million Forum App InstallsSuper FridayMIUI Lucky FridayMIUI 2017Rooster Year of 2017MIUI Monthly TalkSurge S1Super Thursday1 Million Forum App InstallsSuper SundayMIUI Forum AppMIUI 6th AnniversaryOlympics Medal90000 Forum MembersMIUI Fan From NepalMIUI Font LoverMIUI 9900K Forum MembersMerry Christmas1 Million Forum MembersMIUI 300 WeeksPuzzle Master1500K Forum Members1800K Forum Members1700K Forum Members1900K Forum MembersMid-Autumn FestivalMiPopGamer Mi BunnySummer Mi BunnyAlpaca Mi Bunny I Love Mi BunnyMIUI ReviewMIUI Device TeamMIUI Beta TeamHumor MasterAndroid GuruMost Popular Forum UserTheme TalentMIUI KingMi Story TellerMIUI Medals CollectorMost Active MIUIerStar Of IconsInbox ZeroMi Lover MedalMIUI Twitter FollowerStar Of TechnologyAndroid ElfApp TalentDebate MasterScroll Of WisdomRingtone Star Mi TalentMIUI G+ FollowerTechnology GuruMIUI Global Forum 2014MIUI FB FollowerUpdates LoverMaster Of TechnologyOTA FeedbackDie-hard MIUI FanPioneer of MIUI English Forum Youth PledgeMi Bunny Game Master App TalentForum Contest LoverMIUI ExpertMIUI Android 4.4 KitKatMIUI Follower

19:47, Nov-26-2014 | From PC
|
great work bro ... very informatic
Love MiUi

Elite Member

Rank: 6Rank: 6

Credits
9366
Device
Mi 3
MIUI Version
7.6.8
Online time
320 Hours
Send PM

Mi KeyMi BandMi In-Ear HeadphonesMi BoxFantastic!MIUI 2016Awesome!MIUI 2015MIUI 6I Love MIUIFlashholicMi 3Mi TVRedmiRedmi 1SRedmi NoteFan Of MIUI IndiaThanksgiving DayMIUI Fan From Indonesia1st AnniversaryMIUI Fan From SingaporeMIUI Fan From PhilippinesMIUI Fan from IndiaMIUI 4th AnniversaryDiwali MIUI 50 Million UsersMIUI Fan from MalaysiaAtaturk MourningHappy DiwaliFan Of MIUI Ex-Yu Happy Singles' DayFan Of MIUI BangladeshFan Of  MIUI AzerbaijanMIUI Halloween2014 Christmas300K Forum MembersHappy Valentine's DayMIUI Fan from TurkeyAlpaca Mi Bunny I Love Mi BunnyMiPopGamer Mi BunnySummer Mi BunnyMIUI News TeamPioneer of MIUI English Forum Android ElfInbox ZeroYouth PledgeStar MIUI News Team MemberAndroid GuruUpdates LoverHumor MasterStar Of IconsMIUI FB FollowerForum Contest LoverMIUI FollowerDie-hard MIUI FanMIUI Global Forum 2014Redmi Quiz MasterMIUI Android 4.4 KitKatOTA FeedbackMi Bunny Game Master

03:29, Dec-02-2014 | From PC
|
Great writing!..and also i love the presentation style...you have really worked hard on it!...Thanks!

Comment

iakwbos Thanks for the support mate!  07:56, Dec-02-2014

Diamond Member

Rank: 5Rank: 5

Credits
1476
Device
Mi 3
MIUI Version
6.8.11
Online time
89 Hours
Send PM

Mi KeyMi BoxI Love MIUIMIUI 2015Awesome!MIUI 8MIUI 6Mi TVFan Of MIUI India300K Forum MembersHappy DiwaliHappy Singles' DayDiwali MIUI 4th AnniversaryThanksgiving DayI Love Mi BunnyMIUI Beta TeamDie-hard MIUI FanMi TalentAndroid GuruMost Active MIUIer

22:54, Dec-02-2014 | From PC
|
Love this series want more every week

Comment

iakwbos Thanks for the support!  23:51, Dec-02-2014
“The world wasn't made for us, we were made for the world.”

Elite Member

Rank: 6Rank: 6

Credits
13577
Device
Mi 4
MIUI Version
0
Online time
168 Hours
Send PM

Mi Power Bank 10000MAH Mi WiFiMi Power BankMi Power StripYi Action CameraMi Selfie StickMi KeyMagic CubeMi In-Ear HeadphonesMi Yi CameraMi Water PurifierMi VR HeadsetMi Band 2Mi HomeMi HeadphonesUnlock MedalMijia Story TellerYeelight Bedside LampMi  BunnyMi Air PurifierMi WiFi Router MiniMi BandMijia Mi Bunny RobotMijia Electric ScooterXiaomi 6 LaunchMi MIXMijia VR Play 2Mi Bluetooth SpeakerMi VRMi WiFi RouterXiaomi 7th AnniversaryMIUI 2015MIUI Devices ContestMIUI 8Fantastic!MIUI 6MIUI 7Awesome!FlashholicMIUI 2016MarshmallowI Love MIUIRedmi Note 2Mi PadMi 4cXiaomi Mi 44 Million Forum MembersMi TVRedmi NoteRedmi 2Redmi 1SMi 4iXiaomi 6th AnniversaryFan of MIUI Myanmar2014 ChristmasMIUI Fan from TurkeyMIUI Fan From Indonesia5 Million Forum Posts1300K Forum MembersMIUI Fan From Nepal1 Million Forum MembersUEFA EURO Medal300K Forum MembersFan Of MIUI GreeceMIUI Fan From VietnamFan Of MIUI PolandMIUI HalloweenHilal Ramadan Fan Of  MIUI Azerbaijan700K Forum MembersMIUI Fan From Brazil600K Forum MembersMIUI Fan from MalaysiaHappy Valentine's DayMIUI 100 Million Users500K Forum MembersMIUI 5th Anniversary800K Forum MembersMIUI 4th AnniversaryMIUI Fan From SingaporeMerry ChristmasHappy New YearDiwali Thanksgiving DayMIUI Fan from IndiaFan Of MIUI India900K Forum MembersMIUI Fan From PhilippinesPokemon Master MedalHappy Holi MedalSuper Saturday5 Million Forum App Installs1 Million Forum App InstallsMIUI 6th AnniversaryMIUI 2017MIUI Font LoverSuper SundayFan Of MIUI Australia10 Million Forum PostsI Love 2016Fan Of MIUI Ukraine3500K Forum MembersRooster Year of 2017MIUI Monthly Talk3 Million Forum MembersSuper TuesdaySurge S1Women's Day MedalFan Of MIUI FranceSuper WednesdayPuzzle MasterSuper MondayRocket to Future3 Million Forum App InstallsMIUI Drawing TalentFan Of MIUI BulgariaSuper ThursdayMIUI Marathon Medal2100K Forum Members1500K Forum MembersMIUI Forum AppMIUI Philippines Fan Meetup1400K Forum MembersFan Of MIUI RussiaMid-Autumn FestivalMi Live MedalOlympics MedalMalaysia AnniversaryMIUI 9MIUI 300 WeeksFan Of MIUI SpainHappy DiwaliFan Of MIUI ItalyMIUI Weekly PollFan Of MIUI BangladeshMIUI Happy Medal90000 Forum MembersMIUI World TourXiaomi 5th AnniversarySummer Mi BunnyI Love Mi BunnyMiPopAlpaca Mi Bunny Gamer Mi BunnyMIUI ReviewMIUI Global Forum 2014Die-hard MIUI FanMost Popular Forum UserMost Active MIUIerPioneer of MIUI English Forum Theme TalentForum Contest LoverAndroid ElfMIUI FollowerOTA FeedbackMIUI Twitter FollowerRedmi Quiz MasterMIUI FB FollowerWallpaper ExpertMIUI KingApp StarMi Lover MedalMr. DependableJuly 19 MyanmarMi Story TellerStar Of TechnologyMIUI Android 4.4 KitKatTechnology GuruAndroid GuruInbox ZeroUpdates LoverMi Bunny Game Master MIUI G+ FollowerMaster Of TechnologyScroll Of WisdomMIUI Medals CollectorYouth PledgeApp TalentMIUI ExpertMi TalentHumor MasterRingtone Star App TalentDebate Master

15:42, Dec-31-2014 | From PC
|
Thanks for sharing!

Platinum Member

Rank: 4

Credits
2258
Device
Mi 3
MIUI Version
V8.2.10.0.MCFMIDL
Online time
220 Hours
Send PM

Mi BandMi WiFi RouterMagic CubeXiaomi 7th AnniversaryAwesome!I Love MIUIMIUI 2015Fantastic!FlashholicMIUI 6Mi 3Mi NoteRedmi 1SMi Note ProMi PadXiaomi Mi 4Mi TVRedmi NoteRedmi 2Diwali MIUI 100 Million Users300K Forum MembersThanksgiving DayHappy Valentine's DayFan Of MIUI IndiaMIUI Fan from IndiaFan Of  MIUI Azerbaijan500K Forum MembersMIUI Fan From BrazilFan Of MIUI BangladeshHilal Ramadan 600K Forum MembersMIUI Fan from Malaysia700K Forum Members1 Million Forum MembersMIUI 5th AnniversaryXiaomi 5th AnniversaryGamer Mi BunnyAlpaca Mi Bunny Summer Mi BunnyI Love Mi BunnyMIUI ReviewOTA FeedbackRingtone Star Debate MasterAndroid GuruMi TalentMIUI FB FollowerForum Contest LoverMIUI Global Forum 2014Die-hard MIUI FanScroll Of Wisdom

14:58, Jan-09-2015 | Via mobile
|
hi i rooted my device but now wgile unrooting i forgot to off permission

Platinum Member

Rank: 4

Credits
2258
Device
Mi 3
MIUI Version
V8.2.10.0.MCFMIDL
Online time
220 Hours
Send PM

Mi BandMi WiFi RouterMagic CubeXiaomi 7th AnniversaryAwesome!I Love MIUIMIUI 2015Fantastic!FlashholicMIUI 6Mi 3Mi NoteRedmi 1SMi Note ProMi PadXiaomi Mi 4Mi TVRedmi NoteRedmi 2Diwali MIUI 100 Million Users300K Forum MembersThanksgiving DayHappy Valentine's DayFan Of MIUI IndiaMIUI Fan from IndiaFan Of  MIUI Azerbaijan500K Forum MembersMIUI Fan From BrazilFan Of MIUI BangladeshHilal Ramadan 600K Forum MembersMIUI Fan from Malaysia700K Forum Members1 Million Forum MembersMIUI 5th AnniversaryXiaomi 5th AnniversaryGamer Mi BunnyAlpaca Mi Bunny Summer Mi BunnyI Love Mi BunnyMIUI ReviewOTA FeedbackRingtone Star Debate MasterAndroid GuruMi TalentMIUI FB FollowerForum Contest LoverMIUI Global Forum 2014Die-hard MIUI FanScroll Of Wisdom

14:58, Jan-09-2015 | Via mobile
|
hi i rooted my device but now wgile unrooting i forgot to off permission

Credits Management

Quick Reply Top Return to the list