Messaging: Add automation compose and rebrand as com.bnkode.notie.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+1
-1
@@ -40,4 +40,4 @@ if [ $# -lt 1 ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
adb shell su -c sqlite3 $opts data/data/com.filabcorp.msgq/databases/bugle_db "$1"
|
||||
adb shell su -c sqlite3 $opts data/data/com.bnkode.notie/databases/bugle_db "$1"
|
||||
|
||||
@@ -11,14 +11,14 @@ function Invoke-Adb {
|
||||
}
|
||||
|
||||
Write-Host "== Default SMS + permissions =="
|
||||
Invoke-Adb shell cmd role add-role-holder android.app.role.SMS com.filabcorp.msgq | Out-Null
|
||||
Invoke-Adb shell settings put secure sms_default_application com.filabcorp.msgq | Out-Null
|
||||
Invoke-Adb shell cmd role add-role-holder android.app.role.SMS com.bnkode.notie | Out-Null
|
||||
Invoke-Adb shell settings put secure sms_default_application com.bnkode.notie | Out-Null
|
||||
foreach ($p in @(
|
||||
"READ_SMS","RECEIVE_SMS","SEND_SMS","RECEIVE_MMS",
|
||||
"READ_CONTACTS","WRITE_CONTACTS","READ_PHONE_STATE",
|
||||
"READ_PHONE_NUMBERS","POST_NOTIFICATIONS"
|
||||
)) {
|
||||
Invoke-Adb shell pm grant com.filabcorp.msgq "android.permission.$p" 2>$null | Out-Null
|
||||
Invoke-Adb shell pm grant com.bnkode.notie "android.permission.$p" 2>$null | Out-Null
|
||||
}
|
||||
|
||||
$demo = @(
|
||||
@@ -79,7 +79,7 @@ for ($i = 0; $i -lt $demo.Count; $i += 2) {
|
||||
}
|
||||
|
||||
Write-Host "== Relaunch =="
|
||||
Invoke-Adb shell am force-stop com.filabcorp.msgq | Out-Null
|
||||
Invoke-Adb shell am force-stop com.bnkode.notie | Out-Null
|
||||
Start-Sleep -Seconds 1
|
||||
Invoke-Adb shell am start -n com.filabcorp.msgq/com.android.messaging.ui.conversationlist.ConversationListActivity | Out-Null
|
||||
Invoke-Adb shell am start -n com.bnkode.notie/com.android.messaging.ui.conversationlist.ConversationListActivity | Out-Null
|
||||
Write-Host "Done."
|
||||
|
||||
Reference in New Issue
Block a user