-
大小: 44.94MB文件類型: .rar金幣: 1下載: 0 次發(fā)布日期: 2023-07-24
- 語言: 其他
- 標(biāo)簽:
資源簡介
百度語音合成前期研究對(duì)授權(quán)處理的不夠妥當(dāng),如果項(xiàng)目中有使用設(shè)備系統(tǒng)時(shí)間則語音合成存在過期風(fēng)險(xiǎn),所以對(duì)語音合成授權(quán)進(jìn)行研究,修改了百度語音so動(dòng)態(tài)庫程序文件,即把獲取當(dāng)前系統(tǒng)時(shí)間的函數(shù)里邊日期字符串格式化年份原本為加1900,修改為加524(因手動(dòng)修改機(jī)器碼無法湊整),雖然獲取系統(tǒng)的時(shí)間與授權(quán)文件時(shí)間仍然會(huì)比較,但有效年份多出了 1900 – 524 = 1376 年,設(shè)備上測(cè)試,設(shè)置任意系統(tǒng)時(shí)間進(jìn)行測(cè)試皆能正常進(jìn)行語音合成,授權(quán)問題成功破解。
代碼片段和文件信息
/*
?*?This?file?is?auto-generated.??DO?NOT?MODIFY.
?*?Original?file:?G:\\Android_Project\\I90_Project\\百度語音備份\\V1.8?權(quán)限破解,不過期\\SpeechService\\src\\com\\centerm\\aidl\\ISpeechService.aidl
?*/
package?com.centerm.aidl;
public?interface?ISpeechService?extends?android.os.IInterface
{
/**?Local-side?IPC?implementation?stub?class.?*/
public?static?abstract?class?Stub?extends?android.os.Binder?implements?com.centerm.aidl.ISpeechService
{
private?static?final?java.lang.String?DEscriptOR?=?“com.centerm.aidl.ISpeechService“;
/**?Construct?the?stub?at?attach?it?to?the?interface.?*/
public?Stub()
{
this.attachInterface(this?DEscriptOR);
}
/**
?*?Cast?an?IBinder?object?into?an?com.centerm.aidl.ISpeechService?interface
?*?generating?a?proxy?if?needed.
?*/
public?static?com.centerm.aidl.ISpeechService?asInterface(android.os.IBinder?obj)
{
if?((obj==null))?{
return?null;
}
android.os.IInterface?iin?=?obj.queryLocalInterface(DEscriptOR);
if?(((iin!=null)&&(iin?instanceof?com.centerm.aidl.ISpeechService)))?{
return?((com.centerm.aidl.ISpeechService)iin);
}
return?new?com.centerm.aidl.ISpeechService.Stub.Proxy(obj);
}
@Override?public?android.os.IBinder?asBinder()
{
return?this;
}
@Override?public?boolean?onTransact(int?code?android.os.Parcel?data?android.os.Parcel?reply?int?flags)?throws?android.os.RemoteException
{
switch?(code)
{
case?INTERFACE_TRANSACTION:
{
reply.writeString(DEscriptOR);
return?true;
}
case?TRANSACTION_startSpeech:
{
data.enforceInterface(DEscriptOR);
java.lang.String?_arg0;
_arg0?=?data.readString();
int?_arg1;
_arg1?=?data.readInt();
this.startSpeech(_arg0?_arg1);
reply.writeNoException();
return?true;
}
case?TRANSACTION_stopSpeech:
{
data.enforceInterface(DEscriptOR);
this.stopSpeech();
reply.writeNoException();
return?true;
}
}
return?super.onTransact(code?data?reply?flags);
}
private?static?class?Proxy?implements?com.centerm.aidl.ISpeechService
{
private?android.os.IBinder?mRemote;
Proxy(android.os.IBinder?remote)
{
mRemote?=?remote;
}
@Override?public?android.os.IBinder?asBinder()
{
return?mRemote;
}
public?java.lang.String?getInterfaceDescriptor()
{
return?DEscriptOR;
}
@Override?public?void?startSpeech(java.lang.String?text?int?AudioType)?throws?android.os.RemoteException
{
android.os.Parcel?_data?=?android.os.Parcel.obtain();
android.os.Parcel?_reply?=?android.os.Parcel.obtain();
try?{
_data.writeInterfaceToken(DEscriptOR);
_data.writeString(text);
_data.writeInt(AudioType);
mRemote.transact(Stub.TRANSACTION_startSpeech?_data?_reply?0);
_reply.readException();
}
finally?{
_reply.recycle();
_data.recycle();
}
}
@Override?public?void?stopSpeech()?throws?android.os.RemoteException
{
android.os.Parcel?_data?=?android.os.Parcel.obtain();
android.os.Parcel?_reply?=?android.os.Parcel.obtain();
try?{
_data.writeInterfaceToken(DEscriptOR);
mRemote.transact(Stub.TRANSACTION_stopSpeech?_data?_reply?0);
_reply.readException();
}
finally?{
_reply.recycle();
_data.recycle();
}
}
}
static?final?int?TRANSACTION_startSpeech?=?(android.o
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件????????475??2016-06-29?10:58??SpeechService\.classpath
?????文件????????849??2016-04-29?09:29??SpeechService\.project
?????文件?????????91??2016-05-05?18:37??SpeechService\.settings\org.eclipse.core.resources.prefs
?????文件????????598??2016-05-05?10:34??SpeechService\.settings\org.eclipse.jdt.core.prefs
?????文件????????106??2016-05-05?10:34??SpeechService\.settings\org.eclipse.ltk.core.refactoring.prefs
?????文件???????1283??2017-04-13?17:12??SpeechService\AndroidManifest.xm
?????文件?????995138??2016-03-21?17:20??SpeechService\assets\bd_etts_speech_female.dat
?????文件?????906899??2016-04-28?10:50??SpeechService\assets\bd_etts_speech_male.dat
?????文件????4661921??2016-03-21?17:20??SpeechService\assets\bd_etts_text.dat
?????文件?????867520??2016-03-21?17:20??SpeechService\assets\english\bd_etts_speech_female_en.dat
?????文件?????725777??2016-04-28?10:50??SpeechService\assets\english\bd_etts_speech_male_en.dat
?????文件????2804042??2016-03-21?17:20??SpeechService\assets\english\bd_etts_text_en.dat
?????文件????????512??2016-07-04?10:53??SpeechService\assets\temp_license_2016-07-04
?????文件????????512??2017-04-13?16:43??SpeechService\assets\temp_license_2017-04-13
?????文件???????3305??2017-04-13?16:27??SpeechService\gen\com\centerm\aidl\ISpeechService.java
?????文件????????167??2017-04-13?16:27??SpeechService\gen\com\centerm\speechservice\BuildConfig.java
?????文件???????2707??2017-04-13?17:12??SpeechService\gen\com\centerm\speechservice\R.java
?????文件??????51394??2016-04-29?09:29??SpeechService\ic_launcher-web.png
?????文件?????621451??2016-04-29?09:29??SpeechService\libs\android-support-v4.jar
?????文件?????410136??2017-04-13?16:30??SpeechService\libs\armeabi\libBDSpeechDecoder_V1.so
?????文件??????17608??2017-04-13?16:30??SpeechService\libs\armeabi\libbdtts.so
?????文件????1168956??2017-04-13?16:30??SpeechService\libs\armeabi\libbd_etts.so
?????文件?????726692??2017-04-13?16:30??SpeechService\libs\armeabi\libgnustl_shared.so
?????文件?????381476??2017-04-13?16:29??SpeechService\libs\armeabi-v7a\libBDSpeechDecoder_V1.so
?????文件??????17608??2017-04-13?16:29??SpeechService\libs\armeabi-v7a\libbdtts.so
?????文件????1205820??2017-04-13?16:29??SpeechService\libs\armeabi-v7a\libbd_etts.so
?????文件?????710316??2017-04-13?16:29??SpeechService\libs\armeabi-v7a\libgnustl_shared.so
?????文件?????384503??2017-04-13?16:30??SpeechService\libs\com.baidu.tts_2.3.0.jar
?????文件?????????53??2016-05-05?10:34??SpeechService\lint.xm
?????文件????????781??2016-04-29?09:29??SpeechService\proguard-project.txt
............此處省略53個(gè)文件信息
評(píng)論
共有 條評(píng)論