|
|
@@ -168,14 +168,15 @@ setImmediate(() => {
|
|
|
|
|
|
// log(readConfig('serial_no'))
|
|
|
let config = readConfig()
|
|
|
-
|
|
|
- new Interaction().start(23946, (msg) => {
|
|
|
- log(`received message: ${JSON.stringify(msg)}`)
|
|
|
- if (msg.action === 'saveConfig') {
|
|
|
- config = msg.data
|
|
|
- saveConfig(config)
|
|
|
- }
|
|
|
- })
|
|
|
+ setTimeout(() => {
|
|
|
+ new Interaction().start(23946, (msg) => {
|
|
|
+ log(`received message: ${JSON.stringify(msg)}`)
|
|
|
+ if (msg.action === 'saveConfig') {
|
|
|
+ config = msg.data
|
|
|
+ saveConfig(config)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }, 10000)
|
|
|
|
|
|
const PhoneInterfaceManager = Java.use('com.android.phone.PhoneInterfaceManager')
|
|
|
PhoneInterfaceManager.getImeiForSlot.overload('int', 'java.lang.String', 'java.lang.String').implementation =
|