PDA

توجه ! این یک نسخه آرشیو شده میباشد و در این حالت شما عکسی را مشاهده نمیکنید برای مشاهده کامل متن و عکسها بر روی لینک مقابل کلیک کنید : آموزش تخصصی ست کردن پرمیشن ها | با دستور نویسی updater-script



Reza.Vejdan
08-12-2015, 02:36 AM
با سلام خدمت شما

اینبار با آموزش ست کردن پرمیشن ها در خدمت شما بزرگواران هستیم

البته توسط دستور نویسی updater-Script

یک توضیح مختصری در مورد پرمیشن بگم حتما تا حالا در گوشیتون هنگام حالا شاید تغیییر فونت پرمیشن ست کردید

به این شکل هستش که میتونید از طریق فایل منیجر ست کنید


[Only registered and activated users can see links]



اما با دستور نویسی چطور ؟

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- این ها عدد های پرمیشن هاست که باید یاد بگیرید



عدد : 0

[Only registered and activated users can see links]

عدد : 1
[Only registered and activated users can see links]

عدد : 2

[Only registered and activated users can see links]

عدد : 3

[Only registered and activated users can see links]

عدد : 4

[Only registered and activated users can see links]

عدد: 5

[Only registered and activated users can see links]

عدد : 6
[Only registered and activated users can see links]

عدد : 7

[Only registered and activated users can see links]


8- خب این کد رو دوباره نگاه کنید


set_perm(uid, gid, mode, "LG-Developers.ir");

9- یک جا که گفتم آدرس و نام فایل هست سه مورد دیگر هم هست

10- به ترتیب uid و gid و code

11- دو مورد اول یعنی uid و gid رو در این آموزش کاری ند اریم اکثرا روی صفر هستند

12- اینم بگم برای اطلاعاتتون خوبه uid مخفف userid و gid مخفف groupi d هستش

13- در فایل منیجر هم اینجا قرار میگیرند

[Only registered and activated users can see links]


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 میکنه منظورم از دسترسی پرمیشن هستش


موفق و موید باشید | ال جی ایران

squeete
09-20-2022, 04:26 AM
canadian pharmacy doxycycline ([Only registered and activated users can see links]) After 16 days in the hospital he was vented.

roambib
09-24-2022, 05:38 PM
dose of doxycycline for pneumonia ([Only registered and activated users can see links]) Inmates of correctional facilities, residential homes, or shelters.

roambib
09-24-2022, 08:13 PM
The voice of God Venerable was as shocking as thunder. doxycycline 100mg twice a day ([Only registered and activated users can see links]) Though nitrofurans and trimethoprim are still continuing, there is no change in clouded urine condition.

roambib
09-24-2022, 08:36 PM
Van Wagoner will require a paid follow- up consultation request before refilling your medications even if it has been less than 6 months since your last visit, especially if you have missed any recommended follow- up appointments. doxycline chicago ([Only registered and activated users can see links])

roambib
09-24-2022, 10:54 PM
doxycycline upset stomach ([Only registered and activated users can see links]) Monitor Closely 1 meperidine increases and levalbuterol decreases sedation.

coetifs
12-21-2022, 06:18 AM
clomid and cialis ([Only registered and activated users can see links]) Ethan Alter

coetifs
12-21-2022, 06:23 AM
purchase stromectol online ([Only registered and activated users can see links]) The patient should be weighed under standard conditions before and during the institution of diuretic therapy with this compound

coetifs
12-21-2022, 06:31 AM
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 buy clomid in uk ([Only registered and activated users can see links])

coetifs
12-21-2022, 06:37 AM
4 and patients 74 buy nolvadex for lab rats ([Only registered and activated users can see links])

coetifs
12-21-2022, 06:41 AM
It s an unusual week at Breast Cancer Now if we haven t heard from women who are struggling with the side effects of their treatments buy azithromycin 500mg online ([Only registered and activated users can see links]) Dutasteride has made a big difference in some male patients

coetifs
12-21-2022, 06:42 AM
Head Neck 38 E1086 E1096, 2016 propecia wiki ([Only registered and activated users can see links]) com 20 E2 AD 90 20Viagra 20Tablet 20Names 20And 20Price 20In 20Indian 20Rupees 20 20Cara 20Minum 20Obat 20Viagra cara minum obat viagra The upgrade in outlook, days after Standard Poor s placedfellow bailout recipient Portugal under warning of a possiblecredit rating downgrade, will help differentiate Ireland furthersaid Cantor Fitzgerald s Ryan McGrath

coetifs
12-21-2022, 06:55 AM
Several important experimental parameters important to time delayed fragmentation have been identified and are discussed cialis without prescription ([Only registered and activated users can see links])

coetifs
12-21-2022, 07:01 AM
Heart sounds are clear buy cialis online india ([Only registered and activated users can see links]) Robertson AB, Klungland A, Rognes T, Leiros I

coetifs
12-21-2022, 07:05 AM
005 for linear dose response and P 0 buy clomiphene ([Only registered and activated users can see links])

squeete
01-19-2023, 06:41 AM
propecia for men to buy ([Only registered and activated users can see links]) That s what happened to Seema Bisla at the Asian Olympic qualifiers in April this year

squeete
01-19-2023, 06:57 AM
stromectol uk buy ([Only registered and activated users can see links]) Mirena delivers a very small dose of the synthetic progestin levonorgestrel directly to the uterine lining

squeete
01-19-2023, 07:29 AM
Look at this reporter, his face is so ugly buy propecia ([Only registered and activated users can see links]) Deauville s year round trainer Stephane Wattel

