Originally Posted by tarekkkkk
make sure to make two apps one that require pershoot kernel and another one without pershoot kernel just a stock one, if so the app will be great, gd luck.
Why not check inside the app what kernel is used and act accordingly ?
BTW I have used the same procedure to enable ad-hoc for the stock kernel as well as the pershoot kernel, using the same wpa_supplicant file.
I envision the app should:
- Check if the device is supported (for now P75XX)
- Request/verify root access.
- Check if device is already ad-hoc enabled by this app, if not continue.
- Verify if wpa_supplicant in /system/bin/wpa_supplicant is in a sain state (verify md5 hash with original) if it doesn't match warn user if he still wants to continue.
- Create a copy of the original wpa_supplicant file.
- Copy adhoc-enabled wpa_supplicant to /system/bin/wpa_supplicant, overwriting the existing file.
- chmod 755 /system/bin/wpa_supplicant
- chown system.wifi /data/misc/wifi/wpa_supplicant.conf
- Inform user to reboot for the changes to take effect.
I'm not an expert on wpa_supplicant so any help is appreciated.