Advertisement
efxtv

Changing icon, app name, add admin permission to the app

Oct 3rd, 2023 (edited)
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.15 KB | Cybersecurity | 0 0
  1.  
  2. #Changing icon, app name, add admin permission to the app
  3. ===========================================================
  4. Download files premium group ask t.me/efxtv
  5. https://t.me/c/1480784123/1/504
  6. ===========================================================
  7. #create directory
  8. mkdir res/xml (Paste device_admin.xml)
  9. mkdir res/drawable (paste icon)
  10.  
  11. #Steps to change the app name
  12. ===========================================================
  13. $ mkdir res/xml (Paste device_admin.xml)
  14. $ mkdir res/drawable (paste icon)
  15.  
  16. ===========================================================
  17. #Edit the app name
  18. nano /res/strings.xml
  19. ===========================================================
  20. <resources>
  21. <string name="app_name">ChangeYourAppNameHere</string>
  22. </resources>
  23. ===========================================================
  24.  
  25. #steps to add app Icon
  26. $ cp /sdcard/Download/icon.png res/drawable
  27.  
  28.  
  29. nano payload-name/AndroidManifest.xml (press ctrl + w)
  30. search for app_name delete that line and paste the custom script
  31. ===========================================================
  32. <application android:label="@string/app_name" android:icon="@drawable/icon">
  33. ===========================================================
  34.  
  35. #add admin permissions to the app
  36. $ copy device_admin.xml to res/xml
  37. $ cp device_admin.xml res/xml
  38.  
  39. Search for </receiver> in AndroidManifest.xml
  40. $ nano payload-name/AndroidManifest.xml (press ctrl + w and search for </receiver>)
  41. ad a new line after </receiver> and paste the scrpt
  42.  
  43. ===========================================================
  44. <receiver android:name="com.ChangeThePackageNameInTheFirstLineOFAndroidManifest" android:permission="android.permission.BIND_DEVICE_ADMIN">
  45.             <meta-data android:name="android.app.device_admin" android:resource="@xml/device_admin" />
  46.             <intent-filter>
  47.                 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED" />
  48.             </intent-filter>
  49.         </receiver>
  50. ===========================================================
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement