[شرح] إضافه Plat-Logo الخاصه بنظام Android O لاي جهاز أندرويد
شرح اضافه Plat-Logo او Easter Egg الخاصه بنظام Android O لاي جهاز أندرويد
نوته :
العمل والطريقه دي كلها مبنيه علي عمل المبرمج Arayan A.R ف شكرا ليه وده لينك Original Thread بتاعته
Android O Plat-Logo & Easter Egg Screen Shots
خطوات إضافه Plat-Logo الخاصه بنظام Android O لاي جهاز أندرويد
- هتحمل الابلكيشن الي انا صنعته من هنا : Download
- هتحطه ف السيستم جوه فولدر system/apps
- هنعمل decompile للـ framework.jar وفي بعض الاجهزه اسمه framework2.jar
وبعدين هتروح للمسار ده : smali/com/android/internal/app and open PlatLogoActivity.smali
إعمل Select all للكود اللي هتلاقيه وبعدين استبدله بالكود ده :
.class public Lcom/android/internal/app/PlatLogoActivity;
.super Landroid/app/Activity;
.source “PlatLogoActivity.java”
# direct methods
.method public constructor <init>()V
.registers 1.prologue
.line 12
invoke-direct {p0}, Landroid/app/Activity;-><init>()Vreturn-void
.end method
# virtual methods
.method protected onCreate(Landroid/os/Bundle;)V
.registers 7
.parameter “savedInstanceState”.prologue
.line 16
invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V.line 18
new-instance v1, Landroid/content/Intent;const-string v2, “android.intent.action.MAIN”
invoke-direct {v1, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
.line 19
.local v1, intent:Landroid/content/Intent;
new-instance v2, Landroid/content/ComponentName;const-string v3, “com.aryan.nplatlogo”
const-string v4, “com.aryan.nplatlogo.PlatLogoActivity”
invoke-direct {v2, v3, v4}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V
invoke-virtual {v1, v2}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent;
.line 23
:try_start_16
invoke-virtual {p0, v1}, Lcom/android/internal/app/PlatLogoActivity;->startActivity(Landroid/content/Intent;)V
:try_end_19
.catch Landroid/content/ActivityNotFoundException; {:try_start_16 .. :try_end_19} :catch_1d.line 39
:goto_19
invoke-virtual {p0}, Lcom/android/internal/app/PlatLogoActivity;->finish()V.line 41
return-void.line 31
:catch_1d
move-exception v0.line 35
.local v0, e:Landroid/content/ActivityNotFoundException;
const-string v2, “Install AndroidN PlatLogo By Aryan”const/4 v3, 0x0
invoke-static {p0, v2, v3}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;
move-result-object v2
invoke-virtual {v2}, Landroid/widget/Toast;->show()V
goto :goto_19
.end method
بعد كده هتعمل Recompile لملف framework.jar وبعدها ترجعه لمسار system/framework طبعا مع مراعاة التصريحات الصحيحة اللي هي (rw-r–r–)
وبكده نكون خلصنا وارجو انكم عجبكم الموضوع و الفكره
إقرأ أيضاً :