ست کردن پرمیشن ها | با دستور نویسی updater-script
با سلام خدمت شما
اینبار با آموزش ست کردن پرمیشن ها در خدمت شما بزرگواران هستیم
البته توسط دستور نویسی updater-Script
یک توضیح مختصری در مورد پرمیشن بگم حتما تا حالا در گوشیتون هنگام حالا شاید تغیییر فونت پرمیشن ست کردید
به این شکل هستش که میتونید از طریق فایل منیجر ست کنید
اما با دستور نویسی چطور ؟
1- حتما یادتونه در آموزش قبلی که ساخت فایل قابل نصب از ریکاوری بود گفتم که updater-script محل نوشتن دستور های درخواستی هست
2- حالا میتونید با این دستور نویسی پرمیشن های هر چی رو خواستید ست کنید
3- به طور کلی دستور اجرایی برای ست کردن پرمیشن ها به صورت زیر هستش
کد:
set_perm(uid, gid, mode, "LG-Developers.ir");
4- اون LG-Developers.ir نام و محل دقیق فایل هستش مثلا
کد:
System/fonts/DroidNaskh-RegularUI.ttf
5- خب در دستور نویسی باید به جای تیک از عدد استفاده کنیم پس قاعدتا باید اعداد این پرمیشن هارو یاد بگیریم اما چطور
6- بعضی ها شاید مبنای دیجیتالی ( دودویی ) بلد باشند که هیچ کارشون راحته اون ها هم که بلد نیستن چند خطم بخونن کارشون رو راحت میکنیم
7- این ها عدد های پرمیشن هاست که باید یاد بگیرید
8- خب این کد رو دوباره نگاه کنید
کد:
set_perm(uid, gid, mode, "LG-Developers.ir");
9- یک جا که گفتم آدرس و نام فایل هست سه مورد دیگر هم هست
10- به ترتیب uid و gid و code
11- دو مورد اول یعنی uid و gid رو در این آموزش کاری ند اریم اکثرا روی صفر هستند
12- اینم بگم برای اطلاعاتتون خوبه uid مخفف userid و gid مخفف groupi d هستش
13- در فایل منیجر هم اینجا قرار میگیرند
14- خب حالا با طریقه نوشتن دستور آشنا شدید حالا نوبت به این میرسه که برای فهم بهتر یک مثال بزنم
15 مثلا میخوایم پرمیشن framework-res.apk رو تنظیم کنیم
16- در updater-script درج میکنیم به این شکل :
کد:
set_perm(0, 0, 0644, "/system/framework/framework-res.apk");
17- خب حالا دستور مرحله ی 16 رو مورد بررسی قرار میدیم
18- اینو ببینید
کد:
set_perm(uid, gid, yourperm, "/address");
19- uid و gid که گفتم اکثرا روی 0 هست yourperm هم پرمیشنی هست که شما میخواید ست کنید adress هم آدرس دقیق فایل هست همونطوری که من در مرحله ی 16 آدرس دقیق دادم
20- خب کار تمامه موفق باشید
اما یک موضوع دیگر اگر تعداد فایل هایی که میخوایم پرمیشنشون رو ست کنیم در یک فولدر زیاد بود چه کنیم؟
شاید خواستیم همه ی محتویات فولدر رو پرمیشنش رو ست کنیم چه باید کرد ؟
این هم یک راه حل داره که یکجا پرمیشن هارو ست کنیم
1- ساخت پرمیشن دلخواه رو به صورت کد که بالا توضیح دادم یادتون هست ؟
2- و این هم میدونید که باید توی updater-Script دستور رو اجرا کنید درسته ؟
3- خب حالا این دستور رو ببینید
کد:
set_perm_recursive(0, 0, folder perm, files perm, "/adress/");
4- دو تا صفر اول که معلوم هست چی هست اما سه گزینه ی آخر
5- folder perm پرمیشن های دلخواه برای پوشه ها
6- و file perm پرمیشن های دلخواه برای فایل هاست
7- adress هم که معلومه
نکته مهم : اگر در یک فولدر فایل ها با پرمیشن های متفاوتی دارید و یکجا با این روش پرمیشن هارو ست کنید گوشیتون بریک میشه پس قبل از انجام کار دقت کنید همه ی پرمیشن ها یکی باشن
مثلا اگر دولوپر هستید حتما از دستور زیر استفاده میکنید
کد:
set_perm_recursive(0, 0, 0755, 0644, "/system/");
8- دستور زیر همه ی فولدر هارو با دسترسی 0755 و همه ی فایل هارو با دسترسی 0644 میکنه منظورم از دسترسی پرمیشن هستش
موفق و موید باشید | ال جی ایران
antibiotics doxycycline stronger than amoxicillin
[Only registered and activated users can see links. Click Here To Register...] After 16 days in the hospital he was vented.
tinidazole and doxycycline tablets
[Only registered and activated users can see links. Click Here To Register...] Inmates of correctional facilities, residential homes, or shelters.
doxycycline hyclate 100mg for dogs side effects
The voice of God Venerable was as shocking as thunder. [Only registered and activated users can see links. Click Here To Register...] Though nitrofurans and trimethoprim are still continuing, there is no change in clouded urine condition.
doxycycline and hearing loss in dogs
[Only registered and activated users can see links. Click Here To Register...] Monitor Closely 1 meperidine increases and levalbuterol decreases sedation.
can you buy tadalafil in italian pharmacies without a prescription
[Only registered and activated users can see links. Click Here To Register...] Ethan Alter
cialis and upper back pain
If novel therapeutics that effectively eradicate mutant ESR1 are employed clinically, the upfront use of the agents in an adjuvant setting has the potential to reduce failure of endocrine treatment [Only registered and activated users can see links. Click Here To Register...]
can i take more than one 5mg cialis
Several important experimental parameters important to time delayed fragmentation have been identified and are discussed [Only registered and activated users can see links. Click Here To Register...]
can cialis delay ejaculation
005 for linear dose response and P 0 [Only registered and activated users can see links. Click Here To Register...]
does tadalafil increase size
Oncotarget, 8 47, 82037 82048 [Only registered and activated users can see links. Click Here To Register...] The trigger shot would force ovulation even if it s a little early for you
20 milligram cialis can you cut those in half
With higher doses, effects are small at best [Only registered and activated users can see links. Click Here To Register...] I ve lost a lot of friends and feel bad about that
cialis 10mg price walgreens
Also shown in Figure 1 are analogous results to those described above; but when a superiority trial assumes a 3 year IBCFS of 72 versus 75 blue points, the effects on power and the estimated HRs trend in the same direction as those in the previous example [Only registered and activated users can see links. Click Here To Register...] benazepril tratamento para piolho ivermectina Similarly, Mark Zuckerberg, the billionaire founder of ********, reportedly still drives a modest Acura sedan
cialis how can you get it
[Only registered and activated users can see links. Click Here To Register...] The patient should also be informed by the health care provider of the possible change in urine color while on this medicine
can i take cialis with viagra
[Only registered and activated users can see links. Click Here To Register...] bicalutamide will increase the level or effect of atogepant by affecting hepatic intestinal enzyme CYP3A4 metabolism
how long does tadalafil daily take to work
[Only registered and activated users can see links. Click Here To Register...] Larry DKznYfXYnUSUzU 6 17 2022
which is more effective sildenafil or tadalafil
[Only registered and activated users can see links. Click Here To Register...] Finally, these 2 therapeutic classes have little effect on fertility and pregnancy, but the available experience of use is still limited about 10 years, and as a result their prescription must be avoided when possible
how long does cialis really work
I thought people were gonna be surprised that we finally did a record together, but I didn t see how people could think it was a bad thing, you know [Only registered and activated users can see links. Click Here To Register...]
cialis uk no prescription
[Only registered and activated users can see links. Click Here To Register...] About 70 of women with a BRCA1 mutation develop triple negative BC TNBC 9, 10, i
what foods contain tadalafil
[Only registered and activated users can see links. Click Here To Register...] gondii DNA can selectively be fished out from a large volume of meat lysate
generic cialis india canadian pharmacy
To Learn More About Fatigue [Only registered and activated users can see links. Click Here To Register...]
does rhode island medical insurance cover viagra and cialis
Mary FEUHuMYctOH 6 17 2022 [Only registered and activated users can see links. Click Here To Register...]
can you take naproxen with cialis
Direct tumor effects include intratumoral hemorrhage, arterial and venous sinus invasion by tumor mass or leptomeningeal infiltrates, and tumor emboli [Only registered and activated users can see links. Click Here To Register...] Advocacy and Resource Mobilisation Workshop in Mombasa
free cialis samples online
[Only registered and activated users can see links. Click Here To Register...] Endocrinology 147 suppl 6 S11 S17