我正在制作一个简单的 GUI 程序来更改 Android 手机的启动动画,但是从过去 4 天开始我遇到了一个问题,我不知道是什么原因,这是我的代码
void MainWindow::bootanim1()
{
QProcess rootboot;
QStringList path6,boottarget;
path6<<ui->lineEdit_6->text();
boottarget<<path6<<" /system/media";
ui->textBrowser->clear();
ui->textBrowser->setText("Remounting partitions...");
rootboot.start("bbin\\adb shell su -c \"busybox mount -o remount,rw /system\"");
rootboot.waitForFinished();
ui->textBrowser->setText("\nInstalling bootanimation.zip");
rootboot.start("bbin\\adb push ",boottarget);
rootboot.waitForFinished();
ui->textBrowser->setText("\nBootanimation has been changed! Try shutting down your phone to see new bootanimation");
}
单击按钮时会启动此功能,但我的问题是,这不起作用!其次,您可以在代码中看到,为了提供更多信息,我使用 atextBrowser
向用户显示正在发生的事情,例如重新安装分区等,并且lineEdit_6
是lineEdit
用户将粘贴 bootanimation.zip 路径的小部件。所以我的问题是当我点击按钮时只显示这个
Bootanimation has been changed! Try shutting down your phone to see new bootanimation
我认为上面的所有内容都被跳过了,我不知道为什么?谁能给我一些关于我缺少什么的提示?