squeete
01-19-2023, 07:42 AM
Oncotarget, 8 47, 82037 82048 where can i buy omifin ([Only registered and activated users can see links]) The trigger shot would force ovulation even if it s a little early for you

squeete
01-19-2023, 07:54 AM
do you need a prescription for propecia ([Only registered and activated users can see links]) Safe and luxurious beauty products

squeete
01-19-2023, 08:09 AM
With higher doses, effects are small at best clomid ([Only registered and activated users can see links]) I ve lost a lot of friends and feel bad about that

squeete
01-19-2023, 08:10 AM
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 buy generic propecia ([Only registered and activated users can see links]) benazepril tratamento para piolho ivermectina Similarly, Mark Zuckerberg, the billionaire founder of ********, reportedly still drives a modest Acura sedan

squeete
01-19-2023, 08:13 AM
whats in viagra ([Only registered and activated users can see links]) The patient should also be informed by the health care provider of the possible change in urine color while on this medicine

squeete
01-19-2023, 08:15 AM
Denmark is seen as one of the easy countries in Europe to incorporate a business in, and it really has some great pros going for it levitra prix bayer ([Only registered and activated users can see links]) That s when you should have intercourse if you re trying to get pregnant, as this type of discharge is a pretty reliable ovulation predictor

squeete
01-19-2023, 08:16 AM
ivermectin for humans for sale ([Only registered and activated users can see links]) bicalutamide will increase the level or effect of atogepant by affecting hepatic intestinal enzyme CYP3A4 metabolism

squeete
01-19-2023, 08:20 AM
clomiphene moa ([Only registered and activated users can see links]) Larry DKznYfXYnUSUzU 6 17 2022

squeete
01-19-2023, 08:25 AM
clomiphene 60 pills 25 mg no script usa ([Only registered and activated users can see links]) CsA compared with placebo, no treatment, or intravenous MPDN showed superior outcome 75 vs

Tombowl
02-11-2023, 07:40 AM
buy stromectol india ([Only registered and activated users can see links]) 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

Tombowl
02-11-2023, 07:41 AM
Immune landscape of breast cancers cheap cialis no prescription ([Only registered and activated users can see links])

Tombowl
02-11-2023, 07:43 AM
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 stromectol and alcohol ([Only registered and activated users can see links])

Tombowl
02-11-2023, 07:49 AM
stromectol dosis ([Only registered and activated users can see links]) Serious Use Alternative 1 enzalutamide will decrease the level or effect of chlordiazepoxide by affecting hepatic intestinal enzyme CYP3A4 metabolism

Tombowl
02-11-2023, 07:50 AM
generic cialis cost ([Only registered and activated users can see links]) About 70 of women with a BRCA1 mutation develop triple negative BC TNBC 9, 10, i

Tombowl
02-11-2023, 07:50 AM
torsemide to lasix conversion ([Only registered and activated users can see links]) gondii DNA can selectively be fished out from a large volume of meat lysate

Tombowl
02-11-2023, 07:51 AM
cialis on line ([Only registered and activated users can see links]) Biowaiver monographs for immediate release solid oral dosage forms ibuprofen

Tombowl
02-11-2023, 07:52 AM
To Learn More About Fatigue propecia vs finasteride ([Only registered and activated users can see links])

Tombowl
02-11-2023, 07:53 AM
In contrast, the factors against success were breast cancer; adjuvant breast cancer therapy gonadotoxicity; the age of the patient 40 year old; endometriosis; ovarian cyst; hydrosalpinx; submucosal fibroids and the respective associated surgery done for the above mentioned pathology all resolved prior to the embryo transfer; and a low quantity of ovules low ovarian reserve after ovarian stimulation stromectol to buy ([Only registered and activated users can see links]) 3B iv t test P 0

Tombowl
02-11-2023, 07:53 AM
Testicular torsion usually presents without any previous traumatic injuries to the scrotum, with only 4 8 of cases resulting from trauma 98; however, some kinds of physical activity, most notably cycling, are linked to an increased risk of testicular torsion 81 stromectol ([Only registered and activated users can see links])

Tombowl
02-11-2023, 07:59 AM
Mary FEUHuMYctOH 6 17 2022 cheap cialis online canadian pharmacy ([Only registered and activated users can see links])

Tombowl
02-11-2023, 08:02 AM
Direct tumor effects include intratumoral hemorrhage, arterial and venous sinus invasion by tumor mass or leptomeningeal infiltrates, and tumor emboli buy cialis usa ([Only registered and activated users can see links]) Advocacy and Resource Mobilisation Workshop in Mombasa

Tombowl
02-11-2023, 08:03 AM
generic tamoxifen 20mg ([Only registered and activated users can see links]) Endocrinology 147 suppl 6 S11 S17

Tombowl
02-11-2023, 08:09 AM
Monitor Closely 1 dexmedetomidine and trimipramine both increase sedation isotretinoin for sale ([Only registered and activated users can see links]) MRI of the breasts may be utilized alternating with mammogram at 6 month intervals, particularly, for women with dense breast tissue

Tombowl
02-11-2023, 08:10 AM
Nestle Nutr Workshop Ser Pediatr Program 2007; 60 235 247 cialis daily ([Only registered and activated users can see links])

Tombowl
02-11-2023, 08:16 AM
CUL4 based E3 ubiquitin ligases use DDB1 as a linker protein and a subset of WD40 proteins, known as DWD proteins, serve as the substrate receptor do tamoxifen side effects start immediately ([Only registered and activated users can see links]) com 20 E2 AD 90 20Cjng 20Cartel 20Vs 20Los 20Viagras 20 20Viagra 20Significado viagra significado Gov