hooker icon indicating copy to clipboard operation
hooker copied to clipboard

Unable to attach using identifier

Open gaplan opened this issue 3 years ago • 3 comments

Screen Shot 2022-07-13 at 07 24 09

  PID  Name                          Identifier                                   
-----  ----------------------------  ---------------------------------------------
 7313  AirDroid                      com.sand.airdroid                            
 8263  Calendar                      com.samsung.android.calendar                 
 7572  Contacts                      com.samsung.android.contacts                 
 7572  Contacts                      com.samsung.android.contacts                 
26770  Dergilik                      com.arneca.dergilik.main3x                   
 5384  Google                        com.google.android.googlequicksearchbox      
 5384  Google                        com.google.android.googlequicksearchbox      
 6258  Google Play Store             com.android.vending                          
26635  Instagram Lite                com.instagram.lite                           
 6180  Lite                          com.facebook.lite                            
 6831  Magisk                        com.topjohnwu.magisk                         
26939  Official TWRP App             me.twrp.twrpapp                              
25921  S Voice                       com.samsung.voiceserviceplatform             
26081  Samsung Music                 com.sec.android.app.music                    
19360  TikTok                        com.zhiliaoapp.musically                     
27067  TikTok Lite                   com.zhiliaoapp.musically.go                  
 3608  抖音                            com.ss.android.ugc.aweme                     
Enter the need to attach package.
:    com.ss.android.ugc.aweme
It's com.ss.android.ugc.aweme that you have attached app.
Traceback (most recent call last):
  File "/Users/selcukakbulut/temp/andro/hooker/hooker.py", line 93, in attach
    online_session = rdev.attach(target)
  File "/opt/homebrew/lib/python3.9/site-packages/frida/core.py", line 26, in wrapper
    return f(*args, **kwargs)
  File "/opt/homebrew/lib/python3.9/site-packages/frida/core.py", line 165, in attach
    return Session(self._impl.attach(self._pid_of(target), *args, **kwargs))
  File "/opt/homebrew/lib/python3.9/site-packages/frida/core.py", line 193, in _pid_of
    return self.get_process(target).pid
  File "/opt/homebrew/lib/python3.9/site-packages/frida/core.py", line 26, in wrapper
    return f(*args, **kwargs)
  File "/opt/homebrew/lib/python3.9/site-packages/frida/core.py", line 121, in get_process
    raise _frida.ProcessNotFoundError("unable to find process with name '%s'" % process_name)
frida.ProcessNotFoundError: unable to find process with name 'com.ss.android.ugc.aweme'

--------------------------------------------------



gaplan avatar Jul 13 '22 04:07 gaplan

Is the app process running?

CreditTone avatar Sep 16 '22 17:09 CreditTone

Nope.

gaplan avatar Sep 17 '22 02:09 gaplan

屏幕截图 2022-07-13 在 07 24 09

  PID  Name                          Identifier                                   
-----  ----------------------------  ---------------------------------------------
 7313  AirDroid                      com.sand.airdroid                            
 8263  Calendar                      com.samsung.android.calendar                 
 7572  Contacts                      com.samsung.android.contacts                 
 7572  Contacts                      com.samsung.android.contacts                 
26770  Dergilik                      com.arneca.dergilik.main3x                   
 5384  Google                        com.google.android.googlequicksearchbox      
 5384  Google                        com.google.android.googlequicksearchbox      
 6258  Google Play Store             com.android.vending                          
26635  Instagram Lite                com.instagram.lite                           
 6180  Lite                          com.facebook.lite                            
 6831  Magisk                        com.topjohnwu.magisk                         
26939  Official TWRP App             me.twrp.twrpapp                              
25921  S Voice                       com.samsung.voiceserviceplatform             
26081  Samsung Music                 com.sec.android.app.music                    
19360  TikTok                        com.zhiliaoapp.musically                     
27067  TikTok Lite                   com.zhiliaoapp.musically.go                  
 3608  抖音                            com.ss.android.ugc.aweme                     
Enter the need to attach package.
:    com.ss.android.ugc.aweme
It's com.ss.android.ugc.aweme that you have attached app.
Traceback (most recent call last):
  File "/Users/selcukakbulut/temp/andro/hooker/hooker.py", line 93, in attach
    online_session = rdev.attach(target)
  File "/opt/homebrew/lib/python3.9/site-packages/frida/core.py", line 26, in wrapper
    return f(*args, **kwargs)
  File "/opt/homebrew/lib/python3.9/site-packages/frida/core.py", line 165, in attach
    return Session(self._impl.attach(self._pid_of(target), *args, **kwargs))
  File "/opt/homebrew/lib/python3.9/site-packages/frida/core.py", line 193, in _pid_of
    return self.get_process(target).pid
  File "/opt/homebrew/lib/python3.9/site-packages/frida/core.py", line 26, in wrapper
    return f(*args, **kwargs)
  File "/opt/homebrew/lib/python3.9/site-packages/frida/core.py", line 121, in get_process
    raise _frida.ProcessNotFoundError("unable to find process with name '%s'" % process_name)
frida.ProcessNotFoundError: unable to find process with name 'com.ss.android.ugc.aweme'

--------------------------------------------------

Did you solve this problem, I also encountered the same error

Sq-CC avatar Nov 30 '22 11:11 Sq-CC